.gallery-page {
    --gold: #99783a;
    --gold-soft: #b69a62;
    --cream: #faf7f2;
    --blush: #f1e2dd;
    --dark: #181614;
    --muted: #7d756e;
}

.gallery-page h1,
.gallery-page h2,
.gallery-page p {
    margin-top: 0;
}

.gallery-eyebrow {
    color: var(--gold);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
}


/* ============================================================
   HERO
   ============================================================ */

.gallery-hero {
    position: relative;
    overflow: hidden;
    padding: 105px 0 55px;
    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(183,151,96,.12),
            transparent 30%
        ),
        var(--cream);
}

.gallery-watermark {
    position: absolute;
    top: -120px;
    right: 0;
    color: rgba(153,120,58,.04);
    font-family: "Italianno", cursive;
    font-size: 430px;
    line-height: 1;
    pointer-events: none;
}

.gallery-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr .65fr;
    gap: 100px;
    align-items: end;
}

.gallery-hero h1 {
    max-width: 800px;
    margin: 20px 0 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(61px, 7.5vw, 105px);
    font-weight: 400;
    line-height: .9;
    letter-spacing: -.055em;
}

.gallery-hero h1 span {
    display: block;
    color: var(--gold);
    font-style: italic;
}

.gallery-hero-copy {
    padding-bottom: 7px;
}

.gallery-hero-copy p {
    max-width: 430px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

.gallery-hero-copy a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid #baa57c;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.gallery-hero-copy a span {
    color: var(--gold);
    font-size: 14px;
}

.gallery-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 13px;
    align-items: center;
    margin-top: 75px;
}

.gallery-divider span {
    height: 1px;
    background: rgba(153,120,58,.3);
}

.gallery-divider i {
    color: var(--gold);
    font-size: 7px;
    font-style: normal;
}


/* ============================================================
   TOOLBAR
   ============================================================ */

.gallery-toolbar {
    position: sticky;
    top: 84px;
    z-index: 30;
    border-bottom: 1px solid #e7dfd8;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(15px);
}

.gallery-toolbar-inner {
    min-height: 74px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
}

.gallery-filters {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.gallery-filters::-webkit-scrollbar {
    display: none;
}

.gallery-filters button {
    flex: none;
    padding: 10px 15px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #766e67;
    cursor: pointer;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: .2s ease;
}

.gallery-filters button:hover {
    color: var(--gold);
}

.gallery-filters button.active {
    background: #f1e5df;
    color: #5d4829;
}

.gallery-count {
    flex: none;
    color: #999089;
    font-size: 8px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.gallery-count span {
    color: var(--gold);
}


/* ============================================================
   EDITORIAL GRID
   ============================================================ */

.gallery-main {
    padding: 85px 0 125px;
    background: #fff;
}

.editorial-gallery {
    columns: 3;
    column-gap: 22px;
}

.work-card {
    width: 100%;
    display: inline-block;
    break-inside: avoid;
    margin: 0 0 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.work-card.hidden {
    display: none;
}

.work-image {
    position: relative;
    overflow: hidden;
    background: #ece0db;
}

.work-card:nth-child(6n+1) .work-image {
    aspect-ratio: 4 / 5.5;
}

.work-card:nth-child(6n+2) .work-image {
    aspect-ratio: 4 / 4.3;
}

.work-card:nth-child(6n+3) .work-image {
    aspect-ratio: 4 / 5;
}

.work-card:nth-child(6n+4) .work-image {
    aspect-ratio: 4 / 5.8;
}

.work-card:nth-child(6n+5) .work-image {
    aspect-ratio: 4 / 4.6;
}

.work-card:nth-child(6n) .work-image {
    aspect-ratio: 4 / 5.15;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.73) brightness(1.01);
    transition:
        transform .7s cubic-bezier(.2,.8,.2,1),
        filter .4s ease;
}

.work-hover {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    background:
        linear-gradient(
            to top,
            rgba(20,17,15,.38),
            transparent 50%
        );
    transition: opacity .3s ease;
}

.work-hover > span {
    color: #fff;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .18em;
}

.work-open {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #1d1a17;
    font-size: 14px;
}

.work-card:hover .work-image img {
    transform: scale(1.035);
    filter: saturate(.85);
}

.work-card:hover .work-hover {
    opacity: 1;
}

.work-meta {
    padding-top: 15px;
}

.work-meta > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.work-number {
    color: var(--gold);
    font-family: "Playfair Display", serif;
    font-size: 9px;
}

.work-label {
    color: #968d86;
    font-size: 7px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.work-meta h2 {
    margin: 7px 0 0;
    font-family: "Playfair Display", serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -.01em;
}

.gallery-empty {
    padding: 100px 20px;
    text-align: center;
}

.gallery-empty > div {
    color: var(--gold);
    font-size: 28px;
}

.gallery-empty h2 {
    margin: 20px 0 0;
    font-family: "Playfair Display", serif;
    font-size: 36px;
    font-weight: 400;
}

.gallery-empty p {
    color: var(--muted);
}


/* ============================================================
   STRIP
   ============================================================ */

.gallery-strip {
    padding: 34px 0;
    border-top: 1px solid #ded5ce;
    border-bottom: 1px solid #ded5ce;
    background: #f8f3ee;
}

.gallery-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 45px;
}

.gallery-strip-inner > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-strip-inner span {
    color: var(--gold);
    font-family: "Playfair Display", serif;
    font-size: 9px;
}

.gallery-strip-inner p {
    margin: 0;
    color: #635c56;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.gallery-strip-inner i {
    color: #b59b69;
    font-size: 5px;
    font-style: normal;
}


/* ============================================================
   SOCIAL
   ============================================================ */

.gallery-social {
    padding: 120px 0;
    background: #fff;
}

.gallery-social-grid {
    display: grid;
    grid-template-columns: 1fr .55fr;
    gap: 90px;
    align-items: center;
}

.gallery-social-copy h2 {
    max-width: 630px;
    margin: 17px 0 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(45px, 5vw, 68px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.04em;
}

.gallery-social-copy h2 span {
    display: block;
    color: var(--gold);
    font-style: italic;
}

.gallery-social-copy p {
    max-width: 500px;
    margin: 25px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.85;
}

.gallery-social-copy a {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: 28px;
    padding-bottom: 7px;
    border-bottom: 1px solid #bba67e;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.social-placeholder {
    display: inline-block;
    margin-top: 28px;
    color: #9c948d;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.gallery-social-monogram {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    max-width: 330px;
    margin-left: auto;
    border: 1px solid #d9c8a8;
    border-radius: 50%;
    color: #ab8b50;
    font-family: "Playfair Display", serif;
    font-size: 62px;
    letter-spacing: -.05em;
    background:
        radial-gradient(
            circle,
            #f8efeb,
            #fff 69%
        );
}


/* ============================================================
   CTA
   ============================================================ */

.gallery-cta {
    position: relative;
    overflow: hidden;
    padding: 115px 0;
    background: #181614;
    color: #fff;
    text-align: center;
}

.gallery-cta-script {
    position: absolute;
    top: 50%;
    left: 50%;
    color: rgba(255,255,255,.025);
    font-family: "Italianno", cursive;
    font-size: 390px;
    line-height: 1;
    transform: translate(-50%,-50%);
}

.gallery-cta-inner {
    position: relative;
    z-index: 2;
}

.gallery-cta .gallery-eyebrow {
    color: #bea56f;
}

.gallery-cta h2 {
    margin: 18px 0 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(49px, 6vw, 78px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.04em;
}

.gallery-cta h2 span {
    display: block;
    color: #c2a66d;
    font-style: italic;
}

.gallery-cta p {
    max-width: 530px;
    margin: 25px auto 31px;
    color: #a9a098;
    font-size: 11px;
    line-height: 1.8;
}

.gallery-cta a {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    gap: 21px;
    padding: 0 28px;
    background: #fff;
    color: #181614;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.gallery-cta svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
}


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

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 35px 90px;
    background: rgba(18,16,14,.94);
    backdrop-filter: blur(10px);
}

.gallery-lightbox.open {
    display: flex;
}

.lightbox-content {
    width: min(100%, 950px);
}

.lightbox-image-wrap {
    height: min(72vh, 760px);
    display: flex;
    justify-content: center;
}

.lightbox-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-caption {
    padding-top: 18px;
    text-align: center;
    color: #fff;
}

.lightbox-caption span {
    color: #bca471;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.lightbox-caption h2 {
    margin: 7px 0 0;
    font-family: "Playfair Display", serif;
    font-size: 22px;
    font-weight: 400;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.lightbox-close {
    top: 25px;
    right: 28px;
    width: 46px;
    height: 46px;
    font-size: 27px;
    font-weight: 200;
}

.lightbox-nav {
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    font-size: 16px;
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {

    .gallery-hero-grid {
        grid-template-columns: 1fr .65fr;
        gap: 50px;
    }

    .editorial-gallery {
        columns: 2;
    }
}


@media (max-width: 760px) {

    .gallery-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-toolbar {
        top: 72px;
    }

    .gallery-toolbar-inner {
        min-height: 68px;
    }

    .gallery-count {
        display: none;
    }

    .gallery-social-grid {
        grid-template-columns: 1fr;
    }

    .gallery-social-monogram {
        margin: 15px 0 0;
        width: 240px;
    }

    .gallery-strip-inner {
        justify-content: flex-start;
        overflow-x: auto;
    }
}


@media (max-width: 560px) {

    .gallery-hero {
        padding: 70px 0 40px;
    }

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

    .gallery-divider {
        margin-top: 48px;
    }

    .gallery-main {
        padding: 55px 0 80px;
    }

    .editorial-gallery {
        columns: 2;
        column-gap: 10px;
    }

    .work-card {
        margin-bottom: 28px;
    }

    .work-meta {
        padding-top: 10px;
    }

    .work-meta h2 {
        font-size: 15px;
    }

    .work-label {
        font-size: 6px;
    }

    .work-hover {
        display: none;
    }

    .gallery-strip {
        padding: 27px 0;
    }

    .gallery-strip-inner {
        gap: 22px;
    }

    .gallery-social {
        padding: 80px 0;
    }

    .gallery-social-copy h2 {
        font-size: 42px;
    }

    .gallery-cta {
        padding: 85px 0;
    }

    .gallery-cta h2 {
        font-size: 49px;
    }

    .gallery-lightbox {
        padding: 75px 14px 25px;
    }

    .lightbox-image-wrap {
        height: 67vh;
    }

    .lightbox-nav {
        top: auto;
        bottom: 20px;
        transform: none;
        background: rgba(20,18,16,.65);
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        top: 14px;
        right: 14px;
    }
}
