/*
.comparison-container {
  position: relative;
  flex: 0 1 calc(33.333% - 24px);
  aspect-ratio: 4 / 3;
  overflow: hidden;

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  min-width: 280px;
}


@media (max-width: 1024px) {
  .comparison-container {
    flex: 0 1 calc(50% - 24px);
  }
}

@media (max-width: 640px) {
  .comparison-container {
    flex: 0 1 100%;
  }
}


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

.after {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.label {
  position: absolute;
  top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 10px;
  border-radius: 4px;
  z-index: 10;
  pointer-events: none;
}

.before-label {
  left: 12px;
}

.after-label {
  right: 12px;
}

.divider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: white;
  z-index: 5;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.handle {
  width: 32px;
  height: 32px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;

  position: relative;
  z-index: 6;
  pointer-events: none;
}

.arrow {
  font-size: 44px;
  color: #fff;
  padding: 0 20px;
  pointer-events: none;
}
 */



.ba-header { margin-bottom: 16px; }
.ba-title { margin: 0 0 6px 0; }
.ba-subtitle { margin: 0 0 10px 0; color: inherit; }
.ba-text { margin: 0; color: inherit; }

.comparison-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  -webkit-user-select: none;
  user-select: none;
}
.comparison-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comparison-img.after { clip-path: inset(0 50% 0 0); }

.label {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  pointer-events: none;
}
.before-label { left: 12px; }
.after-label  { right: 12px; }

/* Divider always on top and easy to grab */
.divider {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
  left: 50%;
  cursor: ew-resize;
  z-index: 3;
}
.divider::before {            /* larger invisible hit area */
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  transform: translateX(-50%);
  width: 28px;
  cursor: inherit;
}

.handle {
  position: absolute;
  top: 50%; left: 0;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 8px 10px;
  border-radius: 999px;
  display: flex; gap: 6px; align-items: center;
  font-size: 12px; white-space: nowrap;
  pointer-events: none; /* events go to .divider */
}
