/* ─── Google Fonts: Poppins ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&display=swap');

/* ─── Container ─────────────────────────────────────────────── */
.eba-container {
	position: relative;
	width: 100%;
	height: 460px;
	overflow: hidden;
	border-radius: 12px;
	cursor: col-resize;
	user-select: none;
	-webkit-user-select: none;
	touch-action: none;
	font-family: 'Poppins', sans-serif;
}

/* ─── Images ────────────────────────────────────────────────── */
.eba-after,
.eba-before {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.eba-after img,
.eba-before img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
	display: block;
}

/* Before sits on top, clipped on the right */
.eba-before {
	clip-path: inset(0 50% 0 0);
	z-index: 2;
}

/* ─── Labels ────────────────────────────────────────────────── */
.eba-label {
	position: absolute;
	bottom: 20px;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ffffff;
	padding: 6px 14px;
	border-radius: 50px;
	background: rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	pointer-events: none;
	z-index: 5;
}

.eba-label-before {
	left: 16px;
}

.eba-label-after {
	right: 16px;
	z-index: 1;
}

/* ─── Divider Line ──────────────────────────────────────────── */
.eba-divider {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	margin-left: -1px;
	background: #ffffff;
	z-index: 10;
	transform: translateX(0);
	pointer-events: none;
}

/* ─── Handle ────────────────────────────────────────────────── */
.eba-handle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.eba-container:active .eba-handle,
.eba-container.eba-dragging .eba-handle {
	transform: translate(-50%, -50%) scale(1.08);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.eba-arrows {
	width: 22px;
	height: 22px;
	color: #333;
	pointer-events: none;
}

/* ─── Keyboard focus ────────────────────────────────────────── */
.eba-handle:focus-visible {
	outline: 3px solid #4a90e2;
	outline-offset: 3px;
}
