.youtube-block {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.youtube-block img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.youtube-block .youtube-player,
.youtube-block iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-block .hide {
    display: none;
}

.youtube-item {
    width: 100%;
    transition: all .3s;
}

.youtube-item img {
    transition: all .3s;
}

.youtube-item:hover img {
    filter: brightness(1.1);
}

.youtube-item > div {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.youtube-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.youtube-item iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}