/* Test-only slider skin. Does not replace the live crm-ba-slider.css.
   Vertical reveal = Swift Built pattern. Arrows and dots sit under the photo. */
@import url("crm-ba-slider.css?v=v32slider");

.ba-slider { container-type: inline-size; }
.ba-slider picture {
  position: absolute;
  left: 0; top: 0;
  width: 100cqi;
  height: 100%;
  display: block;
  max-width: none;
}
.ba-slider img {
  width: 100cqi;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Fallback if cqi is missing: size the before image to the slider, not the clipped pane. */
.ba-before picture,
.ba-before img {
  width: calc(100% / var(--pos) * 100%);
  max-width: none;
}

/* Pull arrows and dots out of the photo, into a bar under the frame: [prev] dots [next]. */
.crm-ba-carousel .crm-ba-frame {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.crm-ba-viewport {
  flex: 1 0 100%;
  order: 1;
  border-radius: 10px;
}
.crm-ba-arrow {
  position: static;
  top: auto;
  transform: none;
  flex: 0 0 44px;
}
.crm-ba-prev { left: auto; order: 2; }
.crm-ba-dots {
  position: static;
  left: auto; right: auto; bottom: auto;
  order: 3;
  background: none;
  padding: 0;
  pointer-events: auto;
}
.crm-ba-next { right: auto; order: 4; }
.crm-ba-dot {
  background-color: #c8c8c8;
}
.crm-ba-dot[aria-selected="true"] { background-color: #f46e00; }
