/* ==========================================================================
   SAFFRON TABLE — CHROMATIC NIGHT CHAPTER: PINNED HORIZONTAL GALLERY
   ========================================================================== */

.st-showcase-section {
    background-color: var(--bg-obsidian);
    color: var(--cream);
    position: relative;
    overflow: hidden;
    padding: 96px 0;
}

.st-showcase-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 44px;
}

.st-showcase-section .st-eyebrow {
    color: var(--gold);
}

.st-showcase-title {
    font-size: clamp(2.3rem, 4.3vw, 3.7rem);
    color: var(--cream);
    margin-top: 12px;
}

.st-showcase-title em {
    color: var(--gold);
}

.st-showcase-meta {
    display: flex;
    align-items: center;
    gap: 28px;
}

.st-showcase-counter {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--cream);
    line-height: 1;
}

.st-showcase-counter small {
    font-size: 1rem;
    color: var(--cream-muted);
}

.st-showcase-progress {
    width: 140px;
    height: 2px;
    background-color: rgba(250, 246, 240, 0.16);
    position: relative;
    overflow: hidden;
}

.st-showcase-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20%;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    transition: width 0.2s linear;
}

/* Horizontal Track Viewport */
.st-gallery-viewport {
    overflow: hidden;
    width: 100%;
}

.st-gallery-track {
    display: flex;
    gap: 28px;
    padding-left: max(28px, calc((100vw - var(--container)) / 2 + 28px));
    padding-right: 80px;
    will-change: transform;
}

.st-gallery-slide {
    flex: 0 0 540px;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-obsidian-soft);
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.4s ease;
}

.st-gallery-slide:hover {
    border-color: rgba(197, 155, 95, 0.55);
}

.st-gallery-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.st-gallery-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-luxury);
}

.st-gallery-slide:hover .st-gallery-media img {
    transform: scale(1.06);
}

.st-gallery-num {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background-color: rgba(20, 16, 14, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(250, 246, 240, 0.22);
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--gold);
}

.st-gallery-body {
    padding: 28px 30px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 16px;
}

.st-gallery-cap {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.st-gallery-name {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 500;
    color: var(--cream);
    line-height: 1.15;
    margin-top: 6px;
}

.st-gallery-desc {
    font-size: 0.92rem;
    color: var(--cream-muted);
    line-height: 1.68;
}

.st-gallery-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line-light);
    font-size: 0.8rem;
    color: var(--cream-muted);
}

.st-gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.st-gallery-link:hover {
    color: var(--cream);
}

.st-showcase-hint {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-muted);
}

.st-showcase-hint i {
    color: var(--gold);
    margin-right: 8px;
}

/* Tablet & Mobile Natural Touch Scroll */
@media (max-width: 991px) {
    .st-showcase-section {
        padding: 76px 0;
    }

    .st-gallery-viewport {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .st-gallery-viewport::-webkit-scrollbar {
        display: none;
    }

    .st-gallery-track {
        padding-left: 20px;
        padding-right: 20px;
        gap: 18px;
    }

    .st-gallery-slide {
        flex: 0 0 82vw;
        max-width: 440px;
        scroll-snap-align: start;
    }

    .st-showcase-meta {
        display: none;
    }
}

@media (max-width: 600px) {
    .st-gallery-body {
        padding: 20px;
    }

    .st-gallery-name {
        font-size: 1.5rem;
    }

    .st-showcase-hint {
        flex-direction: column;
        align-items: flex-start;
    }
}
