.tbp-ba {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.tbp-ba__frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e8ebe6;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  container-type: inline-size;
}

.tbp-ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  display: block;
}

.tbp-ba__before-clip {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pos, 50%);
  overflow: hidden;
  border-right: 2px solid #fff;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.tbp-ba__before-clip .tbp-ba__img--before {
  width: 100cqi;
  max-width: none;
  height: 100%;
  left: 0;
  top: 0;
}

.tbp-ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 0;
  z-index: 3;
  pointer-events: none;
}

.tbp-ba__handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.tbp-ba__handle span::before,
.tbp-ba__handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  transform: translateY(-50%);
}

.tbp-ba__handle span::before {
  left: 10px;
  border-width: 6px 7px 6px 0;
  border-color: transparent #1a1f1c transparent transparent;
}

.tbp-ba__handle span::after {
  right: 10px;
  border-width: 6px 0 6px 7px;
  border-color: transparent transparent transparent #1a1f1c;
}

.tbp-ba__label {
  position: absolute;
  bottom: 12px;
  z-index: 2;
  background: rgba(26, 31, 28, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  pointer-events: none;
}

.tbp-ba__label--before {
  left: 12px;
}

.tbp-ba__label--after {
  right: 12px;
}

.tbp-ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}
