.wvc-video-carousel {
--wvc-gap: 16px;
width: 100%;
max-width: 1170px;
margin: 32px auto;
}
.single-product-video-carousel-heading {
margin: 0 0 12px;
text-align: center;
}
.wvc-carousel-head {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 16px;
margin-bottom: 12px;
}
.wvc-carousel-nav {
display: inline-flex;
align-items: center;
gap: 8px;
}
.wvc-carousel-nav.is-hidden {
display: none;
}
.wvc-nav-btn {
width: 36px;
height: 36px;
border: 1px solid rgba(0, 0, 0, 0.2);
background: #fff;
border-radius: 999px;
cursor: pointer;
}
.wvc-nav-btn:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.wvc-track {
display: flex;
gap: var(--wvc-gap);
overflow-x: auto;
scroll-behavior: smooth;
scroll-snap-type: x mandatory;
padding-bottom: 8px;
-ms-overflow-style: none;
scrollbar-width: none;
}
.wvc-track::-webkit-scrollbar {
display: none;
}
.wvc-slide {
flex: 0 0 calc((100% - (var(--wvc-gap) * 3)) / 4.4);
min-width: 0;
scroll-snap-align: start;
}
@media (min-width: 1025px) {
.wvc-video-carousel.wvc-no-desktop-offset .wvc-slide {
flex-basis: calc((100% - (var(--wvc-gap) * 3)) / 4);
}
}
.wvc-video-carousel .wvc-media {
position: relative;
aspect-ratio: 9 / 16;
overflow: hidden;
border-radius: 12px;
background: #000;
}
.wvc-video-carousel .wvc-media::before {
content: "";
display: block;
padding-top: 177.7778%;
}
.wvc-video-carousel .wvc-thumb,
.wvc-video-carousel .wvc-video {
position: absolute;
inset: 0;
width: 100% !important;
height: 100% !important;
}
.wvc-video-carousel .wvc-thumb {
border: 0;
padding: 0;
cursor: pointer;
background: transparent;
}
.wvc-video-carousel .wvc-thumb img {
display: block;
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
}
.wvc-video-carousel .wvc-play-icon {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 54px;
height: 54px;
border-radius: 999px;
background: rgba(0, 0, 0, 0.62);
}
.wvc-video-carousel .wvc-play-icon::before {
content: "";
position: absolute;
left: 21px;
top: 16px;
width: 0;
height: 0;
border-top: 11px solid transparent;
border-bottom: 11px solid transparent;
border-left: 16px solid #fff;
}
.wvc-video-carousel .wvc-video {
display: none;
object-fit: cover !important;
background: #000;
}
.wvc-slide.is-playing .wvc-video {
display: block;
}
.wvc-slide.is-playing .wvc-thumb {
display: none;
}
@media (max-width: 1024px) {
.wvc-video-carousel {
padding-inline: 16px;
box-sizing: border-box;
}
.wvc-slide {
flex-basis: calc((100% - (var(--wvc-gap) * 2)) / 3.2);
}
}
@media (max-width: 767px) {
.wvc-video-carousel {
--wvc-gap: 12px;
padding-inline: 12px;
box-sizing: border-box;
}
.wvc-slide {
flex-basis: calc((100% - var(--wvc-gap)) / 2.2);
}
}
.wvc-scroll-progress {
height: 4px;
margin-top: 12px;
border-radius: 999px;
overflow: hidden;
background: rgba(0, 0, 0, 0.12);
}
.wvc-scroll-progress.is-hidden {
display: none;
}
.wvc-scroll-progress-bar {
display: block;
width: 0;
height: 100%;
background: #c7172f;
transition: width 0.16s linear;
}