/* =========================================================
   PUBLIC GALLERY
   ========================================================= */

.gallery-page {
    padding:
        clamp(42px, 6vw, 88px)
        24px
        clamp(72px, 8vw, 120px);

    background:
        linear-gradient(
            180deg,
            #f7f5ef 0,
            #fff 360px
        );
}

.gallery-shell {
    width: min(1280px, 100%);
    margin: 0 auto;
}


/* HERO */

.gallery-hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 48px;

    align-items: center;

    margin-bottom:
        clamp(42px, 6vw, 72px);

    padding:
        clamp(32px, 5vw, 58px);

    border:
        1px solid
        rgba(31, 48, 58, .1);

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #182a36 0%,
            #213b4a 65%,
            #2d4d59 100%
        );

    box-shadow:
        0 24px 70px
        rgba(24, 42, 54, .16);

    color: #fff;
}

.gallery-eyebrow {
    display: inline-block;

    margin-bottom: 13px;

    color: #d8ba73;

    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.gallery-hero h1,
.gallery-album-hero h1 {
    margin: 0;

    font-family:
        Georgia,
        'Times New Roman',
        serif;

    font-weight: 500;
    line-height: 1.04;
}

.gallery-hero h1 {
    font-size:
        clamp(2.6rem, 6vw, 5.2rem);
}

.gallery-hero-copy > p {
    max-width: 680px;

    margin:
        22px 0 0;

    color:
        rgba(255, 255, 255, .8);

    font-size:
        clamp(1rem, 1.6vw, 1.15rem);

    line-height: 1.75;
}

.gallery-hero-mark {
    display: flex;

    gap: 18px;

    align-items: center;

    padding: 18px 22px;

    border:
        1px solid
        rgba(216, 186, 115, .28);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, .06);

    backdrop-filter:
        blur(8px);
}

.gallery-hero-icon {
    display: grid;

    width: 52px;
    height: 52px;

    place-items: center;

    border-radius: 50%;

    background:
        rgba(216, 186, 115, .14);

    color: #e6c77d;

    font-size: 1.5rem;
}

.gallery-hero-mark strong,
.gallery-hero-mark small {
    display: block;
}

.gallery-hero-mark strong {
    font-family:
        Georgia,
        'Times New Roman',
        serif;

    font-size: 1.1rem;
}

.gallery-hero-mark small {
    margin-top: 4px;

    color:
        rgba(255, 255, 255, .65);
}


/* ALBUM GRID */

.gallery-albums {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap:
        clamp(20px, 3vw, 34px);
}

.gallery-album-card {
    overflow: hidden;

    border:
        1px solid
        rgba(28, 48, 59, .1);

    border-radius: 22px;

    background: #fff;

    box-shadow:
        0 14px 38px
        rgba(30, 48, 58, .08);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.gallery-album-card:hover {
    transform:
        translateY(-5px);

    box-shadow:
        0 22px 52px
        rgba(30, 48, 58, .14);
}

.gallery-album-link {
    display: block;

    height: 100%;

    color: inherit;

    text-decoration: none;
}

.gallery-album-cover {
    position: relative;

    overflow: hidden;

    aspect-ratio: 4 / 3;

    background: #e9ecea;
}

.gallery-album-cover img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .45s ease;
}

.gallery-album-card:hover
.gallery-album-cover img {
    transform:
        scale(1.035);
}

.gallery-album-placeholder {
    display: grid;

    width: 100%;
    height: 100%;

    place-items: center;

    background:
        linear-gradient(
            135deg,
            #dfe5e2,
            #edf0ee
        );

    color: #83918e;

    font-size: 2.6rem;
}

.gallery-album-overlay {
    position: absolute;

    right: 16px;
    bottom: 16px;
}

.gallery-album-count {
    display: inline-flex;

    padding:
        8px 12px;

    border-radius: 999px;

    background:
        rgba(14, 25, 31, .78);

    color: #fff;

    font-size: .77rem;
    font-weight: 700;

    backdrop-filter:
        blur(7px);
}

.gallery-album-content {
    padding:
        25px 25px 27px;
}

.gallery-album-date {
    display: block;

    margin-bottom: 9px;

    color: #9a7b3d;

    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.gallery-album-content h2 {
    margin:
        0 0 12px;

    color: #20333d;

    font-family:
        Georgia,
        'Times New Roman',
        serif;

    font-size:
        clamp(1.35rem, 2vw, 1.75rem);

    font-weight: 500;
    line-height: 1.22;
}

.gallery-album-content p {
    margin:
        0 0 20px;

    color: #69777c;

    font-size: .95rem;
    line-height: 1.65;
}

.gallery-album-more {
    display: inline-flex;

    gap: 9px;

    align-items: center;

    color: #7d622d;

    font-size: .9rem;
    font-weight: 700;
}


/* EMPTY */

.gallery-empty {
    padding:
        clamp(46px, 8vw, 86px)
        24px;

    border:
        1px dashed
        rgba(31, 48, 58, .2);

    border-radius: 24px;

    background: #fff;

    text-align: center;
}

.gallery-empty-icon {
    display: block;

    margin-bottom: 15px;

    color: #9c854f;

    font-size: 2rem;
}

.gallery-empty h2 {
    margin: 0 0 10px;

    color: #263a43;

    font-family:
        Georgia,
        'Times New Roman',
        serif;

    font-weight: 500;
}

.gallery-empty p {
    margin: 0;

    color: #748086;
}


/* SINGLE ALBUM */

.gallery-breadcrumbs {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 28px;

    color: #8a9395;

    font-size: .84rem;
}

.gallery-breadcrumbs a {
    color: #6d755d;
    text-decoration: none;
}

.gallery-breadcrumbs a:hover {
    text-decoration: underline;
}

.gallery-album-hero {
    display: flex;

    justify-content:
        space-between;

    gap: 40px;

    align-items:
        flex-end;

    margin-bottom:
        clamp(36px, 6vw, 64px);

    padding-bottom: 34px;

    border-bottom:
        1px solid
        rgba(31, 48, 58, .12);
}

.gallery-album-hero h1 {
    max-width: 850px;

    color: #20343e;

    font-size:
        clamp(2.35rem, 5vw, 4.8rem);
}

.gallery-album-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 10px 22px;

    margin-top: 18px;

    color: #867040;

    font-size: .87rem;
    font-weight: 700;
}

.gallery-album-description {
    max-width: 780px;

    margin:
        22px 0 0;

    color: #66757a;

    font-size: 1.03rem;
    line-height: 1.75;
}

.gallery-back-link {
    display: inline-flex;

    flex: 0 0 auto;

    gap: 8px;

    align-items: center;

    padding:
        11px 16px;

    border:
        1px solid
        rgba(35, 54, 63, .16);

    border-radius: 999px;

    background: #fff;

    color: #334a54;

    text-decoration: none;

    font-size: .88rem;
    font-weight: 700;
}


/* PHOTOS */

.gallery-photo-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 15px;
}

.gallery-photo {
    position: relative;

    overflow: hidden;

    min-width: 0;

    padding: 0;

    border: 0;
    border-radius: 16px;

    background: #e9ecea;

    aspect-ratio: 1 / 1;

    cursor: zoom-in;

    appearance: none;
}

.gallery-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .35s ease,
        filter .35s ease;
}

.gallery-photo-hover {
    position: absolute;

    inset: 0;

    display: grid;

    place-items: center;

    background:
        rgba(17, 30, 37, 0);

    transition:
        background .3s ease;
}

.gallery-photo-hover span {
    display: grid;

    width: 48px;
    height: 48px;

    place-items: center;

    border:
        1px solid
        rgba(255, 255, 255, .48);

    border-radius: 50%;

    background:
        rgba(20, 32, 38, .45);

    color: #fff;

    font-size: 1.5rem;

    opacity: 0;

    transform:
        scale(.8);

    transition:
        opacity .3s ease,
        transform .3s ease;
}

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

.gallery-photo:hover
.gallery-photo-hover {
    background:
        rgba(17, 30, 37, .18);
}

.gallery-photo:hover
.gallery-photo-hover span {
    opacity: 1;

    transform:
        scale(1);
}


/* LIGHTBOX */

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox {
    position: fixed;

    z-index: 999999;

    inset: 0;

    display: grid;

    place-items: center;

    padding: 24px;
}

.gallery-lightbox-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(8, 15, 19, .94);

    backdrop-filter:
        blur(6px);
}

.gallery-lightbox-dialog {
    position: relative;
    z-index: 1;

    display: grid;

    width:
        min(1500px, 100%);

    height:
        min(92vh, 1000px);

    grid-template-columns:
        60px
        minmax(0, 1fr)
        60px;

    align-items: center;
}

.gallery-lightbox figure {
    display: flex;

    min-width: 0;
    height: 100%;

    margin: 0;

    flex-direction: column;
    justify-content: center;

    text-align: center;
}

.gallery-lightbox figure img {
    display: block;

    max-width: 100%;
    max-height:
        calc(92vh - 90px);

    margin: auto;

    object-fit: contain;

    border-radius: 8px;

    box-shadow:
        0 20px 70px
        rgba(0, 0, 0, .45);
}

.gallery-lightbox figcaption {
    min-height: 28px;

    padding-top: 15px;

    color:
        rgba(255, 255, 255, .8);

    font-size: .9rem;
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
    border: 0;

    background:
        rgba(255, 255, 255, .08);

    color: #fff;

    cursor: pointer;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
    display: grid;

    width: 46px;
    height: 58px;

    place-items: center;

    justify-self: center;

    border-radius: 12px;

    font-size: 2rem;
}

.gallery-lightbox-close {
    position: absolute;

    z-index: 2;

    top: 4px;
    right: 0;

    display: grid;

    width: 46px;
    height: 46px;

    place-items: center;

    border-radius: 50%;

    font-size: 1.7rem;
}

body.gallery-lightbox-open {
    overflow: hidden;
}


/* RESPONSIVE */

@media (max-width: 1050px) {
    .gallery-albums {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .gallery-photo-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }
}

@media (max-width: 760px) {
    .gallery-page {
        padding:
            32px 16px
            72px;
    }

    .gallery-hero {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 28px;

        padding:
            30px 24px;
    }

    .gallery-hero-mark {
        width: fit-content;
    }

    .gallery-album-hero {
        display: block;
    }

    .gallery-back-link {
        margin-top: 28px;
    }

    .gallery-photo-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 9px;
    }

    .gallery-lightbox {
        padding: 10px;
    }

    .gallery-lightbox-dialog {
        height: 96vh;

        grid-template-columns:
            42px
            minmax(0, 1fr)
            42px;
    }

    .gallery-lightbox-prev,
    .gallery-lightbox-next {
        width: 38px;
        height: 48px;
    }
}

@media (max-width: 580px) {
    .gallery-albums {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .gallery-album-content {
        padding: 22px;
    }
}


/* =========================================================
   GALLERY HERO — PREMIUM 2026-10-03
   ========================================================= */

.gallery-hero-premium {
    position: relative;
    isolation: isolate;

    overflow: hidden;

    min-height: 430px;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(330px, 420px);

    gap: clamp(48px, 7vw, 100px);

    padding:
        clamp(62px, 7vw, 92px)
        clamp(54px, 7vw, 90px);

    border:
        1px solid
        rgba(218, 185, 108, .12);

    border-radius: 34px;

    background:
        radial-gradient(
            circle at 88% 20%,
            rgba(164, 192, 194, .19),
            transparent 30%
        ),
        radial-gradient(
            circle at 74% 100%,
            rgba(82, 123, 134, .16),
            transparent 36%
        ),
        linear-gradient(
            115deg,
            #102736 0%,
            #163344 48%,
            #244d5a 100%
        );

    box-shadow:
        0 32px 75px
        rgba(14, 33, 44, .16);

    color: #fff;
}

.gallery-hero-premium::before {
    content: '';

    position: absolute;
    z-index: -2;

    top: -220px;
    right: -170px;

    width: 620px;
    height: 620px;

    border:
        1px solid
        rgba(218, 185, 108, .22);

    border-radius: 50%;

    transform:
        rotate(-18deg);
}

.gallery-hero-premium::after {
    content: '';

    position: absolute;
    z-index: -2;

    right: -40px;
    bottom: -330px;

    width: 780px;
    height: 520px;

    border:
        1px solid
        rgba(218, 185, 108, .34);

    border-radius: 50%;

    transform:
        rotate(-12deg);
}

.gallery-hero-decoration {
    position: absolute;
    z-index: -1;

    inset:
        0 0 0 auto;

    width: 48%;

    pointer-events: none;

    opacity: .82;

    background:
        linear-gradient(
            90deg,
            rgba(20, 48, 63, 0),
            rgba(46, 81, 92, .36)
        ),
        radial-gradient(
            ellipse at 72% 18%,
            rgba(235, 210, 151, .13),
            transparent 38%
        );
}

.gallery-hero-decoration::before {
    content: '';

    position: absolute;

    top: 0;
    right: 11%;

    width: 160px;
    height: 100%;

    opacity: .15;

    background:
        linear-gradient(
            90deg,
            transparent 0 8%,
            rgba(255,255,255,.34) 9% 11%,
            transparent 12% 30%,
            rgba(255,255,255,.24) 31% 34%,
            transparent 35% 54%,
            rgba(255,255,255,.2) 55% 58%,
            transparent 59%
        );

    filter: blur(4px);

    transform:
        skewX(-8deg);
}

.gallery-hero-copy {
    position: relative;
    z-index: 1;

    max-width: 850px;
}

.gallery-hero-eyebrow {
    display: flex;

    gap: 18px;

    align-items: center;

    margin-bottom: 24px;

    color: #e2bd69;
}

.gallery-hero-eyebrow > span {
    display: block;

    width: 45px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            #d5a849,
            #efc96f
        );
}

.gallery-hero-eyebrow strong {
    font-size: .78rem;
    font-weight: 700;

    letter-spacing: .28em;
}

.gallery-hero-premium h1 {
    margin: 0;

    color: #fffdf9;

    font-family:
        Georgia,
        'Times New Roman',
        serif;

    font-size:
        clamp(4.5rem, 7vw, 7.4rem);

    font-weight: 400;

    line-height: .93;

    letter-spacing: -.045em;
}

.gallery-hero-premium
.gallery-hero-copy > p {
    max-width: 840px;

    margin:
        34px 0 0;

    color:
        rgba(241, 245, 246, .82);

    font-size:
        clamp(1.05rem, 1.45vw, 1.35rem);

    font-weight: 400;

    line-height: 1.65;

    letter-spacing: -.01em;
}


/* RIGHT CARD */

.gallery-hero-card {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        76px
        minmax(0, 1fr)
        auto;

    gap: 22px;

    align-items: center;

    width: 100%;

    padding:
        26px 24px;

    border:
        1px solid
        rgba(218, 181, 95, .46);

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .095),
            rgba(255, 255, 255, .045)
        );

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, .08),
        0 18px 44px
        rgba(2, 16, 23, .14);

    backdrop-filter:
        blur(14px);
}

.gallery-hero-card-icon {
    display: grid;

    width: 76px;
    height: 76px;

    place-items: center;

    border-radius: 50%;

    background:
        rgba(226, 189, 105, .12);

    box-shadow:
        inset 0 0 0 1px
        rgba(226, 189, 105, .04);
}

.gallery-hero-card-icon svg {
    width: 38px;
    height: 38px;

    stroke: #e7ba58;

    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.gallery-hero-card-copy strong,
.gallery-hero-card-copy small {
    display: block;
}

.gallery-hero-card-copy strong {
    color: #fff;

    font-family:
        Georgia,
        'Times New Roman',
        serif;

    font-size:
        clamp(1.35rem, 2vw, 1.75rem);

    font-weight: 400;
}

.gallery-hero-card-copy small {
    margin-top: 7px;

    color:
        rgba(238, 243, 244, .66);

    font-size: .96rem;
}

.gallery-hero-card-arrow {
    color: #e2b454;

    font-family:
        Georgia,
        serif;

    font-size: 2.1rem;

    font-weight: 300;
}


/* SUBTLE LIGHT */

.gallery-hero-card::after {
    content: '';

    position: absolute;

    top: -1px;
    right: 22%;
    left: 22%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.22),
            transparent
        );
}


/* RESPONSIVE */

@media (max-width: 980px) {
    .gallery-hero-premium {
        min-height: auto;

        grid-template-columns:
            minmax(0, 1fr);

        padding:
            54px
            44px;

        gap: 42px;
    }

    .gallery-hero-card {
        max-width: 460px;
    }

    .gallery-hero-decoration {
        width: 72%;
    }
}

@media (max-width: 620px) {
    .gallery-hero-premium {
        padding:
            40px
            26px;

        border-radius: 24px;
    }

    .gallery-hero-premium h1 {
        font-size:
            clamp(3.5rem, 18vw, 5.2rem);
    }

    .gallery-hero-eyebrow {
        gap: 12px;
    }

    .gallery-hero-eyebrow > span {
        width: 28px;
    }

    .gallery-hero-eyebrow strong {
        font-size: .69rem;
        letter-spacing: .22em;
    }

    .gallery-hero-card {
        grid-template-columns:
            60px
            minmax(0, 1fr)
            auto;

        gap: 16px;

        padding: 20px;

        border-radius: 19px;
    }

    .gallery-hero-card-icon {
        width: 60px;
        height: 60px;
    }

    .gallery-hero-card-icon svg {
        width: 30px;
        height: 30px;
    }
}
