/* Video lightbox popup + embedded YouTube players */

body.video-lightbox-open {
	overflow: hidden;
}

.video-lightbox {
	position: fixed;
	inset: 0;
	z-index: 3000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.video-lightbox[hidden] {
	display: none !important;
}

.video-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 16, 24, 0.82);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.video-lightbox__dialog {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
	margin: 0;
	background: #111;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.video-lightbox__close {
	position: absolute;
	top: 0.35rem;
	right: 0.35rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #2d2433;
	font-size: 1.65rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.video-lightbox__close:hover,
.video-lightbox__close:focus-visible {
	background: #fff;
	transform: scale(1.05);
	outline: none;
}

.video-lightbox__player {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background: #000;
}

.video-lightbox__player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ecs-page .ytplayer__frame {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background: #000;
}

.ecs-page .ytplayer__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media only screen and (max-width: 768px) {
	.video-lightbox {
		padding: 0.75rem;
	}

	.video-lightbox__close {
		top: 0.5rem;
		right: 0.5rem;
	}
}
