/* Simple Image Carousel (Lightweight) - FIXED v1.2.5 */

.sic {
	--sic-gap: 18px;
	--sic-height: 110px;
	--sic-speed: 450ms;
	--sic-fit: contain;

	position: relative;
	width: 100%;
	margin: 18px auto;
	user-select: none;
	-webkit-user-select: none;
}

.sic-viewport {
	overflow: hidden;
	border-radius: 14px;
	/* FIX: Allows vertical scroll but captures horizontal swipes */
	touch-action: pan-y; 
	position: relative;
	z-index: 1;
}

.sic-track {
	display: flex;
	gap: var(--sic-gap);
	will-change: transform;
	transform: translate3d(0,0,0);
	transition: transform var(--sic-speed) ease;
	padding: 8px; /* Breathing room */
}

/* --- SLIDE CONTAINER (Transparent Wrapper) --- */
.sic-slide {
	flex: 0 0 auto;
	/* IMPORTANT: Height must be auto to allow captions */
	height: auto; 
	width: auto;
	background: transparent;
	border-radius: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	overflow: visible; /* Don't clip shadows or captions */
}

/* --- FIGURE (The Card) --- */
.sic-figure {
	margin: 0;
	width: 100%;
	height: 100%;
	display: grid;
	grid-template-rows: auto auto; /* Media then Caption */
	gap: 10px;
}

/* --- MEDIA (The Image Box) --- */
.sic-media {
	width: 100%;
	height: var(--sic-height); /* Fixed height for image area */
	background: #ffffff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

/* --- THE IMAGE --- */
.sic-slide img {
	width: 100%;
	height: 100%;
	object-fit: var(--sic-fit);
	display: block;
	transition: transform 0.3s ease;
	-webkit-user-drag: none;
	pointer-events: none; /* Prevents dragging the image itself */
}

.sic .sic-slide:hover img {
	transform: scale(1.05);
}

.sic.sic-grayscale .sic-slide img {
	filter: grayscale(100%);
	opacity: 0.9;
}
.sic.sic-grayscale .sic-slide:hover img {
	filter: grayscale(0%);
	opacity: 1;
}

/* --- CAPTIONS --- */
.sic-caption {
	display: block;
	margin: 0;
	padding: 0 4px;
	color: #444;
	font-weight: 500;
	font-size: 18px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}
.sic.sic-captions-off .sic-caption { display: none; }


/* --- ARROWS --- */
.sic-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,0.95);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #333;
	z-index: 10;
	opacity: 0; /* Hidden by default for cleaner look */
	transition: opacity 0.3s ease;
}
.sic:hover .sic-arrow { opacity: 1; } /* Show on hover */

.sic-prev { left: 10px; }
.sic-next { right: 10px; }

@media (max-width: 768px) {
	.sic-arrow { opacity: 1; width: 32px; height: 32px; } /* Always show on mobile */
	.sic-prev { left: 5px; }
	.sic-next { right: 5px; }
}

/* --- DOTS --- */
.sic-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 12px;
}
.sic-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(0,0,0,0.15);
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: background 0.3s;
}
.sic-dot.is-active { background: #333; }


/* --- STRIP MODE (Film Strip Background) --- */
.sic.sic-strip-bg .sic-viewport {
	background: var(--sic-strip-bg, rgba(0,0,0,.04));
	padding: 20px 40px; /* Space for arrows */
	border-radius: 16px;
}
/* Remove padding from track in strip mode so images hit the edge of the strip */
.sic.sic-strip-bg .sic-track { padding: 0; }

.sic.sic-strip-bg { margin-top: 30px; margin-bottom: 30px; }