/* Video Poster / Click-to-Play
 * Shared by the acf/video-text block, core/video, and core/embed (YouTube/Vimeo).
 * Enqueued globally via hdrx_enqueue_video_poster_assets() in includes/blocks.php.
 */
.video-poster-wrap {
	position: relative;
	cursor: pointer;
	display: block;
	line-height: 0;
	border-radius: 4px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}
.video-poster-wrap > img:first-child {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
}
.video-poster-wrap.has-video-cover::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--video-cover-color, #000000);
	opacity: var(--video-cover-opacity, 0.35);
	z-index: 1;
}
.video-poster-wrap .video-poster-ui {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 1rem;
	pointer-events: none;
}
.video-poster-wrap .video-play-btn {
	width: 80px;
	height: 80px;
	pointer-events: none;
	transition: transform 0.2s ease;
}
.video-poster-wrap .video-poster-text {
	margin: 0;
	line-height: 1.3;
	color: var(--video-cover-text-color, #363330);
	text-align: center;
	font-size: clamp(2.125rem, 4vw, 2.8125rem);
	max-width: 650px;
}
.video-poster-wrap:hover .video-poster-ui .video-play-btn {
	transform: scale(1.1);
}