/* The large frame sits in the page flow, under the headline.
   Scrolling down carries the video from the title into this frame. */
.wx-poster {
	position: relative;
	isolation: isolate;
	background: var(--wx-bg);
}

.wx-poster__stage {
	isolation: auto;
	background: transparent;
}

/* The video leaves this slot. The empty box must not stay behind as a black plate. */
.wx-poster .wx-poster__media {
	background: transparent;
}

.wx-poster .wx-poster__media:not(:has(video)) {
	visibility: hidden;
}

@media (min-width: 1024px) {
	.wx-poster > .wx-frame {
		position: relative;
		visibility: visible;
		left: auto;
		top: auto;
		transform: none;
		z-index: 1;
		width: min(1680px, calc(100% - 8rem));
		height: auto;
		aspect-ratio: 16 / 9;
		margin: 1.5rem auto 5rem;
		overflow: visible;
		background: transparent;
	}
}

@media (max-width: 1023px) {
	.wx-poster > .wx-frame { display: none; }
	.wx-poster .wx-poster__media {
		position: relative !important;
		inset: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		transform: none !important;
		margin-left: auto;
		margin-right: auto;
	}
}
