/* Simple Video Grid Styles */
.simple-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 4px;
}

.video-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 6/16;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;

}
.video-item:hover {
    transform: translateY(-5px);
}

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

.video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
}
@media screen and (min-width: 991px) {
    .mobile-bg-video {
        display: none;
    }
}

/* Media query for tablets and mobile - THIS IS THE UPDATED PART */
@media (max-width: 991px) {
    .rts-banner-area-start {
        position: relative;
        overflow: hidden;
    }
    
    /* Hide the original grid container */
    .col-lg-7 {
        display: none;
    }
    
    /* Make the text column full width */
    .col-lg-5 {
        width: 100%;
        position: relative;
        z-index: 10;
    }
    
    /* Create a new background video element */
    .rts-banner-area-start:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.7);
        z-index: 1;
        backdrop-filter: blur(5px);

    }
    
    /* Position background video */
    .mobile-bg-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }
    
    /* Text container styling */
    .banner-wrapper-one {
        position: relative;
        z-index: 2;
        padding: 40px 20px;
    }
}
