* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #B8B89A;
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */

.project-detail-page {
    flex: 1;
    padding: 120px 60px 60px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.project-detail-container {
    width: 100%;
}

/* ============================================
   PROJECT HEADER (Back Button + Title)
   ============================================ */

.project-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
    padding-left: 20px;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #FEF8E7;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.back-button svg {
    width: 44px;
    height: 44px;
}

.back-button:hover {
    transform: translateX(-4px);
    opacity: 0.8;
}

.project-detail-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 72px;
    font-weight: 300;
    color: #FEF8E7;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* ============================================
   IMAGE GALLERY GRID
   ============================================ */

.project-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 24px;
    padding: 0 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Large left image spans 2 rows */
.gallery-item-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    height: 100%;
}

/* Top middle */
.gallery-item-top-middle {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

/* Top right */
.gallery-item-top-right {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

/* Bottom middle */
.gallery-item-bottom-middle {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* Bottom right */
.gallery-item-bottom-right {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

/* ============================================
   FOOTER
   ============================================ */

.project-detail-footer {
    padding: 60px 20px 100px;
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo img {
    height: 80px;
    width: auto;
    opacity: 0.9;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 1024px) {
    .project-detail-page {
        padding: 100px 40px 40px;
    }

    .project-detail-title {
        font-size: 56px;
    }

    .project-gallery {
        grid-template-rows: 180px 180px;
        gap: 16px;
    }

    .project-header {
        margin-bottom: 40px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .project-detail-page {
        padding: 90px 24px 100px;
    }

    .project-header {
        padding-left: 0;
        gap: 16px;
        margin-bottom: 32px;
    }

    .back-button {
        width: 36px;
        height: 36px;
    }

    .back-button svg {
        width: 36px;
        height: 36px;
    }

    .project-detail-title {
        font-size: 42px;
    }

    /* Stack to 2 columns on mobile */
    .project-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 160px);
        gap: 12px;
        padding: 0;
    }

    .gallery-item-large {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }

    .gallery-item-top-middle {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .gallery-item-top-right {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .gallery-item-bottom-middle {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .gallery-item-bottom-right {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }

    .project-detail-footer {
        padding: 40px 20px 100px;
    }

    .footer-logo img {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .project-detail-title {
        font-size: 32px;
    }

    .project-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 200px);
        gap: 12px;
    }

    /* All items stack vertically */
    .gallery-item-large,
    .gallery-item-top-middle,
    .gallery-item-top-right,
    .gallery-item-bottom-middle,
    .gallery-item-bottom-right {
        grid-column: 1 / 2;
        grid-row: auto;
    }

    .gallery-item-large {
        grid-row: 1 / 3;
    }

    .footer-logo img {
        height: 50px;
    }
}