.bgw-ba {
  --bgw-ba-position: 50%;
  --bgw-ba-ratio: 4 / 5;
  --bgw-ba-gold: #f6c014;
  --bgw-ba-navy: #272e35;
  --bgw-ba-radius: 12px;
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: var(--bgw-ba-ratio);
  overflow: hidden;
  border: 1px solid rgb(39 46 53 / 35%);
  border-radius: var(--bgw-ba-radius);
  background: #e8e8e8;
  cursor: ew-resize;
  /* Horizontal gestures control the slider; vertical gestures still scroll. */
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}

.bgw-ba__layer {
  position: absolute;
  inset: 0;
}

.bgw-ba__layer img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  pointer-events: none;
}

.bgw-ba__before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--bgw-ba-position)) 0 0);
}

.bgw-ba__divider {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--bgw-ba-position);
  width: 2px;
  background: var(--bgw-ba-gold);
  transform: translateX(-50%);
  pointer-events: none;
}

.bgw-ba__handle {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: var(--bgw-ba-position);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 3px solid var(--bgw-ba-navy);
  border-radius: 50%;
  color: var(--bgw-ba-navy);
  background: var(--bgw-ba-gold);
  box-shadow: 0 2px 8px rgb(0 0 0 / 28%);
  transform: translate(-50%, -50%);
  cursor: ew-resize;
}

.bgw-ba__handle:focus-visible {
  outline: 3px solid rgb(246 192 20 / 60%);
  outline-offset: 3px;
}

.bgw-ba__label {
  position: absolute;
  z-index: 2;
  top: 14px;
  padding: 6px 12px;
  border-radius: 2px;
  color: #fff;
  background: rgb(39 46 53 / 85%);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
}

.bgw-ba__label--before {
  left: 14px;
}

.bgw-ba__label--after {
  right: 14px;
}

.bgw-ba__notice {
  padding: .75rem 1rem;
  border-left: 4px solid #d63638;
  background: #fff;
}

/*
 * Elementor can collapse a shortcode widget to a few pixels tall at narrow
 * breakpoints while allowing its contents to overflow. JavaScript adds these
 * classes and a measured min-height so following widgets cannot overlap.
 */
.bgw-ba-elementor-widget,
.bgw-ba-elementor-container {
  height: auto !important;
  overflow: visible !important;
}

@media (max-width: 480px) {
  .bgw-ba__handle {
    width: 42px;
    height: 42px;
  }

  .bgw-ba__label {
    top: 10px;
    padding: 5px 9px;
  }

  .bgw-ba__label--before {
    left: 10px;
  }

  .bgw-ba__label--after {
    right: 10px;
  }
}
