/* ============================================
   GALLERY PAGE WRAPPER
============================================ */

#gallery-page {
    width: 100%;
    padding: 40px 20px 100px;
    background-color: #111;
    color: white;
}

/* Title + subtitle */

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-title {
    font-family: "Monument Extended", sans-serif;    
    line-height: 0.95;
    letter-spacing: 3px;
    text-align: center;
    margin: 0 0 10px;
    font-size: 64px;
    text-transform: uppercase;
    padding-top: 100px;
    padding-bottom: 40px;
}

.gallery-sub {
    font-family: "Clash Grotesk", sans-serif;
    padding-top: 20px;
    color: #d0d0d0;
    font-size: 22px;
    line-height: 1.5;
    max-width: 780px;
    margin: 0 auto 8px auto;
    padding-bottom: 40px;
}

/* ============================================
   GRID LAYOUT — 4 columns × 13 rows
============================================ */

#grid {
    width: 80%;
    max-width: 1200px;     
    
    margin: 0 auto;         
    display: grid;

    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(14, 180px);


    grid-template-areas:
        "empty_1 pic_1 pic_1 empty_2"
        "empty_3 pic_1 pic_1 empty_4"
        "pic_2 pic_2 pic_3 pic_3"
        "pic_2 pic_2 pic_3 pic_3"
        "pic_4 pic_4 empty_13 empty_14"
        "pic_4 pic_4 pic_6 pic_6"
        "pic_5 pic_5 pic_6 pic_6"
        "pic_5 pic_5 empty_15 empty_16"
        "empty_5 pic_7 pic_7 empty_6"
        "empty_7 pic_7 pic_7 empty_8"
        "pic_8 pic_8 pic_9 pic_9"
        "pic_8 pic_8 pic_9 pic_9"
        "empty_9 pic_10 pic_10 empty_10"
        "empty_11 pic_10 pic_10 empty_12";

    gap: 12px;
    margin-top: 40px;

    justify-items: center;      /* centers ITEMS inside their cells */
    align-items: center;        /* vertical align inside cells */
}

/* Attach project boxes to grid areas */

.pic_1 { grid-area: pic_1; }
.pic_2 { grid-area: pic_2; }
.pic_3 { grid-area: pic_3; }
.pic_4 { grid-area: pic_4; }
.pic_5 { grid-area: pic_5; }
.pic_6 { grid-area: pic_6; }
.pic_7 { grid-area: pic_7; }
.pic_8 { grid-area: pic_8; }
.pic_9 { grid-area: pic_9; }
.pic_10 { grid-area: pic_10; }

/* ============================================
   GALLERY ITEMS
============================================ */

.gallery-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    transition: 0.3s ease;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    text-align: center;
    padding: 10px;
}

.gallery-overlay h2 {
    font-family: "Monument Extended", sans-serif;
    font-size: 18px;
}

.gallery-overlay p {
    font-family: "Clash Grotesk", sans-serif;
    font-size: 14px;
    margin-top: 4px;
}

.gallery-item:hover img {
    transform: scale(1.12);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* JS-driven gallery hover classes */

.gallery-item.js-hover img {
    transform: scale(1.12);
}

.gallery-item.js-hover .gallery-overlay {
    opacity: 1;
}



/* ============================================
   MOBILE LAYOUT — GALLERY PAGE
============================================ */
@media (max-width: 768px) {

    /* PAGE WRAPPER */
    #gallery-page {
        padding: 20px 16px 80px;
    }

    /* TITLE */
    .gallery-title {
        font-size: 36px !important;
        letter-spacing: 2px !important;
        line-height: 1.05 !important;
        padding-top: 40px !important;
        padding-bottom: 20px !important;
    }

    /* SUBTITLE */
    .gallery-sub {
        font-size: 15px !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
        padding: 0 10px 20px !important;
    }

    /* GRID */
    #grid {
        width: 100%;
        max-width: 480px;
        margin: 20px auto 0;

        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        row-gap: 24px;

        grid-template-areas:
            "pic_1"
            "pic_2"
            "pic_3"
            "pic_4"
            "pic_5"
            "pic_6"
            "pic_7"
            "pic_8"
            "pic_9"
            "pic_10";
    }

    #grid > article {
        height: 280px;
        width: 100%;
    }

    .gallery-overlay h2 {
        font-size: 16px;
    }

    .gallery-overlay p {
        font-size: 13px;
        line-height: 1.3;
        padding: 0 12px;
    }

    /* HEADER (GLOBAL) */
    .header-left {
        display: none;
    }

    .site-header {
        height: 80px !important;
        padding: 10px 16px !important;
        justify-content: space-between;
    }

    .header-center img {
        width: 110px !important;
    }

    .burger-btn {
        position: absolute;
        top: 22px !important;
        right: 16px !important;
    }

    /* NAV FOOTER */
footer {
        text-align: center !important;
        width: 100%;
    }

    .footer-container {
        display: flex;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 20px;
        text-align: center !important;
        padding: 20px 0;
    }

    /* Logo */
    .footer-logo img {
        margin: 0 auto !important;
        display: block;
        width: 120px;
        height: auto;
    }

    /* Social icons */
    .footer-socials {
        display: flex;
        gap: 20px;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .footer-socials a img {
        display: block;
        margin: 0 auto;
    }

    /* Copyright */
    .footer-copy {
        text-align: center !important;
        width: 100%;
    }

    /* Services section */
    .footer-services {
        text-align: center !important;
        width: 100%;
    }
    .footer-services h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    .footer-services ul {
        list-style: none;
        padding: 0;
        margin: 0;
        line-height: 1.6;
    }
    .footer-services ul li {
        font-size: 16px;
        font-weight: 300;
        text-align: center !important;
    }
}
