/* ============================================================
   image-splitter.css  —  Before / After slider
   ============================================================ */
 
/* ── Container ── */
.img-comp-container {
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  width: 610px;
  height: 805px;
  max-width: 100%;
}
 
/* ── AFTER layer (first child only) ── */
.img-comp-container > .img-comp-img:first-child {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
 
.img-comp-container > .img-comp-img:first-child img {
  display: block;
  width: 610px;
  height: 805px;
  max-width: none;
}
 
/* ── BEFORE / overlay layer ── */
.img-comp-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;    /* CSS fallback — JS also sets this as inline style on load */
  height: 100%;
  overflow: hidden;
  z-index: 3;
}
 
.img-comp-overlay img {
  display: block;
  width: 610px;
  height: 805px;
  max-width: none !important;
}
 
/* ── Prevent native browser image drag (the Mac lift-off effect) ── */
.img-comp-container img {
  pointer-events: none;
  -webkit-user-drag: none;
}
 
/* ── Divider line (injected by JS) ── */
.img-comp-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.85);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 8;
}
 
/* ── Circular handle (injected by JS) ── */
.img-comp-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25), 0 0 0 3px rgba(255,255,255,0.5);
  pointer-events: none;
  z-index: 10;
}
 
/* ── Labels (injected by JS) ── */
.img-comp-label {
  position: absolute;
  bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
  pointer-events: none;
}
 
.img-comp-label.label-before { left: 16px; }
.img-comp-label.label-after  { right: 16px; z-index: 2; }