.home-story {
	--home-story-scroll-distance: 0px;
	--home-story-intro-distance: 0px;
	position: relative;
	overflow: clip;
	background: var(--color-primary);
	color: var(--color-white);
}

.home-story__track {
	display: grid;
	grid-auto-columns: 100vw;
	grid-auto-flow: column;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
}

.home-story__track::-webkit-scrollbar {
	display: none;
}

.home-story__slide {
	position: relative;
	min-width: 0;
	min-height: 100svh;
	overflow: hidden;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	isolation: isolate;
}

.home-story__image,
.home-story__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.home-story__image {
	z-index: -2;
	object-fit: cover;
}

.home-story__overlay {
	z-index: -1;
	pointer-events: none;
}

.home-story__slide--left .home-story__overlay {
	background: linear-gradient(90deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .38) 38%, rgba(0, 0, 0, 0) 72%);
}

.home-story__slide--right .home-story__overlay {
	background: linear-gradient(270deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .38) 38%, rgba(0, 0, 0, 0) 72%);
}

.home-story__content {
	position: relative;
}

.home-story__content .row {
	padding-block: clamp(7rem, 12vh, 10rem);
}

.home-story__copy {
	display: flex;
	max-width: 45rem;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(1.5rem, 4vh, 4rem);
}

.home-story__kicker {
	margin: 0 0 .5rem;
	color: var(--color-accent);
	font-size: var(--font-size-h3);
	line-height: var(--line-height-h3);
}

.home-story__headline {
	max-width:100%;
	margin: 0;
	color: var(--color-white);
	font-size: clamp(2.25rem, 3.75vw, 3.75rem);
	line-height: 1.16;
}

.home-story__text {
	max-width: 43rem;
	font-size: clamp(1rem, 1.25vw, 1.25rem);
	line-height: 1.55;
}

.home-story__text > :last-child {
	margin-bottom: 0;
}

.home-story__link,
.home-story__link:hover,
.home-story__link:focus-visible {
	color: var(--color-white) !important;
}


@media (min-width: 992px) {
	.home-story.has-horizontal-scroll {
		height: calc(100svh + var(--home-story-intro-distance) + var(--home-story-scroll-distance));
		overflow: visible;
	}

	.home-story.has-horizontal-scroll .home-story__track {
		position: sticky;
		top: 0;
		height: 100svh;
		overflow: hidden;
		scroll-snap-type: none;
	}
}

@media (max-width: 991.98px) {
	.home-story__slide {
		min-height: min(100svh, 56rem);
	}

	.home-story__slide--left .home-story__overlay,
	.home-story__slide--right .home-story__overlay {
		background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 70%, rgba(0, 0, 0, .2) 100%);
	}

	.home-story__copy {
		gap: 1.5rem;
	}

	.home-story__headline {
		font-size: clamp(2rem, 8vw, 3.25rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-story__track {
		scroll-behavior: auto;
	}
}


/* Jemný parallax pouze pro bannery na stránce O nás */
.home-story--parallax .home-story__image {
	transform: scale(1.08);
	will-change: transform;
}

.home-story--parallax .home-story__copy {
	will-change: transform;
}

/* Další slidy začínají skryté a text se odhaluje podle horizontálního scrollu. */
@media (min-width: 992px) {
	.home-story--parallax.has-horizontal-scroll .home-story__slide:not(:first-child) [data-gsap="banner-kicker"],
	.home-story--parallax.has-horizontal-scroll .home-story__slide:not(:first-child) [data-gsap="banner-title"] {
		opacity: 0;
		transform: translateY(32px);
	}
}

/* Na desktopu další banner překryje předchozí a zůstane připnutý u levého okraje */
@media (min-width: 992px) {
	.home-story--parallax.has-horizontal-scroll .home-story__slide {
		position: sticky;
		left: 0;
	}

	.home-story--parallax.has-horizontal-scroll .home-story__slide:nth-child(1) {
		z-index: 1;
	}

	.home-story--parallax.has-horizontal-scroll .home-story__slide:nth-child(2) {
		z-index: 2;
	}

	.home-story--parallax.has-horizontal-scroll .home-story__slide:nth-child(3) {
		z-index: 3;
	}
}
