/**
 * ============================================================
 * UNIVERSAL MEDIA CORE — EXTERNAL EMBED
 * ============================================================
 */

.umc-external-embed {
	display: block;
	position: relative;
	z-index: 1;

	width: 100%;
	max-width: 700px;

	aspect-ratio: 850 / 480;

	margin: 0 auto;

	overflow: hidden;

	background: #000;

	line-height: 0;
}


/* Placeholder avant chargement */

.umc-external-placeholder {
	display: block;

	position: absolute;
	inset: 0;

	width: 100%;
	height: 100%;

	background: #000;

	z-index: 1;
}


/* Iframe réelle */

.umc-external-embed iframe {
	display: block;

	position: absolute;
	inset: 0;

	z-index: 2;

	width: 100%;
	height: 100%;

	margin: 0;
	padding: 0;

	border: 0;

	background: #000;
}


/* Empêche l'élément Elementor suivant
   de remonter sur l'embed */

.elementor-widget-shortcode:has(.umc-external-embed) {
	display: block;
	position: relative;
	z-index: 1;

	width: 100%;
}

.elementor-widget-shortcode:has(.umc-external-embed)
+ .elementor-element {
	position: relative;
	clear: both;
}