/* Safe PageSpeed overrides — preserve layout; reduce TBT/animation cost */

img {
	height: auto;
	max-width: 100%;
}

img[width][height] {
	height: auto;
}

/* --- Animation overhead: keep hover feel via composited transform --- */
[class*="elementor-animation-"] {
	animation: none !important;
	transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.elementor-animation-hang:hover,
.elementor-animation-hang:focus-visible {
	transform: translateY(-6px);
}

.animated,
.animate__animated,
.animate__fadeIn,
.animate__fadeOut,
.owl-animated-out,
.owl-animated-in {
	animation: none !important;
}

.owl-carousel .owl-item {
	transition: opacity 0.25s ease !important;
}

/* Decorative section transitions — shorten to cut main-thread work */
.elementor-section,
.elementor-widget-wrap,
.elementor-column {
	transition-duration: 0.15s !important;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* --- Below-fold paint skipping (footer + late sections) --- */
.space-footer,
.elementor-section.elementor-top-section:nth-of-type(n + 4) {
	content-visibility: auto;
	contain-intrinsic-size: 1px 600px;
}

/* --- YouTube facade --- */
.yt-facade {
	position: relative;
	display: block;
	max-width: 100%;
	margin: 1em auto;
	cursor: pointer;
	background: #000;
	overflow: hidden;
	line-height: 0;
}

.yt-facade img {
	width: 100%;
	height: auto;
	display: block;
}

.yt-facade-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: rgba(255, 0, 0, 0.9);
	color: #fff;
	font-size: 22px;
	line-height: 48px;
	text-align: center;
	cursor: pointer;
}

.yt-facade-play:hover {
	background: #f00;
}

.yt-facade-play:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Cookie notice contrast (PSI) */
#cn-accept-cookie.cn-button,
#cn-more-info.cn-button,
.cn-set-cookie.cn-button {
	background-color: #008f85 !important;
}

.elementor-widget-text-editor a[style*="color: #ffffff"],
.elementor-widget-text-editor a[style*="color:#ffffff"] {
	color: #f5f5f5 !important;
	text-shadow: 0 0 1px rgba(0, 0, 0, 0.6);
}

@font-face {
	font-display: swap !important;
}
