/* ================= ACTIVE NAVIGATION ================= */

.nav-links a.active-page {
    color: var(--gold);
}


/* ================= GALLERY HERO / INTRO ================= */

.gallery-hero {
    min-height: 590px;
    padding: 85px 10%;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 7%;
    background: var(--cream);
    overflow: hidden;
}

.gallery-hero-copy {
    max-width: 510px;
}

.gallery-hero-copy h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(43px, 5vw, 65px);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -1px;
}

.gallery-hero-copy h1 em {
    color: var(--gold);
    font-weight: 500;
}

.gallery-hero-copy > p:not(.eyebrow) {
    max-width: 420px;
    margin-top: 25px;
    color: var(--grey);
    font-size: 13px;
    line-height: 2;
}

.gallery-scroll-link {
    display: inline-block;
    margin-top: 32px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gold);
    color: var(--dark);
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.gallery-scroll-link span {
    margin-left: 15px;
    color: var(--gold);
}

.gallery-hero-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 65px;
    color: var(--grey);
    font-size: 8px;
    letter-spacing: 2px;
}

.note-line {
    width: 38px;
    height: 1px;
    background: var(--gold);
}


/* ================= INTRO IMAGE COMPOSITION ================= */

.gallery-hero-visual {
    position: relative;
    min-height: 440px;
}

.hero-photo {
    position: absolute;
    display: block;
    overflow: hidden;
    background: #e8e5de;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-photo:hover img {
    transform: scale(1.04);
}

.hero-photo-main {
    top: 0;
    right: 0;
    width: 78%;
    height: 370px;
}

.hero-photo-small {
    left: 0;
    bottom: 0;
    width: 43%;
    height: 205px;
    border: 9px solid var(--cream);
}

.visual-stamp {
    position: absolute;
    z-index: 2;
    left: 39%;
    bottom: 52px;
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: var(--dark);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 5px solid var(--cream);
}

.visual-stamp span {
    font-family: 'Playfair Display', serif;
    color: #d1b785;
    font-size: 28px;
    line-height: 1;
}

.visual-stamp small {
    font-size: 6px;
    line-height: 1.5;
    letter-spacing: 1.5px;
    text-align: center;
    margin-top: 4px;
}

.visual-caption {
    position: absolute;
    right: 0;
    bottom: -25px;
    color: var(--grey);
    font-size: 8px;
    letter-spacing: 2px;
}


/* ================= PHOTO COLLECTION HEADING ================= */

.photo-collection {
    padding: 110px 10%;
}

.collection-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 35px;
    margin-bottom: 40px;
}

.collection-top h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 4.5vw, 54px);
    font-weight: 500;
}

.collection-top h2 em {
    color: var(--gold);
    font-weight: 500;
}

.collection-top > p {
    max-width: 300px;
    color: var(--grey);
    font-size: 12px;
    line-height: 1.9;
    padding-bottom: 5px;
}


/* ================= GALLERY FILTER BUTTONS ================= */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 11px 18px;
    border: 1px solid var(--border);
    background: white;
    color: var(--grey);
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    cursor: pointer;
    transition: 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--dark);
    border-color: var(--dark);
    color: white;
}


/* ================= ASYMMETRICAL GALLERY GRID ================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 26px;
    align-items: start;
}

.gallery-card {
    min-width: 0;
}

.gallery-card-tall {
    grid-row: span 2;
}

.gallery-card-wide {
    grid-column: span 2;
}

.gallery-image-button {
    position: relative;
    display: block;
    width: 100%;
    height: 320px;
    padding: 0;
    border: none;
    overflow: hidden;
    background: var(--cream);
    cursor: zoom-in;
}

.gallery-card-tall .gallery-image-button {
    height: 690px;
}

.gallery-card-wide .gallery-image-button {
    height: 390px;
}

.gallery-image-button img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-image-button:hover img {
    transform: scale(1.045);
}

.image-open {
    position: absolute;
    right: 15px;
    bottom: 15px;
    padding: 12px 16px;
    background: white;
    color: var(--dark);
    font-size: 9px;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(8px);
    transition: 0.3s ease;
}

.gallery-image-button:hover .image-open,
.gallery-image-button:focus-visible .image-open {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 15px;
}

.gallery-card-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 500;
}

.gallery-card-info span {
    color: var(--gold);
    font-size: 8px;
    letter-spacing: 1.4px;
    white-space: nowrap;
}

.gallery-footnote {
    text-align: center;
    margin-top: 55px;
    color: var(--grey);
    font-size: 11px;
}


/* ================= FINAL ENQUIRY SECTION ================= */

.gallery-cta {
    padding: 100px 20px;
    text-align: center;
    background: var(--cream);
}

.gallery-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(39px, 5vw, 58px);
    line-height: 1.2;
    font-weight: 500;
}

.gallery-cta h2 em {
    color: var(--gold);
}

.gallery-cta > p:not(.eyebrow) {
    max-width: 410px;
    margin: 20px auto 28px;
    color: var(--grey);
    font-size: 13px;
    line-height: 1.9;
}


/* ================= PHOTO LIGHTBOX ================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px 75px;
    background: rgba(18, 17, 15, 0.96);
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    max-width: 1050px;
    max-height: 100%;
    text-align: center;
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    margin: auto;
}

.lightbox-content p {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    margin-top: 17px;
}

.lightbox-close {
    position: absolute;
    top: 17px;
    right: 28px;
    border: none;
    background: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: white;
    font-size: 52px;
    padding: 15px;
    cursor: pointer;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}


/* ================= TABLET RESPONSIVENESS ================= */

@media (max-width: 950px) {
    .gallery-hero {
        padding-left: 7%;
        padding-right: 7%;
        gap: 4%;
    }

    .gallery-hero-visual {
        min-height: 390px;
    }

    .hero-photo-main {
        height: 320px;
    }

    .hero-photo-small {
        height: 175px;
    }

    .photo-collection {
        padding-left: 7%;
        padding-right: 7%;
    }

    .gallery-card-tall .gallery-image-button {
        height: 620px;
    }
}


/* ================= MOBILE RESPONSIVENESS ================= */

@media (max-width: 700px) {

    /* Mobile intro */
    .gallery-hero {
        grid-template-columns: 1fr;
        padding: 65px 7% 80px;
        gap: 45px;
    }

    .gallery-hero-copy h1 {
        font-size: 43px;
    }

    .gallery-hero-copy > p:not(.eyebrow) {
        font-size: 12px;
    }

    .gallery-hero-note {
        margin-top: 35px;
    }

    .gallery-hero-visual {
        min-height: 350px;
    }

    .hero-photo-main {
        width: 82%;
        height: 285px;
    }

    .hero-photo-small {
        width: 47%;
        height: 165px;
        border-width: 7px;
    }

    .visual-stamp {
        width: 78px;
        height: 78px;
        left: 39%;
        bottom: 38px;
    }

    .visual-stamp span {
        font-size: 23px;
    }

    .visual-caption {
        bottom: -20px;
        font-size: 7px;
    }


    /* Mobile gallery heading */
    .photo-collection {
        padding: 75px 6%;
    }

    .collection-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 13px;
        margin-bottom: 30px;
    }

    .collection-top h2 {
        font-size: 39px;
    }

    .collection-top > p {
        max-width: 330px;
    }


    /* Mobile filters */
    .gallery-filters {
        gap: 8px;
        margin-bottom: 25px;
    }

    .filter-btn {
        padding: 10px 12px;
        font-size: 9px;
    }


    /* Mobile gallery grid */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-card-tall {
        grid-row: auto;
    }

    .gallery-card-wide {
        grid-column: auto;
    }

    .gallery-image-button,
    .gallery-card-tall .gallery-image-button,
    .gallery-card-wide .gallery-image-button {
        height: 340px;
    }

    .image-open {
        opacity: 1;
        transform: none;
        right: 11px;
        bottom: 11px;
        padding: 10px 13px;
    }

    .gallery-card-info h3 {
        font-size: 17px;
    }

    .gallery-card-info span {
        font-size: 7px;
    }


    /* Mobile CTA */
    .gallery-cta {
        padding: 75px 7%;
    }


    /* Mobile lightbox */
    .lightbox {
        padding: 55px 14px;
    }

    .lightbox-content img {
        max-height: 70vh;
    }

    .lightbox-close {
        top: 9px;
        right: 15px;
    }

    .lightbox-arrow {
        top: auto;
        bottom: 5px;
        transform: none;
        font-size: 38px;
    }

    .lightbox-prev {
        left: 25%;
    }

    .lightbox-next {
        right: 25%;
    }
}