.hm-gallery-slider {
	position: relative;
	overflow: hidden;
	background-color: var(--wp--preset--color--mint, #c7e8e6);
	background-image: var(--hm-gallery-bg);
	background-size: cover;
	background-position: center;
	background-repeat: repeat;
	padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 5vw, 2rem);
}

.hm-gallery-slider.alignfull {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.hm-gallery-slider::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.hm-gallery-slider__inner {
	position: relative;
	z-index: 1;
	max-width: 1350px;
	margin: 0 auto;
}

.hm-gallery-slider__heading {
	margin: 0 0 clamp(2.5rem, 5vw, 4rem);
	color: var(--wp--preset--color--blue, #2d7697);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
	line-height: 1;
	text-align: center;
}

.hm-gallery-slider__wrap {
	position: relative;
	padding-inline: clamp(2.5rem, 5vw, 4.5rem);
}

.hm-gallery-slider__swiper {
	overflow: hidden;
}

.hm-gallery-slider__slide {
	height: auto;
}

.hm-gallery-slider__image {
	display: block;
	width: 100%;
	aspect-ratio: 1.55 / 1;
	height: auto;
	object-fit: cover;
	border-radius: 1.5rem;
}

.hm-gallery-slider__arrow {
	position: absolute;
	top: 42%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--blue, #2d7697);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 4rem;
	line-height: 1;
	cursor: pointer;
	transition: transform 200ms ease, color 200ms ease;
}

.hm-gallery-slider__arrow:hover,
.hm-gallery-slider__arrow:focus-visible {
	color: var(--wp--preset--color--bright-red, #d91b2d);
	transform: scale(1.08);
}

.hm-gallery-slider__arrow--prev {
	left: 0;
}

.hm-gallery-slider__arrow--next {
	right: 0;
}

.hm-gallery-slider__pagination {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 2rem;
}

.hm-gallery-slider__pagination .swiper-pagination-bullet {
	width: 13px;
	height: 13px;
	margin: 0;
	border-radius: 999px;
	background: #8d8d8d;
	opacity: 1;
}

.hm-gallery-slider__pagination .swiper-pagination-bullet-active {
	background: var(--wp--preset--color--blue, #2d7697);
}

.acf-block-preview .hm-gallery-slider .js-reveal {
	opacity: 1;
	transform: none;
}

@media (max-width: 800px) {
	.hm-gallery-slider__wrap {
		padding-inline: 0;
	}

	.hm-gallery-slider__arrow {
		display: none;
	}

	.hm-gallery-slider__image {
		aspect-ratio: 1.35 / 1;
	}
}
