/**
 * «Video en bucle» (efeoncepro/loop). Front end and editor.
 * The poster is the figure until the view script plays the loop on screen. The pause button (WCAG 2.2.2) sits in the
 * lower right corner of the video, 32 px, white on navy at 0.72. AXIS values: ground #001a33 · ink-soft #6d6777 /
 * #cfe4fa · accent = line of the topic, only in the focus ring.
 */

.eo-loop {
	--eo-l-soft: #6d6777;
	--eo-l-acc: var(--eo-line-on-light, #0375db);
}

.dark-scheme .eo-loop {
	--eo-l-soft: #cfe4fa;
	--eo-l-acc: var(--eo-line-on-dark, #0375db);
}

.eo-loop.eo-loop {
	clear: both;
	box-sizing: border-box;
	margin: 40px 0;
	padding: 0;
	font-family: "Poppins", system-ui, sans-serif;
}

.eo-loop__stage {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	background: #001a33;
}

.eo-loop.eo-loop .eo-loop__video {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.eo-loop .eo-loop__toggle {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 26, 51, 0.72);
	color: #ffffff;
	cursor: pointer;
}

.eo-loop .eo-loop__toggle[hidden] {
	display: none;
}

.eo-loop .eo-loop__toggle:focus-visible {
	outline: 3px solid var(--eo-l-acc);
	outline-offset: 2px;
}

.eo-loop .eo-loop__icon {
	fill: currentColor;
}

.eo-loop .eo-loop__icon--pause,
.eo-loop.is-playing .eo-loop__icon--play {
	display: none;
}

.eo-loop.is-playing .eo-loop__icon--pause {
	display: block;
}

.eo-loop.eo-loop .eo-loop__caption {
	margin: 12px 0 0;
	color: var(--eo-l-soft);
	font-family: "Poppins", system-ui, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
}

/* 0.25.1: una imagen vertical no pasa del 82 por ciento del alto de la pantalla y se centra; las horizontales siguen a todo el ancho. */
.wp-block-efeoncepro-loop .eo-loop__stage {
	max-width: min(100%, calc(82svh * var(--eo-w, 16) / var(--eo-h, 9)));
	margin-inline: auto;
}
