/* ==================================================

	Emergency alert

	@related stacking_order

================================================== */

.emergency-alert {
	position: fixed;
	inset: 0;
	z-index: var(--z-emergency-alert);

	display: flex;
	align-items: center;
	justify-content: center;

	background-color: var(--black);
}

/* base display beats the [hidden] UA style */
.emergency-alert[hidden] {
	display: none;
}

/* opacity, not display/visibility: those drop it out of hit-testing, so a click landing mid-blink would hit the page behind */
.emergency-alert.is-blinking {
	opacity: 0;
}

.emergency-alert__close {
	position: absolute;
	top: 14px;
	right: 18px;
	z-index: 1;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 44px;
	height: 44px;

	color: var(--white);
	opacity: .65;
	filter: blur(.8px);
}

.emergency-alert__close:focus-visible {
	outline-color: var(--white);
}

.emergency-alert__close:hover {
	opacity: .7;
}

.emergency-alert__close-icon {
	width: 22px;
	height: 22px;

	filter:
		drop-shadow(0 0 3px rgba(255, 255, 255, 0.9))
		drop-shadow(0 0 10px rgba(255, 255, 255, 0.45));
}

.emergency-alert__close:hover .emergency-alert__close-icon,
.emergency-alert__close:focus-visible .emergency-alert__close-icon {
	filter:
		drop-shadow(0 0 4px rgba(255, 255, 255, 1))
		drop-shadow(0 0 14px rgba(255, 255, 255, 0.7));
}

.emergency-alert__tile {
	display: block;

	width:  100%;
	height: 100%;
}

/* fills the viewport, so the site-wide offset ring would sit off-screen */
.emergency-alert__tile:focus-visible {
	outline-color: var(--white);
	outline-offset: -4px;
}

.emergency-alert__video {
	width:  100%;
	height: 100%;

	object-fit: contain;
}

/* -------------------------------------
	=Mobile

	@match alert_clip_ratio - the takeover clip's intrinsic ratio (720x404)
------------------------------------- */

@media ( max-width: 1076px ) {

	.emergency-alert {
		display: block;

		overflow: hidden;
	}

	.emergency-alert__tile,
	.emergency-alert__video {
		height: auto;
	}

	.emergency-alert__video {
		aspect-ratio: 720 / 404;
	}

}
