/*
  Before/after comparison. A .ba box holds two photos: the "after" (.a) is clipped at --x
  and dragged by js/compare.js. Add .split to show the two photos side by side instead,
  for pairs that weren't shot from the same spot.
*/
.ba{position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--ink-3);cursor:ew-resize;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.ba img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.ba .a{clip-path:inset(0 0 0 var(--x,50%))}
.ba .bar{position:absolute;top:0;bottom:0;left:var(--x,50%);width:2px;margin-left:-1px;background:#fff;pointer-events:none}
.ba .bar::after{content:"";position:absolute;top:50%;left:50%;width:40px;height:40px;transform:translate(-50%,-50%);border-radius:50%;background:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312100E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E");background-size:20px;background-repeat:no-repeat;background-position:center}
.ba .t{position:absolute;top:12px;font-size:.82rem;font-weight:600;padding:4px 9px;background:rgba(18,16,14,.75);pointer-events:none}
.ba .t.b{left:12px}.ba .t.f{right:12px;color:var(--gold)}
.ba.split{display:grid;grid-template-columns:1fr 1fr;gap:3px;cursor:default;background:var(--ink)}
.ba.split img{position:static}
