.eic-carousel {
	position: relative;
	width: 100%;
}

.eic-viewport {
	overflow: hidden;
	width: 100%;
}

.eic-track {
	--eic-slides: 4;
	--eic-scroll: 1;
	--eic-gap: 20px;

	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	gap: var(--eic-gap);
	-webkit-overflow-scrolling: touch;
	/* hide native scrollbar */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.eic-track::-webkit-scrollbar {
	display: none;
}

.eic-slide {
	flex: 0 0 calc((100% - (var(--eic-slides) - 1) * var(--eic-gap)) / var(--eic-slides));
	max-width: calc((100% - (var(--eic-slides) - 1) * var(--eic-gap)) / var(--eic-slides));
	scroll-snap-align: start;
}

/* This is the key part for "same size regardless of original image":
   fixed height + object-fit:cover crops every image to identical dimensions. */
.eic-slide img {
	--eic-height: 260px;
	display: block;
	width: 100%;
	height: var(--eic-height);
	object-fit: cover;
}

/* Continuous / marquee mode: no native scrolling, position driven by JS transform. */
.eic-carousel.is-marquee .eic-viewport {
	overflow: hidden;
}

.eic-carousel.is-marquee .eic-track {
	overflow: visible;
	scroll-snap-type: none;
	scroll-behavior: auto;
	will-change: transform;
	cursor: default;
}

.eic-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.eic-arrow-prev { left: -8px; }
.eic-arrow-next { right: -8px; }

.eic-arrow[disabled] {
	opacity: 0.3;
	cursor: default;
}

.eic-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}

.eic-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background-color: #cccccc;
	border: none;
	padding: 0;
	cursor: pointer;
}

.eic-dot.is-active {
	background-color: #222222;
}
