/* Home page image slider (replaces the Slider Hero plugin). */

/* Slider Hero used to set this; the header and home rows overflow slightly on phones without it. */
html,
body {
	overflow-x: hidden;
}

.home-slider {
	position: relative;
	width: 100%;
	margin: 0;
	overflow: hidden;
	background-color: #4e56fc;
}

/* Fixed banner shape so the page does not jump between slides. */
.home-slider__slide {
	position: relative;
	aspect-ratio: 16 / 7;
	max-height: 85vh;
}

/* Hide all but the first slide until Slick has loaded. */
.home-slider:not(.slick-initialized) .home-slider__slide:not(:first-child) {
	display: none;
}

.home-slider__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Prev / next arrows: white circle, like the old slider. */
.home-slider .home-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 2px solid #ffffff;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.25);
	color: #ffffff;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background 0.2s ease;
}

.home-slider .home-slider__arrow:hover,
.home-slider .home-slider__arrow:focus-visible {
	background: rgba(0, 0, 0, 0.5);
}

.home-slider .home-slider__arrow svg {
	width: 22px;
	height: 22px;
}

.home-slider .home-slider__prev {
	left: 20px;
}

.home-slider .home-slider__next {
	right: 20px;
}

@media (max-width: 767px) {
	.home-slider__slide {
		aspect-ratio: 4 / 3;
	}

	.home-slider .home-slider__arrow {
		width: 36px;
		height: 36px;
	}

	.home-slider .home-slider__prev {
		left: 10px;
	}

	.home-slider .home-slider__next {
		right: 10px;
	}
}
