/* =====================================================
   Artist Showcase
   ===================================================== */
.ssc-artist-showcase {
    box-sizing: border-box;
    width: 100%;
    padding: 140px 20px 0;
    font-family: 'Figtree', sans-serif;
    color: #2D2420;
}
.ssc-artist-showcase *,
.ssc-artist-showcase *::before,
.ssc-artist-showcase *::after { box-sizing: border-box; }

.ssc-as-inner {
    width: 100%;
    margin: 0 auto;
}

/* Hero ---------------------------------------------------- */
.ssc-as-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1ece6;
}
.ssc-as-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Portraits row (desktop window of 4, slides 1 image at a time) ------ */
.ssc-as-portraits-wrap {
    margin-top: 16px;
    overflow: hidden;       /* desktop hides off-window items */
    width: 100%;
}
.ssc-as-portraits-track {
    display: flex;
    gap: 16px;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}
.ssc-as-portrait {
    flex: 0 0 auto;
    /* width = (100% - 3 gaps of 16px) / 4 */
    width: calc((100% - 48px) / 4);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f1ece6;
}
.ssc-as-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Footer (caption + pagination) --------------------------- */
.ssc-as-footer {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-start;
    gap: 24px;
}
.ssc-as-caption {
    grid-column: 1;
    max-width: 360px;
}
.ssc-as-caption-text {
    margin: 0 0 6px;
    font-family: 'Figtree', sans-serif;
    font-size: clamp(1rem, 1rem + 0vw, 1rem);
    font-weight: 400;
    line-height: 24px;
    color: #2D2420;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ssc-as-caption-text strong {
    font-weight: 700;
}
.ssc-as-link {
    display: block;
    font-family: 'Figtree', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 24px;
    color: #2D2420;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    margin-top: 10px;
}
.ssc-as-link:hover {
    color: #2D2420 !important;
    opacity: 0.75;
}

/* Pagination --------------------------------------------- */
.ssc-as-pagination {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ssc-as-dot {
    width: 10px !important;
    height: 10px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #2D2420 !important;
    opacity: 0.2 !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
}
.ssc-as-dot.is-active { opacity: 1 !important; }
.ssc-as-dot:focus-visible { outline: 2px solid #2D2420; outline-offset: 3px; }

/* =====================================================
   Mobile
   ===================================================== */
@media (max-width: 768px) {
    .ssc-artist-showcase {
        padding: 54px 16px 0;
    }

    .ssc-as-portraits-wrap {
        margin-top: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .ssc-as-portraits-wrap::-webkit-scrollbar { display: none; }

    .ssc-as-portraits-track {
        transition: none;
        transform: none !important;
        gap: 6px;
        padding-right: 16px;
    }
    .ssc-as-portrait {
        /* 2.5 visible (gap 16px). width = (100% - 2.5 gaps) / 2.5 */
        width: calc((100% - 40px) / 2.5);
        scroll-snap-align: start;
    }

    .ssc-as-footer {
        margin-top: 16px;
        grid-template-columns: 1fr;
    }
    .ssc-as-caption {
        grid-column: 1;
        max-width: none;
    }
    .ssc-as-pagination {
        display: none;          /* hidden on mobile per spec */
    }

    /* Mobile pagination styles (kept for ≥10x10 spec if ever shown) */
    .ssc-as-dot {
        width: 4px !important;
        height: 4px !important;
    }
    .ssc-as-pagination { gap: 8px; }
}
