/* Vidéos des fiches biens (tâche Lucilius n° 748, 24/11/2026).
   Les sélecteurs doublés l'emportent sur le « CSS additionnel » de l'admin
   (règles .wp-video en !important). */

.wp-video.welchome-video {
    display: block !important;
    float: none !important;
    clear: both !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto 40px !important;
    background: #000;
    overflow: hidden !important;
}

.wp-video.welchome-video video.wp-video-shortcode {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important; /* le CSS additionnel met 40px sous .wp-video-shortcode */
    aspect-ratio: var(--welchome-ratio, 1.7778);
    object-fit: contain;
    background: #000;
}

/* Vidéo verticale (format réseaux sociaux) : centrée, jamais plus haute que l'écran. */
.wp-video.welchome-video.is-portrait {
    width: min(100%, 420px, calc(85vh * var(--welchome-ratio, 0.5625))) !important;
    width: min(100%, 420px, calc(85svh * var(--welchome-ratio, 0.5625))) !important;
    border-radius: 6px;
}

/* Vidéo horizontale : pleine largeur, mais jamais plus haute que l'écran. */
.wp-video.welchome-video.is-landscape {
    width: min(100%, calc(85vh * var(--welchome-ratio, 1.7778))) !important;
    width: min(100%, calc(85svh * var(--welchome-ratio, 1.7778))) !important;
}

/* Le pseudo-élément ajouté par le « CSS additionnel » n'a plus lieu d'être. */
.wp-video.welchome-video::after {
    content: none !important;
    display: none !important;
}
