.ba-gallery { --ba-plum: #684762; }
.ba-intro { max-width: 65ch; }
.ba-stage { display: grid; gap: 2.5rem; margin: 2.5rem 0 1.5rem; }
.ba-slide { margin: 0; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.ba-phone { width: 100%; max-width: 330px; margin: auto; border: 7px solid #3a3039; border-radius: 32px; background: #f8f2e9; box-shadow: 0 18px 40px #35233320; overflow: hidden; }
.ba-phone img { display: block; width: 100%; height: auto; }
.ba-slide h3 { color: var(--ba-plum); font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.2; margin: 1rem 0; }
.ba-slide figcaption p { max-width: 35ch; }
.ba-gallery.is-enhanced .ba-stage { position: relative; isolation: isolate; padding: 24px 30px; touch-action: pan-y; }
.ba-gallery.is-enhanced .ba-stage::before, .ba-gallery.is-enhanced .ba-stage::after { content: ''; position: absolute; width: min(28%, 280px); height: 86%; top: 7%; left: 3%; border: 1px solid #bba8b6; border-radius: 30px; background: #eee2e9; z-index: -1; transform: rotate(-5deg); }
.ba-gallery.is-enhanced .ba-stage::after { transform: rotate(4deg); background: #f4e3d5; }
.ba-slide[hidden], .ba-controls[hidden] { display: none; }
.ba-controls { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.ba-controls button { min-width: 48px; min-height: 48px; border: 1px solid var(--ba-plum); border-radius: 50%; background: transparent; color: var(--ba-plum); font-size: 1.5rem; cursor: pointer; }
.ba-controls button:hover { background: #eee2e9; }
.ba-controls button:focus-visible { outline: 3px solid var(--ba-plum); outline-offset: 4px; }
.ba-note { color: var(--muted); font-size: .85rem; max-width: 75ch; margin-top: 1.5rem; }
@media (max-width: 650px) {
  .ba-slide { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .ba-phone { max-width: 270px; }
  .ba-slide figcaption { min-height: 160px; }
  .ba-gallery.is-enhanced .ba-stage { padding: 20px 16px 0; }
  .ba-gallery.is-enhanced .ba-stage::before, .ba-gallery.is-enhanced .ba-stage::after { width: 80%; max-width: 250px; height: 64%; left: calc(50% - min(40%, 125px)); top: 4%; }
}
@media (prefers-reduced-motion: no-preference) {
  .ba-gallery.is-enhanced .ba-slide:not([hidden]) .ba-phone { animation: ba-card-in .38s ease-out; }
  @keyframes ba-card-in { from { opacity: .25; transform: translateX(20px) rotate(3deg); } to { opacity: 1; transform: none; } }
}
