.video-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.video-carousel {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    white-space: nowrap;
    gap: 15px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
}

.video-carousel::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
}

.video-carousel iframe {
    flex: 0 0 auto;
    width: 50%;
    height: 250px;
    order: 3;
}

/* Navigation Button Styles */
.video-prev-btn, .video-next-btn {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
}

.video-prev-btn { left: 10px; }
.video-next-btn { right: 10px; }

.video-prev-btn:hover, .video-next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Fix potential conflicts with other arrows */
.prev-video-btn, .next-video-btn {
    display: none !important;
}

@media only screen and (max-width: 767px) {
    .video-carousel {
        overflow-x: scroll;
        white-space: nowrap;
    }

    .video-prev-btn, .video-next-btn {
        display: block !important;
    }
}