/**
 * Kubota Europe "Video" WPBakery element wrapper (vc_kbeu_video).
 *
 * Only the outer layout of the element: alignment, optional max width and the
 * responsive box for a YouTube embed. The self-hosted player inside is styled by
 * kbeu-video.css (KubotaEu\Media\Video).
 */

.kbeu-video-element {
	width: 100%;
}

.kbeu-video-element--has-max {
	max-width: var( --kbeu-video-max-width, 100% );
}

/* Alignment of a width-limited block. */
.kbeu-video-element--center {
	margin-left: auto;
	margin-right: auto;
}

.kbeu-video-element--left {
	margin-left: 0;
	margin-right: auto;
}

.kbeu-video-element--right {
	margin-left: auto;
	margin-right: 0;
}

/* Responsive privacy-friendly YouTube embed. */
.kbeu-video-element__youtube {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 20px;
	overflow: hidden;
}

.kbeu-video-element__youtube iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Front-end editor placeholder (no source set, or an uploaded file previewed in
   the WPBakery inline editor where the player script does not run). */
.kbeu-video-element__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	padding: 24px;
	text-align: center;
	color: #6c757d;
	font-family: sans-serif;
	background-size: cover;
	background-position: center;
	border: 1px dashed #adb5bd;
	border-radius: 12px;
}

.kbeu-video-element__placeholder span {
	padding: 8px 14px;
	background: rgba( 255, 255, 255, 0.85 );
	border-radius: 8px;
}
