/*
 * Piscinas Aquatec - Vimeo popups in "Proyectos terminados" (Eli Garcia request, 2026-10-14).
 * The embedded iframes have a malformed width/height attribute, so browsers fall back to
 * their default 300x150 box. Size the popup and the frame explicitly at 16:9.
 * The Customizer CSS caps ".mfp-content .sc_popup" at 350px; the selector below is more
 * specific so only popups that hold a video are released from that cap.
 */

.mfp-content .sc_popup:has(.video_frame) {
	width: min(90vw, 1200px, 150vh);
	max-width: none;
	padding: 0;
	background-color: #000;
}
.sc_popup:has(.video_frame) .widget_area,
.sc_popup:has(.video_frame) .widget,
.sc_popup:has(.video_frame) .trx_addons_video_player {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}
.sc_popup .video_embed.video_frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	padding: 0;
}
.sc_popup .video_embed.video_frame iframe {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
}
