.angie-image-comparison-container {
	position: relative;
	width: 100%;
	height: 400px; /* Default height, overriden by widget settings */
	overflow: hidden;
	line-height: 0;
	user-select: none;
	display: block; /* Ensure it respects height */
}

.angie-ic-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.angie-ic-before {
	position: absolute; /* Changed from relative to absolute to fill container */
}

.angie-ic-image img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* This makes the image fill the area without distorting */
	object-position: center;
	display: block;
}

.angie-ic-label {
	position: absolute;
	top: 20px;
	padding: 8px 16px;
	background-color: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-family: sans-serif;
	font-size: 14px;
	line-height: 1;
	border-radius: 4px;
	z-index: 2;
	pointer-events: none;
}

.angie-ic-label-before {
	left: 20px;
}

.angie-ic-label-after {
	right: 20px;
}

.angie-ic-slider {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: ew-resize;
	z-index: 10;
	margin: 0;
}

.angie-ic-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 40px;
	margin-left: -20px;
	z-index: 5;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.angie-ic-handle-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 4px;
	margin-left: -2px;
	background-color: white;
	box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.angie-ic-handle-button {
	position: relative;
	width: 40px;
	height: 40px;
	background: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 10px rgba(0,0,0,0.3);
	color: #333;
}

.angie-ic-handle-button svg {
	width: 16px;
	height: 16px;
}
