/* Responsive YouTube Video wrapper.
   aspect-ratio keeps height locked to width automatically, so the player
   resizes correctly on every device/breakpoint without any JS resize code. */

.yt-rv-wrapper {
	position: relative;
	width: 100%;
	max-width: 100%;
	aspect-ratio: var( --yt-rv-aspect, 16 / 9 );
	overflow: hidden;
}

.yt-rv-wrapper iframe,
.yt-rv-wrapper > div[data-yt-rv-player] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Safety fallback for very old browsers without aspect-ratio support (default 16:9). */
@supports not ( aspect-ratio: 16 / 9 ) {
	.yt-rv-wrapper {
		height: 0;
		padding-bottom: 56.25%;
	}
}

.yt-rv-align {
	width: 100%;
}
