.bva-slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px;
  user-select: none;
  cursor: ew-resize;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.bva-slider-placeholder {
  padding: 40px 20px;
  text-align: center;
  background: #f4f4f4;
  border: 1px dashed #ccc;
  border-radius: 8px;
  color: #666;
  font-family: system-ui, sans-serif;
}

.bva-after,
.bva-before {
  position: absolute;
  inset: 0;
}

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

/* BEFORE is the base layer, always fully visible underneath. */
.bva-before {
  z-index: 1;
}

/* AFTER is the overlay, revealed left-to-right with a soft feathered edge (set via JS mask-image). */
.bva-after {
  z-index: 2;
}

.bva-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
}

.bva-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}

.bva-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.bva-label {
  position: absolute;
  bottom: 14px;
  padding: 4px 12px;
  font: 600 12px/1 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  pointer-events: none;
  z-index: 4;
}
.bva-label-before {
  left: 14px;
}
.bva-label-after {
  right: 14px;
}

@media (max-width: 480px) {
  .bva-handle-circle {
    width: 36px;
    height: 36px;
  }
  .bva-label {
    font-size: 10px;
    padding: 3px 9px;
  }
}
