.inline-gallery { min-width:0; }
.ig-frame {
  position:relative; width:100%; aspect-ratio:var(--ig-ratio);
  max-height:72vh; max-height:72svh;
}
.ig-frame .ig-image {
  display:block; position:absolute; inset:0; width:100%; height:100%;
  object-fit:contain; object-position:center;
}
.ig-control {
  position:absolute; top:0; bottom:0; width:50%; display:flex; align-items:center;
  padding-inline:clamp(6px,1vw,16px); background:transparent; color:white;
  touch-action:pan-y pinch-zoom;
}
.ig-prev { inset-inline-start:0; justify-content:flex-start; }
.ig-next { inset-inline-end:0; justify-content:flex-end; }
.ig-control span {
  display:grid; place-items:center; width:38px; height:38px; border-radius:50%;
  background:rgb(33 29 26 / .8);
}
.ig-control span::after {
  content:""; width:9px; height:9px; border:solid currentColor; border-width:1.5px 1.5px 0 0;
}
.ig-prev span::after, :dir(rtl) .ig-next span::after { transform:translateX(2px) rotate(-135deg); }
.ig-next span::after, :dir(rtl) .ig-prev span::after { transform:translateX(-2px) rotate(45deg); }
.ig-control:focus-visible { outline:none; }
.ig-control:focus-visible span { outline:2px solid white; outline-offset:2px; box-shadow:0 0 0 5px #352e28; }
@media (hover:hover) {
  .ig-control:hover span { background:#29241f; }
}
.ig-info { display:flex; justify-content:space-between; align-items:baseline; gap:14px; padding-top:8px; color:var(--muted); font-size:.86rem; line-height:1.45; }
.ig-count { flex:none; font-variant-numeric:tabular-nums; }
@media (max-width:650px) {
  .ig-control span { width:32px; height:32px; }
}
