 


 

.ba-slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 12 / 8;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
}

.ba-before,
.ba-after {
  position: absolute;
  inset: 0;
  background-size: auto 100%;
  background-position: 0 0;
  background-repeat: no-repeat;
}

.ba-before {
  z-index: 1;
  background-image: url("./assets/tag_reuters_skola_pred-fin.png");
}
.ba-after-wrap {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
}
.ba-after {  z-index: 2;
  background-image: url("./assets/tag_reuters_skola_po-fin.png");
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #fff;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(0,0,0,.2);
}

.ba-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ccc;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
}