/*
 * Placeholder shown IN PLACE OF a Slider Revolution slider until its JavaScript has built it.
 *
 * The module keeps its box (so Slider Revolution can still measure it and start) but its own
 * content is invisible; the placeholder image, a child of the module, is laid over that box.
 * frontend.js removes the data-rsp-wait attribute and the image when the slider is ready.
 */
sr7-module[data-rsp-wait] {
	position: relative;
	overflow: hidden;
	visibility: hidden;

	/*
	 * Freeze the box while the placeholder is shown. Its height comes only from the aspect ratio
	 * printed per slider; Slider Revolution's inline height / min-height and its (large) inner
	 * content must not resize it before the placeholder is removed.
	 */
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	contain: size;
}

sr7-module[data-rsp-wait] > img.rsp-placeholder {
	visibility: visible;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	object-fit: cover;
}

/* The slider fades in over the placeholder's spot. */
sr7-module.rsp-reveal {
	animation: rsp-fade-in 0.3s ease;
}

@keyframes rsp-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Hide the Slider Revolution preloader (spinner). */
sr7-prl {
	display: none !important;
}

/* Hide the loader shown while a slider initialises (inside the slider module). */
sr7-module .preloader_wrap,
sr7-module .preloader_square {
	display: none !important;
}
