/* YouTube Playlist Gallery (basierend auf ns_youtube) */
.stelisabeth-youtube-gallery {
    text-align: center;
}

.yt-gallery-list {
    margin: 20px auto;
    position: relative;
    display: block;
    color: #888;
}

.yt-gallery-allthumbs {
    display: flex;
    flex-wrap: wrap;
}

.yt-gallery-thumb {
    box-sizing: border-box;
    overflow-y: hidden;
    cursor: pointer;
    opacity: 1;
    padding: 0 8px 10px 8px;
}

.yt-gallery-thumb.hover {
    opacity: 0.85;
    transition: opacity ease-out 0.3s;
}

.yt-gallery-img-box {
    width: 100%;
}

.yt-gallery-img {
    height: 0;
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.yt-gallery-img .yt-gallery-playhover {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity ease-out 0.3s;
}

.yt-gallery-thumb.hover .yt-gallery-playhover {
    opacity: 1;
}

.yt-gallery-img .yt-gallery-playhover::after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 26px;
    border-color: transparent transparent transparent #fff;
}

.yt-gallery-title {
    font-size: 80%;
    line-height: 120%;
    padding: 10px;
    text-align: center;
}

/* Spalten */
.yt-cols-1 .yt-gallery-thumb { width: 100%; }
.yt-cols-2 .yt-gallery-thumb { width: 50%; }
.yt-cols-3 .yt-gallery-thumb { width: 33.333%; }
.yt-cols-4 .yt-gallery-thumb { width: 25%; }
.yt-cols-5 .yt-gallery-thumb { width: 20%; }
.yt-cols-6 .yt-gallery-thumb { width: 16.666%; }
.yt-cols-7 .yt-gallery-thumb { width: 14.285%; }
.yt-cols-8 .yt-gallery-thumb { width: 12.5%; }

/* Responsive */
@media (max-width: 991px) {
    .yt-cols-5 .yt-gallery-thumb,
    .yt-cols-6 .yt-gallery-thumb,
    .yt-cols-7 .yt-gallery-thumb,
    .yt-cols-8 .yt-gallery-thumb { width: 25%; }
}

@media (max-width: 767px) {
    .yt-cols-3 .yt-gallery-thumb,
    .yt-cols-4 .yt-gallery-thumb,
    .yt-cols-5 .yt-gallery-thumb,
    .yt-cols-6 .yt-gallery-thumb,
    .yt-cols-7 .yt-gallery-thumb,
    .yt-cols-8 .yt-gallery-thumb { width: 50%; }
}

@media (max-width: 480px) {
    .yt-gallery-allthumbs .yt-gallery-thumb { width: 100%; }
}

/* Video Modal */
.yt-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.yt-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    z-index: 1;
}

.yt-video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
}

.yt-video-modal-close:hover {
    opacity: 0.7;
}

.yt-video-modal-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.yt-video-modal-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
