/* First-visit Vimeo video popup (AL-104). Markup: inc/video-popup.php. */
.video-popup {
	position: fixed;
	inset: 0;
	z-index: 100000; /* one above .main-popup (99999) */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.8);
}

.video-popup[hidden] {
	display: none;
}

.video-popup__dialog {
	position: relative;
	/* Width limited by 1100px, the viewport width, and the 16:9 width that fits the viewport height. */
	width: min(1100px, 100%, calc((100vh - 120px) * 16 / 9));
}

.video-popup__dialog:focus {
	outline: none;
}

.video-popup__frame {
	position: relative;
	padding-top: 56.25%;
	background: #000;
	box-shadow: 0 2px 10px 3px rgba(0, 0, 0, 0.2);
}

.video-popup__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video-popup__close {
	position: absolute;
	top: -46px;
	right: 0;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.video-popup__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

html.video-popup-open,
html.video-popup-open body {
	overflow: hidden;
}
