/* Masquer la vidéo si elle doit être affichée dans un popup */


/* Style pour la vignette et le bouton play */
.show_in_popup .video-thumbnail-container {
    position: relative;
    cursor: pointer;
}

.show_in_popup .video-thumbnail-container img {
    width: 100%;
    height: auto;
}

.show_in_popup .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(30px, 15%, 80px);
    aspect-ratio: 1 / 1;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>') no-repeat center center;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pour la vidéo pop-up */
.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.video-popup-content {
    position: relative;
    max-width: 80%;
}

.video-popup-content .close-popup {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.video-popup video {
    width: 100%;
    height: auto;
}

.show_in_popup .video-duration-label {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 4px;
    font-family: sans-serif;
}