/**
 * YouTube/Vimeo content facade — poster + play overlay, click-to-load.
 * The play glyph and focus treatment match the in-gallery product video
 * (product-video.css) for a consistent video look across the site.
 */

.hs-video-facade {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin: 0;
	overflow: hidden;
	border-radius: var(--wp--custom--border-radius, 10px);
	background-color: #000;
}

.hs-video-facade__btn {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.hs-video-facade__poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hs-video-facade__icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 48px;
	transform: translate( -50%, -50% );
	pointer-events: none;
	filter: drop-shadow( 0 2px 6px rgba( 0, 0, 0, 0.3 ) );
	transition: transform 0.2s ease;
}

.hs-video-facade__icon-bg {
	fill: #ff0000;
}

.hs-video-facade--vimeo .hs-video-facade__icon-bg {
	fill: #00adef;
}

.hs-video-facade__btn:hover .hs-video-facade__icon,
.hs-video-facade__btn:focus-visible .hs-video-facade__icon {
	transform: translate( -50%, -50% ) scale( 1.08 );
}

.hs-video-facade__btn:focus-visible {
	outline: 3px solid var(--wp--preset--color--secondary, #4FC6F0);
	outline-offset: -3px;
}

.hs-video-facade__iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
