/* Iteration overlay: product screenshot gallery. Avoids a Vite rebuild. */

#spl-showcase.spl-showcase-section {
    padding-top: clamp(3.25rem, 5vw, 4.75rem);
    padding-bottom: clamp(3.25rem, 5vw, 4.75rem);
}

#spl-showcase .spl-showcase-wrap {
    max-width: 920px;
    margin-inline: auto;
}

#spl-showcase .spl-section__header--compact {
    margin-bottom: 1.75rem;
}

#spl-showcase .spl-showcase--product {
    max-width: 850px;
    margin-inline: auto;
}

#spl-showcase .spl-showcase__viewer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

#spl-showcase .spl-showcase--product.is-single .spl-showcase__viewer {
    gap: 0;
}

#spl-showcase .spl-showcase__stage {
    width: 100%;
    max-width: 820px;
    margin-inline: auto;
    position: relative;
}

#spl-showcase .spl-showcase__glow {
    display: none;
}

#spl-showcase .spl-showcase__browser {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(9, 13, 18, 0.28);
    background: #fff;
}

#spl-showcase .spl-showcase__chrome {
    display: flex;
    gap: 7px;
    padding: 9px 12px;
    background: var(--response-dark-2, #11161D);
}

#spl-showcase .spl-showcase__chrome span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

#spl-showcase .spl-showcase__viewport {
    position: relative;
    background: #f3f4f6;
}

#spl-showcase .spl-showcase__slide {
    display: none;
    margin: 0;
}

#spl-showcase .spl-showcase__slide.is-active {
    display: block;
    animation: spl-gallery-fade 0.28s ease;
}

#spl-showcase .spl-showcase__zoom {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

#spl-showcase .spl-showcase__zoom:focus-visible {
    outline: 2px solid var(--response-fire-orange, #E85D04);
    outline-offset: -2px;
}

#spl-showcase .spl-showcase__slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    transform: none;
}

#spl-showcase .spl-showcase__nav {
    position: static;
    transform: none;
    z-index: 2;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.96);
    color: var(--response-text, #171A20);
    box-shadow: 0 4px 14px rgba(9, 13, 18, 0.16);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#spl-showcase .spl-showcase__nav:hover,
#spl-showcase .spl-showcase__nav:focus-visible {
    transform: none;
    border-color: var(--response-fire-orange, #E85D04);
    box-shadow: 0 6px 18px rgba(9, 13, 18, 0.2);
}

#spl-showcase .spl-showcase__meta {
    margin-top: 1.1rem;
    text-align: center;
    min-height: 0;
}

#spl-showcase .spl-showcase__shot-title {
    margin: 0 0 0.35rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

#spl-showcase .spl-showcase__shot-desc {
    margin: 0 auto;
    max-width: 36rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

#spl-showcase .spl-showcase__counter {
    display: inline-block;
    margin-top: 0.55rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.48);
}

#spl-showcase.spl-section--white .spl-showcase__shot-title,
#spl-showcase.spl-section--light .spl-showcase__shot-title {
    color: var(--response-text, #171A20);
}

#spl-showcase.spl-section--white .spl-showcase__shot-desc,
#spl-showcase.spl-section--light .spl-showcase__shot-desc {
    color: var(--response-text-muted, #68707D);
}

#spl-showcase.spl-section--white .spl-showcase__counter,
#spl-showcase.spl-section--light .spl-showcase__counter {
    color: #8a9099;
}

#spl-showcase .spl-showcase__thumbs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    overflow-x: auto;
    padding: 0.15rem 0 0.35rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

#spl-showcase .spl-showcase__thumb {
    flex: 0 0 148px;
    width: 148px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    opacity: 0.88;
    position: relative;
    scroll-snap-align: start;
    transition: border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

#spl-showcase .spl-showcase__thumb img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 92px;
    object-fit: contain;
    background: #f3f4f6;
}

#spl-showcase .spl-showcase__thumb::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: transparent;
}

#spl-showcase .spl-showcase__thumb.is-active {
    opacity: 1;
    border-color: var(--response-fire-orange, #E85D04);
    box-shadow: 0 0 0 1px rgba(232, 93, 4, 0.35);
}

#spl-showcase .spl-showcase__thumb.is-active::after {
    background: var(--response-fire-orange, #E85D04);
}

#spl-showcase .spl-showcase__thumb:hover,
#spl-showcase .spl-showcase__thumb:focus-visible {
    opacity: 1;
    border-color: var(--response-flame-orange, #FF6B00);
    transform: none;
}

#spl-showcase .spl-gallery-lightbox .store-lightbox__image {
    max-width: 95vw;
    max-height: 90vh;
}

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

body.spl-gallery-lightbox-open {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    #spl-showcase .spl-showcase__viewer {
        display: block;
    }

    #spl-showcase .spl-showcase__nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
    }

    #spl-showcase .spl-showcase__nav--prev { left: 0.4rem; }
    #spl-showcase .spl-showcase__nav--next { right: 0.4rem; }
    #spl-showcase .spl-showcase__stage { position: relative; }
    #spl-showcase .spl-showcase__slide img { max-height: 64vw; }
    #spl-showcase .spl-showcase__thumb {
        flex-basis: 132px;
        width: 132px;
    }
}

@media (max-width: 575.98px) {
    #spl-showcase .spl-showcase__thumbs {
        justify-content: flex-start;
        padding-inline: 0.15rem;
    }

    #spl-showcase .spl-showcase__nav--prev { left: 0.2rem; }
    #spl-showcase .spl-showcase__nav--next { right: 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    #spl-showcase .spl-showcase__slide.is-active {
        animation: none;
    }
}
