/**
 * Full-width homepage video teaser.
 * Media is edge-to-edge; caption + play sit in the 1630 content shell.
 */

/* Break out of section/container max-width (tokens beat a plain .spiro-video-teaser > .container). */
section.section .spiro-video-teaser,
.max-width-1630 .spiro-video-teaser,
.spiro-video-teaser {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: 0;
	padding: 0;
	background: transparent;
	overflow: hidden;
	box-sizing: border-box;
}

section.section .spiro-video-teaser > .container,
.max-width-1630 .spiro-video-teaser > .container,
.spiro-video-teaser > .container {
	width: 100%;
	max-width: none !important;
	margin: 0;
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box;
}

.spiro-video-teaser > .container > .flex_container {
	width: 100%;
}

.spiro-video-teaser .gallery-block {
	width: 100%;
	margin: 0;
	padding: 0;
}

.spiro-video-teaser__flex {
	position: relative;
	width: 100%;
}

.spiro-video-teaser__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #111;
}

.spiro-video-teaser__media video,
.spiro-video-teaser .owl-carousel .owl-item img.spiro-video-teaser__poster,
.spiro-video-teaser .spiro-video-teaser__poster {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover !important;
	object-position: center;
	background: transparent;
}

.spiro-video-teaser .spiro-video-teaser__poster {
	z-index: 1;
	transition: opacity 0.3s ease;
}

.spiro-video-teaser__item.is-playing .spiro-video-teaser__poster {
	opacity: 0;
	pointer-events: none;
}

.spiro-video-teaser__bar {
	position: absolute;
	inset: 0 0 auto;
	z-index: 4;
	width: 100%;
	box-sizing: border-box;
	/* Full-bleed overlay; caption + play sit in the 1630 content shell */
	padding-top: clamp(24px, 3.2vw, 48px);
	padding-bottom: clamp(24px, 3.2vw, 48px);
	padding-left: var(--spiro-content-left, 50px);
	padding-right: var(--spiro-content-right, 50px);
	pointer-events: none;
}

.spiro-video-teaser__bar::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.08) 70%, transparent 100%);
	pointer-events: none;
}

.spiro-video-teaser__caption,
.spiro-video-teaser__toggle {
	position: relative;
	z-index: 1;
	pointer-events: auto;
}

.spiro-video-teaser__toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.92);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.spiro-video-teaser__toggle:hover,
.spiro-video-teaser__toggle:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
	outline: none;
}

.spiro-video-teaser__icon {
	display: block;
}

.spiro-video-teaser__icon--play {
	width: 0;
	height: 0;
	margin-left: 3px;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 11px solid #fff;
}

.spiro-video-teaser__icon--pause {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 14px;
	height: 14px;
}

.spiro-video-teaser__icon--pause span {
	display: block;
	width: 3px;
	height: 14px;
	background: #fff;
}

.spiro-video-teaser__item.is-playing .spiro-video-teaser__icon--play {
	display: none;
}

.spiro-video-teaser__item.is-playing .spiro-video-teaser__icon--pause {
	display: inline-flex;
}

.spiro-video-teaser .gallery .itemVideo .caption,
.spiro-video-teaser__caption {
	position: relative;
	bottom: auto;
	width: auto;
	max-width: min(70%, 760px);
	margin: 0;
	padding: 0;
	color: #fff;
	text-align: left;
	text-shadow: none !important;
}

.spiro-video-teaser__line {
	text-shadow: none !important;
}

.spiro-video-teaser__line {
	display: block;
	font-family: var(--spiro-font-family, "Outfit", Arial, sans-serif);
	font-size: var(--spiro-type-section-lg);
	font-weight: 900;
	line-height: 0.95;
	text-transform: uppercase;
}

.spiro-video-teaser .owl-stage-outer,
.spiro-video-teaser .owl-stage,
.spiro-video-teaser .owl-item {
	width: 100% !important;
}

@media (max-width: 700px) {
	.spiro-video-teaser__bar {
		padding-top: 20px;
		padding-bottom: 20px;
		padding-left: var(--spiro-content-left, 24px);
		padding-right: var(--spiro-content-right, 24px);
	}

	.spiro-video-teaser__line {
		font-size: clamp(28px, 8vw, 40px);
	}

	.spiro-video-teaser__toggle {
		width: 40px;
		height: 40px;
	}
}
