.hm-video {
	width: 100%;
	background: #ffffff;
	padding: clamp(1.6rem, 6vw, 4rem) 0;
}

.hm-video__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 clamp(1.5rem, 4vw, 2rem);
}

.hm-video__player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 2rem;
	background: #000;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.hm-video__poster {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	cursor: pointer;
	transition: opacity 400ms ease;
}

.hm-video__poster::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.25);
	transition: background 300ms ease;
}

.hm-video__poster:hover::before {
	background: rgba(0, 0, 0, 0.35);
}

.hm-video__overlay {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.hm-video__overlay-text {
	color: #ffffff;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2rem, 3.5vw, 3.05rem);
	font-weight: 500;
	text-align: center;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hm-video__play {
	display: grid;
	place-items: center;
	width: 86px;
	height: 64px;
	border: 0;
	border-radius: 0.75rem;
	background: #ffffff;
	cursor: pointer;
	transition: transform 200ms ease, background-color 200ms ease;
}

.hm-video__play:hover,
.hm-video__play:focus-visible {
	background: var(--wp--preset--color--off-white, #f3f0f0);
	transform: scale(1.06);
}

.hm-video__play span {
	display: block;
	width: 0;
	height: 0;
	margin-left: 5px;
	border-left: 22px solid var(--wp--preset--color--bright-red, #d91b2d);
	border-top: 14px solid transparent;
	border-bottom: 14px solid transparent;
}

.hm-video__iframe-wrap {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 400ms ease;
}

.hm-video__iframe-wrap iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.hm-video__player.is-playing .hm-video__poster {
	opacity: 0;
	pointer-events: none;
}

.hm-video__player.is-playing .hm-video__iframe-wrap {
	opacity: 1;
}
