/* Video die pas na een klik laadt (partials/video.php, js/video.js).
   Wordt ALLEEN geladen op pagina's met een video. Werkt in de klassieke en de
   moderne opmaak; de accentkleur komt uit --hm-accent (gezet door de layout). */

.site-video {
	margin: 0 0 30px;
	padding: 0;
}

/* Vlak in 16:9: eerst de afspeelknop, na de klik de speler */
.site-video-play,
.site-video-frame {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 0;
	border-radius: 4px;
	background: #1f2427;
}

.site-video-play {
	background: radial-gradient(circle at 50% 45%, #3a4247 0%, #1f2427 70%);
	color: #fff;
	text-decoration: none;
}

.site-video-play img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

/* Lichte waas over een eigen foto, zodat de knop altijd goed zichtbaar is */
.site-video-play--image:after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(15, 20, 23, .25);
}

.site-video-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin: -38px 0 0 -38px;
	border-radius: 50%;
	background: var(--hm-accent, #378ac4);
	color: var(--hm-on-accent, #fff);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
	transition: transform .2s ease;
}

.site-video-icon svg {
	width: 34px;
	height: 34px;
	margin-left: 4px;
}

.site-video-label {
	position: absolute;
	right: 0;
	bottom: 18px;
	left: 0;
	z-index: 1;
	padding: 0 20px;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

.site-video-play:hover .site-video-icon,
.site-video-play:focus .site-video-icon { transform: scale(1.08); }

.site-video-play:hover img { transform: scale(1.02); }

.site-video-play:focus-visible {
	outline: 3px solid var(--hm-accent, #378ac4);
	outline-offset: 3px;
}

.site-video figcaption {
	margin-top: 10px;
	color: #5f666c;
	font-size: 14px;
	line-height: 1.6;
}

.site-video-caption {
	display: block;
	margin-bottom: 4px;
	color: #22282d;
	font-size: 15px;
}

.site-video-note {
	display: block;
	font-size: 12px;
}

/* Kop boven een video op een pagina */
.page-video-title {
	margin: 0 0 14px;
	color: #22282d;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
	text-transform: none;
}

/* Video-blok op de homepage */
.home-video .site-video,
.hm-video .site-video {
	max-width: 960px;
	margin-right: auto;
	margin-left: auto;
}

.hm-video .hm-heading,
.hm .hm-video .hm-lead {
	max-width: 960px;
	margin-right: auto;
	margin-left: auto;
}

.hm .hm-video .hm-lead { margin-bottom: 30px; }

.home-video .home-video-text {
	max-width: 960px;
	margin: 0 auto 20px;
}

@media only screen and (max-width: 767px) {
	.site-video-icon { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
	.site-video-icon svg { width: 28px; height: 28px; }
	.site-video-label { bottom: 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.site-video-play img, .site-video-icon { transition: none; }
}
