

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500&display=swap');

/* =========================================================
   GLOBAL
========================================================= */

:root {
    --ink: #1b1815;
    --paper: #faf7f1;
    --brass: #a9803f;
    --brass-deep: #8a6530;
    --line: rgba(27,24,21,.12);
    --line-light: rgba(250,247,241,.18);
    --font-family: "Plus Jakarta Sans","Manrope",system-ui,sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    font-family: var(--font-family), sans-serif;
}

body.lbhg-page {
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.7 var(--font-family);
    -webkit-font-smoothing: antialiased;
}

.lbhg-page *,
.gal-page *,
.gal-overlay *,
.gal-lightbox *,
.gal-toasts * {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

.lbhg-page img {
    display: block;
}



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

.gal-page {
    --ink: #1c1a17;
    --ink-soft: #55524c;
    --ink-faint: #9a968d;
    --gold: #b8863f;
    --gold-soft: #cba15f;
    --bg: #fff;
    --bg-warm: #f4f1ec;
    --line: #e4e0d8;
    --line-soft: #ece8e1;
    --serif: "Plus Jakarta Sans",Georgia,"Times New Roman",serif;
    --sans: "Manrope","Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,sans-serif;
    --max: 1200px;

    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--ink);
}

.gal-page *:focus-visible,
.gal-overlay *:focus-visible,
.gal-lightbox *:focus-visible,
.gal-toasts *:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
}

.gal-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.gal-shell {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(40px,6vw,80px) clamp(16px,4vw,32px) clamp(48px,7vw,96px);
}

/* =========================================================
   LBHG — GALLERY VIDEO HERO
   Scoped entirely to .lbhg-
   ========================================================= */

.lbhg-banner {
    position: relative;

    width: 100%;
    height: min(82vh, 900px);
    min-height: 620px;

    overflow: hidden;

    isolation: isolate;

    background: var(--ink);

    color: var(--white);

    font-family: var(--font-family);
}


/* =========================================================
   VIDEO / MEDIA
   ========================================================= */

.lbhg-banner-media {
    position: absolute;
    inset: 0;

    z-index: -3;

    overflow: hidden;

    background: var(--ink);
}


.lbhg-banner-video,
.lbhg-banner-img {
    position: absolute;

    inset: -2%;

    width: 104%;
    height: 104%;

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

    display: block;
}


/*
 * Slight cinematic zoom
 */

.lbhg-banner-video {
    transform: scale(1.03);

    animation:
            lbhgBannerVideoZoom 14s
            ease-in-out
            infinite alternate;
}


@keyframes lbhgBannerVideoZoom {

    from {
        transform: scale(1.03);
    }

    to {
        transform: scale(1.08);
    }

}


/* =========================================================
   FALLBACK IMAGE
   ========================================================= */

.lbhg-banner-img {
    z-index: -1;

    display: none;
}


/* =========================================================
   CINEMATIC OVERLAY
   ========================================================= */

.lbhg-banner-overlay {
    position: absolute;

    inset: 0;

    z-index: -2;

    background:
            linear-gradient(
                    90deg,
                    rgba(0, 0, 0, 0.66) 0%,
                    rgba(0, 0, 0, 0.38) 42%,
                    rgba(0, 0, 0, 0.26) 100%
            ),
            linear-gradient(
                    180deg,
                    rgba(0, 0, 0, 0.32) 0%,
                    transparent 38%,
                    rgba(0, 0, 0, 0.52) 100%
            );
}


/*
 * Extra subtle dark vignette
 */

.lbhg-banner-overlay::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
            radial-gradient(
                    circle at center,
                    transparent 35%,
                    rgba(0, 0, 0, 0.28) 100%
            );

    pointer-events: none;
}


/* =========================================================
   GRAIN
   ========================================================= */

.lbhg-banner-grain {
    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    opacity: 0.055;

    background-image:
            url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");

    mix-blend-mode: soft-light;
}


/* =========================================================
   CONTENT
   ========================================================= */

.lbhg-banner-content {
    position: absolute;

    z-index: 5;

    top: 50%;
    left: 50%;

    width: min(
            calc(100% - 80px),
            var(--maxw)
    );

    transform:
            translate(-50%, -50%);

    text-align: center;
}


/* =========================================================
   TOP LINE
   ========================================================= */

.lbhg-banner-topline {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 16px;

    margin-bottom: 25px;
}


.lbhg-banner-eyebrow {
    color: var(--gold);

    font-size: 11px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: 0.22em;

    text-transform: uppercase;
}


/* =========================================================
   GOLD RULE
   ========================================================= */

.lbhg-rule {
    display: block;

    width: 42px;
    height: 1px;

    background: var(--gold);
}


/* =========================================================
   TITLE
   ========================================================= */

.lbhg-banner-title {
    max-width: 1050px;

    margin: 0 auto;

    color: var(--white);

    font-size:
            clamp(
                    54px,
                    7vw,
                    102px
            );

    font-weight: 500;

    line-height: 0.98;

    letter-spacing: -0.065em;
}


.lbhg-banner-title em {
    color: var(--gold);

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

    font-weight: 400;

    letter-spacing: -0.055em;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.lbhg-banner-desc {
    max-width: 590px;

    margin: 30px auto 0;

    color:
            rgba(
                    255,
                    255,
                    255,
                    0.76
            );

    font-size: 14px;

    font-weight: 400;

    line-height: 1.8;

    letter-spacing: -0.01em;
}


/* =========================================================
   BOTTOM AREA
   ========================================================= */

.lbhg-banner-bottom {
    position: absolute;

    z-index: 10;

    right: 0;
    bottom: 36px;
    left: 0;

    width: min(
            calc(100% - 80px),
            var(--maxw)
    );

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================================
   NUMBER
   ========================================================= */

.lbhg-banner-number {
    display: flex;

    align-items: center;

    gap: 12px;

    color:
            rgba(
                    255,
                    255,
                    255,
                    0.58
            );

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}


.lbhg-banner-number span:first-child {
    color: var(--gold);
}


.lbhg-banner-number i {
    display: block;

    width: 32px;
    height: 1px;

    background:
            rgba(
                    255,
                    255,
                    255,
                    0.3
            );
}


/* =========================================================
   SCROLL INDICATOR
   ========================================================= */

.lbhg-scroll-indicator {
    display: flex;

    align-items: center;

    gap: 15px;

    color:
            rgba(
                    255,
                    255,
                    255,
                    0.68
            );

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}


.lbhg-scroll-arrow a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border:
            1px solid
            rgba(
                    255,
                    255,
                    255,
                    0.35
            );

    color: var(--gold);
    transition:
            background 0.35s var(--ease),
            border-color 0.35s var(--ease),
            transform 0.35s var(--ease);
    scroll-behavior: smooth;
}


.lbhg-scroll-arrow svg {
    width: 15px;
    height: 15px;
}


.lbhg-scroll-indicator:hover
.lbhg-scroll-arrow a {
    border-color: var(--gold);

    background: var(--gold);

    color: var(--ink);

    transform:
            translateY(4px);
}


/* =========================================================
   DESKTOP ANIMATION
   ========================================================= */

.lbhg-banner-content {
    animation:
            lbhgBannerContentIn
            1.1s
            var(--ease)
            both;
}


@keyframes lbhgBannerContentIn {

    from {
        opacity: 0;

        transform:
                translate(
                        -50%,
                        calc(-50% + 30px)
                );
    }

    to {
        opacity: 1;

        transform:
                translate(
                        -50%,
                        -50%
                );
    }

}


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

@media (max-width: 900px) {

    .lbhg-banner {
        height: 78vh;

        min-height: 580px;
    }


    .lbhg-banner-content {
        width:
                calc(100% - 60px);
    }


    .lbhg-banner-title {
        font-size:
                clamp(
                        50px,
                        8vw,
                        78px
                );
    }


    .lbhg-banner-bottom {
        width:
                calc(100% - 60px);

        bottom: 28px;
    }

}


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

@media (max-width: 600px) {

    .lbhg-banner {
        height: 78svh;

        min-height: 570px;
    }


    /*
     * Mobile video positioning
     */

    .lbhg-banner-video {
        width: 115%;
        height: 115%;

        inset: -7.5%;

        object-position: center;
    }


    .lbhg-banner-overlay {
        background:
                linear-gradient(
                        180deg,
                        rgba(0, 0, 0, 0.42) 0%,
                        rgba(0, 0, 0, 0.32) 35%,
                        rgba(0, 0, 0, 0.66) 100%
                );
    }


    .lbhg-banner-content {
        width:
                calc(100% - 36px);

        top: 48%;
    }


    .lbhg-banner-topline {
        gap: 12px;

        margin-bottom: 20px;
    }


    .lbhg-banner-eyebrow {
        font-size: 9px;

        letter-spacing: 0.18em;
    }


    .lbhg-rule {
        width: 28px;
    }


    .lbhg-banner-title {
        font-size:
                clamp(
                        44px,
                        13vw,
                        62px
                );

        line-height: 1;

        letter-spacing: -0.055em;
    }


    .lbhg-banner-desc {
        max-width: 340px;

        margin-top: 22px;

        font-size: 12px;

        line-height: 1.75;
    }


    .lbhg-banner-bottom {
        width:
                calc(100% - 36px);

        bottom: 22px;
    }


    .lbhg-banner-number {
        font-size: 8px;

        letter-spacing: 0.13em;
    }


    .lbhg-banner-number i {
        width: 20px;
    }


    .lbhg-scroll-indicator {
        gap: 9px;

        font-size: 7px;

        letter-spacing: 0.13em;
    }


    .lbhg-scroll-arrow {
        width: 32px;
        height: 32px;
    }


    .lbhg-scroll-arrow svg {
        width: 13px;
        height: 13px;
    }

}


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

@media (max-width: 380px) {

    .lbhg-banner {
        min-height: 530px;
    }


    .lbhg-banner-title {
        font-size: 40px;
    }


    .lbhg-banner-desc {
        font-size: 11px;

        max-width: 300px;
    }


    .lbhg-banner-number {
        display: none;
    }


    .lbhg-banner-bottom {
        justify-content: flex-end;
    }

}


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

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

    .lbhg-banner-video {
        animation: none;
        transform: none;
    }


    .lbhg-banner-content {
        animation: none;
    }


    .lbhg-scroll-arrow {
        transition: none;
    }

}
/* =========================================================
   INTRO
========================================================= */

.gal-intro {
    max-width: 46rem;
    margin: 0 auto clamp(32px,5vw,52px);
    text-align: center;
}

.gal-eyebrow {
    margin: 0 0 16px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .34em;
}

.gal-heading {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: clamp(30px,5.2vw,50px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: .12em;
}

.gal-lede {
    max-width: 38rem;
    margin: 0 auto;
    color: var(--ink-soft);
    font-size: clamp(14px,1.6vw,16px);
    line-height: 1.8;
}


/* =========================================================
   FILTER BAR
========================================================= */

.gal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(28px,4vw,44px);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.gal-tabs {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: clamp(16px,2.4vw,30px);
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.gal-tabs::-webkit-scrollbar {
    display: none;
}

.gal-tab {
    position: relative;
    flex: 0 0 auto;
    padding: 6px 0 9px;
    color: var(--ink-faint);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: color .3s ease;
}

.gal-tab::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.22,1,.36,1);
}

.gal-tab:hover,
.gal-tab.is-active {
    color: var(--gold);
}

.gal-tab:hover::after,
.gal-tab.is-active::after {
    transform: scaleX(1);
}

.gal-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 14px;
}


/* =========================================================
   BUTTONS
========================================================= */

.gal-btn {
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
            transform .35s cubic-bezier(.22,1,.36,1),
            background-color .35s ease,
            color .35s ease,
            border-color .35s ease;
}

.gal-btn--gold {
    background: var(--gold);
    color: var(--bg);
}

.gal-btn--gold:hover:not(:disabled) {
    background: var(--gold-soft);
    transform: translateY(-2px);
}

.gal-btn--gold:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.gal-btn--outline {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
    padding-inline: 42px;
}

.gal-btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.gal-btn--ghost {
    background: var(--bg-warm);
    border-color: var(--line-soft);
    color: var(--ink-soft);
}

.gal-btn--ghost:hover {
    border-color: var(--line);
    color: var(--ink);
}

.gal-btn--danger {
    background: var(--ink);
    color: var(--bg);
}

.gal-btn--danger:hover {
    background: var(--gold);
}

.gal-btn--block {
    width: 100%;
}

.gal-upload-cta {
    flex: 0 0 auto;
}

.gal-icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--bg);
    color: var(--ink-soft);
    font-size: 20px;
    line-height: 1;
    transition: color .3s ease,border-color .3s ease;
}

.gal-icon-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.gal-link {
    padding: 0;
    background: none;
    border: 0;
    color: var(--gold);
    font-size: 12px;
    letter-spacing: .08em;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   MASONRY GALLERY
========================================================= */

.gal-masonry {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
    width: 100%;
}

.gal-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
}

.gal-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4 !important;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 2px;
    background: var(--bg-warm);
    cursor: pointer;
    border-radius: 12px;
}
/* =========================================================
   ALL IMAGES SAME DISPLAY SIZE
========================================================= */

.gal-card__media img,
.gal-card__skeleton {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   IMAGE HOVER
   Existing design remains intact
========================================================= */

.gal-card__media img {
    transition:
            transform 0.5s ease;
}


.gal-card__media:hover img {
    transform:
            scale(1.04);
}

.gal-card__skeleton {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--line-soft);
}

.gal-card__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to top,
            rgba(28,26,23,.86),
            rgba(28,26,23,.25) 42%,
            transparent 70%
    );
    opacity: 0;
    transition: opacity .6s ease;
}

.gal-card__meta {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    color: var(--bg);
    opacity: 0;
    text-align: left;
    transform: translateY(10px);
    transition: opacity .6s ease,transform .6s cubic-bezier(.22,1,.36,1);
}

.gal-card__cat,
.gal-card__caption-cat {
    color: var(--gold-soft);
    font-size: 10px;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.gal-card__title {
    font-size: 16px;
    font-weight: 400;
}

.gal-card__desc {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255,255,255,.78);
    font-size: 12px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (hover:hover) {
    .gal-card__media:hover img {
        transform: scale(1.04);
    }

    .gal-card__media:hover .gal-card__scrim,
    .gal-card__media:hover .gal-card__meta,
    .gal-card__media:focus-visible .gal-card__scrim,
    .gal-card__media:focus-visible .gal-card__meta {
        opacity: 1;
        transform: none;
    }

    .gal-card__caption {
        display: none;
    }
}

.gal-card__caption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 2px 0;
}

.gal-card__caption-title {
    color: var(--ink);
    font-size: 15px;
}

/* =========================================================
   ADMIN BUTTONS
========================================================= */

.gal-card__manage {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}


.gal-card__manage button {
    flex: 1;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid currentColor;
    background: transparent;
    font: inherit;
    cursor: pointer;
    transition:
            opacity 0.2s ease,
            transform 0.2s ease;
}


.gal-card__manage button:hover {
    opacity: 0.75;
    transform:
            translateY(-1px);
}

.gal-more {
    display: flex;
    justify-content: center;
    margin-top: clamp(24px,4vw,44px);
}

.gal-status {
    padding: 48px 0;
    color: var(--ink-faint);
    font-size: 14px;
    text-align: center;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.gal-empty {
    padding: clamp(40px,7vw,72px) 24px;
    border: 1px solid var(--line-soft);
    border-radius: 3px;
    background: var(--bg-warm);
    text-align: center;
}

.gal-empty__title {
    margin: 0 0 12px;
    font-size: clamp(18px,3vw,22px);
    font-weight: 300;
    letter-spacing: .18em;
}

.gal-empty__text {
    margin: 0 0 28px;
    color: var(--ink-soft);
    font-size: 14px;
}


/* =========================================================
   OVERLAY / MODALS
========================================================= */

.gal-overlay[hidden],
.gal-lightbox[hidden],
.gal-user__menu[hidden] {
    display: none !important;
}

.gal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    background: rgba(28,26,23,.55);
    backdrop-filter: blur(3px);
    animation: gal-fade .25s ease both;
}

.gal-overlay--tight {
    z-index: 120;
}

@keyframes gal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gal-rise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.985);
    }
    to {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   UPLOAD / EDIT MODAL
========================================================= */

.gal-modal {
    width: min(1040px,100%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    color: var(--ink);
    animation: gal-rise .4s cubic-bezier(.22,1,.36,1) both;
}

.gal-modal__head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(18px,3vw,30px);
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg);
}

.gal-modal__title {
    margin: 0 0 5px;
    font-size: clamp(18px,2.6vw,24px);
    font-weight: 400;
    letter-spacing: .04em;
}

.gal-modal__sub {
    margin: 0;
    color: var(--ink-faint);
    font-size: 12px;
}

.gal-modal__body {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,.85fr);
    gap: clamp(20px,3vw,36px);
    padding: clamp(20px,3vw,36px);
}

.gal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.gal-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.gal-label {
    color: var(--ink-soft);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.gal-field__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gal-counter {
    margin-left: auto;
    color: var(--ink-faint);
    font-size: 11px;
}

.gal-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 3px;
    outline: 0;
    background: var(--bg);
    color: var(--ink);
    font: 14px var(--sans);
    transition: border-color .3s ease,box-shadow .3s ease;
}

.gal-input::placeholder {
    color: var(--ink-faint);
}

.gal-input:hover {
    border-color: var(--gold-soft);
}

.gal-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,134,63,.14);
}

.gal-input.is-invalid {
    border-color: #a2402f;
}

.gal-textarea {
    min-height: 104px;
    resize: vertical;
    line-height: 1.6;
}

.gal-select {
    appearance: none;
    padding-right: 36px;
    background:
            linear-gradient(45deg,transparent 50%,var(--ink-soft) 50%) calc(100% - 18px) calc(50% + 2px)/5px 5px no-repeat,
            linear-gradient(135deg,var(--ink-soft) 50%,transparent 50%) calc(100% - 13px) calc(50% + 2px)/5px 5px no-repeat;
}

.gal-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: clamp(24px,4vw,38px) 16px;
    border: 1px dashed var(--line);
    border-radius: 4px;
    background: var(--bg-warm);
    text-align: center;
    cursor: pointer;
    transition: border-color .3s ease,background-color .3s ease;
}

.gal-drop:hover {
    border-color: var(--gold);
}

.gal-drop.is-invalid {
    border-color: #a2402f;
}

.gal-drop__mark {
    color: var(--gold);
    font-size: 20px;
    line-height: 1;
}

.gal-drop__main {
    color: var(--ink);
    font-size: 13px;
}

.gal-drop__hint {
    color: var(--ink-faint);
    font-size: 11px;
}

.gal-msg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12px;
}

.gal-msg--error {
    color: #a2402f;
}

.gal-ok {
    color: var(--gold);
}

.gal-filecard {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--line-soft);
    border-radius: 3px;
    background: var(--bg);
}

.gal-filecard dl {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px 16px;
    margin: 0;
}

.gal-filecard dt {
    color: var(--ink-faint);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.gal-filecard dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 13px;
}

.gal-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.gal-preview__frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 60vh;
    aspect-ratio: 360/480;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    background: var(--bg-warm);
}

.gal-preview__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gal-preview__empty {
    padding: 16px;
    text-align: center;
}

.gal-preview__eyebrow {
    margin: 0 0 8px;
    color: var(--ink-faint);
    font-size: 10px;
    letter-spacing: .28em;
}

.gal-preview__hint,
.gal-preview__note {
    margin: 0;
    color: var(--ink-faint);
    font-size: 12px;
}

.gal-preview__note {
    font-size: 10px;
    text-align: center;
}


/* =========================================================
   LOGIN
========================================================= */

.gal-login {
    width: min(430px,100%);
    align-self: center;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--bg);
    color: var(--ink);
    animation: gal-rise .35s cubic-bezier(.22,1,.36,1) both;
}

.gal-login__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 26px 18px;
    border-bottom: 1px solid var(--line-soft);
}

.gal-login__title {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .2em;
}

.gal-login__sub {
    margin: 0;
    color: var(--ink-soft);
    font-size: 12px;
}

.gal-login__form {
    padding: 24px 26px 28px;
}

.gal-passwrap {
    position: relative;
    display: flex;
    align-items: center;
}

.gal-passwrap .gal-input {
    padding-right: 68px;
}

.gal-passtoggle {
    position: absolute;
    right: 10px;
    color: var(--ink-faint);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.gal-passtoggle:hover {
    color: var(--gold);
}

.gal-loginerror {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e2c4bd;
    border-radius: 3px;
    background: #fdf6f4;
    color: #a2402f;
    font-size: 12px;
}

.gal-login__actions,
.gal-confirm__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}


/* =========================================================
   CONFIRM DELETE
========================================================= */

.gal-confirm {
    width: min(420px,100%);
    padding: clamp(24px,4vw,32px);
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--bg);
    color: var(--ink);
    animation: gal-rise .3s cubic-bezier(.22,1,.36,1) both;
}

.gal-confirm__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 400;
}

.gal-confirm__text {
    margin: 0 0 24px;
    color: var(--ink-soft);
    font-size: 13px;
}


/* =========================================================
   USER MENU
========================================================= */

.gal-user {
    position: relative;
    padding-bottom: 5px;
}

.gal-user__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 2px;
    color: var(--ink);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.gal-user__label {
    color: var(--ink-faint);
}

.gal-user__trigger:hover,
.gal-user__trigger[aria-expanded="true"] {
    color: var(--gold);
}

.gal-user__caret {
    color: var(--ink-faint);
    font-size: 10px;
}

.gal-user__menu {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    z-index: 40;
    min-width: 190px;
    padding: 14px 16px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg);
    box-shadow: 0 18px 40px -24px rgba(28,26,23,.45);
    animation: gal-rise .2s ease both;
}

.gal-user:hover .gal-user__menu:not([hidden]) {
    display: block;
}

.gal-user__signed {
    margin: 0;
    color: var(--ink-faint);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.gal-user__name {
    margin: 3px 0 11px;
    color: var(--ink);;
    font-size: 15px;
}

.gal-user__logout {
    width: 100%;
    padding: 10px 0 4px;
    border-top: 1px solid var(--line-soft);
    color: var(--ink-soft);
    font-size: 11px;
    letter-spacing: .12em;
    text-align: left;
    text-transform: uppercase;
}

.gal-user__logout:hover {
    color: var(--gold);
}


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

.gal-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px,4vw,48px);
    background: rgba(28,26,23,.95);
    animation: gal-fade .25s ease both;
}

.gal-lightbox__stage {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr);
    align-items: center;
    width: min(1100px,100%);
    max-height: 100%;
    gap: clamp(16px,3vw,40px);
}

.gal-lightbox__frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.gal-lightbox__frame img {
    max-width: 100%;
    max-height: min(78vh,900px);
    border-radius: 3px;
    object-fit: contain;
}

.gal-lightbox__info {
    min-width: 0;
    color: var(--bg);
}

.gal-lightbox__cat {
    margin: 0 0 12px;
    color: var(--gold-soft);
    font-size: 10px;
    letter-spacing: .26em;
    text-transform: uppercase;
}

.gal-lightbox__title {
    margin: 0 0 14px;
    font-size: clamp(21px,3vw,30px);
    font-weight: 300;
    letter-spacing: .03em;
}

.gal-lightbox__desc {
    margin: 0 0 20px;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    line-height: 1.8;
}

.gal-lightbox__count {
    margin: 0;
    color: var(--ink-faint);
    font-size: 11px;
    letter-spacing: .2em;
}

.gal-lightbox__close,
.gal-lightbox__nav {
    position: absolute;
    border: 1px solid rgba(255,255,255,.22);
    background: transparent;
    color: var(--bg);
    transition: border-color .3s ease,color .3s ease;
}

.gal-lightbox__close {
    top: clamp(12px,3vw,28px);
    right: clamp(12px,3vw,28px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
}

.gal-lightbox__nav {
    top: 50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    transform: translateY(-50%);
}

.gal-lightbox__close:hover,
.gal-lightbox__nav:hover {
    border-color: var(--gold);
    color: var(--gold-soft);
}

.gal-lightbox__nav--prev {
    left: clamp(8px,2vw,24px);
}

.gal-lightbox__nav--next {
    right: clamp(8px,2vw,24px);
}


/* =========================================================
   TOASTS
========================================================= */

.gal-toasts {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px,calc(100vw - 40px));
    pointer-events: none;
}

.gal-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-left: 2px solid var(--gold);
    border-radius: 3px;
    background: var(--bg);
    box-shadow: 0 12px 30px rgba(28,26,23,.12);
    pointer-events: auto;
    animation: gal-toast-in .35s cubic-bezier(.22,1,.36,1) both;
}

.gal-toast p {
    margin: 0;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.5;
}

.gal-toast__dot {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--gold);
}

.gal-toast--error {
    border-left-color: #a2402f;
}

.gal-toast--error .gal-toast__dot {
    background: #a2402f;
}

.gal-toast__close {
    margin-left: auto;
    color: var(--ink-faint);
    font-size: 16px;
}

@keyframes gal-toast-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}


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

/* Tablet */
@media (max-width: 1024px) {
    .gal-masonry {
        column-count: 2;
    }
}
/* =========================================================
   LARGE LAPTOP
   3 columns
========================================================= */

@media (max-width: 1199px) {

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

}

/* Small tablet */
@media (max-width: 860px) {

    .gal-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .gal-tabs {
        width: 100%;
    }

    .gal-actions {
        width: 100%;
    }

    .gal-upload-cta {
        flex: 1;
    }

    .gal-modal__body,
    .gal-lightbox__stage {
        grid-template-columns: 1fr;
    }

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

    .gal-preview {
        order: -1;
    }

    .gal-preview__frame {
        width: min(320px,100%);
        max-height: 48vh;
    }

    .gal-lightbox {
        align-items: flex-start;
        padding: 64px 20px 84px;
    }

    .gal-lightbox__stage {
        overflow-y: auto;
    }

    .gal-lightbox__frame img {
        max-height: 48vh;
    }

    .gal-lightbox__info {
        text-align: center;
    }

    .gal-lightbox__nav {
        top: auto;
        bottom: 18px;
        transform: none;
    }

    .gal-lightbox__nav--prev {
        left: calc(50% - 58px);
    }

    .gal-lightbox__nav--next {
        right: calc(50% - 58px);
    }

    .gal-user__menu {
        left: 0;
        right: auto;
    }
}

/* =========================================================
   MOBILE
   2 columns
========================================================= */

@media (max-width: 560px) {

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

        gap: 12px;
    }


    .gal-card__media {
        aspect-ratio:
                1 / 1 !important;
    }


    .gal-card__manage {
        gap: 6px;
    }


    .gal-card__manage button {
        min-height: 34px;
        padding:
                6px 8px;
        font-size:
                12px;
    }

}

/* Mobile */
@media (max-width: 640px) {

    .lbhg-banner {
        height: 410px;
    }

    .lbhg-banner-content {
        padding: 0 20px;
    }

    .lbhg-banner-title {
        font-size: clamp(36px,11vw,48px);
    }

    .lbhg-banner-desc {
        margin-top: 18px;
        font-size: 14px;
    }

    .lbhg-rule {
        margin: 18px auto;
    }

    .lbhg-scroll-indicator {
        bottom: 20px;
        font-size: 9px;
    }

    .gal-shell {
        padding: 42px 16px 56px;
    }

    .gal-heading {
        font-size: clamp(28px,8vw,38px);
        letter-spacing: .08em;
    }

    .gal-lede {
        font-size: 14px;
    }

    .gal-bar {
        gap: 12px;
    }

    .gal-actions {
        flex-direction: row;
    }

    .gal-upload-cta {
        width: auto;
    }

    .gal-masonry {
        column-count: 1;
    }

    .gal-filecard dl {
        grid-template-columns: 1fr;
    }

    .gal-overlay {
        padding: 10px;
    }

    .gal-modal {
        max-height: calc(100dvh - 20px);
    }

    .gal-modal__head,
    .gal-modal__body {
        padding: 16px;
    }

    .gal-modal__body {
        gap: 20px;
    }

    .gal-preview__frame {
        width: min(250px,100%);
        max-height: 42vh;
    }

    .gal-login__head,
    .gal-login__form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .gal-login__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .gal-login__actions .gal-btn {
        width: 100%;
    }

    .gal-confirm__actions {
        flex-direction: column;
    }

    .gal-confirm__actions .gal-btn {
        width: 100%;
    }

    .gal-toasts {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
    }
}

/* =========================================================
   VERY SMALL MOBILE
   1 column
========================================================= */

@media (max-width: 380px) {

    .gal-masonry {
        grid-template-columns:1fr;
        gap: 18px;
    }

    .gal-card__media {
        aspect-ratio:4 / 3 !important;
    }

}

/* Small phones */
@media (max-width: 400px) {

    .lbhg-banner {
        height: 380px;
    }

    .lbhg-banner-title {
        font-size: 32px;
    }

    .lbhg-banner-desc {
        font-size: 13px;
    }

    .gal-shell {
        padding-right: 14px;
        padding-left: 14px;
    }

    .gal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .gal-upload-cta {
        width: 100%;
    }

    .gal-user,
    .gal-user__trigger {
        width: 100%;
    }

    .gal-user__trigger {
        justify-content: center;
    }

    .gal-user__menu {
        right: 0;
        left: 0;
        width: 100%;
    }

    .gal-login__actions {
        grid-template-columns: 1fr;
    }

    .gal-preview__frame {
        width: 220px;
    }
}

/* Very small phones */
@media (max-width: 360px) {

    .lbhg-banner {
        height: 350px;
    }

    .lbhg-banner-title {
        font-size: 29px;
    }

    .gal-heading {
        font-size: 26px;
    }

    .gal-lede {
        font-size: 13px;
    }

    .gal-modal__head,
    .gal-modal__body {
        padding-right: 14px;
        padding-left: 14px;
    }

    .gal-preview__frame {
        width: 200px;
    }
}


/* Landscape mobile */
@media (max-height:600px) and (orientation:landscape) {

    .lbhg-banner {
        height: 460px;
    }

    .gal-overlay {
        align-items: flex-start;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .gal-modal {
        max-height: calc(100dvh - 16px);
    }

    .gal-modal__body {
        grid-template-columns: 1fr 1fr;
    }

    .gal-preview {
        order: initial;
    }

    .gal-preview__frame {
        max-height: 65vh;
    }
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .lbhg-page *,
    .lbhg-page *::before,
    .lbhg-page *::after,
    .gal-page *,
    .gal-page *::before,
    .gal-page *::after,
    .gal-overlay *,
    .gal-lightbox * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
=====================================================================================
