/* .top-information {
	display: none;
} */
header#header {
	z-index: 9999;
}
.top-information {
	z-index: 9999999;
}

.video-mask-zoom {
	position: relative;
	width: 100%;
	height: var(--scroll-height, 300vh);
	overflow: hidden;
}

.video-mask-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	will-change: transform, position;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transform: translate3d(0, 0, 0);
}

.video-mask-container.fixed {
	position: fixed;
	z-index: 100;
}

/* Video layer */
.video-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	transform: scale(0.7);
	will-change: transform;
}

.main-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Background image alternative */
.main-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Remove default WordPress video player styles */
.wp-video,
.wp-video-shortcode {
	width: 100% !important;
	height: 100% !important;
	display: block !important;
	background: transparent !important;
}

.mejs-container,
.mejs-overlay {
	display: none !important;
}

/* Mask layer */
.mask-layer {
	position: absolute;
	top: 0%;
	left: 0%;
	width: 100%;
	height: 100%;
	z-index: 2;
	transform: scale(0.7);
	will-change: transform;
}

.mask-layer img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mask-mobile {
	display: none;
}

.mask-desktop {
	display: block;
}

@media (max-width: 768px) {
	.mask-desktop {
		display: none;
	}
	.mask-mobile {
		display: block;
	}
}

/* Final content */
.final-content {
	position: absolute;
	bottom: 30px;
	left: 0;
	width: 100%;
	z-index: 3;
	transition: opacity 0.3s ease;
	text-align: center;
	padding: 20px;
	transition: transform 0.3s ease;
	opacity: 1;
}

.final-content * {
	color: black;
	fill: black;
}

.final-content.last-step * {
	color: white;
	fill: white;
}

.final-content.invisible {
	opacity: 0;
}

.final-link {
	display: block;
	width: 100%;
	text-decoration: underline;
}

.final-image {
	width: auto;
	height: 60px;
	margin-bottom: 10px;
}

.final-text {
	font-size: 18px;
	margin-top: 10px;
	margin-bottom: 10px;
}

.final-text-modal {
	display: none;
}
.final-content.last-step .final-text-modal {
	display: block;
}
.final-content.last-step .final-text-scroll {
	display: none;
}

.video-mask-zoom::after {
	content: '';
	display: block;
	height: var(--final-spacing, 100vh);
}

/* Hardware acceleration for smooth transitions */
.video-mask-zoom * {
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.main-video {
	/* Hide native controls in modern browsers */
	-webkit-media-controls: none;
	-webkit-media-controls-panel: none;
	-webkit-media-controls-play-button: none;
	-webkit-media-controls-overlay-play-button: none;
}

/* Ensure video still works but controls are hidden in Safari */
video::-webkit-media-controls {
	display: none !important;
}

/* Hide controls in older Safari versions */
video::-webkit-media-controls-enclosure {
	display: none !important;
}

.mejs__controls {
	display: none !important;
}

/* ===== Password Overlay ===== */
.vmz-access-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: #fff;
	display: none; /* default hidden; shown via JS if enabled and no cookie */
	overflow: auto;
}
.vmz-access-overlay.is-visible {
	display: block;
}
.vmz-access-inner {
	width: min(640px, 92vw);
	margin: clamp(24px, 0vh, 120px) auto 40px;
	text-align: center;
	padding: 0 16px;
}
.vmz-overlay-image {
	width: 100%;
	height: auto;
	display: none;
}
.vmz-overlay-image-desktop {
	display: block;
}
@media (max-width: 768px) {
	.vmz-overlay-image-desktop {
		display: none;
	}
	.vmz-overlay-image-mobile {
		display: block;
		max-height: 40vh;
		width: auto;
		margin: auto;
		transform-origin: 50% 20%;
		will-change: transform;
		margin-bottom: -7vh;
		margin-top: -4vh;
	}
	/* Avoid scrollbars caused by the zoomed image */
	.vmz-access-inner {
		overflow: hidden;
	}
}
.vmz-overlay-text {
	margin: 18px 0;
	font-size: 14px;
	line-height: 1.5;
	color: #000;
	position: relative;
	z-index: 1;
}
.vmz-overlay-form {
	display: flex;
	grid-template-columns: 1fr auto;
	gap: 12px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
.vmz-overlay-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	outline: none;
	font-size: 14px;
}
.vmz-overlay-button {
	padding: 10px 18px;
	background: #000;
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 14px;
}
.vmz-overlay-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.vmz-overlay-error {
	margin-top: 8px;
	color: #b00020;
	font-size: 13px;
	grid-column: 1 / -1;
	min-height: 1.2em;
}

/* Fade out text/fields during exit */
.vmz-access-overlay.fade-text .vmz-overlay-text,
.vmz-access-overlay.fade-text .vmz-overlay-form {
	opacity: 0;
	transition: opacity 0.4s ease;
}

/* Also fade the overlay background to reveal target image underneath */
.vmz-access-overlay.fade-text {
	transition: background-color 0.3s ease 0.6s;
	background-color: transparent;
}

/* Scroll lock while overlay visible */
html.vmz-overlay-open,
body.vmz-overlay-open {
	overflow: hidden;
	height: 100%;
}

/* Image flight animation uses inline transform from JS */
.vmz-overlay-image.is-animating {
	will-change: transform, opacity;
	transition: transform 0.6s ease, opacity 0.3s ease;
	transform-origin: top left;
	position: fixed;
	z-index: 201;
	opacity: 1;
}

@media (min-width: 767px) {
	/* header#header {
		z-index: 9999;
	}
	.fixed-position .header-inner {
		z-index: 9999;
	} */
	/* header#header .nav-menu {
		opacity: 0;
		transition: opacity 0.3s ease;
	}
	header#header:hover .nav-menu,
	.final-video-zoom header#header .nav-menu {
		opacity: 1;
	}

	.logo.logo-desktop {
		transform: scale(0.8);
		transition: transform 0.3s ease;
	}

	header#header:hover .logo.logo-desktop,
	.final-video-zoom header#header .logo.logo-desktop {
		transform: scale(1);
	} */

	/* .sticky-wrap-header-inner .header-inner {
		position: fixed;
		top: 0px;
		left: 0px;
		width: 100%;
		animation-duration: 0ms !important;
	}
	.fixed-position .header-inner {
		background: transparent !important;
	}

	header#header:hover .fixed-position .header-inner,
	.final-video-zoom header#header .fixed-position .header-inner {
		background: #fff !important;
	}

	ul.header-links {
		display: none;
	} */
}

/* VMZ fullscreen modal */
.vmz-modal {
	display: none;
}
.vmz-modal.is-open {
	display: block;
}
.vmz-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}
.vmz-player-wrap {
	width: 100vw;
	height: 100vh;
}
.vmz-player-wrap .video-js,
.vmz-player-wrap video {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}
.vmz-player-wrap .video-js .vjs-tech {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}
.vmz-player-wrap .video-js .vjs-poster {
	background-size: cover;
	background-position: center;
}
.vmz-close {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 1000000;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	border: 0;
	width: 40px;
	height: 40px;
	border-radius: 20px;
	cursor: pointer;
	font-size: 24px;
	line-height: 40px;
	text-align: center;
}
html.vmz-modal-open,
body.vmz-modal-open {
	overflow: hidden;
}
