﻿.video-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    user-select: none;
    outline: none;
}

.carousel-content {
    display: flex;
    align-items: center;
    position: relative;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    font-size: 2rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
}

    .carousel-arrow span {
        display: inline-block;
        line-height: 1;
        vertical-align: middle;
    }

    .carousel-arrow.left {
        left: 10px;
    }

    .carousel-arrow.right {
        right: 20px;
    }

    .carousel-arrow:hover {
        color: dimgray;
    }

.carousel-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.video-multi-container {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.video-wrapper {
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
}

video-js.video-js {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    display: block;
    flex-shrink: 0;
}

.video-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.video-caption {
    margin-top: 4px;
    font-size: 14px;
    color: #7d7d7d;
    text-align: center;
}

.carousel-indicators {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .dot.active {
        background-color: #1E8AE7;
    }

@media (max-width: 768px) {
    .video-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        flex-shrink: 0;
    }

    .video-multi-container {
        gap: 12px;
        padding: 0.5rem;
    }

    .carousel-arrow {
        font-size: 1.5rem;
        padding: 0.25rem;
    }

        .carousel-arrow.left {
            left: 4px;
        }

        .carousel-arrow.right {
            right: 4px;
        }

    .dot {
        height: 10px;
        width: 10px;
        margin: 0 3px;
    }
}
