.sis-slider {
	position: relative;
	width: 100%;
	height: var(--sis-height, 400px);
	overflow: hidden;
	border-radius: 4px;
	background: #eee;
}

.sis-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.sis-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, transform 0.5s ease;
	transform: translateX(0);
}

.sis-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

/* Slide transition: incoming/outgoing slides shift horizontally. */
.sis-slider[data-transition="slide"] .sis-slide {
	transform: translateX(100%);
}
.sis-slider[data-transition="slide"] .sis-slide.is-active {
	transform: translateX(0);
}
.sis-slider[data-transition="slide"] .sis-slide.is-prev {
	transform: translateX(-100%);
}

/* Fade transition: no horizontal movement, opacity only. */
.sis-slider[data-transition="fade"] .sis-slide {
	transform: none;
}

.sis-slide-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--sis-position, center);
	display: block;
}

.sis-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	border: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.sis-arrow:hover {
	background: rgba(0, 0, 0, 0.65);
}

.sis-prev {
	left: 12px;
}

.sis-next {
	right: 12px;
}

.sis-dots {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	gap: 8px;
}

.sis-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: rgba(255, 255, 255, 0.4);
	padding: 0;
	cursor: pointer;
}

.sis-dot.is-active {
	background: #fff;
}

@media (max-width: 600px) {
	.sis-arrow {
		width: 32px;
		height: 32px;
		font-size: 13px;
	}

	/* A fixed desktop height crops aggressively on narrow screens, since the
	   width shrinks a lot more than the height does. Switch to a taller
	   aspect ratio instead so images crop much less on phones. */
	.sis-slider {
		height: auto;
		aspect-ratio: 4 / 3;
	}
}
