/* Video Embed block */

.video-embed--inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.video-embed--frame {
	position: relative;
	width: 100%;
	max-width: 1081px;
	aspect-ratio: 1081 / 608;
	background: #000;
	overflow: hidden;
}

/* The signature double frame draws a 4px white outer border + inset ::before.
   Keep media clipped inside it. */
.video-embed--frame > * {
	position: absolute;
	inset: 0;
}

.video-embed--trigger {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: #000;
	cursor: pointer;
}

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

.video-embed--play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: var(--cmcf-secondary);
	color: var(--cmcf-deep);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	line-height: 1;
	transition: transform 0.2s ease, background 0.2s ease;
	box-shadow: var(--cmcf-shadow-arrow);
}

.video-embed--play i,
.video-embed--play svg {
	color: var(--cmcf-deep);
	fill: currentColor;
	margin-left: 4px; /* optical centering of the play triangle */
}

.video-embed--trigger:hover .video-embed--play,
.video-embed--trigger:focus-visible .video-embed--play {
	transform: translate(-50%, -50%) scale(1.06);
	background: var(--cmcf-white);
}

.video-embed--iframe,
.video-embed--video {
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	background: #000;
}

.video-embed--caption {
	font-family: var(--cmcf-font-body);
	font-size: var(--cmcf-fs-body);
	text-align: center;
	margin: 20px 0 0;
	max-width: 1081px;
}

.cmcf-bg-green .video-embed--caption { color: var(--cmcf-white); }

@media (max-width: 860px) {
	.video-embed--play {
		width: 60px;
		height: 60px;
		font-size: 22px;
	}
}
