/* Carousel: video carousel and responsive arrows */
.videos.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--background-color);
    min-height: 60vh;
    position: relative;
    gap: 0;
}
.video {
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    background: var(--background-color);
    margin: 0 auto;
    max-width: 600px;
    width: calc(100vw - 160px);
    box-sizing: border-box;
}
.video video {
    display: block;
    margin: 0 auto;
    background: var(--background-color);
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
}
.carousel-arrow {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0 24px;
    z-index: 2;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
    outline: none;
}
.carousel-arrow:hover, .carousel-arrow:focus {
    color: #ff3333;
    transform: scale(1.2);
}
.carousel-arrow.left {
    position: fixed;
    left: calc(50% - (min(600px, 100vw - 160px) / 2) - 70px);
    top: 50vh;
    transform: translateY(-50%);
}
.carousel-arrow.right {
    position: fixed;
    right: calc(50% - (min(600px, 100vw - 160px) / 2) - 70px);
    top: 50vh;
    transform: translateY(-50%);
}
@media (max-width: 900px) {
    .video { width: calc(100vw - 120px); }
    .carousel-arrow.left {
        left: calc(50% - (min(600px, 100vw - 120px) / 2) - 50px);
        top: 50vh;
    }
    .carousel-arrow.right {
        right: calc(50% - (min(600px, 100vw - 120px) / 2) - 50px);
        top: 50vh;
    }
}
@media (max-width: 600px) {
    .video { width: calc(100vw - 80px); }
    .carousel-arrow.left { left: 20px; top: 50vh; }
    .carousel-arrow.right { right: 20px; top: 50vh; }
}
.video img { width: 100%; }
