/* Development proof: each chapter rotates only within its existing image bounds. */
.history-gallery > img {
  transition: opacity 1.3s ease-in-out;
}
.history-gallery > img.history-gallery-slide {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.history-gallery > img.is-current {
  opacity: 1;
}
.history-gallery:hover img {
  transform: none;
}
.history-gallery-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  color: #fff;
  background: rgba(18,45,39,.74);
  cursor: pointer;
}
.history-gallery-toggle:hover,
.history-gallery-toggle:focus-visible {
  background: #123b33;
}
.history-gallery-toggle:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}
.history-gallery-toggle svg { width: 15px; height: 15px; fill: currentColor; }
@media (prefers-reduced-motion: reduce) {
  .history-gallery > img { transition: none; }
}
