/* YouTube — inline iframe + background (IFrame API) */

.bgl-youtube--inline {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.bgl-youtube--background {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #001a1f;
}

.bgl-youtube-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.bgl-youtube--background.is-playing .bgl-youtube-poster {
	opacity: 0;
}

.bgl-youtube-slot {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.bgl-youtube-slot iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 0;
	pointer-events: none;
}

.bgl-youtube--background .bgl-video-consent {
	border-radius: inherit;
}
