.mxxl-bavw-layers {
	position: relative;
	left: 50%;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	min-height: 420px;
	margin: 0 0 0 -50vw;
	padding: 0;
	background: #000;
	overflow: hidden;
	isolation: isolate;
}

.mxxl-bavw-layers-stage {
	position: absolute;
	inset: 1px;
	background: #000;
	overflow: hidden;
}

.mxxl-bavw-layers-tile {
	--bavw-layer-fade: 3800ms;
	--bavw-layer-opacity: .62;
	--bavw-layer-x: 50%;
	--bavw-layer-y: 50%;
	--bavw-layer-w: 68vw;
	--bavw-layer-tilt: 0deg;
	position: absolute;
	left: var(--bavw-layer-x);
	top: var(--bavw-layer-y);
	width: min(var(--bavw-layer-w), calc(92dvh * var(--bavw-layer-ratio)));
	max-width: 84vw;
	max-height: 92dvh;
	margin: 0;
	padding: 0;
	background: transparent;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -50%) rotate(var(--bavw-layer-tilt)) scale(.985);
	transform-origin: center center;
	transition:
		opacity var(--bavw-layer-fade) cubic-bezier(.4, 0, .2, 1),
		transform var(--bavw-layer-fade) cubic-bezier(.4, 0, .2, 1),
		visibility 0s linear var(--bavw-layer-fade);
	will-change: opacity, transform;
	pointer-events: none;
	/* Feather the full left and right edges uniformly. The video element below
	 * feathers top/bottom separately, so the two masks multiply into a soft
	 * rectangular boundary instead of the old circular/corner-heavy vignette. */
	-webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .14) 2%, rgba(0, 0, 0, .42) 4%, rgba(0, 0, 0, .72) 6%, rgba(0, 0, 0, .94) 8%, #000 10%, #000 90%, rgba(0, 0, 0, .94) 92%, rgba(0, 0, 0, .72) 94%, rgba(0, 0, 0, .42) 96%, rgba(0, 0, 0, .14) 98%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .14) 2%, rgba(0, 0, 0, .42) 4%, rgba(0, 0, 0, .72) 6%, rgba(0, 0, 0, .94) 8%, #000 10%, #000 90%, rgba(0, 0, 0, .94) 92%, rgba(0, 0, 0, .72) 94%, rgba(0, 0, 0, .42) 96%, rgba(0, 0, 0, .14) 98%, transparent 100%);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	filter: drop-shadow(0 0 38px rgba(0, 0, 0, .62));
}

.mxxl-bavw-layers-tile.is-entering,
.mxxl-bavw-layers-tile.is-active,
.mxxl-bavw-layers-tile.is-fading {
	visibility: visible;
	transition:
		opacity var(--bavw-layer-fade) cubic-bezier(.4, 0, .2, 1),
		transform var(--bavw-layer-fade) cubic-bezier(.4, 0, .2, 1),
		visibility 0s linear 0s;
}

.mxxl-bavw-layers-tile.is-entering,
.mxxl-bavw-layers-tile.is-active {
	opacity: var(--bavw-layer-opacity);
	transform: translate(-50%, -50%) rotate(var(--bavw-layer-tilt)) scale(1);
}

.mxxl-bavw-layers-tile.is-fading {
	opacity: 0;
	transform: translate(-50%, -50%) rotate(var(--bavw-layer-tilt)) scale(1.012);
}

.mxxl-bavw-layers-video {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	object-fit: contain;
	object-position: center center;
	border: 0;
	/* Feather the complete top and bottom edges. Combined with the parent
	 * horizontal mask, every side dissolves evenly into the black canvas. */
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .14) 2%, rgba(0, 0, 0, .42) 4%, rgba(0, 0, 0, .72) 6%, rgba(0, 0, 0, .94) 8%, #000 10%, #000 90%, rgba(0, 0, 0, .94) 92%, rgba(0, 0, 0, .72) 94%, rgba(0, 0, 0, .42) 96%, rgba(0, 0, 0, .14) 98%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .14) 2%, rgba(0, 0, 0, .42) 4%, rgba(0, 0, 0, .72) 6%, rgba(0, 0, 0, .94) 8%, #000 10%, #000 90%, rgba(0, 0, 0, .94) 92%, rgba(0, 0, 0, .72) 94%, rgba(0, 0, 0, .42) 96%, rgba(0, 0, 0, .14) 98%, transparent 100%);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}


.mxxl-bavw-layers-background-audio {
	display: none;
}

.mxxl-bavw-layers-enter {
	position: absolute;
	inset: 0;
	z-index: 2147483600;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	opacity: 1;
	visibility: visible;
	transition: opacity 420ms ease, visibility 0s linear 0s;
}

.mxxl-bavw-layers.is-entered .mxxl-bavw-layers-enter {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 420ms ease, visibility 0s linear 420ms;
}

.mxxl-bavw-layers-enter-button {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid rgba(255, 255, 255, .82);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font: inherit;
	font-size: clamp(15px, 1.25vw, 19px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: .01em;
	padding: 15px 24px;
	cursor: pointer;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.mxxl-bavw-layers-enter-button:hover,
.mxxl-bavw-layers-enter-button:focus-visible {
	background: #fff;
	color: #000;
	outline: none;
}

/* Reuse the same unobtrusive controls as the collage/tunnel without requiring
 * those modes' stylesheet on a layers-only page. */
.mxxl-bavw-layers .mxxl-bavw-collage-fullscreen,
.mxxl-bavw-layers .mxxl-bavw-collage-sound {
	position: absolute;
	top: clamp(12px, 1.6vw, 24px);
	z-index: 2147483000;
	display: grid;
	place-items: center;
	width: clamp(40px, 3.4vw, 54px);
	height: clamp(40px, 3.4vw, 54px);
	margin: 0;
	padding: 0;
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .08);
	color: #fff;
	font: inherit;
	line-height: 1;
	cursor: pointer;
	opacity: .18;
	filter: drop-shadow(0 1px 5px rgba(0, 0, 0, .75));
	transition: opacity 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.mxxl-bavw-layers .mxxl-bavw-collage-fullscreen {
	left: clamp(12px, 1.6vw, 24px);
	font-size: clamp(24px, 2.2vw, 33px);
}

.mxxl-bavw-layers .mxxl-bavw-collage-sound {
	right: clamp(12px, 1.6vw, 24px);
	font-size: clamp(23px, 2.1vw, 32px);
	filter: grayscale(1) drop-shadow(0 1px 5px rgba(0, 0, 0, .75));
	opacity: .22;
}

.mxxl-bavw-layers .mxxl-bavw-collage-fullscreen:hover,
.mxxl-bavw-layers .mxxl-bavw-collage-fullscreen:focus-visible,
.mxxl-bavw-layers .mxxl-bavw-collage-sound:hover,
.mxxl-bavw-layers .mxxl-bavw-collage-sound:focus-visible {
	opacity: .72;
	background: rgba(0, 0, 0, .24);
	outline: 1px solid rgba(255, 255, 255, .35);
	outline-offset: 2px;
}

.mxxl-bavw-layers .mxxl-bavw-collage-fullscreen:active,
.mxxl-bavw-layers .mxxl-bavw-collage-sound:active {
	transform: scale(.94);
}

.mxxl-bavw-layers:not(.is-entered) .mxxl-bavw-collage-fullscreen,
.mxxl-bavw-layers:not(.is-entered) .mxxl-bavw-collage-sound {
	opacity: 0;
	pointer-events: none;
}

.mxxl-bavw-layers:fullscreen,
.mxxl-bavw-layers:-webkit-full-screen {
	position: fixed !important;
	inset: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	height: 100dvh !important;
	margin: 0 !important;
	background: #000 !important;
}

@media (max-width: 760px) {
	.mxxl-bavw-layers-tile {
		width: min(var(--bavw-layer-w), 92vw, calc(86dvh * var(--bavw-layer-ratio)));
		max-width: 94vw;
		max-height: 88dvh;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mxxl-bavw-layers-tile {
		--bavw-layer-fade: 1400ms;
	}
}


/* Meta Quest performance profile.
 * Applied at runtime only when Meta Quest Browser is detected. Desktop and
 * ordinary mobile browsers keep the full Layers rendering treatment. */
.mxxl-bavw-layers.is-meta-headset .mxxl-bavw-layers-tile {
	filter: none;
	will-change: opacity;
	contain: layout paint style;
	transition:
		opacity var(--bavw-layer-fade) cubic-bezier(.4, 0, .2, 1),
		visibility 0s linear var(--bavw-layer-fade);
}

.mxxl-bavw-layers.is-meta-headset .mxxl-bavw-layers-tile.is-entering,
.mxxl-bavw-layers.is-meta-headset .mxxl-bavw-layers-tile.is-active,
.mxxl-bavw-layers.is-meta-headset .mxxl-bavw-layers-tile.is-fading {
	transition:
		opacity var(--bavw-layer-fade) cubic-bezier(.4, 0, .2, 1),
		visibility 0s linear 0s;
	transform: translate(-50%, -50%) rotate(var(--bavw-layer-tilt)) scale(1);
}

.mxxl-bavw-layers.is-meta-headset .mxxl-bavw-layers-enter-button {
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}


/* Safari memory profile. WebKit can retain large compositing surfaces for
 * masked/transformed video elements. Keep the random rotation/position, but
 * avoid extra GPU layers and transform animation on Safari only. */
.mxxl-bavw-layers.is-safari-browser .mxxl-bavw-layers-tile {
	filter: none;
	will-change: opacity;
	contain: layout paint style;
	transition:
		opacity var(--bavw-layer-fade) cubic-bezier(.4, 0, .2, 1),
		visibility 0s linear var(--bavw-layer-fade);
}

.mxxl-bavw-layers.is-safari-browser .mxxl-bavw-layers-tile.is-entering,
.mxxl-bavw-layers.is-safari-browser .mxxl-bavw-layers-tile.is-active,
.mxxl-bavw-layers.is-safari-browser .mxxl-bavw-layers-tile.is-fading {
	transition:
		opacity var(--bavw-layer-fade) cubic-bezier(.4, 0, .2, 1),
		visibility 0s linear 0s;
}

.mxxl-bavw-layers.is-safari-browser .mxxl-bavw-layers-tile.is-entering,
.mxxl-bavw-layers.is-safari-browser .mxxl-bavw-layers-tile.is-active {
	transform: translate(-50%, -50%) rotate(var(--bavw-layer-tilt)) scale(1);
}

.mxxl-bavw-layers.is-safari-browser .mxxl-bavw-layers-tile.is-fading {
	transform: translate(-50%, -50%) rotate(var(--bavw-layer-tilt)) scale(1);
}

.mxxl-bavw-layers.is-safari-browser .mxxl-bavw-layers-enter-button {
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}
