/* Video widget (blocksy-child) */

/* Flexbox Container: the player has no intrinsic width, so it would collapse
   to 0 inside a Row container without this (same pattern as slideshow.css). */
.e-con > .elementor-widget-bc_video,
.e-con-inner > .elementor-widget-bc_video {
	width: var(--container-widget-width, 100%);
	min-width: 0;
	--flex-grow: var(--container-widget-flex-grow);
}

.bc-video {
	--bc-video-ratio: 16 / 9;
	--bc-video-play-size: 34px;
	--bc-video-play-box: 84px;
	--bc-video-play-color: #ffffff;
	--bc-video-play-color-hover: var(--bc-video-play-color);
	--bc-video-play-bg: rgba(0, 0, 0, 0.55);
	--bc-video-play-bg-hover: #e63946;
	--bc-video-play-radius: 50%;
	width: 100%;
}

.bc-video__frame {
	position: relative;
	aspect-ratio: var(--bc-video-ratio);
	width: 100%;
	overflow: hidden;
	background-color: #000000;
}

.bc-video__frame > iframe,
.bc-video__frame > video,
.bc-video__frame .bc-video__player,
/* oEmbed providers wrap their own iframe (Facebook, TikTok...) */
.bc-video__frame > :is(div, span, blockquote, figure) > iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.bc-video__frame > :is(div, span, blockquote, figure) {
	position: absolute;
	inset: 0;
}

/* Thumbnail / click-to-play ------------------------------------------------ */

.bc-video__poster {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	cursor: pointer;
	appearance: none;
}

.bc-video__poster::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.25);
	transition: opacity 0.3s ease;
}

.bc-video__poster:hover::after,
.bc-video__poster:focus-visible::after {
	opacity: 0.6;
}

.bc-video__thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bc-video__play {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--bc-video-play-box);
	height: var(--bc-video-play-box);
	border-radius: var(--bc-video-play-radius);
	color: var(--bc-video-play-color);
	background-color: var(--bc-video-play-bg);
	font-size: var(--bc-video-play-size);
	line-height: 1;
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.bc-video__play svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.bc-video__play i {
	font-size: inherit;
}

.bc-video__poster:hover .bc-video__play,
.bc-video__poster:focus-visible .bc-video__play {
	color: var(--bc-video-play-color-hover);
	background-color: var(--bc-video-play-bg-hover);
	transform: scale(1.06);
}

.bc-video__poster:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -4px;
}

.bc-video.is-playing .bc-video__poster {
	display: none;
}

/* Caption ------------------------------------------------------------------ */

.bc-video__caption {
	margin-top: 12px;
	text-align: center;
}

/* Editor notice ------------------------------------------------------------ */

.bc-video__notice {
	padding: 20px;
	border: 1px dashed currentColor;
	border-radius: 4px;
	text-align: center;
	opacity: 0.7;
	font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
	.bc-video__play,
	.bc-video__poster::after {
		transition: none;
	}

	.bc-video__poster:hover .bc-video__play {
		transform: none;
	}
}
