/*
 * MCMC's own video lightbox — the open state of Elementor Pro's popups 7152 and 34110,
 * reproduced from their frozen stylesheets and re-measured on the rendered page.
 *
 * ⛔⛔ EVERY NUMBER BELOW IS A MEASUREMENT, NOT A CHOICE, and the two sources are named
 * per rule. The document halves come from the frozen `themes/mcmc/css/post-7152.css`
 * and `post-34110.css` (identical in every rule that matters); the chrome comes from
 * the vendored `themes/mcmc/css/pro/popup.min.css`. Both were then checked against the
 * OPEN popup on staging, 9 Sept 2026, at 1440x900 and 390x900:
 *
 *   overlay          rgba(0, 0, 0, 0.8) - fixed - inset 0 - flex - centre/centre
 *                    - z-index 9999 - pointer-events all
 *   content box      640 x 360 at (400, 270) at 1440; 390 x 219.375 at (0, 340.3) at 390
 *                    - background #fff - border-radius 0
 *                    - box-shadow rgba(0,0,0,.2) 2px 8px 23px 3px - overflow visible
 *   frame            width 640px, max-width 100vw, max-height 100vh, overflow auto,
 *                    padding 0, display flex
 *   player           16:9 - 640x360 at 1440 and 390x219.375 at 390, both EXACT
 *   close control    15 x 15, top 20px, inset-inline-end 20px, z-index 9999,
 *                    opacity 1, pointer-events all, glyph fill rgb(31, 33, 36)
 *
 * ⛔ THE ASPECT RATIO IS WRITTEN 16 / 9 AND NOT 1.77777, WHICH IS WHAT THE POPUP'S OWN
 * CSS SAYS, BECAUSE THE MEASUREMENT DISAGREES WITH THE DECLARATION. `post-7152.css`
 * sets `--video-aspect-ratio:1.77777`, and 390 / 1.77777 = 219.3762 — but the rendered
 * box measured 219.375 at 390 and 360.000 at 640, which is 9/16 exactly. Reproducing
 * the declared constant would move the box by a thousandth of a pixel away from the
 * thing being reproduced.
 *
 * ⚠ NOTHING HERE DEPENDS ON ELEMENTOR. There is no `.dialog-*` selector, no
 * `elementor-*` selector and no custom property from either plugin's stylesheets; the
 * file is self-contained so it survives Elementor Pro's deactivation without a second
 * measurement. That is the owner's ruling of 9 Sept 2026, and it is why the values are
 * copied rather than inherited.
 */

.mcmc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	background-color: rgba(0, 0, 0, .8);
	justify-content: center;
	align-items: center;
	pointer-events: all;
}

.mcmc-lightbox[data-open="1"] {
	display: flex;
}

/* == the popup's `.dialog-widget-content`. */
.mcmc-lightbox__box {
	position: relative;
	width: auto;
	max-width: 100%;
	max-height: 100%;
	overflow: visible;
	background-color: #fff;
	border-radius: 0;
	box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .2);
	pointer-events: all;
}

/* == the popup's `.dialog-message`. */
.mcmc-lightbox__frame {
	display: flex;
	width: 640px;
	max-width: 100vw;
	max-height: 100vh;
	overflow: auto;
	padding: 0;
}

.mcmc-lightbox__frame iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

/* == the popup's `.dialog-close-button`.
 * ⚠ THE SELECTOR IS TWO CLASSES DEEP AND THE RESET IS EXPLICIT, WHICH IS BELT AND
 * BRACES ON TOP OF USING PRO'S OWN ELEMENT. The control is an `<a role="button">` so the
 * site's `button:hover` / `button:focus` chrome cannot reach it at all; these properties
 * are still written out because a stylesheet enqueued AFTER this one — `mcmc-sitewide`
 * prints at head 25 against this file's 15 — would otherwise win any of them on equal
 * specificity, and the failure mode is cosmetic and silent. */
.mcmc-lightbox .mcmc-lightbox__close,
.mcmc-lightbox .mcmc-lightbox__close:link,
.mcmc-lightbox .mcmc-lightbox__close:visited,
.mcmc-lightbox .mcmc-lightbox__close:hover,
.mcmc-lightbox .mcmc-lightbox__close:focus,
.mcmc-lightbox .mcmc-lightbox__close:active {
	position: absolute;
	top: 20px;
	inset-inline-end: 20px;
	z-index: 9999;
	display: flex;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	opacity: 1;
	pointer-events: all;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	color: #1f2124;
	text-decoration: none;
	border-radius: 0;
	box-shadow: none;
	background-color: transparent;
	-webkit-appearance: none;
	appearance: none;
}

.mcmc-lightbox .mcmc-lightbox__close svg {
	width: 1em;
	height: 1em;
	fill: #1f2124;
}

/* ⛔⛔ THE SITE'S OWN FOCUS INDICATOR, PUT BACK — AND IT IS 136 OF THE 183 PIXELS
 * SEAT PRO-B4 ATTRIBUTED TO THE CLOSE GLYPH.
 *
 * Measured 9 Sept 2026 by SEAT PRO-B5, decomposing that band pixel by pixel against
 * PRO-B4's own kept step-0 capture of Elementor Pro's popup:
 *
 *   183 px  =  136 px  a 2 px pure-white ring immediately outside the 15x15 control,
 *                      with a black outline beyond it — present on 9 of 9 of Pro's
 *                      open rows, at 1440 and at 390, on HOME and on a player page,
 *                      ring-band mean EXACTLY 255.0 every time
 *           +   47 px  the glyph, which is now ZERO: with Elementor's own path
 *                      inlined, the 15x15 interior is identical value for value.
 *
 * ⛔ THE RING IS NOT PRO'S AND IT IS NOT A BROWSER DEFAULT. It is
 * `hello-elementor/assets/css/reset.css` — `:focus-visible { box-shadow: 0 0 0 4px
 * #fff; outline: 2px solid #000; outline-offset: 2px }`, an UNSCOPED rule that
 * reaches any focusable element on the site. Pro's close control took it; ours did
 * not, because the block above sets `box-shadow: none` on `:focus` at a higher
 * specificity (0,2,1 against 0,1,0) and silently removed the white half.
 *
 * ⚠ SO THE SUPPRESSION WAS COLLATERAL, NOT A CHOICE. PRO-B4 wrote those properties
 * to stop `mcmc-sitewide` — which prints ten stylesheets later — winning a tie on
 * the control's chrome, and that reason is still good for `background`, `border` and
 * `border-radius`. It was never a reason to remove the page's only visible focus
 * indicator from a control that TAKES FOCUS THE MOMENT IT OPENS.
 *
 * ⛔ KEYED ON `:focus` AND NOT `:focus-visible`, WHICH IS THE MEASUREMENT AND NOT A
 * PREFERENCE. Pro's ring is present on all nine open rows, every one of them driven
 * by a real mouse click on the trigger — so whatever Chrome's `:focus-visible`
 * heuristic granted Pro's control, reproducing the OBSERVED behaviour means drawing
 * it on every open. `:focus-visible` here would depend on a heuristic this seat can
 * bound but has not proved, and would leave the ring absent on exactly the route the
 * evidence covers.
 *
 * The three declarations are copied from that reset stylesheet verbatim. */
.mcmc-lightbox .mcmc-lightbox__close:focus {
	box-shadow: 0 0 0 4px #fff;
	outline: 2px solid #000;
	outline-offset: 2px;
}
