/* =========================================================
   GHOST CREEK FAMILY MEMORIES
   HIGH-CONTRAST BRAND THEME
   Replace the entire contents of:
   /shuckflix/assets/family.css
   ========================================================= */


/* =========================================================
   THEME
   ========================================================= */

:root {
    color-scheme: light;

    --gc-paper: #eee6d3;
    --gc-paper-2: #e3d7bf;
    --gc-paper-3: #d4c3a4;

    --gc-ink: #17130f;
    --gc-ink-soft: #2d271f;
    --gc-muted: #665b4c;

    --gc-brown: #694725;
    --gc-copper: #8f6031;
    --gc-gold: #b07a3d;

    --gc-line: rgba(23, 19, 15, 0.20);
    --gc-line-strong: rgba(23, 19, 15, 0.42);

    --gc-dark: #17130f;
    --gc-dark-2: #252019;

    --gc-light-text: #fff8e9;
    --gc-light-muted: #d9ccb4;

    --gc-radius: 11px;
    --gc-radius-lg: 18px;

    --gc-shadow:
        0 12px 30px rgba(32, 23, 14, 0.22);

    --gc-shadow-heavy:
        0 26px 70px rgba(0, 0, 0, 0.48);
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--gc-paper);
}

body {
    min-height: 100vh;
    margin: 0;

    color: var(--gc-ink) !important;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 14px;
    line-height: 1.5;

    background:
        radial-gradient(
            circle at 50% -120px,
            rgba(255, 255, 255, 0.92),
            transparent 520px
        ),
        linear-gradient(
            180deg,
            #f4eddd 0,
            #e9dfcb 45%,
            #ded0b5 100%
        );

    overflow-x: hidden;
}


/* subtle paper texture */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    z-index: 0;

    pointer-events: none;

    opacity: 0.18;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(75, 57, 36, 0.025) 0,
            rgba(75, 57, 36, 0.025) 1px,
            transparent 1px,
            transparent 4px
        );
}


/* faint crest watermark */

body::after {
    content: "";

    position: fixed;

    width: min(650px, 56vw);
    aspect-ratio: 1 / 1;

    right: -115px;
    bottom: -120px;

    z-index: 0;

    pointer-events: none;

    opacity: 0.035;

    background:
        url("/assets/ghost-creek-crest.png")
        center / contain
        no-repeat;

    mix-blend-mode: multiply;
}


body > * {
    position: relative;
    z-index: 1;
}


a,
button {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--gc-gold);
    outline-offset: 3px;
}


/* =========================================================
   SINGLE TOP BAR
   ========================================================= */

.gc-family-header {
    position: sticky;
    top: 0;

    z-index: 100;

    min-height: 108px;

    display: grid;
    grid-template-columns:
        minmax(170px, 1fr)
        minmax(340px, auto)
        minmax(170px, 1fr);

    align-items: center;

    gap: 22px;

    padding:
        14px
        clamp(18px, 4vw, 58px);

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(248, 242, 226, 0.985),
            rgba(224, 210, 184, 0.985)
        );

    border-top:
        3px solid var(--gc-ink);

    border-bottom:
        3px double rgba(23, 19, 15, 0.70);

    box-shadow:
        0 9px 28px rgba(45, 32, 17, 0.22);
}


/* real Ghost Creek banner as very faint inkwork */

.gc-family-header::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 0;

    pointer-events: none;

    opacity: 0.08;

    background:
        url("/assets/ghost-creek-banner.png")
        center / min(940px, 74vw) auto
        no-repeat;

    mix-blend-mode: multiply;
}


.gc-family-header::after {
    content: "";

    position: absolute;

    left: 4%;
    right: 4%;
    bottom: 8px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(23, 19, 15, 0.55),
            transparent
        );
}


.gc-family-header > * {
    position: relative;
    z-index: 2;
}


/* =========================================================
   HEADER BRAND
   ========================================================= */

.gc-family-brand {
    min-width: min(540px, 48vw);

    text-align: center;
}


.gc-family-kicker {
    margin-bottom: 2px;

    color: var(--gc-brown) !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.72rem;
    font-weight: 900;

    letter-spacing: 0.34em;

    text-transform: uppercase;
}


.gc-family-brand h1 {
    margin: 0;

    color: var(--gc-ink) !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(1.9rem, 3.6vw, 3rem);

    font-weight: 900;

    line-height: 1;

    letter-spacing: 0.07em;

    text-transform: uppercase;

    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65);
}


.gc-family-subtitle {
    margin-top: 7px;

    color: #514738 !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.80rem;

    font-style: italic;

    letter-spacing: 0.05em;
}


/* =========================================================
   HEADER BUTTONS
   ========================================================= */

.gc-home-button,
.gc-shuckflix-button {
    min-height: 43px;

    width: max-content;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding:
        10px
        15px;

    border:
        2px solid var(--gc-ink);

    border-radius: 7px;

    color: var(--gc-light-text) !important;

    text-decoration: none;

    font-size: 0.82rem;
    font-weight: 900;

    letter-spacing: 0.035em;

    background: linear-gradient(
    180deg,
    rgba(212, 195, 164, 0.1),
    rgba(128, 108, 89, 0.4)
);

    box-shadow:
        0 4px 11px rgba(0, 0, 0, 0.20);

    transition:
        transform 140ms ease,
        background 140ms ease,
        box-shadow 140ms ease;
}


.gc-home-button {
    justify-self: start;
}


.gc-shuckflix-button {
    justify-self: end;
}


.gc-home-button:hover,
.gc-shuckflix-button:hover {
    transform: translateY(-2px);

    color: #fff !important;

    background:
        linear-gradient(
            180deg,
            #825934,
            #4a301d
        );

    box-shadow:
        0 7px 16px rgba(0, 0, 0, 0.28);
}


.gc-home-icon {
    color: #e4b66f !important;

    font-size: 1.2rem;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

#page {
    width:
        min(1500px, 100%);

    margin:
        0
        auto;

    padding:
        clamp(25px, 3vw, 44px)
        clamp(14px, 2.6vw, 36px)
        70px;
}


#buckets,
.family-buckets {
    display: grid;

    gap:
        clamp(30px, 4vw, 48px);

    width: 100%;
}


/* =========================================================
   YEAR / ALBUM ROWS
   ========================================================= */

.row {
    min-width: 0;

    display: grid;

    gap: 13px;
}


.row h3 {
    margin: 0;

    display: flex;

    align-items: center;

    gap: 13px;

    color: var(--gc-ink) !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(1.35rem, 2.1vw, 1.85rem);

    font-weight: 900;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.row h3::after {
    content: "";

    flex: 1 1 auto;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            rgba(23, 19, 15, 0.65),
            rgba(23, 19, 15, 0.12),
            transparent
        );
}


.row .rail {
    min-width: 0;

    display: grid;

    grid-auto-flow: column;

    grid-auto-columns:
        clamp(170px, 15vw, 210px);

    gap: 15px;

    overflow-x: auto;
    overflow-y: hidden;

    padding:
        4px
        4px
        15px;

    scroll-snap-type:
        x proximity;

    scrollbar-width: thin;

    scrollbar-color:
        #8b6b45
        rgba(23, 19, 15, 0.08);
}


.row .rail::-webkit-scrollbar {
    height: 9px;
}


.row .rail::-webkit-scrollbar-track {
    background:
        rgba(23, 19, 15, 0.07);

    border-radius: 999px;
}


.row .rail::-webkit-scrollbar-thumb {
    background:
        #8b6b45;

    border-radius: 999px;
}


/* =========================================================
   ALBUM CARDS
   ========================================================= */

.card {
    position: relative;

    overflow: hidden;

    scroll-snap-align: start;

    cursor: pointer;

    border:
        2px solid rgba(23, 19, 15, 0.50);

    border-radius: var(--gc-radius);

    background:
        #f8f0df;

    box-shadow:
        var(--gc-shadow);

    transition:
        transform 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease;
}


.card::after {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    border:
        1px solid rgba(255, 255, 255, 0.60);

    border-radius:
        calc(var(--gc-radius) - 2px);
}


.card:hover {
    transform:
        translateY(-5px);

    border-color:
        #5c3b20;

    box-shadow:
        0 16px 28px rgba(55, 39, 20, 0.30);
}


.card img {
    display: block;

    width: 100%;
    height: 245px;

    object-fit: cover;

    background:
        #cfc2a9;

    border-bottom:
        2px solid rgba(23, 19, 15, 0.38);
}


.card .meta {
    min-height: 68px;

    padding:
        10px
        11px
        12px;

    color: #5a4e3e !important;

    background:
        linear-gradient(
            180deg,
            #fff8ea,
            #eadfc8
        );

    font-size: 0.80rem;
}


.card .title {
    margin-bottom: 3px;

    overflow: hidden;

    color: var(--gc-ink) !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.96rem;

    font-weight: 900;

    line-height: 1.25;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/* force common generated text to remain readable */

#buckets,
#buckets *,
.family-buckets,
.family-buckets * {
    text-shadow: none;
}


.row,
.row *,
.card,
.card * {
    visibility: visible;
}


/* =========================================================
   MUTED
   ========================================================= */

.muted {
    color: var(--gc-muted) !important;
}


/* =========================================================
   HIDDEN
   ========================================================= */

.hidden {
    display: none !important;
}


/* =========================================================
   FOLDER OVERLAY
   ========================================================= */

.overlay {
    position: fixed;
    inset: 0;

    z-index: 1000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        clamp(8px, 2vw, 22px);

    background:
        rgba(19, 15, 11, 0.78);

    backdrop-filter:
        blur(7px);
}


.overlay-content {
    position: relative;

    width:
        min(1240px, 96vw);

    height:
        min(92vh, 900px);

    min-height: 0;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border:
        3px double rgba(23, 19, 15, 0.82);

    border-radius:
        var(--gc-radius-lg);

    background:
        #eee4cf;

    box-shadow:
        var(--gc-shadow-heavy);
}


.overlay-content::before {
    content: "";

    position: absolute;

    right: -100px;
    top: -105px;

    width: 390px;
    height: 390px;

    background:
        url("/assets/ghost-creek-mark.png")
        center / contain
        no-repeat;

    opacity: 0.045;

    mix-blend-mode: multiply;

    pointer-events: none;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.close,
.overlay-content .close,
#closeLightbox {
    width: 43px;
    height: 43px;

    display: inline-grid;

    place-items: center;

    padding: 0;

    border:
        2px solid #f2e6cf;

    border-radius: 50%;

    color: #fff !important;

    background:
        #17130f;

    font-size: 1.7rem;

    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 5px 13px rgba(0, 0, 0, 0.30);
}


.close:hover,
.overlay-content .close:hover,
#closeLightbox:hover {
    background:
        #754b29;
}


.overlay-content > .close {
    position: absolute;

    right: 14px;
    top: 14px;

    z-index: 5;
}


/* =========================================================
   OVERLAY HEADER
   ========================================================= */

.overlay-header {
    position: relative;

    z-index: 1;

    flex: 0 0 auto;

    display: grid;

    grid-template-columns:
        170px
        minmax(0, 1fr);

    align-items: center;

    gap: 20px;

    min-height: 154px;

    padding:
        18px
        72px
        18px
        18px;

    color: var(--gc-ink) !important;

    border-bottom:
        2px solid rgba(23, 19, 15, 0.35);

    background:
        linear-gradient(
            180deg,
            #f7efdf,
            #ddceb0
        );
}


.folder-cover-frame {
    width: 170px;
    height: 118px;

    overflow: hidden;

    padding: 4px;

    border:
        2px solid rgb(229 193 158 / 55%);

    border-radius: 8px;

    background:
        #d4c3a4;

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.24);
}


.folder-cover-frame img,
.overlay-header > img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 4px;
}


.overlay-header-copy {
    min-width: 0;
}


.gc-overlay-kicker {
    margin-bottom: 4px;

    color: var(--gc-brown) !important;

    font-size: 0.67rem;

    font-weight: 900;

    letter-spacing: 0.20em;

    text-transform: uppercase;
}


.overlay-header h2 {
    margin:
        0
        0
        4px;

    color: var(--gc-ink) !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(1.5rem, 3vw, 2.3rem);

    font-weight: 900;

    line-height: 1.1;
}


.overlay-header p {
    margin:
        0
        0
        12px;

    color: #554838 !important;
}


/* =========================================================
   FOLDER THUMBNAIL GRID
   ORIGINAL LAYOUT / FULL IMAGE VISIBLE
   ========================================================= */

/* --- GRID --- */
.thumb-grid {
    flex: 1;
    overflow-y: auto;
    padding: 16px;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;

    background: #eee6d3; /* visible background  --gc-paper: #eee6d3;
    --gc-paper-2: #e3d7bf;
    --gc-paper-3: #d4c3a4;*/
}

/* --- THUMBNAILS --- */
.thumb {
    position: relative;
    background: #e3d7bf;
    border: 1px solid #d4c3a4;
    border-radius: 12px;
    aspect-ratio: 1/1; /* square thumbnails = stable grid */
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb .badge {
    position: absolute;
    right: 6px;
    bottom: 6px;
    background: rgba(0,0,0,.55);
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.gc-control-button,
.overlay-actions button {
    min-height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding:
        9px
        15px;

    border:
        2px solid var(--gc-ink);

    border-radius: 7px;

    color: #fff !important;

    background:
        linear-gradient(
            180deg,
            #443a2f,
            #17130f
        );

    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 5px 13px rgba(0, 0, 0, 0.22);

    transition:
        transform 140ms ease,
        background 140ms ease,
        box-shadow 140ms ease;
}


.gc-control-button:hover,
.overlay-actions button:hover {
    transform:
        translateY(-1px);

    background:
        linear-gradient(
            180deg,
            #886039,
            #4f321e
        );

    box-shadow:
        0 7px 17px rgba(0, 0, 0, 0.27);
}


.gc-control-primary {
    background:
        linear-gradient(
            180deg,
            #8e6238,
            #57391f
        );
}


.gc-control-primary:hover {
    background:
        linear-gradient(
            180deg,
            #aa7a45,
            #6c4828
        );
}


.gc-control-icon {
    min-width: 48px;

    padding-left: 12px;
    padding-right: 12px;
}


/* =========================================================
   FULL-SCREEN LIGHTBOX
   ========================================================= */

#lightbox,
.lightbox {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    z-index: 999999 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 !important;

    background:
        rgba(0, 0, 0, 0.96);

    overflow: hidden;
}


/* =========================================================
   IMAGE AREA
   ========================================================= */

.lightbox-stage {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        12px
        14px;

    overflow: hidden;
}


/* Nearly the entire screen becomes the photo area */

.lightbox-frame {
    position: relative;

    width:
        calc(100vw - 28px);

    height:
        calc(100vh - 24px);

    max-width: none;
    max-height: none;
    min-height: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    padding: 0;

    border: none;

    border-radius: 8px;

    background: #000;

    box-shadow:
        0 0 45px rgba(0, 0, 0, 0.8);
}


/* =========================================================
   PHOTO / VIDEO
   ========================================================= */

.lightbox-frame img,
.lightbox-frame video,
#lbImg,
#lbVid {
    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    object-position: center;

    background: #000;

    border-radius: 6px;
}


/* =========================================================
   FLOATING TRANSPARENT CONTROLS
   ========================================================= */

.lightbox-controls,
.gc-lightbox-controls {
    position: absolute !important;

    left: 50%;
    bottom: 26px;

    transform: translateX(-50%);

    z-index: 1000001;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin: 0 !important;

    padding:
        8px
        12px !important;

    /*
       Essentially transparent.
       Just a tiny bit of shading so white text works
       over very bright photographs.
    */

    background:
        rgba(0, 0, 0, 0.12);

    backdrop-filter:
        blur(2px);

    -webkit-backdrop-filter:
        blur(2px);

    border-radius: 12px;
}

/* =========================================================
   TRANSPARENT LIGHTBOX BUTTONS
   ========================================================= */

#lightbox .gc-control-button {
    min-height: 42px;

    padding:
        8px
        14px;

    border:
        1px solid rgba(255, 255, 255, 0.45);

    border-radius: 8px;

    background:
        rgba(0, 0, 0, 0.18) !important;

    color:
        #fff !important;

    font-weight: 800;

    cursor: pointer;

    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.95);

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.20);

    backdrop-filter:
        blur(2px);

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}


#lightbox .gc-control-button:hover {
    transform:
        translateY(-1px);

    background:
        rgba(0, 0, 0, 0.48) !important;

    border-color:
        rgba(255, 255, 255, 0.85);
}


/* Don't give slideshow button a solid brown background */

#lightbox .gc-control-primary {
    background:
        rgba(0, 0, 0, 0.22) !important;
}


#lightbox .gc-control-primary:hover {
    background:
        rgba(0, 0, 0, 0.52) !important;
}

/* =========================================================
   FLOATING CLOSE BUTTON
   ========================================================= */

#closeLightbox {
    position: absolute !important;

    top: 22px;
    right: 24px;

    z-index: 1000002 !important;

    width: 44px;
    height: 44px;

    border:
        1px solid rgba(255, 255, 255, 0.45);

    border-radius: 50%;

    background:
        rgba(0, 0, 0, 0.20) !important;

    color: #fff !important;

    font-size: 1.8rem;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.95);

    backdrop-filter:
        blur(2px);

    cursor: pointer;
}


#closeLightbox:hover {
    background:
        rgba(0, 0, 0, 0.55) !important;

    border-color: #fff;
}

/* =========================================================
   LEGACY COMPATIBILITY
   ========================================================= */

.sf-btn {
    min-height: 42px;

    padding:
        9px
        15px;

    border:
        2px solid var(--gc-ink);

    border-radius: 7px;

    color: #fff !important;

    background:
        #51351f;

    font-weight: 900;

    cursor: pointer;
}


.sf-btn:hover {
    background:
        #81562f;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .gc-family-header {
        grid-template-columns:
            auto
            minmax(0, 1fr)
            auto;

        gap: 12px;

        padding:
            12px
            14px;
    }


    .gc-family-brand {
        min-width: 0;
    }


    .gc-family-brand h1 {
        font-size:
            clamp(1.45rem, 4vw, 2.2rem);
    }


    .gc-home-button,
    .gc-shuckflix-button {
        padding:
            9px
            11px;

        font-size: 0.75rem;
    }


    #page {
        padding-left: 14px;
        padding-right: 14px;
    }


    .row .rail {
        grid-auto-columns:
            clamp(158px, 24vw, 192px);
    }


    .card img {
        height: 225px;
    }


    .lightbox-stage {
        padding:
            8px
            22px;
    }


    .lightbox-frame {
        width:
            calc(100vw - 60px);

        height:
            min(66vh, 640px);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    body::after {
        width: 95vw;

        right: -40vw;
        bottom: -5vh;

        opacity: 0.025;
    }


    .gc-family-header {
        min-height: auto;

        grid-template-columns:
            1fr
            1fr;

        grid-template-areas:
            "brand brand"
            "home shuckflix";

        gap:
            8px;

        padding:
            10px
            10px
            13px;
    }


    .gc-family-header::before {
        background-size:
            680px auto;

        opacity: 0.055;
    }


    .gc-family-brand {
        grid-area: brand;

        width: 100%;
    }


    .gc-home-button {
        grid-area: home;

        justify-self: stretch;

        width: 100%;
    }


    .gc-shuckflix-button {
        grid-area: shuckflix;

        justify-self: stretch;

        width: 100%;
    }


    .gc-family-kicker {
        font-size: 0.60rem;
    }


    .gc-family-brand h1 {
        font-size:
            clamp(1.55rem, 7vw, 2rem);
    }


    .gc-family-subtitle {
        margin-top: 4px;

        font-size: 0.68rem;
    }


    #page {
        padding:
            22px
            10px
            52px;
    }


    #buckets,
    .family-buckets {
        gap: 30px;
    }


    .row h3 {
        font-size: 1.22rem;
    }


    .row .rail {
        grid-auto-columns:
            minmax(148px, 44vw);

        gap: 10px;
    }


    .card img {
        height: 205px;
    }


    .card .meta {
        min-height: 62px;

        padding:
            9px
            9px
            10px;
    }


    .overlay {
        padding: 6px;
    }


    .overlay-content {
        width: 100%;
        height: 96vh;

        border-radius:
            12px;
    }


    .overlay-header {
        grid-template-columns:
            100px
            minmax(0, 1fr);

        gap: 11px;

        min-height: 122px;

        padding:
            13px
            58px
            13px
            13px;
    }


    .folder-cover-frame {
        width: 100px;
        height: 86px;
    }


    .overlay-header h2 {
        font-size:
            clamp(1.2rem, 5vw, 1.65rem);
    }


    .gc-overlay-kicker {
        font-size: 0.57rem;
    }



    #lightbox,
    .lightbox {
        padding:
            10px
            6px
            7px;
    }


    #closeLightbox {
        right: 9px;
        top: 9px;

        width: 38px;
        height: 38px;
    }


    .lightbox-stage {
        padding:
            47px
            4px
            4px;
    }


    .lightbox-frame {
        width:
            calc(100vw - 14px);

        height:
            min(62vh, 560px);

        min-height:
            245px;

        padding:
            4px;
    }


    .lightbox-controls,
    .gc-lightbox-controls {
        gap: 6px;

        margin-top: 8px;

        padding:
            2px
            5px
            6px;
    }


    .gc-control-button {
        min-height: 38px;

        padding:
            7px
            10px;

        font-size:
            0.77rem;
    }


    .gc-control-icon {
        min-width: 42px;
    }


    .gc-return-home {
        font-size:
            0.72rem;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 430px) {

    .gc-home-button,
    .gc-shuckflix-button {
        min-height:
            38px;

        padding:
            7px
            8px;

        font-size:
            0.70rem;
    }


    .row .rail {
        grid-auto-columns:
            minmax(142px, 46vw);
    }


    .card img {
        height:
            192px;
    }



    .lightbox-frame {
        height:
            min(58vh, 500px);
    }


    .gc-control-button {
        padding-left:
            8px;

        padding-right:
            8px;

        font-size:
            0.70rem;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition:
            none !important;

        animation:
            none !important;
    }

}

/* =========================================================
   LIGHTBOX PHOTO ZOOM
   ========================================================= */

.lightbox-frame {
    overflow: hidden;
}

#lbImg {
    transform: scale(1);
    transform-origin: center center;

    transition: transform 0.12s ease;

    cursor: zoom-in;

    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

#lbImg.gc-zoomed {
    cursor: zoom-out;
}

/* =========================================================
   LIGHTBOX ZOOM + DRAG
   ========================================================= */

.lightbox-frame {
    overflow: hidden;
}

#lbImg {
    transform:
        translate(0px, 0px)
        scale(1);

    transform-origin: center center;

    cursor: zoom-in;

    user-select: none;

    -webkit-user-select: none;
    -webkit-user-drag: none;

    transition:
        transform 0.10s ease;
}


/* zoomed in */

#lbImg.gc-zoomed {
    cursor: grab;
}


/* currently dragging */

#lbImg.gc-dragging {
    cursor: grabbing;

    /*
       Removing the transition while dragging makes
       movement follow the mouse immediately.
    */

    transition: none;
}