.video-gallery-container{
    width: 100%;
    padding: 10px 50px 30px 50px;
    display: flex;
    align-items:flex-start;
    justify-content: center;
    
}


.video-thumbnails {
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-gap: 16px;
    
}
.video-thumbnail {
    cursor: pointer;
    position: relative;
   
    height: 216px;
    width: 100%;
    border-radius: 7px;
    overflow: hidden;
}

.video-thumbnail img{
    width: 100%;
    transition: all .3s;
    
}
.video-thumbnail:hover img {
    transform: scale(1.1);
}

.video-thumbnail::after {
    content: "Video ANGRY BIRDS";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3; 
    transition: opacity 0.3s ease;
    color: white;
    font-weight: 700;
    font-size: 1.2em;
    width: 100%;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 0 7px black;
}

.video-thumbnail:hover::after {
    opacity: 1; 
}

.video-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* width: 80%;
    max-width: 800px; */
    height: auto;
    /* background-color: white; */
    
    
    
    
    z-index: 1000;

    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.863);
    justify-content: center;
    align-items: center;

   
}
.video-popup video {
    /* width: 100%;
    height: auto; */
    background-color: white;
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    /* border: 5px solid white; */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}
.close-button {
    position: absolute;
    top: 25px;
    right: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 35px;
    z-index: 1010;
}

@media screen and (max-width: 600px) {
    .video-popup {
        width: 95%;
        max-width: none;
    }
    .video-thumbnail::after{
        opacity: .7;
    }
    
}