.home-gallery {
	--gallery-duration: 7s;
	position: relative;
	height: 100vh;
	height: 100svh;
	background: #0c0c0c;
	color: #fff;
	overflow: hidden;
}

.home-gallery__slides,
.home-gallery__slide,
.home-gallery__slide picture,
.home-gallery__image,
.home-gallery__shade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.home-gallery__slide {
	z-index: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.1s ease, visibility 1.1s;
}

.home-gallery__slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
}

.home-gallery__image {
	object-fit: cover;
	object-position: center;
	transform: scale(1.015);
	transition: transform 8s cubic-bezier(.2, .65, .25, 1);
}

.home-gallery__slide.is-active .home-gallery__image {
	transform: scale(1.065);
}

.home-gallery__shade {
	background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .22) 50%, rgba(0, 0, 0, .08) 100%);
}

.home-gallery__caption {
	position: absolute;
	z-index: 2;
	left: max(7vw, 42px);
	bottom: clamp(120px, 17vh, 180px);
	max-width: min(720px, 72vw);
}

.home-gallery__eyebrow {
	margin: 0 0 14px;
	font: 600 11px/1.4 "Open Sans", sans-serif;
	letter-spacing: 0;
	text-transform: uppercase;
}

.home-gallery h1 {
	margin: 0;
	color: #fff;
	font: 400 clamp(46px, 7.2vw, 104px)/.98 "Dosis", sans-serif;
	letter-spacing: 0;
	text-transform: uppercase;
}

.home-gallery__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
	padding-bottom: 7px;
	border-bottom: 1px solid rgba(255, 255, 255, .75);
	color: #fff;
	font: 600 11px/1.4 "Open Sans", sans-serif;
	letter-spacing: 0;
	text-transform: uppercase;
}

.home-gallery__link:hover,
.home-gallery__link:focus {
	color: #fff;
	border-color: transparent;
}

.home-gallery__controls {
	position: absolute;
	z-index: 3;
	right: max(5vw, 32px);
	bottom: 52px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.home-gallery__count {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-right: 8px;
	font: 600 11px/1 "Open Sans", sans-serif;
}

.home-gallery__count-line {
	display: block;
	width: 36px;
	height: 1px;
	background: rgba(255, 255, 255, .55);
}

.home-gallery__progress {
	width: clamp(80px, 10vw, 150px);
	height: 1px;
	margin-right: 14px;
	background: rgba(255, 255, 255, .32);
	overflow: hidden;
}

.home-gallery__progress span {
	display: block;
	width: 100%;
	height: 100%;
	background: #fff;
	transform: scaleX(0);
	transform-origin: left;
}

.home-gallery.is-playing .home-gallery__progress span {
	animation: home-gallery-progress var(--gallery-duration) linear forwards;
}

.home-gallery__button {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .42);
	border-radius: 50%;
	background: rgba(0, 0, 0, .12);
	color: #fff;
	font: 400 18px/1 Arial, sans-serif;
	transition: background .2s ease, border-color .2s ease;
}

.home-gallery__button:hover,
.home-gallery__button:focus {
	background: #fff;
	border-color: #fff;
	color: #111;
	outline: none;
}

.home-gallery__button span {
	font-size: 10px;
}

.home-gallery__scroll {
	position: absolute;
	z-index: 3;
	left: max(5vw, 32px);
	bottom: 42px;
	display: flex;
	align-items: center;
	gap: 16px;
	color: #fff;
	font: 600 10px/1 "Open Sans", sans-serif;
	letter-spacing: 0;
	text-transform: uppercase;
}

.home-gallery__scroll i {
	display: block;
	width: 34px;
	height: 1px;
	background: #fff;
}

.home-gallery__fallback {
	background: #151515;
}

@keyframes home-gallery-progress {
	to { transform: scaleX(1); }
}

@media (max-width: 767px) {
	.home-gallery {
		height: 100vh;
		height: 100svh;
	}

	.home-gallery__shade {
		background: linear-gradient(0deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .08) 75%);
	}

	.home-gallery__caption {
		left: 24px;
		bottom: 148px;
		max-width: calc(100% - 48px);
	}

	.home-gallery h1 {
		font-size: clamp(42px, 15vw, 68px);
	}

	.home-gallery__controls {
		right: 20px;
		bottom: 28px;
	}

	.home-gallery__progress,
	.home-gallery__scroll,
	.home-gallery__count,
	.home-gallery__button[data-home-pause] {
		display: none;
	}

	.home-gallery__button {
		width: 40px;
		height: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-gallery__slide,
	.home-gallery__image {
		transition-duration: .01ms;
	}

	.home-gallery__progress span {
		animation: none !important;
	}
}
