/* Custom Before/After Slider Component */
.ba-slider-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  aspect-ratio: 16 / 9;
  background-color: #0b0c10;
  user-select: none;
  -webkit-user-select: none;
}

.ba-slider-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.ba-before-image {
  z-index: 1;
}

.ba-after-image {
  z-index: 2;
  /* clip-path is updated via JS */
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: #00bfa5;
  z-index: 3;
  transform: translateX(-50%);
  cursor: ew-resize;
  box-shadow: 0 0 10px rgba(0, 191, 165, 0.5);
}

.ba-slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background-color: #121212;
  border: 2px solid #00bfa5;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00bfa5;
  box-shadow: 0 0 15px rgba(0, 191, 165, 0.8);
  pointer-events: none; /* Let the handle catch the drag */
}

/* Floating labels */
.ba-label {
  position: absolute;
  top: 20px;
  padding: 8px 16px;
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: white;
  font-weight: bold;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 4;
  font-size: 0.8rem;
  border: 1px solid rgba(255,255,255,0.1);
  user-select: none;
  pointer-events: none;
}
.ba-label-before {
  left: 20px;
}
.ba-label-after {
  right: 20px;
}

