/*
 * COI JWX In-Article Video (PTECH-11002). Front end only, every rule under
 * .coi-v2, rem units, --coi- tokens only.
 *
 * The wrapper owns the size: a preferred aspect ratio, the dark box that fills
 * the reserved space while the player loads, and overflow clipping so a taller
 * injected player can never grow the box and push the page. No contain,
 * transform or filter here: they would trap a floating player.
 */
.coi-v2 .coi-jwx-video {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin: var(--coi-gap) 0;
	background: var(--coi-text);
}

.coi-v2 .coi-jwx-video--vertical {
	width: min(100%, 20rem);
	aspect-ratio: 9 / 16;
	margin: var(--coi-gap) auto;
}

.coi-v2 .coi-jwx-video__player {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}
