/* Home banner carousel */
.ies-slider {
	position: relative;
	width: 100%;
	background: var(--ies-dark);
	overflow: hidden;
}
.ies-slider__viewport { overflow: hidden; touch-action: pan-y; }
.ies-slider__track {
	display: flex;
	transition: transform .6s cubic-bezier(.65, 0, .35, 1);
	will-change: transform;
}
.ies-slider__slide {
	flex: 0 0 100%;
	min-width: 0;
}
.ies-slider__slide a { display: block; }

/* Banners have text baked in, so never crop: scale the whole image with the width. */
.ies-slider__slide img {
	display: block;
	width: 100%;
	height: auto;
	user-select: none;
	-webkit-user-drag: none;
}

/* Arrows */
.ies-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 48px;
	height: 48px;
	padding: 0;
	margin-top: -24px;
	background: rgba(6, 26, 58, .6);
	border: 2px solid transparent;
	border-radius: 50%;
	cursor: pointer;
	opacity: 0;
	transition: opacity .25s ease, background-color .2s ease;
}
.ies-slider__arrow--prev { left: 20px; }
.ies-slider__arrow--next { right: 20px; }
.ies-slider:hover .ies-slider__arrow,
.ies-slider__arrow:focus-visible { opacity: 1; }
.ies-slider__arrow:hover,
.ies-slider__arrow:focus-visible {
	background: var(--ies-primary);
	border-color: var(--ies-primary);
}
.ies-slider__arrow::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 12px;
	border-top: 3px solid #fff;
	border-right: 3px solid #fff;
}
.ies-slider__arrow--prev::after { transform: translate(-30%, -50%) rotate(-135deg); }
.ies-slider__arrow--next::after { transform: translate(-70%, -50%) rotate(45deg); }
.ies-slider__arrow:hover::after { border-color: var(--ies-dark); }

/* Dots */
.ies-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.ies-slider__dot {
	width: 12px;
	height: 12px;
	padding: 0;
	background: rgba(255, 255, 255, .55);
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	transition: width .3s ease, background-color .2s ease;
}
.ies-slider__dot:hover { background: #fff; }
.ies-slider__dot.is-active {
	width: 32px;
	background: var(--ies-primary);
}

/* Touch devices have no hover: keep arrows visible but smaller; small screens: tuck away */
@media (hover: none) {
	.ies-slider__arrow { opacity: 1; }
}
@media (max-width: 767px) {
	.ies-slider__arrow { display: none; }
	.ies-slider__dots { bottom: 8px; gap: 6px; }
	.ies-slider__dot { width: 8px; height: 8px; }
	.ies-slider__dot.is-active { width: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.ies-slider__track { transition: none; }
}
