.ics-6507-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	user-select: none;
	-webkit-user-select: none;
	line-height: 0;
}

.ics-6507-img {
	width: 100%;
	height: auto;
	display: block;
	line-height: 0;
}

.ics-6507-img img {
	width: 100%;
	height: auto;
	display: block;
	max-width: none; /* Ensure image isn't constrained inside absolute container */
}

/* Before image (bottom layer) */
.ics-6507-before {
	position: relative;
}

/* After image (top layer) */
.ics-6507-after {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 50%; /* Initial width set by JS/inline style */
	overflow: hidden;
	z-index: 1;
}

/* Fix for resizing: ensure inner image maintains aspect ratio of container */
.ics-6507-after img {
	/* The width of the image inside the clipped container must match the full container width */
	/* This is handled by JS setting the width, or we can use a more robust CSS method */
	/* Actually, easier to just set width: 100% of parent wrapper? No, parent wrapper is relative. */
}

.ics-6507-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 40px; /* Interaction area width */
	margin-left: -20px; /* Center the interaction area */
	cursor: ew-resize;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
    touch-action: none; /* Critical for touch events */
}

.ics-6507-handle-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	background-color: #fff;
	margin-left: -1px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.ics-6507-handle-circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #fff;
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.ics-6507-handle-arrow {
    width: 14px;
    height: 14px;
    color: #333;
}

.ics-6507-label {
	position: absolute;
	top: 20px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 5px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
	z-index: 3;
    pointer-events: none;
}

.ics-6507-label-before {
	right: 20px;
}

.ics-6507-label-after {
	left: 20px;
}
