.nxt-youtube-element {
    --play-icon-size: 64px;
}

@media (max-width: 768px) {
    .nxt-youtube-element {
        --play-icon-size: 32px;
        aspect-ratio: var(--aspect-ratio-mobile) !important;
    }

    .nxt-youtube-element .video-desktop {
        display: none !important;
    }

    .nxt-youtube-element .video-mobile {
        display: block !important;
    }
}


.nxt-youtube-element {
    margin: 0 !important;
    width: 100%;   
    margin-top: -2px;
    display: flex;
    justify-content: center;
}

.nxt-youtube-element .inner {
    width: 900px;
    height: auto;
    position: relative;
     overflow: hidden;
    aspect-ratio: var(--aspect-ratio-desktop);
}

.nxt-youtube-element .inner iframe {
    width: 100%;
    height: 100%;
}


.nxt-youtube-element .still-image {
    width: 100%;    
    height: auto;
    aspect-ratio: var(--aspect-ratio-desktop);
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    background-image: var(--poster-image-url);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.nxt-youtube-element .still-image img {
    width: var(--play-icon-size);
    height: var(--play-icon-size);    
}