.ap-gallery-slider {
	position: relative;
	margin: 1.5em 0;
	overflow: hidden;
	border-radius: 8px;
	background: #000;
}

.ap-gallery-slider__track {
	display: grid;
}

.ap-gallery-slider__slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
}

.ap-gallery-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.ap-gallery-slider__slide img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 640px;
	object-fit: contain;
	margin: 0 auto;
}

.ap-gallery-slider__prev,
.ap-gallery-slider__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.ap-gallery-slider__prev {
	left: 12px;
}

.ap-gallery-slider__next {
	right: 12px;
}

.ap-gallery-slider__prev:hover,
.ap-gallery-slider__next:hover {
	background: rgba(0, 0, 0, 0.7);
}

.ap-gallery-slider__counter {
	position: absolute;
	right: 12px;
	bottom: 10px;
	padding: 2px 10px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 12px;
	border-radius: 999px;
}
