/**
 * Self-hosted hero video background (si_uploaded_video_bg on Row/Section).
 * Works with hero-2026 / hero-full-height rows.
 */

.vc_row.si-has-uploaded-video-bg,
.vc_section.si-has-uploaded-video-bg {
	position: relative;
	overflow: hidden;
}

/* Design Options row bg sits behind the video layer — hide to avoid double background */
.vc_row.si-has-uploaded-video-bg.vc_row-has-fill,
.vc_section.si-has-uploaded-video-bg.vc_section-has-fill {
	background-image: none !important;
}

.si-hero-video-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.si-hero-video-bg__poster,
.si-hero-video-bg video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.si-hero-video-bg video {
	display: block;
	z-index: 1;
}

.si-hero-video-bg__poster {
	z-index: 0;
	transition: opacity var(--hero-video-fade-duration) ease-out;
}

.si-hero-video-bg--has-poster video {
	opacity: 0;
	transition: opacity var(--hero-video-fade-duration) ease-in;
}

.si-hero-video-bg--has-poster.is-video-ready video {
	opacity: 1;
}

.si-hero-video-bg--has-poster.is-video-ready .si-hero-video-bg__poster {
	opacity: 0;
}

/* Bottom fade: solid #00014b at base → transparent upward (matches next section bg) */
.si-hero-video-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: var(--hero-bottom-fade-gradient);
}

/* Row content above video; hero-2026 ::before shadow stays at z-index 1 */
.vc_row.si-has-uploaded-video-bg > .wpb_column,
.vc_row.si-has-uploaded-video-bg.vc_row-flex > .wpb_column,
.vc_section.si-has-uploaded-video-bg > .vc_row,
.vc_section.si-has-uploaded-video-bg > .wpb_row {
	position: relative;
	z-index: 2;
}

@media (max-width: 767.98px) {
	.si-hero-video-hide-mobile .si-hero-video-bg video {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.si-hero-video-bg__poster,
	.si-hero-video-bg--has-poster video {
		transition: none;
	}

	.si-hero-video-bg--has-poster.is-video-ready video {
		opacity: 1;
	}

	.si-hero-video-bg--has-poster.is-video-ready .si-hero-video-bg__poster {
		opacity: 0;
	}
}
