.hpc-gallery-carousel {
	position: relative;
	overflow: hidden;
	opacity: 0;
}

.hpc-gallery-carousel.hpc-ready {
	opacity: 1;
}

.hpc-gallery-carousel .swiper-wrapper {
	align-items: stretch;
}

.hpc-gallery-carousel {
	height: var(--carousel-h, 600px);
}

.hpc-gallery-carousel .swiper-slide {
	flex-shrink: 0;
	overflow: hidden;
	height: 100%;
}

.hpc-gallery-carousel .swiper-slide img {
	height: 100%;
	width: 100%;
	display: block;
	object-fit: cover;
}

/* Nav-Pfeile: weisser Kreis — doppelter Selektor fuer Elementor-Spezifitaet */
.hpc-gallery-carousel button.hpc-carousel-prev,
.hpc-gallery-carousel button.hpc-carousel-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--e-global-color-1e65a15);
	border: none;
	box-shadow: none;
	cursor: pointer;
	padding: 14px;
	color: var(--e-global-color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
}

.hpc-gallery-carousel button.hpc-carousel-prev svg,
.hpc-gallery-carousel button.hpc-carousel-next svg {
	display: block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.hpc-gallery-carousel button.hpc-carousel-prev:hover,
.hpc-gallery-carousel button.hpc-carousel-next:hover {
	color: var(--e-global-color-accent) !important;
	background: var(--e-global-color-1e65a15) !important;
}

.hpc-gallery-carousel .hpc-carousel-prev {
	left: 5px;
}

.hpc-gallery-carousel .hpc-carousel-next {
	right: 5px;
}

/* Disabled-Pfeile am Rand ausblenden */
.hpc-gallery-carousel button.hpc-carousel-prev.swiper-button-disabled,
.hpc-gallery-carousel button.hpc-carousel-next.swiper-button-disabled {
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 1024px) {
	.hpc-gallery-carousel .swiper-slide img {
		object-fit: contain;
	}

	.hpc-gallery-carousel button.hpc-carousel-prev,
	.hpc-gallery-carousel button.hpc-carousel-next {
		width: 36px;
		height: 36px;
		padding: 11px;
	}

	.hpc-gallery-carousel button.hpc-carousel-prev svg,
	.hpc-gallery-carousel button.hpc-carousel-next svg {
		width: 14px;
		height: 14px;
	}
}
