.kvs-ba-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  line-height: 0;
  user-select: none;
  touch-action: none;
  min-height: 220px;
  /* critical: gives the box height */
  aspect-ratio: 16 / 9;
}

/* BOTH images must cover the stage */
.kvs-ba-base,
.kvs-ba-before {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.kvs-ba-before-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* The clipped layer must be absolute + fill */
.kvs-ba-before {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* handle */
.kvs-ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.kvs-ba-line {
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}

.kvs-ba-knob {
  position: absolute;
  top: 50%;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(255,255,255,.95);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

/* invisible range overlay for interaction */
.kvs-ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

@media (min-width: 480px) {
  .kvs-ba-stage {
  min-height: 300px;
  }
}