/* Home page hero carousel. Colours come from the theme's palette variables. */
.ae-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	background: var(--wp--preset--color--primary-dark, #44683a);
}

.ae-hero__slides {
	display: grid;
}

.ae-hero__slide {
	position: relative;
	grid-area: 1 / 1;
	min-height: 560px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease, visibility 0.9s;
}

.ae-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.ae-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ae-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(44, 67, 39, 0.6);
}

.ae-hero__content {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 560px;
	max-width: calc(var(--wp--style--global--content-size, 645px) + 48px);
	margin: 0 auto;
	padding: 72px 24px 88px;
}

.ae-hero__title {
	margin: 0 0 0.5em;
	color: #fff;
	font-size: var(--wp--preset--font-size--xx-large, 2.6rem);
	line-height: 1.15;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.ae-hero__text {
	margin: 0 0 1.5em;
	font-size: var(--wp--preset--font-size--large, 1.25rem);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.ae-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.ae-hero__extra {
	padding: 0.5em 1.1em;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 6px;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
}

.ae-hero__extra:hover,
.ae-hero__extra:focus {
	background: rgba(255, 255, 255, 0.12);
}

.ae-hero__credit {
	margin: 1.5em 0 0;
	font-size: 0.75rem;
	opacity: 0.8;
}

.ae-hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.3);
	color: #fff;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
}

.ae-hero__arrow:hover,
.ae-hero__arrow:focus-visible {
	background: rgba(0, 0, 0, 0.55);
}

.ae-hero__arrow--prev {
	left: 16px;
}

.ae-hero__arrow--next {
	right: 16px;
}

.ae-hero__dots {
	position: absolute;
	bottom: 22px;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 10px;
}

.ae-hero__dot {
	width: 11px;
	height: 11px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.ae-hero__dot[aria-current] {
	border-color: var(--wp--preset--color--accent-1, #ffc92d);
	background: var(--wp--preset--color--accent-1, #ffc92d);
}

.ae-hero__arrow:focus-visible,
.ae-hero__dot:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-1, #ffc92d);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.ae-hero__slide,
	.ae-hero__content {
		min-height: 480px;
	}

	.ae-hero__arrow {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ae-hero__slide {
		transition: none;
	}
}
