/* =========================================================
   TRUE ROMANCE BOUDOIR - RESPONSIVE GALLERY V2
   Designed to fit desktop, laptop, tablet and mobile screens.
========================================================= */

:root {
    --black: #000000;
    --soft-black: #060606;
    --panel: #0b0b0b;
    --burgundy: #5d071c;
    --burgundy-deep: #25030b;
    --gold: #c9a15d;
    --light-gold: #ead09b;
    --white: #ffffff;
    --muted: #b9b9b9;
    --line: rgba(201, 161, 93, .20);

    --content-max: 1920px;
    --header-max: 1780px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: clip;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--light-gold);
    outline-offset: 4px;
}


/* =========================================================
   HEADER
========================================================= */

.trb-header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: #000;
    border-bottom: 1px solid var(--line);
}

.header-inner {
    width: min(94%, var(--header-max));
    min-height: 118px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(280px, auto) 1fr;
    align-items: center;
    gap: clamp(24px, 4vw, 80px);
}

.brand {
    min-width: 0;
    color: #fff;
    text-align: center;
    text-decoration: none;
}

.brand-main {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3vw, 56px);
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.brand-main span {
    color: var(--gold);
}

.brand-tagline {
    display: block;
    margin-top: 12px;
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(8px, .75vw, 11px);
    letter-spacing: clamp(3px, .5vw, 7px);
    white-space: nowrap;
}

.desktop-nav {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(15px, 2vw, 34px);
}

.desktop-nav a,
.mobile-nav a {
    color: #ddd;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.8px;
    transition: color .25s ease;
}

.desktop-nav a {
    position: relative;
    padding: 16px 0;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--light-gold);
}

.desktop-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 7px;
    height: 1px;
    background: var(--gold);
}

.mobile-menu-button {
    display: none;
    justify-self: end;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(201,161,93,.55);
    background: transparent;
    color: var(--gold);
    font-size: 21px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
}


/* =========================================================
   PAGE
========================================================= */

.page-shell {
    width: 100%;
    max-width: 100%;
}

.gallery-layout {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);

    background: #050505;
}

.gallery-layout > * {
    min-width: 0;
}


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

.gallery-hero {
    position: relative;
    min-width: 0;

    /* aspect-ratio keeps hero elegant across wide monitors */
    aspect-ratio: 2 / 3;
    min-height: 760px;
    max-height: 1250px;

    overflow: hidden;

    background-image: url("../images/hero.jpg");
    background-size: cover;
    background-repeat: no-repeat;

    /* Keeps the subject on the right side of the frame */
    background-position: 57% top;
}

.gallery-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.68) 0%,
            rgba(0,0,0,.36) 32%,
            rgba(0,0,0,.05) 65%,
            rgba(0,0,0,.08) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(0,0,0,.05) 0%,
            rgba(0,0,0,.06) 58%,
            rgba(0,0,0,.82) 100%
        );
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding:
        clamp(44px, 5vw, 92px)
        clamp(28px, 4vw, 78px)
        clamp(40px, 4.5vw, 78px);

    pointer-events: none;
}

.hero-content > a {
    pointer-events: auto;
}

.hero-kicker {
    display: flex;
    flex-direction: column;
    gap: 5px;

    color: var(--light-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(10px, .9vw, 14px);
    letter-spacing: clamp(4px, .55vw, 7px);
    line-height: 1.4;
}

.hero-rule {
    width: clamp(95px, 11vw, 170px);
    height: 1px;
    margin-top: 20px;
    background: var(--gold);
}

.hero-title {
    margin: auto 0 0;

    color: var(--light-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(58px, 7.2vw, 138px);
    font-weight: 400;
    line-height: .86;
    text-transform: uppercase;
    letter-spacing: -.03em;
}

.hero-subtitle {
    margin: 28px 0 0;

    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(12px, 1.05vw, 17px);
    font-weight: 400;
    letter-spacing: clamp(4px, .55vw, 8px);
    line-height: 1.65;
}

.hero-copy {
    width: min(100%, 410px);
    margin: 18px 0 0;

    color: #dfdfdf;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(14px, 1vw, 18px);
    font-style: italic;
    line-height: 1.65;
}

.outline-button {
    display: inline-flex;
    align-items: center;
    gap: 18px;

    margin-top: 23px;
    padding: 15px 22px;

    border: 1px solid var(--gold);

    color: var(--light-gold);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2.8px;

    transition:
        background .25s ease,
        color .25s ease;
}

.outline-button:hover {
    background: var(--gold);
    color: #000;
}

.hero-signature {
    margin: 25px 0 0;

    color: var(--light-gold);
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: clamp(28px, 3.2vw, 56px);
    line-height: 1.05;
    transform: rotate(-3deg);
    transform-origin: left center;
}

.hero-small {
    margin: 22px 0 0;

    color: #ddd;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 9px;
    letter-spacing: 4px;
    line-height: 1.65;
}


/* =========================================================
   RIGHT GALLERY CONTENT
========================================================= */

.gallery-main {
    min-width: 0;
    width: 100%;

    padding:
        clamp(38px, 4vw, 76px)
        clamp(24px, 3.1vw, 60px)
        clamp(55px, 5vw, 95px);

    background:
        radial-gradient(
            circle at 18% 0%,
            rgba(93,7,28,.18),
            transparent 30%
        ),
        #050505;
}

.gallery-intro {
    width: min(100%, 900px);
    margin-bottom: 32px;
}

.section-eyebrow {
    margin: 0;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: clamp(3px, .4vw, 6px);
    text-transform: uppercase;
}

.gallery-intro h2 {
    margin: 10px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 72px);
    font-weight: 400;
    line-height: 1.02;
}

.gallery-intro h2 span {
    display: block;
    margin-top: 5px;
    color: var(--gold);
    font-style: italic;
}

.intro-copy {
    width: min(100%, 700px);
    margin: 18px 0 0;
    color: #b9b9b9;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(14px, 1vw, 18px);
    line-height: 1.65;
}


/* =========================================================
   FILTERS
========================================================= */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 19px;

    margin-bottom: 26px;
    padding-bottom: 18px;

    border-bottom: 1px solid var(--line);
}

.filter {
    min-height: 40px;
    padding: 7px 2px;

    border: 0;
    border-bottom: 1px solid transparent;

    background: transparent;
    color: #a9a9a9;

    font: inherit;
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        color .2s ease,
        border-color .2s ease;
}

.filter:hover,
.filter.active {
    color: var(--light-gold);
    border-bottom-color: var(--gold);
}


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

.gallery-grid {
    min-width: 0;

    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: clamp(10px, .9vw, 16px);
}

.gallery-item {
    position: relative;
    min-width: 0;
    margin: 0;

    overflow: hidden;
    background: #101010;
    border: 1px solid rgba(201,161,93,.15);

    isolation: isolate;
}

.item-wide {
    grid-column: span 8;
    aspect-ratio: 16 / 10;
}

.item-tall {
    grid-column: span 4;
    aspect-ratio: 4 / 5;
}

.item-standard {
    grid-column: span 4;
    aspect-ratio: 4 / 5;
}

.gallery-item img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform .65s ease,
        filter .45s ease;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            to bottom,
            transparent 48%,
            rgba(0,0,0,.78) 100%
        );

    pointer-events: none;
}

.gallery-item figcaption {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 20px 15px;

    color: #fff;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(11px, .9vw, 15px);
    letter-spacing: clamp(1.7px, .22vw, 3px);
    text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
    .gallery-item:hover img {
        transform: scale(1.045);
        filter: brightness(.77) contrast(1.04);
    }
}

.gallery-item.hidden {
    display: none;
}


/* =========================================================
   QUOTE
========================================================= */

.gallery-quote {
    width: 100%;
    margin: clamp(40px, 4vw, 70px) auto;

    display: grid;
    grid-template-columns: minmax(30px, 1fr) auto minmax(30px, 1fr);
    align-items: center;
    gap: 20px;

    color: var(--gold);
    text-align: center;
}

.gallery-quote span {
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold),
            transparent
        );
}

.gallery-quote p {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(10px, 1vw, 15px);
    letter-spacing: clamp(2px, .35vw, 5px);
    white-space: normal;
}


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

.gallery-cta {
    padding:
        clamp(52px, 6vw, 90px)
        clamp(20px, 4vw, 55px);

    text-align: center;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    background:
        radial-gradient(
            circle,
            rgba(93,7,28,.28),
            transparent 68%
        );
}

.gallery-cta h2 {
    margin: 12px 0 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 5vw, 78px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.05;
}

.cta-copy {
    width: min(100%, 650px);
    margin: 18px auto 30px;

    color: #aaa;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(14px, 1vw, 18px);
    line-height: 1.7;
}

.gold-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    min-height: 48px;
    padding: 15px 27px;

    border: 1px solid var(--gold);

    color: var(--light-gold);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2.8px;

    transition:
        background .25s ease,
        color .25s ease;
}

.gold-button:hover {
    background: var(--gold);
    color: #000;
}


/* =========================================================
   LARGE DESKTOPS / ULTRAWIDE
========================================================= */

@media (min-width: 1921px) {

    .gallery-layout {
        border-left: 1px solid rgba(201,161,93,.08);
        border-right: 1px solid rgba(201,161,93,.08);
    }

}


/* =========================================================
   SMALLER DESKTOP / LAPTOP
========================================================= */

@media (max-width: 1360px) {

    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
    }

    .mobile-nav.open {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1px;

        padding: 0 4% 22px;
    }

    .mobile-nav a {
        display: grid;
        place-items: center;
        min-height: 46px;
        padding: 10px 8px;
        border: 1px solid rgba(201,161,93,.12);
        text-align: center;
    }

    .gallery-layout {
        grid-template-columns: minmax(0, 40%) minmax(0, 60%);
    }

    .gallery-hero {
        background-position: 60% top;
    }

}


/* =========================================================
   TABLET / NARROW LAPTOP
========================================================= */

@media (max-width: 1024px) {

    .gallery-layout {
        display: block;
    }

    .gallery-hero {
        min-height: 720px;
        max-height: none;

        /* banner-style on tablets */
        aspect-ratio: 16 / 11;
        background-position: 58% 22%;
    }

    .hero-content {
        width: min(68%, 560px);
        padding:
            48px
            35px
            42px;
    }

    .hero-title {
        margin-top: auto;
    }

    .gallery-main {
        padding:
            46px
            28px
            70px;
    }

}


/* =========================================================
   LARGE MOBILE / SMALL TABLET
========================================================= */

@media (max-width: 760px) {

    .header-inner {
        min-height: 96px;
        width: 92%;
    }

    .brand {
        text-align: left;
    }

    .brand-main {
        white-space: normal;
        font-size: clamp(25px, 7vw, 38px);
    }

    .brand-tagline {
        margin-top: 8px;
        font-size: 7px;
        letter-spacing: 2.7px;
        white-space: normal;
    }

    .mobile-nav.open {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 4% 18px;
    }

    .gallery-hero {
        min-height: 730px;
        aspect-ratio: auto;

        background-position: 62% top;
    }

    .hero-content {
        width: 100%;
        padding:
            34px
            22px
            35px;
    }

    .hero-kicker {
        font-size: 9px;
        letter-spacing: 4px;
    }

    .hero-title {
        width: 65%;
        font-size: clamp(56px, 17vw, 86px);
    }

    .hero-copy {
        width: min(78%, 350px);
        font-size: 14px;
    }

    .hero-signature {
        font-size: 34px;
    }

    .gallery-main {
        padding:
            40px
            16px
            58px;
    }

    .gallery-filters {
        gap: 4px 14px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .item-wide,
    .item-tall,
    .item-standard {
        grid-column: span 1;
        aspect-ratio: 4 / 5;
    }

    .item-wide:nth-of-type(1),
    .item-wide:nth-of-type(8) {
        grid-column: span 2;
        aspect-ratio: 16 / 10;
    }

    .gallery-quote {
        gap: 12px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

    .mobile-nav.open {
        grid-template-columns: 1fr;
    }

    .gallery-hero {
        min-height: 680px;
        background-position: 66% top;
    }

    .hero-content {
        padding:
            26px
            18px
            30px;
    }

    .hero-title {
        width: 72%;
    }

    .hero-copy {
        width: 80%;
    }

    .outline-button {
        max-width: 92%;
        padding: 14px 17px;
        gap: 12px;
        letter-spacing: 2px;
    }

    .gallery-intro h2 span {
        display: inline;
    }

    .gallery-grid {
        display: block;
    }

    .gallery-item,
    .item-wide,
    .item-tall,
    .item-standard {
        width: 100%;
        aspect-ratio: 4 / 5;
        margin-bottom: 12px;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(8) {
        aspect-ratio: 4 / 5;
    }

    .gallery-quote {
        grid-template-columns: 24px 1fr 24px;
        gap: 8px;
    }

    .gallery-quote p {
        font-size: 9px;
        letter-spacing: 2px;
    }

}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 360px) {

    .header-inner {
        width: 90%;
    }

    .brand-main {
        font-size: 23px;
    }

    .mobile-menu-button {
        width: 44px;
        height: 44px;
    }

    .gallery-hero {
        min-height: 650px;
        background-position: 69% top;
    }

    .hero-title {
        font-size: 52px;
    }

    .hero-subtitle {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .hero-copy {
        font-size: 13px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .gallery-item img,
    .outline-button,
    .gold-button,
    .desktop-nav a,
    .mobile-nav a {
        transition: none;
    }

}


/* Missing test-image placeholder */
.gallery-item.missing-image {
    background:
        radial-gradient(circle at 50% 35%, rgba(93,7,28,.28), transparent 60%),
        #101010;
}

.gallery-item.missing-image::before {
    content: "TRUE ROMANCE BOUDOIR";
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 80%;
    transform: translate(-50%, -50%);
    color: rgba(234,208,155,.38);
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(12px, 1vw, 17px);
    letter-spacing: 4px;
}

.missing-image-message {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 44px;
    padding: 8px 12px;
    color: #8e8e8e;
    text-align: center;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* =========================================================
   V3 AUTO-GALLERY ADDITIONS
========================================================= */

.gallery-empty {
    grid-column: 1 / -1;
    min-height: 260px;
    display: grid;
    place-items: center;
    padding: 35px;
    border: 1px dashed rgba(201,161,93,.28);
    background:
        radial-gradient(circle at 50% 40%, rgba(93,7,28,.22), transparent 62%),
        #0d0d0d;
    text-align: center;
}

.gallery-empty strong {
    display: block;
    margin-bottom: 8px;
    color: var(--light-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(18px, 2vw, 30px);
    font-weight: 400;
}

.gallery-empty span {
    color: #8f8f8f;
    font-size: 11px;
    line-height: 1.7;
    letter-spacing: 1px;
}

.gallery-item figcaption .photo-number {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.56);
    font-size: 8px;
    letter-spacing: 2px;
}


/* =========================================================
   V4 - CLICK-TO-ENLARGE LIGHTBOX
========================================================= */

.gallery-image-button {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.gallery-image-button img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .65s ease, filter .45s ease;
}

.gallery-image-button:focus-visible {
    outline: 2px solid var(--light-gold);
    outline-offset: -4px;
}

.gallery-zoom-hint {
    position: absolute;
    z-index: 4;
    top: 14px;
    right: 14px;
    min-width: 58px;
    padding: 9px 12px;
    border: 1px solid rgba(234,208,155,.58);
    background: rgba(0,0,0,.58);
    backdrop-filter: blur(5px);
    color: var(--light-gold);
    font-size: 8px;
    letter-spacing: 2px;
    text-align: center;
    opacity: .72;
    transition: opacity .25s ease, background .25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .gallery-item:hover .gallery-image-button img {
        transform: scale(1.045);
        filter: brightness(.77) contrast(1.04);
    }

    .gallery-item:hover .gallery-zoom-hint {
        opacity: 1;
        background: rgba(93,7,28,.78);
    }
}

.gallery-item figcaption {
    pointer-events: none;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox.open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.94);
    backdrop-filter: blur(8px);
}

.lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(96vw, 1500px);
    max-height: 94vh;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(201,161,93,.28);
    background: #050505;
}

.lightbox-stage {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 26px 10px 14px;
}

.lightbox-stage img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
    box-shadow: 0 0 0 1px rgba(255,255,255,.04);
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 5;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(201,161,93,.45);
    background: rgba(0,0,0,.72);
    color: var(--light-gold);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover {
    background: var(--burgundy);
}

.lightbox-nav {
    width: 48px;
    height: 64px;
    display: grid;
    place-items: center;
    justify-self: center;
    padding: 0;
    border: 1px solid rgba(201,161,93,.30);
    background: transparent;
    color: var(--light-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.lightbox-nav:hover {
    background: var(--burgundy);
    border-color: var(--gold);
}

.lightbox-prev {
    grid-column: 1;
    grid-row: 1;
}

.lightbox-next {
    grid-column: 3;
    grid-row: 1;
}

.lightbox-footer {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
    padding: 16px 26px;
    border-top: 1px solid rgba(201,161,93,.18);
    background: linear-gradient(90deg, rgba(93,7,28,.20), transparent 55%), #090909;
}

.lightbox-footer p {
    margin: 0;
}

.lightbox-brand {
    color: var(--gold);
    font-size: 8px;
    letter-spacing: 3px;
}

.lightbox-title {
    margin-top: 5px !important;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
}

.lightbox-counter {
    flex: 0 0 auto;
    color: #9d9d9d;
    font-size: 10px;
    letter-spacing: 2px;
}

@media (max-width: 760px) {
    .lightbox {
        padding: 10px;
    }

    .lightbox-dialog {
        width: 100%;
        max-height: 96vh;
        grid-template-columns: 46px minmax(0, 1fr) 46px;
    }

    .lightbox-stage {
        padding: 54px 4px 10px;
    }

    .lightbox-stage img {
        max-height: 72vh;
    }

    .lightbox-nav {
        width: 38px;
        height: 56px;
        font-size: 34px;
    }

    .lightbox-close {
        top: 8px;
        right: 8px;
        width: 42px;
        height: 42px;
    }

    .lightbox-footer {
        padding: 13px 15px;
    }
}

@media (max-width: 480px) {
    .lightbox-dialog {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(0, 1fr) auto auto;
    }

    .lightbox-stage {
        grid-column: 1 / -1;
        grid-row: 1;
        padding: 55px 8px 10px;
    }

    .lightbox-stage img {
        max-height: 66vh;
    }

    .lightbox-prev,
    .lightbox-next {
        grid-row: 2;
        width: calc(100% - 8px);
        height: 44px;
        border-color: rgba(201,161,93,.20);
        font-size: 28px;
    }

    .lightbox-prev {
        grid-column: 1;
        justify-self: end;
    }

    .lightbox-next {
        grid-column: 2;
        justify-self: start;
    }

    .lightbox-footer {
        grid-column: 1 / -1;
        grid-row: 3;
        padding: 12px 13px;
    }

    .lightbox-brand {
        font-size: 7px;
        letter-spacing: 2px;
    }

    .lightbox-title {
        font-size: 16px;
    }

    .gallery-zoom-hint {
        top: 10px;
        right: 10px;
        min-width: 50px;
        padding: 8px 9px;
        font-size: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-image-button img,
    .gallery-zoom-hint,
    .lightbox-nav {
        transition: none;
    }
}


/* =========================================================
   V5 - CATEGORY PREVIEW + NON-LOOPING LIGHTBOX
========================================================= */

body.category-view .gallery-item {
    display: none;
}

body.category-view .gallery-item.category-preview-visible {
    display: block;
    grid-column: 2 / span 10;
    aspect-ratio: 16 / 10;
}

.lightbox-nav:disabled {
    opacity: .18;
    cursor: default;
    pointer-events: none;
    background: transparent;
}

.lightbox-stage img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 78vh !important;
    object-fit: contain !important;
    object-position: center !important;
}

@media (max-width: 1024px) {
    body.category-view .gallery-item.category-preview-visible {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    body.category-view .gallery-item.category-preview-visible {
        grid-column: 1;
        aspect-ratio: 4 / 5;
    }

    .lightbox-stage img {
        max-height: 72vh !important;
    }
}

@media (max-width: 480px) {
    .lightbox-stage img {
        max-height: 64vh !important;
    }
}
