/* Hero video overlay on Elementor homepage clone — m-lux.by */

/* Hide Woodmart page chrome (копия главной — не front-page) */
body.mlux-hero-overlay .wd-page-title,
body.mlux-hero-overlay .page-title,
body.mlux-hero-overlay .entry-header,
body.mlux-hero-overlay .wd-breadcrumbs,
body.mlux-hero-overlay .breadcrumbs,
body.mlux-hero-overlay .woocommerce-breadcrumb,
body.mlux-hero-overlay .wd-sidebar,
body.mlux-hero-overlay aside.sidebar-container,
body.mlux-hero-overlay .wd-sticky-sidebar-opener {
	display: none !important;
}

/* Пустой Elementor title-слот — заменяем HTML-оверлеем */
body.mlux-hero-overlay .elementor-element-9441879,
body.mlux-hero-overlay .elementor-element-2981156 .title-wrapper {
	display: none !important;
}

body.mlux-hero-overlay .mlux-hero-banner-host {
	position: relative;
}

/* Высота видео как на главной (кастом CSS только для .elementor-1595) */
@media (min-width: 1025px) {
	body.mlux-hero-overlay .elementor-element-dedd143 .wd-el-video {
		height: 1000px !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	body.mlux-hero-overlay .elementor-element-dedd143 .wd-el-video {
		height: 600px !important;
	}
}

@media (max-width: 576px) {
	body.mlux-hero-overlay .elementor-element-dedd143 .wd-el-video {
		height: 500px !important;
	}
}

/* Пустой absolute-слот титра — не используем; оверлей вешаем на host */
body.mlux-hero-overlay .elementor-element-2981156 {
	display: none !important;
}

/* Если sidebar-grid всё же остался — контент на всю ширину */
body.mlux-hero-overlay .wd-content-layout.wd-grid-g {
	display: block !important;
}

body.mlux-hero-overlay .wd-content-area {
	width: 100% !important;
	max-width: none !important;
}

.mlux-hero-banner__captions {
	position: absolute;
	inset: 0;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	padding: 0 4%;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.mlux-hero-banner__caption {
	margin: 0;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
	color: #fff;
	font-family: inherit;
	font-size: clamp(22px, 6vw, 76px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: 0.02em;
	text-align: center;
	text-transform: uppercase;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.mlux-hero-banner__fit {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
}

.mlux-hero-banner__line {
	display: block;
	max-width: 100%;
	white-space: nowrap;
	text-align: center;
}

.mlux-hero-banner__caption.is-visible {
	opacity: 1;
}

.mlux-hero-banner__caption:empty {
	display: none;
}

@media (max-width: 1024px) {
	.mlux-hero-banner__captions {
		padding: 0 4%;
	}

	.mlux-hero-banner__caption {
		font-size: clamp(20px, 5.5vw, 56px);
	}
}

@media (max-width: 767px) {
	.mlux-hero-banner__captions {
		padding: 0 3.5%;
	}

	.mlux-hero-banner__caption {
		font-size: clamp(18px, 5.8vw, 32px);
		letter-spacing: 0.005em;
	}
}
