.wb-product-gallery-carousel {
    position: relative;
    display: block;
    overflow: hidden;
}

.wb-product-gallery-carousel__track {
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wb-product-gallery-carousel__track::-webkit-scrollbar {
    display: none;
}

.wb-product-gallery-carousel__slide {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    flex: 0 0 auto;
    width: 100%;
    height: calc(100% / 4);
    min-height: 80px;
    position: relative;
    overflow: hidden;
}

.wb-product-gallery-carousel__slide img,
.wb-product-gallery-carousel__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

.wb-product-gallery-carousel__slide--video {
    background: #000;
}

.wb-product-gallery-carousel__play {
    position: absolute;
    inset: 0;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: #fff;
}

.wb-product-gallery-carousel__btn {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 2;
    padding: 0;
}

.wb-product-gallery-carousel__btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.wb-product-gallery-carousel__btn svg {
    display: block;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .wb-product-gallery-carousel__track {
        scroll-behavior: auto;
    }
}

/* ── Mobile: horizontal scroll-strip of thumbnails + swipeable hero ───────── */
@media (max-width: 767px) {
    .wb-product-gallery-carousel {
        height: auto !important;
        overflow: visible;
    }

    .wb-product-gallery-carousel__track {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        width: 100%;
        height: auto;
    }

    .wb-product-gallery-carousel__slide {
        width: calc((100% - 16px) / 3);
        min-width: 92px;
        height: var(--wb-pgc-slide-height, 130px);
        min-height: 92px;
        scroll-snap-align: start;
    }

    .wb-product-gallery-carousel__btn--down {
        display: none;
    }
}
