/* Video & Featured Image Block */

.video-featured-image-block {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 24px;
	font-family: 'Bricolage Grotesque', sans-serif;
}

/* Video container */
.video-featured-image-video {
	position: relative;
	width: 416px !important;
	height: 560px !important;
	min-height: 560px !important;
	flex-shrink: 0;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.2s ease;
	border-radius: 20px;
}

/* Suppress hover scale while video is playing — avoids iframe getting a
   new containing block and jumping around. */
.video-featured-image-video.playing {
	transform: none !important;
	cursor: default;
}

.video-featured-image-video:not(.playing):hover {
	transform: scale(1.02);
}

/* Thumbnail */
.video-featured-image-thumbnail {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100% !important;
	height: 100% !important;
	overflow: hidden;
	transition: opacity 0.2s ease;
}

.video-featured-image-video.playing .video-featured-image-thumbnail {
	opacity: 0;
	pointer-events: none;
}

.video-featured-image-thumbnail img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center center;
	display: block;
}

/* Play button overlay */
.video-featured-image-play-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.video-featured-image-video:not(.playing):hover .video-featured-image-play-overlay {
	transform: translate(-50%, -50%) scale(1.1);
}

.video-featured-image-play-overlay svg {
	display: block;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* Inline iframe — hidden until playing */
.video-featured-image-iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 20px;
	display: none;
}

.video-featured-image-video.playing .video-featured-image-iframe {
	display: block;
}

/* Featured image section */
.video-featured-image-image {
	flex-shrink: 0;
	overflow: hidden;
	background-color: #f0f0f0;
}

.video-featured-image-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Responsive ── */
@media (max-width: 1280px) {
	.single-goede-doelen .video-featured-image-block {
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	.single-goede-doelen .video-featured-image-video {
		width: 100% !important;
		height: auto !important;
		min-height: unset !important;
		aspect-ratio: 416 / 560;
		max-width: 416px;
	}

	.single-goede-doelen .video-featured-image-image {
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 416 / 560;
		max-width: 416px;
		margin: 0 auto;
	}
}

@media (max-width: 1024px) {
	.video-featured-image-block {
		gap: 20px;
	}

	.video-featured-image-video {
		width: 350px !important;
		height: 470px !important;
		min-height: 470px !important;
	}

	.video-featured-image-image {
		width: 350px !important;
		height: 470px !important;
	}

	.single-goede-doelen .video-featured-image-video {
		width: 100% !important;
		height: auto !important;
		min-height: unset !important;
		aspect-ratio: 416 / 560;
		max-width: 416px;
	}

	.single-goede-doelen .video-featured-image-image {
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 416 / 560;
		max-width: 416px;
	}
}

@media (max-width: 768px) {
	.video-featured-image-block {
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	.video-featured-image-video {
		width: 100% !important;
		height: auto !important;
		min-height: unset !important;
		aspect-ratio: 416 / 560;
		max-width: 416px;
	}

	.video-featured-image-image {
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 416 / 560;
		max-width: 416px;
		margin: 0 auto;
	}
}

@media (max-width: 480px) {
	.video-featured-image-block {
		gap: 16px;
	}

	.video-featured-image-play-overlay svg {
		width: 60px;
		height: 60px;
	}
}
