/* Studio Icon Before/After Slider — self-contained styles */
.sisl-slider {
  position: relative;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  touch-action: none;
  width: 100%;
  min-height: 480px;
  background: #eee;
  border-radius: 12px;
}
/* Pre-init: hide the raw <img> so we don't flash unstyled markup */
.sisl-slider:not(.sisl-ready) > img { display: none; }
.sisl-slider.sisl-dragging { cursor: grabbing; }

.sisl-before,
.sisl-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.sisl-before img,
.sisl-after img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.sisl-after {
  clip-path: inset(0 0 0 50%);
  -webkit-clip-path: inset(0 0 0 50%);
}

/* Vertical drag handle — matches baie / twentytwenty look:
   thin white line ABOVE and BELOW the center circle (interrupted through
   the circle), transparent border-only circle with two arrow triangles. */
.sisl-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none; /* the whole slider catches the drag */
  background: transparent; /* line drawn via .sisl-arrows pseudo-elements */
}
.sisl-arrows {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 3px solid #fff;
  box-shadow: 0 0 12px rgba(51, 51, 51, .5);
  pointer-events: none;
}
/* Vertical line halves — go from the circle edge to the slider edges,
   so the line appears to "break" at the circle. */
.sisl-arrows::before,
.sisl-arrows::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 9999px;
  background: #fff;
  box-shadow: 0 0 12px rgba(51, 51, 51, .5);
  pointer-events: none;
}
.sisl-arrows::before { bottom: 100%; margin-bottom: 3px; } /* upper half */
.sisl-arrows::after  { top: 100%;    margin-top: 3px;    } /* lower half */

/* Two CSS triangles inside the circle (twentytwenty-style arrows). */
.sisl-arrow-left,
.sisl-arrow-right {
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  margin-top: -5px;
}
.sisl-arrow-left {
  border-right-color: #fff;
  left: 50%;
  margin-left: -13px;
}
.sisl-arrow-right {
  border-left-color: #fff;
  right: 50%;
  margin-right: -13px;
}

.sisl-label {
  position: absolute;
  top: 14px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity .18s ease;
}
.sisl-label-before { left: 14px; }
.sisl-label-after  { right: 14px; }
/* Labels only appear on hover / while dragging (also handy on touch: labels
   flash while the user is actively interacting). */
.sisl-slider:hover .sisl-label,
.sisl-slider.sisl-dragging .sisl-label,
.sisl-slider:focus-within .sisl-label {
  opacity: 1;
}

@media (max-width: 767px) {
  .sisl-slider { min-height: 420px; }
}
