/**
 * Revolution Slider containment — prevents broken hero when RS/CSS fails to load (incognito).
 *
 * @package WP_SEO_Tour_System
 */

.elementor-widget-slider_revolution,
.elementor-widget-slider_revolution .elementor-widget-container {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	position: relative;
	box-sizing: border-box;
}

.elementor-widget-slider_revolution rs-module-wrap {
	max-width: 100% !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	overflow: hidden !important;
}

.elementor-widget-slider_revolution rs-module,
.elementor-widget-slider_revolution rs-slides,
.elementor-widget-slider_revolution rs-slide {
	max-width: 100% !important;
	overflow: hidden !important;
}

.elementor-widget-slider_revolution rs-layer,
.elementor-widget-slider_revolution .rs-layer {
	max-width: 100vw !important;
}

/* Sensible hero height before / if RS JS initializes */
.elementor-widget-slider_revolution rs-module-wrap {
	min-height: clamp(320px, 42vw, 560px);
	max-height: min(85vh, 720px);
}

/* Uninitialized RS can paint oversized ring layers — clip until ready */
.elementor-widget-slider_revolution rs-module-wrap[style*="visibility:hidden"],
.elementor-widget-slider_revolution rs-module-wrap:not([data-rs-initialized]) {
	visibility: visible !important;
}

.elementor-widget-slider_revolution rs-module-wrap rs-layer,
.elementor-widget-slider_revolution rs-module-wrap .rs-layer {
	contain: layout paint;
}

.elementor-widget-slider_revolution rs-module-wrap rs-layer img,
.elementor-widget-slider_revolution rs-module-wrap .rs-layer img {
	max-width: 100% !important;
	height: auto !important;
	object-fit: contain;
}
