* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #231F1D;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Sans-serif;
    overflow-x: hidden;
    color: #111827;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.gallery-layout {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 120px;
    min-height: 360px;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(36px, auto) 1fr;
    align-items: center;
    padding: 72px 16px 12px;
    gap: 12px;
    pointer-events: none;
}

.viewport-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    perspective: 1200px;
    z-index: 10;
}

.card-item {
    position: absolute;
    max-width: min(86%, 720px);
    max-height: 92%;
    width: auto;
    height: auto;
    max-width: 80dvw;
    max-height: 74dvh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgb(0 0 0 / .12), 0 4px 12px rgb(0 0 0 / .05);
    background: #fff;
    padding: 10px;
    will-change: transform, opacity;
    pointer-events: auto;
    border: 1px solid rgb(255 255 255 / .9);
    opacity: 0;
    visibility: hidden;
}

@media (min-width:640px) {
    .card-item {
        padding: 12px;
        border-radius: 20px;
    }
}

.card-item img {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(80dvw - 24px);
    max-height: calc(74dvh - 24px);
    object-fit: contain;
    border-radius: 12px;
    user-select: none;
    -webkit-user-drag: none;
}

#scroll-track {
    width: 100%;
    height: 1800vh;
}

.btn-top-wrapper {
    position: fixed;
    bottom: 56px;
    right: 24px;
    z-index: 50;
}

#btn-top {
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    color: #1f2937;
    padding: 14px;
    border-radius: 9999px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(255 255 255 / .82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgb(255 255 255 / .7);
}

    #btn-top:hover {
        color: #000;
        transform: scale(1.1);
    }

    #btn-top:active {
        transform: scale(.95);
    }

    #btn-top:focus {
        outline: none;
    }

    #btn-top.visible {
        opacity: 1;
        pointer-events: auto;
    }

    #btn-top svg {
        width: 20px;
        height: 20px;
    }

.unsplash-cta-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.92);
    z-index: 40;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .unsplash-cta-wrapper.visible {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        pointer-events: auto;
        width: 80vw;
        text-align: center;
    }

.unsplash-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    background: #111827;
    box-shadow: 0 20px 40px -10px rgb(0 0 0 / .35), 0 8px 16px -8px rgb(0 0 0 / .25);
    border: 1px solid rgb(255 255 255 / .15);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

    .unsplash-cta:hover {
        transform: translateY(-2px);
        background: #000;
        box-shadow: 0 25px 50px -10px rgb(0 0 0 / .45), 0 10px 20px -8px rgb(0 0 0 / .3);
    }

    .unsplash-cta:active {
        transform: translateY(0);
    }

@media (min-width:640px) {
    .unsplash-cta {
        padding: 22px 40px;
        font-size: 1.1rem;
    }
}

.bottom-hud {
    position: fixed;
    bottom: 44px;
    left: 0;
    right: 0;
    z-index: 44;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    pointer-events: none;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgb(17 24 39 / .86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgb(255 255 255 / .22);
    box-shadow: 0 14px 32px rgb(0 0 0 / .32);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

    .scroll-hint span:last-child {
        font-size: 0.75rem;
        line-height: 1;
        animation: scroll-bounce 1.6s ease-in-out infinite;
    }

@keyframes scroll-bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: .6;
    }

    50% {
        transform: translateY(6px);
        opacity: 1;
    }
}

.brand-logo {
    position: fixed;
    top: 16px;
    left: 16px;
    transform: rotate(-6deg);
    z-index: 45;
    display: inline-flex;
    align-items: center;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: 0 8px 20px -4px rgb(0 0 0 / .25);
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

    .brand-logo.hidden {
        opacity: 0;
        pointer-events: none;
        transform: rotate(-6deg) scale(0.92);
    }

    .brand-logo:hover {
        transform: rotate(-6deg) scale(1.04);
        box-shadow: 0 12px 26px -4px rgb(0 0 0 / .32);
    }

    .brand-logo img {
        display: block;
        width: clamp(160px, 18vw, 220px);
        height: auto;
        border-radius: 12px;
    }

.hero-title {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80dvw;
    max-width: 80dvw;
    max-height: 80dvh;
    z-index: 30;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

    .hero-title.hidden {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }

.hero-logo-img {
    width: 100%;
    max-width: min(80dvw, 680px);
    max-height: 70dvh;
    padding: 0;
    border-radius: 20px;
    background: transparent;
    box-shadow: 0 16px 40px rgb(0 0 0 / .35);
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 60;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    background: rgb(255 255 255 / .84);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgb(0 0 0 / .08);
}

    .site-footer a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #6BB3D9;
        font-weight: 600;
        text-decoration: none;
    }

        .site-footer a svg {
            width: 18px;
            height: 18px;
        }

        .site-footer a:hover {
            color: #468FB5;
            text-decoration: underline;
        }

@media (max-width: 640px) {
    .site-footer {
        padding: 8px 12px;
        font-size: 0.85rem;
        gap: 8px;
    }

        .site-footer a svg {
            width: 16px;
            height: 16px;
        }

    .footer-credit {
        display: none;
    }

    .brand-logo {
        top: 20px;
        left: 14px;
    }

    .gallery-pills {
        left: 4px;
        padding: 4px 2px;
    }

    .gallery-pill {
        width: 16px;
        height: 16px;
    }

    .viewport-stage {
        padding-left: 42px;
        padding-right: 0px;
    }

    .hero-title {
        width: 100dvw;
        max-width: 100dvw;
        padding-left: 42px;
        padding-right: 12px;
    }

    .card-item {
        padding: 6px;
    }
}

.gallery-pills {
    position: relative;
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 176px;
    gap: 10px;
    padding: 6px;
    pointer-events: auto;
}

.gallery-pill {
    position: relative;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgb(0 0 0 / .35)) brightness(1.15);
    transition: transform 0.2s ease, filter 0.2s ease;
}

    .gallery-pill::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background-color: var(--gem-color, #D65F00);
        background-image:
            radial-gradient(circle at 32% 28%, rgb(255 255 255 / .85) 0%, rgb(255 255 255 / .25) 28%, transparent 55%),
            linear-gradient(135deg, rgb(255 255 255 / .35) 0%, transparent 50%, rgb(0 0 0 / .32) 100%);
    }

    .gallery-pill:hover {
        transform: translateX(var(--pill-offset, 0px)) scale(1.22);
        filter: drop-shadow(0 3px 6px rgb(0 0 0 / .45)) brightness(1.22);
    }

    .gallery-pill.active {
        position: relative;
        transform: translateX(var(--pill-offset, 0px)) scale(1.12);
        filter: drop-shadow(0 0 6px rgb(255 255 255 / .75)) drop-shadow(0 3px 6px rgb(0 0 0 / .4)) brightness(1.25);
    }

        .gallery-pill.active::after {
            content: '';
            position: absolute;
            top: 6px;
            left: 1px;
            width: 12px;
            height: 12px;
            background: #FFF6E0;
            clip-path: polygon(50% 0%, 54% 46%, 100% 50%, 54% 54%, 50% 100%, 46% 54%, 0% 50%, 46% 46%);
            filter: drop-shadow(0 0 2px rgb(0 0 0 / .85)) drop-shadow(0 0 4px rgb(255 246 224 / .85));
            pointer-events: none;
            will-change: transform, opacity;
            animation: gem-spark 4s ease-in-out infinite;
        }

@keyframes gem-spark {
    0% {
        opacity: 0;
        transform: translate(0px, 8px) scale(0.15) rotate(0deg);
    }
    12% {
        opacity: 0.9;
        transform: translate(1px, 6px) scale(0.35) rotate(15deg);
    }
    30% {
        opacity: 1;
        transform: translate(3px, 1px) scale(0.65) rotate(40deg);
    }
    38% {
        opacity: 1;
        transform: translate(7px, -11px) scale(1.05) rotate(60deg);
    }
    46% {
        opacity: 0;
        transform: translate(9px, -14px) scale(0.1) rotate(80deg);
    }
    100% {
        opacity: 0;
        transform: translate(9px, -14px) scale(0.1) rotate(80deg);
    }
}


.calendar-card {
    pointer-events: auto;
    width: max-content;
    max-width: min(92dvw, 720px);
    padding: 12px 24px;
    border-radius: 14px;
    background: rgb(255 255 255 / .94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(107, 179, 217, 0.45);
    box-shadow: 0 8px 24px rgb(0 0 0 / .24);
    color: #231F20;
    text-align: center;
}

    .calendar-card h3 {
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: #5CA4C9;
        margin-bottom: 6px;
    }

    .calendar-card ul {
        list-style: none;
        font-size: 1rem;
        line-height: 1.45;
    }

    .calendar-card li {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .calendar-pin {
        flex-shrink: 0;
        color: #6BB3D9;
    }

    .calendar-link {
        color: #5CA4C9;
        text-decoration: none;
        font-weight: 500;
    }

        .calendar-link:hover {
            color: #468FB5;
            text-decoration: underline;
        }

/* Tag Bubbles — Light, Airy Logo Sky-Blue Palette */
.gallery-pill.tag-bubble {
    width: 100%;
    height: auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(242, 249, 253, 0.96);
    border: 1px solid rgba(107, 179, 217, 0.38);
    color: #3B7FA3;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    filter: none;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.gallery-pill.tag-bubble::before,
.gallery-pill.tag-bubble::after {
    display: none;
}

.gallery-pill.tag-bubble:hover {
    background: #dff0fa;
    border-color: #6BB3D9;
    color: #2a6382;
    transform: translateX(2px);
    filter: none;
}

.gallery-pill.tag-bubble.active {
    background: #6BB3D9;
    border-color: #6BB3D9;
    color: #fff;
    box-shadow: 0 4px 12px rgba(107, 179, 217, 0.45);
    transform: none;
    filter: none;
}

.gallery-pill.tag-bubble--medium.active {
    background: #4FA8A6;
    border-color: #4FA8A6;
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 168, 166, 0.42);
}

.gallery-pill.tag-bubble--subject.active {
    background: #5CA4C9;
    border-color: #5CA4C9;
    color: #fff;
    box-shadow: 0 4px 12px rgba(92, 164, 201, 0.42);
}

.card-enquire-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.84);
    color: #3B7FA3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    z-index: 5;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.card-enquire-btn:hover {
    background: #6BB3D9;
    color: #fff;
    border-color: #6BB3D9;
    transform: scale(1.1);
}

.gallery-empty-state {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    pointer-events: none;
}

.gallery-empty-state.hidden,
.enquiry-modal.hidden {
    display: none;
}

/* Enquiry Modal */
.enquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.enquiry-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 12, 0.72);
    backdrop-filter: blur(6px);
}

.enquiry-modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #17171d;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 22px;
    color: #f5f5f7;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.enquiry-modal-card h3 {
    margin: 0 0 14px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.enquiry-code-badge {
    font-family: Consolas, monospace;
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(107, 179, 217, 0.2);
    border: 1px solid rgba(107, 179, 217, 0.55);
    color: #9dd4ef;
}

.enquiry-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.enquiry-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.enquiry-field small {
    color: #999;
}

.enquiry-field input,
.enquiry-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 11px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #0f0f14;
    color: #fff;
    font: inherit;
}

.enquiry-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.enquiry-btn-secondary,
.enquiry-btn-primary {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.enquiry-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #eee;
}

.enquiry-btn-primary {
    background: #d65f00;
    color: #fff;
}


/* Floating Tag Bubbles (replaces gem pills) */
.tag-bubble {
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: color-mix(in srgb, var(--bubble-color, #1D4E89) 22%, rgba(20, 20, 26, 0.72));
    color: #fff;
    padding: 0.38rem 0.82rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.tag-bubble:hover {
    transform: translateY(-2px) scale(1.04);
    border-color: rgba(255, 255, 255, 0.55);
}

.tag-bubble.active {
    background: var(--bubble-color, #1D4E89);
    border-color: #fff;
    box-shadow: 0 0 16px color-mix(in srgb, var(--bubble-color, #1D4E89) 70%, transparent);
    font-weight: 600;
}

.card-enquire-btn {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 15, 20, 0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.card-enquire-btn:hover {
    background: rgba(29, 78, 137, 0.92);
    transform: translateX(-50%) translateY(-2px);
}

.gallery-empty-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
}

/* Enquiry Modal */
.enquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.enquiry-modal.hidden {
    display: none;
}

.enquiry-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 14, 0.72);
    backdrop-filter: blur(6px);
}

.enquiry-modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #18181f;
    color: #f4f4f6;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.enquiry-close {
    position: absolute;
    top: 0.8rem;
    right: 0.9rem;
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.enquiry-close:hover {
    color: #fff;
}

.enquiry-code-badge {
    display: inline-block;
    font-family: Consolas, monospace;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    margin-left: 0.35rem;
}

.enquiry-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.85rem;
    font-size: 0.85rem;
}

.enquiry-field small {
    color: #9ca3af;
}

.enquiry-field input,
.enquiry-field textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #101016;
    color: #fff;
    font: inherit;
    box-sizing: border-box;
}

.enquiry-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.enquiry-btn-secondary,
.enquiry-btn-primary {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
}

.enquiry-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}

.enquiry-btn-primary {
    background: #5CA4C9;
    color: #fff;
}

/* Grouped Tag Bubbles — Equal Width, Bright Airy Theme */
.tag-group {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(107, 179, 217, 0.35);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(12px);
}

.tag-group-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #5CA4C9;
    padding-left: 2px;
}

.tag-group-bubbles {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.gallery-pill.tag-bubble--all.active {
    background: #6BB3D9;
    border-color: #6BB3D9;
    color: #fff;
    box-shadow: 0 4px 12px rgba(107, 179, 217, 0.45);
}

/* Creative Progress Trail (Right Edge) */
.gallery-progress {
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 55;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(107, 179, 217, 0.38);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    transition: opacity 0.3s ease;
}

.gallery-progress.hidden {
    opacity: 0;
    pointer-events: none;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(92, 164, 201, 0.32);
    cursor: pointer;
    transition: height 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.progress-dot.seen {
    background: rgba(92, 164, 201, 0.65);
}

.progress-dot.active {
    height: 24px;
    background: #5CA4C9;
    box-shadow: 0 0 10px rgba(107, 179, 217, 0.75);
}

/* Desktop 3-Column Grid (Bigger Images, Zero Vertical Overlap) */
@media (min-width: 900px) {
    .gallery-layout {
        align-items: start;
        padding: 20px 44px 16px 16px;
        gap: 20px;
    }

    .gallery-pills {
        margin-top: 120px;
    }

    .viewport-stage.hero-active {
        opacity: 0;
        pointer-events: none;
    }

    .viewport-stage.grid-active {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
        align-items: start;
        align-content: start;
        pointer-events: auto;
        overflow-y: auto;
        height: 100%;
        padding: 8px 16px 64px 8px;
        scrollbar-width: thin;
        scrollbar-color: rgba(107, 179, 217, 0.45) transparent;
    }

    .viewport-stage.grid-active .card-item {
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        width: 100%;
        max-width: none;
        max-height: none;
        height: auto;
        aspect-ratio: 4 / 3;
        padding: 8px;
        border-radius: 16px;
        overflow: hidden;
        inset: auto;
    }

    .viewport-stage.grid-active .card-item img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: cover;
        display: block;
        border-radius: 10px;
    }
}
