/* ==========================================================================
   RTS Video Carousel - Styles
   ========================================================================== */

/* ---------- Carousel ---------- */
.rts-vc-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
}

.rts-vc-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.rts-vc-slide {
    flex: 0 0 calc(100% / var(--rts-vc-visible, 4));
    box-sizing: border-box;
    padding: 0 8px;
    cursor: pointer;
    position: relative;
}

.rts-vc-slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 9 / 16;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rts-vc-slide:hover img {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ---------- Play icon overlay ---------- */
.rts-vc-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.rts-vc-play-icon svg {
    width: 28px;
    height: 28px;
    margin-left: 3px;
}

.rts-vc-slide:hover .rts-vc-play-icon {
    background: rgba(0, 0, 0, 0.75);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ---------- Navigation buttons ---------- */
.rts-vc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
}

.rts-vc-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.rts-vc-btn svg {
    width: 20px;
    height: 20px;
}

.rts-vc-prev {
    left: 2px;
}

.rts-vc-next {
    right: 2px;
}

/* ---------- Modal ---------- */
.rts-vc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.rts-vc-modal.is-open {
    display: flex;
}

.rts-vc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.rts-vc-modal-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rts-vc-video {
    width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    background: #000;
    outline: none;
}

.rts-vc-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
}

.rts-vc-modal-close:hover {
    background: #fff;
    color: #000;
}

/* ---------- Empty state ---------- */
.rts-vc-empty {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .rts-vc-slide {
        flex: 0 0 calc(100% / var(--rts-vc-visible-tablet, 2));
    }

    .rts-vc-carousel {
        padding: 0 36px;
    }
}

@media (max-width: 575px) {
    .rts-vc-slide {
        flex: 0 0 calc(100% / var(--rts-vc-visible-mobile, 1));
    }

    .rts-vc-carousel {
        padding: 0 30px;
    }

    .rts-vc-modal-content {
        width: 95%;
    }

    .rts-vc-modal-close {
        top: -12px;
        right: -8px;
    }
}
