/* Motion Backdrop. The widget stands empty where it is placed; its media plays in .mb-stage, the first child of its
   section or container, below everything else in it. The script sets the --mb-* properties for the screen's width. */

body:not(.elementor-editor-active) .elementor-element.elementor-widget-motion-backdrop {
	display: none;
}

.elementor-element.elementor-widget-motion-backdrop,
.elementor-element.elementor-widget-motion-backdrop:not(:last-child) {
	margin: 0;
	padding: 0;
}

/* In the editor, a badge stands in for the widget so it can be found and selected */
.mb-badge {
	display: inline-flex;
	align-items: center;
	margin: 4px 0;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.72);
	color: #fff;
	font: 500 12px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.mb-host {
	isolation: isolate;
}

.mb-host--positioned {
	position: relative;
}

.mb-stage {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	border-radius: inherit; /* a rounded card clips its backdrop */
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.8s ease;
	mix-blend-mode: var(--mb-blend, normal);
}

.mb-stage.is-ready {
	opacity: var(--mb-opacity, 1);
}

.mb-box {
	position: absolute;
	inset: 0;
	--mb-mask-y: linear-gradient(to bottom, transparent, #000 var(--mb-fade-top, 0%), #000 calc(100% - var(--mb-fade-bottom, 0%)), transparent);
	--mb-mask-x: linear-gradient(to right, transparent, #000 var(--mb-fade-left, 0%), #000 calc(100% - var(--mb-fade-right, 0%)), transparent);
	-webkit-mask-image: var(--mb-mask-y), var(--mb-mask-x);
	-webkit-mask-composite: source-in;
	mask-image: var(--mb-mask-y), var(--mb-mask-x);
	mask-composite: intersect;
}

/* A band: full width at a set shape, so it grows with the screen */
.mb-stage[data-area="band"] .mb-box {
	inset: auto 0;
	aspect-ratio: var(--mb-aspect, 2.4);
}

.mb-stage[data-area="band"][data-anchor="top"] .mb-box {
	top: 0;
}

.mb-stage[data-area="band"][data-anchor="middle"] .mb-box {
	top: 50%;
	transform: translateY(-50%);
}

.mb-stage[data-area="band"][data-anchor="bottom"] .mb-box {
	bottom: 0;
}

/* A panel: full height at a set shape, so it grows with the section's height; its fades follow its own edges */
.mb-stage[data-area="panel"] .mb-box {
	inset: 0 auto;
	aspect-ratio: var(--mb-aspect, 2.4);
}

.mb-stage[data-area="panel"][data-side="left"] .mb-box {
	left: 0;
}

.mb-stage[data-area="panel"][data-side="center"] .mb-box {
	left: 50%;
	transform: translateX(-50%);
}

.mb-stage[data-area="panel"][data-side="right"] .mb-box {
	right: 0;
}

.mb-stage .mb-box > img,
.mb-stage .mb-box > video,
.mb-stage .mb-box > .mb-scene {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: var(--mb-fit, cover);
	object-position: var(--mb-focus-x, 50%) var(--mb-focus-y, 50%);
}

/* Media played on hover fades in over the still */
.mb-stage .mb-box > .mb-live {
	animation: mb-in 0.35s ease both;
}

@keyframes mb-in {
	from {
		opacity: 0;
	}
}
