.yt-loop-wrapper {
    width: 100%;
    height: min(70vh, calc(100vw / (16 / 9)));
    overflow: hidden;
    position: relative;
}

.yt-video-container {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.yt-video-container iframe {
    aspect-ratio: 16 / 9 !important;
    flex:1;
    object-fit: cover; /* This is the magic */
    pointer-events: none;
    border: none;
}

.yt-video-container > .fullscreen-button{
    visibility: hidden;
    border-radius: 999px;
    background-color: rgba(0, 0, 25, 0.3); /* light gray with transparency */
    backdrop-filter: blur(10px) saturate(100%);
    -webkit-backdrop-filter: blur(10px) saturate(100%);
    border: 1px solid rgba(255, 255, 255, 0.1); /* subtle border like iOS */
    position: absolute;
    right: 16px;
    bottom: 16px;
    max-width: 70px;
    max-height: 70px;
    padding: 16px;
    display: flex;
    justify-content: center;
    z-index: 99;
    /*aspect-ratio: 1;*/
    transition: all .5s ease;
}
.yt-video-container:hover > .fullscreen-button{
    visibility: visible;
 }

.fullscreen-button img {
    max-height: 50%;
    max-width: 50%;
}

.fullscreen-button:hover{
    background-color: black;
    backdrop-filter: unset;
}


.overlay-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    animation: fadeOut 3s ease-in-out forwards;
    z-index: 2;
}

@media (max-width: 768px) {
    .fullscreen-button{
        visibility: visible !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }

}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}