.youtube-video-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.yt-thumb {
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    height: 235px;
}

.yt-thumb img {
    width: 100%;
    border-radius: 8px;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* POPUP STYLE */
.yt-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.yt-popup-content {
    position: relative;
    width: 80%;
    max-width: 800px;
}

#yt-popup-iframe {
    width: 100%;
    height: 450px;
}

.yt-close {
    position: absolute;
    top: -15px;
    right: -30px;
    cursor: pointer;
    color: #fff;
    font-size: 30px;
}

.youtube-video-gallery a.htmega-video-popup-link{
    color: #fff;
    background: #D9298E;
    font-size: 30px;
    padding: 10px;
    border-radius: 50px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 50px;
    margin: auto;
}


@media only screen and (max-width: 1440px){
    .entry-content .youtube-video-gallery{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 1280px){
    .yt-thumb {
        height: 220px;
    }
}

@media only screen and (max-width: 1024px) {

    .youtube-video-gallery{
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .entry-content .youtube-video-gallery{
        grid-template-columns: repeat(1, 1fr);
    }

    .yt-thumb {
        height: 275px;
    }

}

@media only screen and (max-width: 900px) {

    .yt-thumb {
        height: 205px;
    }

}

@media only screen and (max-width: 767px) {
    .youtube-video-gallery{
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }

    .yt-thumb {
        height: 225px;
    }
}

@media only screen and (max-width: 376px) {

    .yt-thumb {
        height: 200px;
    }
}

@media only screen and (max-width: 321px) {

    .yt-thumb {
        height: 165px;
    }
}