.video-gallery {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.video-gallery .videoohnecookie-thumbnail {
    min-height: unset;
    padding: 0;
}
.video-gallery .videoohnecookie-thumbnail-image {
    position: relative;
    background: radial-gradient(rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.65));
}
.video-gallery .videoohnecookie-thumbnail-image img {
    opacity: 0.5;
}
.video-gallery .videoohnecookie-thumbnail-entry-content {
    position: absolute;
    margin: 0 auto;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}
.video-gallery .videoohnecookie-thumbnail-entry-content h2 {
    font-size: 1.5rem;
}
.video_gallery_video {
    display: none;
}
.video_gallery_video_container {
    flex-basis: 100%;
}

.video_gallery_thumbnails_container {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.video_gallery_thumbnail {
    flex-basis: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}
.video_gallery_thumbnail img {
    width: 132px;
    height: auto;
    object-fit: contain;
}
.video_gallery_thumbnail_text h4 {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 0;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; 
    hyphens: auto;
   -webkit-hyphens: auto;
}
.video_gallery_thumbnail_text p {
    font-size: 0.9rem !important;
    margin-block: 0 !important;

}

/* media queries */
@media only screen and (min-width: 660px) {
    .video_gallery_thumbnail {
        flex-basis: calc(50% - 0.5rem);
    }
    .video-gallery .videoohnecookie-thumbnail-entry-content h2 {
        font-size: var(--wp--preset--font-size--large);
    }
}


@media only screen and (min-width: 990px) {
    .video_gallery_video_container {
        flex-basis: calc(70% - 0.75rem);
    }
    .video_gallery_thumbnails_container {
        flex-basis: calc(30% - 0.75rem);
        flex-direction: column;
        flex-wrap: nowrap;
    }
    .video_gallery_thumbnail {
        flex-basis: unset;
    }
}
