/*
 * rml-background-video: the poster and the deferred video's fade-in. Everything
 * else (video cover, content and controls layers, play / pause visibility) is
 * Elementor's e-background-video stylesheet, through the root's class.
 */

/* The poster covers the box exactly as the video does (Elementor's
   .e-background-video__media). 0,2,0 beats Elementor's `.elementor img`
   (0,1,1: height auto, radius 0). */
.e-background-video .rml-background-video__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	pointer-events: none;
	z-index: 0;
}

/* Until its first frame plays the deferred video is transparent, so the poster
   shows and nothing flashes black. */
.rml-background-video--deferred .e-background-video__media {
	opacity: 0;
	transition: opacity 0.6s ease;
}

.rml-background-video--deferred .e-background-video__media.is-ready {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.rml-background-video--deferred .e-background-video__media {
		transition: none;
	}
}
