.block-ba__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.block-ba__stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--ib-radius);
  background: var(--ib-bg-soft);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  cursor: ew-resize;
}

.block-ba__layer {
  inset: 0;
}

.block-ba__layer--after {
  position: relative;
}

.block-ba__layer--before {
  position: absolute;
  width: var(--ba-start, 50%);
  overflow: hidden;
}

.block-ba__layer--before .block-ba__image {
  position: absolute;
  inset: 0;
  width: auto;
  max-width: none;
  height: 100%;
}

.block-ba__image {
  display: block;
  width: 100%;
  height: auto;
}

.block-ba__tag {
  position: absolute;
  bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(11, 13, 17, .72);
  color: #fff;
  font-size: 13px;
  letter-spacing: .02em;
  pointer-events: none;
}

.block-ba__tag--before {
  left: 14px;
}

.block-ba__tag--after {
  right: 14px;
}

.block-ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-start, 50%);
  width: 44px;
  margin-left: -22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.block-ba__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(11, 13, 17, .18);
}

.block-ba__grip {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(11, 13, 17, .26);
  display: flex;
  align-items: center;
  justify-content: center;
}

.block-ba__handle:focus-visible {
  outline: none;
}

.block-ba__handle:focus-visible .block-ba__grip {
  outline: 2px solid var(--ib-accent);
  outline-offset: 3px;
}

.block-ba__grip::before,
.block-ba__grip::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.block-ba__grip::before {
  left: 11px;
  border-right: 6px solid var(--ib-fg);
}

.block-ba__grip::after {
  right: 11px;
  border-left: 6px solid var(--ib-fg);
}

.block-ba__caption {
  font-size: 15px;
  color: var(--ib-muted);
}

@media (min-width: 901px) {
  .block-ba--split .block-ba__layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: center;
  }

  .block-ba--split .block-ba__head {
    margin-bottom: 0;
  }
}

@media (max-width: 700px) {
  .block-ba__tag {
    font-size: 12px;
    padding: 5px 11px;
  }
}
