/* Click-to-load facade for embedded videos */

.embed-facade {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: #000;
	box-shadow: none;
	cursor: pointer;
	overflow: hidden;
}

.embed-facade-thumbnail {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: unset !important;
	margin-top: unset !important;
}

.embed-facade-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 48px;
	background-color: rgba(0, 0, 0, 0.7);
	border-radius: 10px;
	transition: background-color 0.25s;
}

.embed-facade-play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-40%, -50%);
	border-style: solid;
	border-width: 10px 0 10px 17px;
	border-color: transparent transparent transparent #fff;
}

.embed-facade:hover .embed-facade-play,
.embed-facade:focus-visible .embed-facade-play {
	background-color: #f00;
}

.embed-facade-iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin-bottom: 0;
	border: 0;
}

.wp-embed-responsive
	.wp-block-embed.wp-has-aspect-ratio
	.wp-block-embed__wrapper {
	position: relative;
}

.wp-embed-responsive .wp-block-embed.wp-has-aspect-ratio .embed-facade,
.wp-embed-responsive .wp-block-embed.wp-has-aspect-ratio .embed-facade-iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
}
