.cvc-video-carousel {
    --cvc-gap: 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.cvc-video-carousel *,
.cvc-video-carousel *::before,
.cvc-video-carousel *::after {
    box-sizing: border-box;
}

.cvc-swiper {
    width: 100%;
    overflow: hidden;
}

.cvc-slide {
    min-width: 0;
}

.cvc-video-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.cvc-ratio-16-9 { aspect-ratio: 16 / 9; }
.cvc-ratio-4-3 { aspect-ratio: 4 / 3; }
.cvc-ratio-1-1 { aspect-ratio: 1 / 1; }
.cvc-ratio-9-16 { aspect-ratio: 9 / 16; }

.cvc-video,
.cvc-video-frame iframe,
.cvc-video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.cvc-video-caption {
    margin-top: 10px;
    line-height: 1.4;
}

.cvc-video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 180px;
    padding: 20px;
    color: #666;
    background: #f3f3f3;
    text-align: center;
}

.cvc-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.65);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.cvc-arrow:hover,
.cvc-arrow:focus-visible {
    opacity: .9;
}

.cvc-arrow:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.cvc-arrow.swiper-button-disabled {
    opacity: .35;
    cursor: default;
}

.cvc-arrow svg {
    width: 52%;
    height: 52%;
    fill: currentColor;
}

.cvc-prev { left: 12px; }
.cvc-next { right: 12px; }

.cvc-pagination {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
    min-height: 14px;
}

.cvc-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    opacity: 1;
    background: #bdbdbd;
    transition: transform .2s ease, background-color .2s ease;
}

.cvc-pagination .swiper-pagination-bullet-active {
    background: #222;
    transform: scale(1.2);
}

@media (max-width: 767px) {
    .cvc-prev { left: 6px; }
    .cvc-next { right: 6px; }
}

/* Safety fallback: if Swiper cannot initialize during an Elementor live-preview
   repaint, keep the real video slides visible instead of leaving only nav icons. */
.cvc-video-carousel.cvc-swiper-fallback .cvc-swiper {
    overflow: visible;
}

.cvc-video-carousel.cvc-swiper-fallback .swiper-wrapper {
    display: flex !important;
    transform: none !important;
    gap: var(--cvc-gap);
}

.cvc-video-carousel.cvc-swiper-fallback .swiper-slide {
    flex: 1 1 0;
    width: auto !important;
    margin: 0 !important;
}
