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

.wb-product-gallery-carousel__track {
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    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;
    }
}
