/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 19 2026 | 10:37:25 */
/*
 * Hero parallax.
 * Hero container: .hero_parallax
 *   HTML widget with the <video>: .hero_parallax_media
 *   Content container (heading, button): .hero_parallax_content
 *
 * Speeds are a share of the normal scroll speed: 1 moves with the page, 0 stands still.
 * Keep the media speed lower than the content speed, so the video stays "furthest away".
 */

.hero_parallax .hero_parallax_media {
	--hero_parallax_speed: 0.2;
}

.hero_parallax .hero_parallax_content {
	--hero_parallax_speed: 0.5;
}

.e-con.hero_parallax {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

/* Video layer: covers the whole hero, behind the content. */
.hero_parallax .elementor-widget.hero_parallax_media {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: auto;
	max-width: none;
	margin: 0;
	pointer-events: none;
}

.hero_parallax .hero_parallax_video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Elementor's own transform transition would make the layers trail behind the scroll position. */
.hero_parallax .hero_parallax_media,
.hero_parallax .hero_parallax_content {
	transition: none;
	will-change: transform;
}

/*
 * Browsers with scroll-driven animations (Chrome, Edge, Safari 26+) move the layers themselves, in the same frame
 * as the page scroll, so they never lag behind. Other browsers use the fallback in hero-parallax.js.
 * --hero_parallax_distance (the hero's height) is set by hero-parallax.js.
 */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.e-con.hero_parallax {
			view-timeline-name: --hero_parallax;
			view-timeline-axis: block;
		}

		.hero_parallax .hero_parallax_media,
		.hero_parallax .hero_parallax_content {
			animation: hero_parallax_shift linear both;
			animation-timeline: --hero_parallax;
			/* From the moment the hero starts scrolling out of view until it is completely gone. */
			animation-range: exit 0% exit 100%;
		}
	}
}

@keyframes hero_parallax_shift {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(0, calc(var(--hero_parallax_distance, 100vh) * (1 - var(--hero_parallax_speed))), 0);
	}
}