.ytpp-main {
    width: 100%;
    margin: 16px 0;
}
.ytpp-main iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
}

/* Track */
.ytpp-playlist-container::-webkit-scrollbar {
    width: 12px;
    height: 8px;
}
.ytpp-playlist-container::-webkit-scrollbar-track {
    border-radius: 0;
}
.ytpp-playlist-container::-webkit-scrollbar-thumb {
    border-radius: 0;
    background-color: rgba(0, 0, 0, 0.4);
}
.ytpp-playlist-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.ytpp-playlist-container {
    float: none;
    overflow-x: scroll;
    margin: 12px 0;
}

#ytplayer_div2 {
    display: flex;
    flex-wrap: wrap;
}
#ytplayer_div2 a {
    box-sizing: border-box;
    flex-basis: 20%;
    padding: 4px;
}

#ytpl-frame,
#vid_frame {
    border: 0 none;
}

#ytplayer_div2 * {
    white-space: nowrap;
}

#ytplayer_div2 img {
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    margin: 0;

    opacity: 0.75;
    filter: grayscale();
    filter: saturate(0%);
    box-sizing: border-box;
}
#ytplayer_div2 img:hover {
    opacity: 1;
    filter: saturate(100%);
}

#ytplayer_div2 * {
    transition: all 0.2s ease-in-out;
}

#ytplayer_div2 .active img {
    opacity: 1;
    filter: saturate(100%);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

#ytplayer_div2 a:visited {
    opacity: 0.5;
}

#ytpp-title {
    font-size: smaller;
    line-height: 24px;
}

/*
 * YouTube API V3
 */
.yt-api-container {
    width: 100%;
}
.yt-api-video-list {
    margin: 16px 0;
    width: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
}

.yt-api-video-item {
    flex-basis: 25%;
    margin: 0;
    padding: 8px;
    cursor: pointer;
}
@media only screen and (max-width: 1280px) {
    .yt-api-video-item {
        flex-basis: 25%;
    }
}
@media only screen and (max-width: 960px) {
    .yt-api-video-item {
        flex-basis: 33.33%;
    }
}
@media only screen and (max-width: 720px) {
    .yt-api-video-item {
        flex-basis: 50%;
    }
}
@media only screen and (max-width: 480px) {
    .yt-api-video-item {
        flex-basis: 100%;
    }
}

.yt-api-video-thumb img {
    width: 100%;
    position: relative;
}
.yt-api-video-item .yt-api-video-description {
    font-size: 13px;
    line-height: 1.25;
}

/**
 * YouTube Channel Feed
 */
#ytpp-lightbox-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: auto;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 9999;
}
#ytpp-lightbox-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}
#ytpp-lightbox-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#ytpp-lightbox-close-btn {
    appearance: none;
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1;
}
#ytpp-lightbox-close-btn svg {
    width: 48px;
}
.ytpp-feed--wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2em;
}
.ytpp-feed--wrapper > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1.78;
}

@media only screen and (max-width: 720px) {
    .ytpp-feed--wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media only screen and (max-width: 480px) {
    .ytpp-feed--wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
}
