.video-slider-container {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
    /* Change this: */
    overflow: visible; /* Allow hovered cards to overflow */
    width: 100%;
    min-height: 750px; /* or your desired height */
}

.video-slider-scroll {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    min-height: 750px; /* Make sure there's enough height */
}

.video-slider {
    display: flex;
    gap: 24px;
    overflow: visible;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    min-height: 750px;
    align-items: center; /* Center cards vertically */
}

.video-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 325px; /* or your preferred width */
    aspect-ratio: 1/2 !important; /* Remove aspect-ratio if using fixed height */
    overflow: hidden;
    cursor: pointer;
    border-radius: 24px; /* Increased border radius */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(.4,2,.6,1);
}

.video-card:hover {
    transform: scale(1.08);
    z-index: 100;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.video-card:hover .video-overlay {
    opacity: 1;
}

.play-button {
    margin-bottom: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.video-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 0 20px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.nav-btn {
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    font-size: 30px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transition: background 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255,255,255,0.5);
}

/* Remove or comment out the .slider-dots and .dot styles if you want */
/*
.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #007cba;
}
*/

.video-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.video-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    background: #181818;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    padding: 32px 24px 24px 24px;
    max-width: 80vw;   /* Cover 80% of the viewport width */
    width: 80vw;       /* Cover 80% of the viewport width */
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 18px;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.close-modal:hover {
    background: rgba(0,0,0,0.6);
}

#modalVideo {
    width: 98vw;         /* Increase video width to 98% of viewport */
    max-width: 98vw;     /* Prevent overflow */
    max-height: 85vh;    /* Increase max height */
    border-radius: 12px;
    background: #000;
    margin-bottom: 18px;
    display: block;
}

#modalTitle {
    color: #fff;
    margin-top: 8px;
    font-size: 22px;
    text-align: center;
    word-break: break-word;
}

@media (max-width: 900px) {
    .video-card {
        flex-basis: 200px;
        width: 200px;
    }
}
@media (max-width: 600px) {
    .modal-content {
        padding: 16px 6px 12px 6px;
        max-width: 98vw;
        width: 98vw;
        max-height: 98vh;
    }
    #modalVideo {
        max-height: 40vh;
        border-radius: 8px;
    }
    #modalTitle {
        font-size: 16px;
    }
    .close-modal {
        top: 4px;
        right: 6px;
        font-size: 26px;
        width: 32px;
        height: 32px;
    }
}

.floating-card {
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transition: none !important;
}

.video-slider-blur-wrapper {
    position: relative;
    width: 100%;
}

.slider-blur {
    position: absolute;
    top: 0;
    width: 48px;
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

.slider-blur-left {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.8) 60%, rgba(255,255,255,0));
}

.slider-blur-right {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.8) 60%, rgba(255,255,255,0));
}