/* YouTube facade (includes/utilities/youtube-facade.php). Loaded only on pages that render one. */

.c-yt-facade {
	aspect-ratio: 16 / 9;
	background: #000;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	display: block;
	margin: 0;
	overflow: hidden;
	padding: 0;
	position: relative;
	width: 100%;
}

/* Wrappers that already hold the 16:9 box and place the iframe absolutely. */
.o-episode-embed > .c-yt-facade,
.o-about-host__video > .c-yt-facade,
.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper > .c-yt-facade {
	aspect-ratio: auto;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
}

.c-yt-facade__thumb {
	display: block;
	height: 100%;
	left: 0;
	object-fit: cover;
	position: absolute;
	top: 0;
	width: 100%;
}

.c-yt-facade__play {
	height: 48px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
}

.c-yt-facade__play svg {
	display: block;
	height: 100%;
	width: 100%;
}

.c-yt-facade__bg {
	fill: #212121;
	fill-opacity: 0.8;
	transition: fill 0.1s ease-out, fill-opacity 0.1s ease-out;
}

.c-yt-facade:hover .c-yt-facade__bg,
.c-yt-facade:focus-visible .c-yt-facade__bg {
	fill: #f00;
	fill-opacity: 1;
}

.c-yt-facade:focus-visible {
	outline: 3px solid #7ffcc9;
	outline-offset: -3px;
}
