/* Video Carousel Widget */

.vcw-wrapper {
    position: relative;
    width: 100%;
}

.vcw-carousel-outer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vcw-swiper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Slide */
.vcw-slide {
    display: flex;
    flex-direction: column;
}

.vcw-slide-cover {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.vcw-slide-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
    transition: background 0.3s ease;
}

.vcw-slide-cover:hover::after {
    background: rgba(0,0,0,0.3);
}

/* Play button */
.vcw-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.vcw-play-btn svg {
    width: 40%;
    height: 40%;
    margin-left: 3px;
}

.vcw-slide-cover:hover .vcw-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0,0,0,0.75);
}

/* Title */
.vcw-slide-title {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

/* Nav buttons */
.vcw-btn-prev,
.vcw-btn-next {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
}

.vcw-btn-prev svg,
.vcw-btn-next svg {
    width: 18px;
    height: 18px;
}

.vcw-btn-prev:hover,
.vcw-btn-next:hover {
    background: #333;
    color: #fff;
}

.vcw-btn-prev.swiper-button-disabled,
.vcw-btn-next.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Pagination */
.vcw-pagination {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.vcw-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    opacity: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.vcw-pagination .swiper-pagination-bullet-active {
    background: #333;
}

/* ========================
   LIGHTBOX
======================== */
.vcw-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vcw-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    cursor: pointer;
}

.vcw-lightbox-inner {
    position: relative;
    z-index: 1;
    width: 90vw;
    max-width: 960px;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vcw-lb-video {
    width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    background: #000;
    outline: none;
}

.vcw-lb-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.vcw-lb-close:hover {
    background: rgba(255,255,255,0.3);
}

.vcw-lb-close svg {
    width: 18px;
    height: 18px;
}
