/* Carrusel de vídeos (se carga solo donde hay un .ep-carrusel). */
.ep-familia .ep-carrusel {
	gap: 30px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	cursor: grab;
}

.ep-carrusel::-webkit-scrollbar {
	display: none;
}

.ep-carrusel.is-arrastrando {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.ep-carrusel__video {
	position: relative;
	flex: 0 0 300px;
	aspect-ratio: 300 / 533;
	margin: 0;
	overflow: hidden;
	border-radius: 5px;
	scroll-snap-align: start;
}

.ep-carrusel__video video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Botón de reproducir con la forma de la flor de El Pintor. */
.ep-carrusel__video::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 70px;
	height: 76px;
	margin: auto;
	background: url(../img/play.svg) center / contain no-repeat;
	pointer-events: none;
	transition: opacity 0.2s;
}

.ep-carrusel__video.is-sonando::after {
	opacity: 0;
}

.ep-carrusel__video figcaption {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.ep-carrusel__nav {
	display: flex;
	justify-content: space-between;
	margin: 30px -10px 0;
}

.ep-carrusel__flecha {
	width: 35px;
	height: 35px;
	padding: 0;
	border: 0;
	background: url(../img/flecha.svg) center / auto 100% no-repeat;
	cursor: pointer;
}

.ep-carrusel__flecha--siguiente {
	transform: scaleX(-1);
}

@media (max-width: 767px) {
	.ep-carrusel__video {
		flex-basis: 160px;
	}

	.ep-carrusel__nav {
		margin-inline: 0;
	}

	.ep-carrusel__flecha {
		width: 30px;
		height: 30px;
	}
}

/* Mientras llega la portada (la pone carrusel.js al acercarse), fondo crema en lugar de negro. */
.ep-carrusel__video video {
	background: var(--wp--preset--color--crema);
}
