/* Manual Image Slider — front end */

.mis-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	/* Touch devices: let the browser know we're handling horizontal
	   gestures ourselves, but still allow vertical page scroll. */
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
}

.mis-track {
	display: flex;
	will-change: transform;
	/* No CSS transition by default — JS adds/removes a "snapping"
	   class only when it needs an animated settle, so a live drag
	   never fights a transition. */
}

.mis-track.mis-snap {
	transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mis-slide {
	/* Width is set inline by JS based on container size + how many
	   slides should be visible/peeking at once. */
	flex: 0 0 auto;
	box-sizing: border-box;
	padding: 0 6px;
}

.mis-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
	pointer-events: none; /* dragging shouldn't trigger native image drag/ghost */
}

.mis-slide-link {
	display: block;
	height: 100%;
	cursor: pointer;
}

/* Prevent the browser's native "drag this image" ghost + link
   highlight color while the user is dragging the slider. */
.mis-slider.mis-dragging .mis-slide-link,
.mis-slider.mis-dragging .mis-slide img {
	cursor: grabbing;
}
