/* Home slider - matches the former Slider Revolution "demo4" (848 x 464, fade, arrows + round bullets). */
.hgp-slider {
	position: relative;
	width: 100%;
	aspect-ratio: 848 / 464;
	/* The old slider sat in an inline-block, which left a 6px gap below it. */
	margin-bottom: 6px;
	overflow: hidden;
	background: #e7e7e7;
}

.hgp-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--hgp-slider-speed, 300ms) linear, visibility 0s linear var(--hgp-slider-speed, 300ms);
}

.hgp-slider__slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity var(--hgp-slider-speed, 300ms) linear, visibility 0s;
}

/* First slide fades in on page load, like Slider Revolution did. */
.hgp-slider__slide:first-child.is-active {
	animation: hgp-slider-fade-in var(--hgp-slider-speed, 300ms) linear;
}

@keyframes hgp-slider-fade-in {
	from {
		opacity: 0;
	}
}

.hgp-slider__link {
	display: block;
	width: 100%;
	height: 100%;
}

.hgp-slider .hgp-slider__image {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: fill;
}

.hgp-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: -20px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	cursor: pointer;
	line-height: 1;
}

.hgp-slider__arrow:hover,
.hgp-slider__arrow:focus {
	background: #000;
	color: #fff;
}

.hgp-slider__arrow--prev {
	left: 0;
}

.hgp-slider__arrow--next {
	right: 0;
}

.hgp-slider__arrow svg {
	display: block;
	width: 15px;
	height: 15px;
}

.hgp-slider__bullets {
	position: absolute;
	right: 20px;
	bottom: 20px;
	z-index: 2;
	display: flex;
	gap: 5px;
}

.hgp-slider__bullet {
	box-sizing: content-box;
	width: 12px;
	height: 12px;
	margin: 0;
	padding: 0;
	border: 3px solid #e5e5e5;
	border-radius: 50%;
	background: linear-gradient(to bottom, #999 0%, #e1e1e1 100%);
	cursor: pointer;
}

.hgp-slider__bullet:hover,
.hgp-slider__bullet.is-active {
	background: #666;
}
