/**
 * Spiro home hero — Swiper gallery type (CategType 4).
 * Fixed hold layer (image + caption) with incoming slides wiping over.
 */

.spiro-hero-swiper-wrap.is-dragging,
.spiro-hero-swiper.is-dragging {
	cursor: grabbing;
	touch-action: none;
}

.spiro-hero-swiper-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
}

/* CMS row sectionClass "swiss_quality" must not inherit badge inline-flex layout */
section.section > .swiss_quality:has(.spiro-hero-swiper-wrap) {
	display: block;
	width: 100%;
	white-space: normal;
	pointer-events: auto;
}

section.section > .swiss_quality:has(.spiro-hero-swiper-wrap) > .flex_container {
	width: 100%;
}

/* Fixed underlay: current slide image + caption stay put during transitions */
.spiro-hero-swiper__hold {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	will-change: transform;
}

.spiro-hero-swiper__hold-inner {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.spiro-hero-swiper__hold-link {
	pointer-events: auto;
}

/* Incoming slide: fixed in place, clip reveals right → left (strip on right grows leftward) */
.spiro-hero-swiper__reveal {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	visibility: hidden;
}

.spiro-hero-swiper__reveal.is-active {
	visibility: visible;
}

.spiro-hero-swiper__reveal-inner {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	clip-path: inset(0 0 0 100%);
	overflow: hidden;
}

.spiro-hero-swiper__reveal-inner .spiro-hero-swiper__video {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Suppress Swiper horizontal slide — only the clip reveal is visible */
.spiro-hero-swiper.is-clip-reveal .swiper-wrapper {
	visibility: hidden !important;
	transform: translate3d(0, 0, 0) !important;
	transition: none !important;
}

.spiro-hero-swiper.is-clip-reveal .slide-inner,
.spiro-hero-swiper.is-clip-reveal .spiro-hero-swiper__video {
	visibility: hidden !important;
}

.spiro-hero-swiper,
.spiro-hero-swiper.swiperHome {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100svh;
	height: calc(var(--spiro-vh, 1svh) * 100);
	min-height: 520px;
	max-height: none;
	overflow: hidden;
	background: transparent;
	touch-action: pan-y;
}

.spiro-hero-swiper .swiper-slide {
	overflow: hidden;
	position: relative;
	z-index: 1;
}

.spiro-hero-swiper.is-sliding .swiper-slide-active {
	z-index: 3;
}

.spiro-hero-swiper__slide-inner,
.spiro-hero-swiper .slide-inner {
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	z-index: 1;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 1;
	visibility: hidden;
	transition: none;
}

/*
 * PDF 48 — every 2nd slide: 4% black multiply overlay (does not affect wipe clip).
 * Applied to slide inners + hold/reveal copies via .spiro-hero-swiper__tonality.
 */
.spiro-hero-swiper .slide-inner.spiro-hero-swiper__tonality::after,
.spiro-hero-swiper__hold-inner.spiro-hero-swiper__tonality::after,
.spiro-hero-swiper__reveal-inner.spiro-hero-swiper__tonality::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	background: rgba(0, 0, 0, 0.04);
	mix-blend-mode: multiply;
	pointer-events: none;
}

/* Incoming slide is .swiper-slide-active once the transition commits (autoplay / click) */
.spiro-hero-swiper.is-sliding[data-spiro-committed="1"] .swiper-slide-active .slide-inner,
.spiro-hero-swiper.is-sliding[data-spiro-committed="1"] .swiper-slide-active .spiro-hero-swiper__video {
	visibility: visible;
}

/* During touch drag, before the index flips, reveal the next/prev slide edge */
.spiro-hero-swiper.is-sliding:not([data-spiro-committed="1"])[data-spiro-dir="next"] .swiper-slide-next .slide-inner,
.spiro-hero-swiper.is-sliding:not([data-spiro-committed="1"])[data-spiro-dir="next"] .swiper-slide-next .spiro-hero-swiper__video,
.spiro-hero-swiper.is-sliding:not([data-spiro-committed="1"])[data-spiro-dir="prev"] .swiper-slide-prev .slide-inner,
.spiro-hero-swiper.is-sliding:not([data-spiro-committed="1"])[data-spiro-dir="prev"] .swiper-slide-prev .spiro-hero-swiper__video {
	visibility: visible;
}

.spiro-hero-swiper__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 2;
	opacity: 1;
	visibility: hidden;
	transition: none;
}

/* Source captions live in slides for data sync; not shown in the swiper layer */
.spiro-hero-swiper .swiper-slide .spiro-hero-swiper__caption {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Hold + reveal captions share layout; reveal caption is clipped with the wipe */
.spiro-hero-swiper__hold-caption,
.spiro-hero-swiper__reveal-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	text-align: left;
	padding-left: var(--spiro-content-left, var(--spiro-gutter, 50px));
	padding-right: var(--spiro-content-right, var(--spiro-gutter, 50px));
	padding-bottom: 95px;
	box-sizing: border-box;
	pointer-events: none;
}

.spiro-hero-swiper__hold-caption .spiro-hero-swiper__supratitle,
.spiro-hero-swiper__hold-caption .spiro-hero-swiper__title,
.spiro-hero-swiper__hold-caption .spiro-hero-swiper__text,
.spiro-hero-swiper__reveal-caption .spiro-hero-swiper__supratitle,
.spiro-hero-swiper__reveal-caption .spiro-hero-swiper__title,
.spiro-hero-swiper__reveal-caption .spiro-hero-swiper__text {
	width: 100%;
	max-width: var(--spiro-content-max, 1630px);
}

.spiro-hero-swiper__caption .spiro-hero-swiper__supratitle,
.spiro-hero-swiper__caption .spiro-hero-swiper__title,
.spiro-hero-swiper__caption .spiro-hero-swiper__text {
	opacity: 0;
	backface-visibility: hidden;
}

.spiro-hero-swiper__caption .spiro-hero-swiper__supratitle.is-in-view,
.spiro-hero-swiper__caption .spiro-hero-swiper__title.is-in-view,
.spiro-hero-swiper__caption .spiro-hero-swiper__text.is-in-view {
	animation: spiro-hero-fade-in-right 2s both;
	backface-visibility: hidden;
	opacity: 1;
}

/* Follow-up slides: faster animation, starts at wipe begin inside clipped reveal */
.spiro-hero-swiper__caption--follow-up .spiro-hero-swiper__supratitle.is-in-view,
.spiro-hero-swiper__caption--follow-up .spiro-hero-swiper__title.is-in-view,
.spiro-hero-swiper__caption--follow-up .spiro-hero-swiper__text.is-in-view {
	animation-duration: 1s;
}

/* Hold caption after wipe: keep final state, do not re-run entrance animation */
.spiro-hero-swiper__caption--settled .spiro-hero-swiper__supratitle,
.spiro-hero-swiper__caption--settled .spiro-hero-swiper__title,
.spiro-hero-swiper__caption--settled .spiro-hero-swiper__text {
	opacity: 1;
	transform: none;
	animation: none;
}

@keyframes spiro-hero-fade-in-right {
	from {
		opacity: 0;
		transform: translate3d(5%, 0, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.spiro-hero-swiper__supratitle,
.spiro-hero-swiper__title {
	font-family: var(--spiro-font-family, "Outfit", Arial, sans-serif);
	font-size: var(--spiro-type-section-lg);
	/* PDF 05 / 02: ExtraBold = 800 (not 900) */
	font-weight: var(--spiro-font-weight-extrabold, 800);
	line-height: 0.95;
	margin: 0;
	text-transform: uppercase;
}

.spiro-hero-swiper__supratitle {
	color: var(--spiro-color-blue, #007ec1);
}

.spiro-hero-swiper__title {
	color: #000;
}

.spiro-hero-swiper__text {
	font-family: var(--spiro-font-family, "Outfit", Arial, sans-serif);
	font-size: clamp(1rem, 2vw, 1.5rem);
	font-weight: var(--spiro-font-weight-regular, 400);
	line-height: 1;
	margin-top: 0;
	padding-top: 10px;
	color: #fff;
}

.spiro-hero-swiper__caption--light .spiro-hero-swiper__text {
	color: var(--spiro-color-dark, #000000);
}

.spiro-hero-swiper__link {
	position: absolute;
	inset: 0;
	z-index: 5;
}

/* Navigation uses the hold layer link; swiper slide links are data sources only */
.spiro-hero-swiper .swiper-slide .spiro-hero-swiper__link {
	display: none;
}

.spiro-hero-swiper__swiss-quality {
	position: absolute;
	/* right: var(--spiro-content-right, var(--spiro-gutter, 50px)); */
	bottom: 28px;
	z-index: 7;
	right: 40px;
}

.spiro-hero-swiper .swiper-button-prev,
.spiro-hero-swiper .swiper-button-next {
	display: none;
}

.spiro-hero-swiper__pagination.swiper-pagination-bullets {
	bottom: 28px;
	left: var(--spiro-content-left, var(--spiro-gutter, 50px));
	right: auto;
	z-index: 9;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 0;
	width: auto;
}

.spiro-hero-swiper .swiper-pagination-bullet {
	position: relative;
	flex: 0 0 auto;
	width: 56px;
	height: 50px;
	margin: 0 6px !important;
	padding: 0;
	border-radius: 0 !important;
	opacity: 1 !important;
	background: none !important;
}

.spiro-hero-swiper .swiper-pagination-bullet::after {
	content: "";
	display: block;
	width: 100%;
	height: 3px;
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	background-color: #000;
	transition: background-color 0.25s ease;
}

.spiro-hero-swiper .swiper-pagination-bullet-active,
.spiro-hero-swiper .swiper-pagination-bullet-active:hover,
.spiro-hero-swiper .swiper-pagination-bullet-active:focus {
	background: none !important;
}

.spiro-hero-swiper .swiper-pagination-bullet-active::after {
	background-color: var(--spiro-color-blue, #007ec1);
}

.cell_1_1 .full-height:has(.spiro-hero-swiper-wrap) {
	height: auto;
	min-height: 0;
}

@media (max-width: 1100px) {
	.spiro-hero-swiper__swiss-quality {
		top: clamp(16px, 2.2vw, 24px);
		right: var(--spiro-content-right, var(--spiro-gutter, 50px));
		bottom: auto;
	}
}

@media (max-width: 992px) {
	.spiro-hero-swiper,
	.spiro-hero-swiper.swiperHome {
		min-height: 420px;
	}

	.spiro-hero-swiper__hold-caption,
	.spiro-hero-swiper__reveal-caption {
		padding-left: var(--spiro-content-left, 20px);
		padding-right: var(--spiro-content-right, 20px);
		padding-bottom: 95px;
	}

	.spiro-hero-swiper__pagination.swiper-pagination-bullets {
		left: var(--spiro-content-left, 20px);
	}

	.spiro-hero-swiper__swiss-quality {
		top: clamp(16px, 2.2vw, 24px);
		right: var(--spiro-content-right, 20px);
		bottom: auto;
	}

	.spiro-hero-swiper .swiper-pagination-bullet {
		width: 40px;
		height: 30px;
		margin: 0 4px !important;
	}
}
