.iccm-carousel-wrap {
	position: relative;
	padding: 0 56px;
}

.iccm-swiper {
	overflow: hidden;
	padding: 12px 0 44px;
}

.iccm-slide {
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform .35s ease, opacity .35s ease;
	transform-origin: center bottom;
}

.iccm-slide__thumb {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 6px;
	background: #eee;
}
.iccm-slide__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Ratio boxes — CSS-only, works on any uploaded image regardless of its
   original dimensions, no server-side thumbnail regeneration needed. */
.iccm-ratio-4-5 .iccm-slide__thumb  { aspect-ratio: 4 / 5; }
.iccm-ratio-1-1 .iccm-slide__thumb  { aspect-ratio: 1 / 1; }
.iccm-ratio-3-4 .iccm-slide__thumb  { aspect-ratio: 3 / 4; }
.iccm-ratio-16-9 .iccm-slide__thumb { aspect-ratio: 16 / 9; }
.iccm-ratio-3-2 .iccm-slide__thumb  { aspect-ratio: 3 / 2; }

/* Caption */
.iccm-slide__caption {
	display: block;
	font-size: 14px;
}
.iccm-slide__caption--overlay {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 24px 14px 12px;
	background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0));
}
.iccm-slide__caption--below {
	padding: 10px 4px 0;
	color: #333;
}

/* Center-mode emphasis */
.iccm-swiper.iccm-center-mode .swiper-slide .iccm-slide {
	opacity: var( --iccm-side-opacity, .55 );
	transform: scale( .94 );
}
.iccm-swiper.iccm-center-mode .swiper-slide-active .iccm-slide {
	opacity: 1;
	transform: scale( var( --iccm-center-scale, 1.1 ) );
}

/* Arrows */
.iccm-arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid currentColor;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	transition: background .2s ease, color .2s ease;
}
.iccm-arrow--prev { left: 0; }
.iccm-arrow--next { right: 0; }
.iccm-arrow:hover { background: currentColor; }
.iccm-arrow:hover svg { stroke: #fff; }
.iccm-arrow.swiper-button-disabled { opacity: .3; cursor: default; }
.iccm-arrow.swiper-button-disabled:hover { background: transparent; }

/* Pagination dots */
.iccm-swiper .swiper-pagination {
	position: static;
	margin-top: 20px;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.iccm-swiper .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	opacity: 1;
	margin: 0 !important;
}

@media (max-width: 767px) {
	.iccm-carousel-wrap { padding: 0 40px; }
	.iccm-arrow { width: 34px; height: 34px; }
}
