.aware-slider {
	position: relative;
	width: 100%;
	height: var(--as-h, 900px);
	max-height: 100vh;
	overflow: hidden;
	background: #1c2b36;
	/* --as-maxw is only set when a width cap is configured; 'none' otherwise. */
	max-width: var(--as-maxw, none);
	margin-left: auto;
	margin-right: auto;
}

.aware-slider__track,
.aware-slider__slide {
	position: absolute;
	inset: 0;
}

.aware-slider__slide {
	opacity: 0;
	transition: opacity 1s ease-in-out;
	pointer-events: none;
}

.aware-slider__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.aware-slider__slide a {
	display: block;
	width: 100%;
	height: 100%;
}

.aware-slider__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

/* Show the whole image, letterboxed against the slider background. */
.aware-slider--contain .aware-slider__img {
	object-fit: contain;
}

/*
 * Full banner: the frame takes its shape from the image itself, so the whole
 * picture is visible at every width with no crop and no letterbox bars. The
 * fixed --as-h no longer applies, which is the point.
 */
.aware-slider--auto {
	height: auto;
	max-height: none;
	aspect-ratio: var(--as-ratio, 16 / 9);
}

/* Older browsers without aspect-ratio fall back to the fixed height. */
@supports not (aspect-ratio: 1 / 1) {
	.aware-slider--auto {
		height: var(--as-h, 900px);
	}
}

/* Shown when the image file is absent, so the page never renders a broken icon. */
.aware-slider__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1c2b36 0%, #2f4a5c 100%);
}

.aware-slider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	cursor: pointer;
	z-index: 2;
	transition: background 0.2s ease;
}

.aware-slider__nav:hover,
.aware-slider__nav:focus-visible {
	background: rgba(0, 0, 0, 0.6);
}

.aware-slider__nav::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 12px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
}

.aware-slider__nav--prev {
	left: 20px;
}

.aware-slider__nav--prev::before {
	transform: translate(-30%, -50%) rotate(-135deg);
}

.aware-slider__nav--next {
	right: 20px;
}

.aware-slider__nav--next::before {
	transform: translate(-70%, -50%) rotate(45deg);
}

.aware-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 24px;
	display: flex;
	justify-content: center;
	gap: 10px;
	z-index: 2;
}

.aware-slider__dot {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background 0.2s ease;
}

.aware-slider__dot.is-active {
	background: #fff;
}

@media (max-width: 782px) {
	.aware-slider {
		height: var(--as-h-m, 720px);
	}

	/* Auto keeps following the image ratio on mobile too. */
	.aware-slider--auto {
		height: auto;
	}

	.aware-slider__nav {
		width: 36px;
		height: 36px;
	}

	.aware-slider__nav--prev {
		left: 8px;
	}

	.aware-slider__nav--next {
		right: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aware-slider__slide {
		transition: none;
	}
}
