/**
 * Hotspot-carousel: alleen van toepassing binnen .ih-hotspots-carousel (shortcode image_hotspots_slider).
 */

.ih-carousel-slider-frame {
	width: 100%;
	background: #ffffff;
	position: relative;
	overflow: hidden;
	display: block;
}

.ih-hotspots-carousel .swiper {
	width: 100%;
}

.ih-hotspots-carousel .swiper-slide {
	background-color: #ffffff;
	box-sizing: border-box;
	display: flex !important;
	flex-direction: column;
	align-items: stretch;
	overflow: hidden;
}

.ih-hotspots-carousel .swiper-slide .ih-frontend-wrap {
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
}

.ih-hotspots-carousel .swiper-button-next,
.ih-hotspots-carousel .swiper-button-prev {
	background-color: #fff !important;
	width: 50px !important;
	height: 50px !important;
	border-radius: 50% !important;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
	z-index: 100;
}

.ih-hotspots-carousel .swiper-button-prev {
	left: 40px !important;
}

.ih-hotspots-carousel .swiper-button-next {
	right: 40px !important;
}

.ih-hotspots-carousel .swiper-button-next::after,
.ih-hotspots-carousel .swiper-button-prev::after {
	content: '' !important;
	width: 15px;
	height: 15px;
	border-top: 2px solid #000 !important;
	border-right: 2px solid #000 !important;
}

.ih-hotspots-carousel .swiper-button-next::after {
	transform: rotate(45deg);
	margin-left: -6px;
}

.ih-hotspots-carousel .swiper-button-prev::after {
	transform: rotate(-135deg);
	margin-right: -6px;
}

/* Proportioneel: vaste rail, breedte per foto, contain (desktop + mobiel) */
.ih-hotspots-carousel--rail-proportional .swiper-slide {
	width: auto !important;
	flex-shrink: 0;
}

.ih-hotspots-carousel--rail-proportional .swiper-slide > * {
	flex: 0 0 auto;
	display: block !important;
	width: auto !important;
	height: 100% !important;
	max-height: 100% !important;
	overflow: hidden;
}

.ih-hotspots-carousel--rail-proportional .swiper-slide .ih-frontend-wrap {
	width: auto !important;
	max-width: none !important;
	height: 100% !important;
}

.ih-hotspots-carousel--rail-proportional .swiper-slide img {
	width: auto !important;
	height: 100% !important;
	max-width: none !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: center !important;
	display: block !important;
	vertical-align: top;
}

/* Desktop: vast kader */
@media (min-width: 768px) {
	.ih-carousel-slider-frame {
		aspect-ratio: var(--ih-carousel-aspect-w, 16) / var(--ih-carousel-aspect-h, 7);
	}

	.ih-hotspots-carousel .swiper {
		height: 100% !important;
		position: absolute;
		top: 0;
		left: 0;
	}

	.ih-hotspots-carousel .swiper-slide {
		height: 100% !important;
		max-height: 100% !important;
		padding: var(--ih-carousel-slide-padding, 10px) 0 var(--ih-carousel-slide-padding, 10px) var(--ih-carousel-slide-padding, 10px);
		border-right: var(--ih-carousel-slide-padding, 10px) solid #ffffff;
	}
}

/* Mobiel: IKEA-stijl — zelfde vaste verhouding, vrije scroll, wit tussen foto's */
@media (max-width: 767px) {
	.ih-carousel-slider-frame {
		display: flex;
		flex-direction: column;
		height: var(--ih-carousel-mobile-rail-height, 72dvh);
		aspect-ratio: auto;
		padding: 0;
		margin: 0;
		background: transparent;
		overflow: hidden;
	}

	.ih-hotspots-carousel .ih-hotspots-carousel__scrollbar.swiper-scrollbar {
		position: relative;
		flex: 0 0 3px;
		order: -1;
		left: 0;
		top: auto;
		bottom: auto;
		width: 100%;
		height: 3px;
		margin: 0 0 10px;
		background: rgba(0, 0, 0, 0.12);
		border-radius: 2px;
		z-index: 20;
	}

	.ih-hotspots-carousel .ih-hotspots-carousel__scrollbar .swiper-scrollbar-drag {
		background: #111;
		border-radius: 2px;
	}

	.ih-hotspots-carousel .swiper {
		flex: 1 1 auto;
		min-height: 0;
		height: auto !important;
		position: relative;
		top: auto;
		left: auto;
		margin: 0;
		padding: 0;
		background: transparent;
	}

	.ih-hotspots-carousel--mobile-autoscroll .swiper {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: none;
		scrollbar-width: none;
	}

	.ih-hotspots-carousel--mobile-autoscroll .swiper::-webkit-scrollbar {
		display: none;
	}

	.ih-hotspots-carousel--mobile-autoscroll .swiper.swiper-css-mode > .swiper-wrapper {
		scroll-snap-type: none !important;
	}

	.ih-hotspots-carousel .swiper-wrapper {
		align-items: stretch;
		background: #ffffff;
	}

	.ih-hotspots-carousel .swiper-slide {
		height: 100% !important;
		max-height: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
		border: none !important;
		border-right: var(--ih-carousel-slide-padding, 10px) solid #ffffff !important;
		background: #ffffff;
		box-sizing: border-box;
	}

	.ih-hotspots-carousel .swiper-button-prev,
	.ih-hotspots-carousel .swiper-button-next {
		width: 44px !important;
		height: 44px !important;
		background-color: #1a1a1a !important;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
	}

	.ih-hotspots-carousel .swiper-button-prev {
		left: 10px !important;
	}

	.ih-hotspots-carousel .swiper-button-next {
		right: 10px !important;
	}

	.ih-hotspots-carousel .swiper-button-next::after,
	.ih-hotspots-carousel .swiper-button-prev::after {
		border-top-color: #fff !important;
		border-right-color: #fff !important;
	}

	.ih-hotspots-carousel:not(.ih-hotspots-carousel--mobile-arrows) .swiper-button-next,
	.ih-hotspots-carousel:not(.ih-hotspots-carousel--mobile-arrows) .swiper-button-prev {
		display: none;
	}
}

@media (min-width: 768px) {
	.ih-hotspots-carousel .ih-hotspots-carousel__scrollbar {
		display: none !important;
	}
}
