/* Teamvideo's (zie mu-plugins/cv-teamvideo.php). */
.cv-team .cv-teamvideo__wrap { position: relative; }
.cv-teamvideo__foto {
	position: absolute; inset: 0; z-index: 3; display: block; width: 100%; height: 100%;
	margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.cv-teamvideo__play {
	position: absolute; right: 6%; bottom: 6%;
	display: flex; align-items: center; justify-content: center;
	width: 25%; max-width: 64px; min-width: 46px; aspect-ratio: 1;
	border-radius: 50%; background: #fba824; color: #000;
	box-shadow: 0 6px 18px rgba(0,0,0,.25), 0 0 0 4px #fff;
	transition: transform .2s ease, background .2s ease;
}
.cv-teamvideo__play svg { margin-left: 3px; }
.cv-teamvideo__play::after {
	content: ""; position: absolute; inset: -4px; border-radius: 50%;
	border: 2px solid #fba824; animation: cv-teamvideo-puls 2.2s ease-out infinite;
}
@keyframes cv-teamvideo-puls { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(1.45); opacity: 0; } }
.cv-teamvideo__foto:hover .cv-teamvideo__play,
.cv-teamvideo__foto:focus-visible .cv-teamvideo__play { transform: scale(1.1); background: #dd452a; color: #fff; }
.cv-team--video .cv-teamvideo__wrap img { transition: transform .35s ease; }
.cv-team--video .cv-teamvideo__wrap:hover img { transform: scale(1.03); }
.cv-teamvideo__foto:focus-visible { outline: 3px solid #2e5ca9; outline-offset: 4px; }

.cv-teamvideo__label {
	display: inline-flex; align-items: center; gap: 7px;
	margin: 12px auto 0; padding: 8px 16px; border: 0; border-radius: 0;
	background: #fba824; color: #000; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2;
	cursor: pointer; transition: background .2s ease, color .2s ease;
}
.cv-teamvideo__label:hover, .cv-teamvideo__label:focus-visible { background: #000; color: #fff; }
.cv-teamvideo__label:focus-visible { outline: 3px solid #2e5ca9; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .cv-teamvideo__play::after { animation: none; } }

/* Venster */
html.cv-teamvideo-open { overflow: hidden; }
.cv-teamvideo-venster {
	position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
	padding: 20px; background: rgba(0,0,0,.88); opacity: 0; transition: opacity .2s ease;
}
.cv-teamvideo-venster[hidden] { display: none; }
.cv-teamvideo-venster.is-open { opacity: 1; }
.cv-teamvideo-venster__inhoud { position: relative; height: min(86vh, 900px); aspect-ratio: 9 / 16; max-width: 100%; }
.cv-teamvideo-venster video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: 15px; }
.cv-teamvideo-venster__sluit {
	position: absolute; top: -14px; right: -14px; z-index: 2;
	width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fba824; color: #000;
	font-size: 28px; line-height: 44px; text-align: center; cursor: pointer; padding: 0;
}
.cv-teamvideo-venster__sluit:hover, .cv-teamvideo-venster__sluit:focus-visible { background: #fff; }
@media (max-width: 600px) {
	.cv-teamvideo-venster { padding: 56px 12px 16px; }
	.cv-teamvideo-venster__inhoud { height: auto; width: 100%; max-height: calc(100vh - 80px); }
	.cv-teamvideo-venster__sluit { top: -50px; right: 0; }
}
