.esb-slider {
	position: relative;
	overflow: hidden;
	width: 100%;
	background: #111;
	direction: ltr;
}

.esb-slider.esb-mode-fixed {
	height: var( --esb-h, 500px );
}

.esb-slider.esb-mode-auto {
	height: auto;
}

.esb-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.esb-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 1;
	transition: opacity 700ms ease;
}

.esb-slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 2;
}

.esb-transition-slide .esb-slide {
	transition: transform 700ms ease, opacity 1ms linear;
	transform: translateX( 100% );
	opacity: 1;
	visibility: visible;
	pointer-events: none;
}

.esb-transition-slide .esb-slide.is-active {
	transform: translateX( 0 );
	pointer-events: auto;
	z-index: 2;
}

.esb-transition-slide .esb-slide.esb-prev-slide {
	transform: translateX( -100% );
}

.esb-slide-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transform: scale( 1 );
	will-change: transform;
}

.esb-transition-kenburns .esb-slide.is-active .esb-slide-bg {
	animation: esbKenBurns var( --esb-kb-duration, 6000ms ) ease-out forwards;
}

@keyframes esbKenBurns {
	from {
		transform: scale( 1 );
	}
	to {
		transform: scale( var( --esb-kb-scale, 1.15 ) );
	}
}

.esb-caption {
	position: absolute;
	inset: 0;
	display: flex;
	padding: clamp( 20px, 5vw, 70px );
	z-index: 3;
	pointer-events: none;
}

.esb-caption::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient( to top, rgba( 0, 0, 0, 0.6 ), rgba( 0, 0, 0, 0 ) 55% );
	z-index: -1;
}

.esb-caption-inner {
	max-width: 640px;
	pointer-events: auto;
}

.esb-valign-top {
	align-items: flex-start;
}

.esb-valign-middle {
	align-items: center;
}

.esb-valign-bottom {
	align-items: flex-end;
}

.esb-align-left {
	justify-content: flex-start;
	text-align: left;
}

.esb-align-center {
	justify-content: center;
	text-align: center;
}

.esb-align-right {
	justify-content: flex-end;
	text-align: right;
}

.esb-title,
.esb-subtitle,
.esb-btn {
	opacity: 0;
	transform: translateY( 24px );
	color: #fff;
}

.esb-slide.is-active .esb-title {
	animation: esbCaptionUp 600ms 150ms ease-out forwards;
}

.esb-slide.is-active .esb-subtitle {
	animation: esbCaptionUp 600ms 280ms ease-out forwards;
}

.esb-slide.is-active .esb-btn {
	animation: esbCaptionUp 600ms 410ms ease-out forwards;
}

@keyframes esbCaptionUp {
	from {
		opacity: 0;
		transform: translateY( 24px );
	}
	to {
		opacity: 1;
		transform: translateY( 0 );
	}
}

.esb-title {
	margin: 0 0 10px;
	font-size: clamp( 1.4rem, 4vw, 2.75rem );
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.35 );
}

.esb-subtitle {
	margin: 0 0 18px;
	font-size: clamp( 0.9rem, 2vw, 1.2rem );
	line-height: 1.5;
	text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.35 );
}

.esb-btn {
	display: inline-block;
	padding: 0.7em 1.6em;
	background: #fff;
	color: #111;
	text-decoration: none;
	font-weight: 600;
	border-radius: 3px;
	transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.esb-btn:hover,
.esb-btn:focus {
	background: #f0f0f0;
	transform: translateY( -2px );
	box-shadow: 0 6px 16px rgba( 0, 0, 0, 0.25 );
	color: #111;
}

.esb-slide-link {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.esb-arrow {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba( 0, 0, 0, 0.35 );
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	transition: background 200ms ease, transform 200ms ease;
	padding: 0;
}

.esb-arrow:hover,
.esb-arrow:focus {
	background: rgba( 0, 0, 0, 0.6 );
}

.esb-prev {
	left: 16px;
}

.esb-next {
	right: 16px;
}

.esb-arrow:active {
	transform: translateY( -50% ) scale( 0.92 );
}

.esb-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.esb-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 5;
}

.esb-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 2px solid rgba( 255, 255, 255, 0.85 );
	background: transparent;
	padding: 0;
	cursor: pointer;
	transition: background 200ms ease, width 200ms ease, border-radius 200ms ease;
}

.esb-dot.is-active {
	background: #fff;
	width: 22px;
	border-radius: 5px;
}

@media ( max-width: 480px ) {
	.esb-arrow {
		width: 34px;
		height: 34px;
	}

	.esb-prev {
		left: 8px;
	}

	.esb-next {
		right: 8px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.esb-slide,
	.esb-slide-bg,
	.esb-title,
	.esb-subtitle,
	.esb-btn,
	.esb-transition-slide .esb-slide {
		animation: none !important;
		transition-duration: 1ms !important;
	}

	.esb-title,
	.esb-subtitle,
	.esb-btn {
		opacity: 1;
		transform: none;
	}
}
