/* === Project Layout === */
.project-layout.container {
    display: grid;
    grid-template-columns: 25% 1fr;
    gap: 2rem;
    margin: 0 auto;
    padding: 2rem 0rem;
    align-items: start;
}

/* === Sidebar Thumbnails === */
.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 1rem;
}

.project-sidebar .thumb {
    border: 2px solid transparent;
    transition: border 0.3s;
    cursor: pointer;
}

.project-sidebar .thumb img {
    width: 187px;
    object-fit: cover;
    height: 187px;
    display: block;
    border-radius: 4px;
}

/* === Right Column === */
.project-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* === Hero Image === */
.hero-image {
    background-size: contain;
    background-repeat: no-repeat;
    height: 75vh;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 2rem;
    color: white;
}

.hero-image.fade {
    animation: fadeImage 0.4s ease-in-out;
}

@keyframes fadeImage {
    from {
        opacity: 0.3;
        transform: scale(1.02);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem 2rem;
    border-radius: 10px;
}

/* === Body: Description & Info Block === */
.project-body {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

.description-column {
    font-size: 1.1rem;
    line-height: 1.6;
}

.info-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-block strong {
    display: block;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.info-block a {
    text-decoration: none;
    color: black;
    pointer-events: none;
}

/* === Back Button === */
.back-button {
    display: inline-block;
    margin-top: 2rem;
    text-decoration: none;
    font-weight: bold;
    color: #000;
    border: 1px solid #000;
    padding: 0.5rem 1rem;
    transition: background 0.3s, color 0.3s;
}

.back-button:hover {
    background: #000;
    color: #fff;
}

/* === Responsive === */
@media (max-width: 1025px) {
    .hero-image {
        height: 40vh;
    }
}

@media (max-width: 768px) {

    .header-title {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .project-layout.container {
        display: block;
        padding: 1.5rem 1rem;
        max-width: 100%;
    }

    .hero-image {
        height: auto;
        aspect-ratio: 4 / 3;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top center;
        padding: 0;
        justify-content: center;
        align-items: center;
    }

    .project-sidebar {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.75rem;
        padding: 1rem 0;
        justify-content: flex-start;
        align-items: center;
    }

    .project-sidebar .thumb img {
        width: 90px;
        flex-shrink: 0;
    }

    .project-content {
        gap: 1.5rem;
    }

    .project-body {
        display: block;
    }

    .description-column,
    .info-column {
        width: 100%;
        padding: 10px;
    }

    .info-column {
        margin-top: 2rem;
    }

    .back-button {
        display: none;
    }
}