body.gato-local-video-popup-open { overflow: hidden; }
.gato-local-video-popup:not([open]) { display: none; }
.gato-local-video-popup[open] { display: block; }
.gato-local-video-popup {
	box-sizing: border-box;
	position: fixed;
	inset: 0;
	margin: auto;
	padding: 0;
	width: min(1280px, calc(100vw - 32px));
	width: min(1280px, calc(100vw - 32px), calc((100dvh - 136px) * 16 / 9));
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow: auto;
	border: 0;
	border-radius: 12px;
	background: #fff;
	color: #1a1a1a;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}
.gato-local-video-popup::backdrop { background: rgba(0, 0, 0, .76); }
.gato-local-video-popup__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 8px 20px; }
.gato-local-video-popup__header h2 { margin: 0; color: #1a1a1a; font-size: 18px; line-height: 1.4; }
.gato-local-video-popup__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f5f7;
	color: #1a1a1a;
	font: 400 30px/1 Arial, sans-serif;
	cursor: pointer;
}
.gato-local-video-popup__close:hover { color: #0079b5; background: #e9f5fb; }
.gato-local-video-popup__close:focus-visible, .gato-local-video-popup__footer a:focus-visible { outline: 3px solid #0091db; outline-offset: 2px; }
.gato-local-video-popup__media { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.gato-local-video-popup__media iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; border: 0; }
.gato-local-video-popup__footer { padding: 10px 20px; font-size: 14px; line-height: 24px; }
.gato-local-video-popup__footer a { display: inline-flex; min-height: 28px; align-items: center; color: #006da4; text-decoration: underline; }
@media (max-width: 600px) {
	.gato-local-video-popup__header { padding-left: 12px; }
	.gato-local-video-popup__header h2 { font-size: 16px; }
	.gato-local-video-popup__footer { padding: 8px 12px; }
}
