.articleGallery {
  width: 100%;
  min-width: 0;
  margin: 1.5em 0;
}

.articleGalleryStage {
  display: flex;
  width: 100%;
  aspect-ratio: var(--gallery-aspect);
  max-height: 80vh;
  max-height: 80svh;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  background: #f1f1ef;
}

.articleGalleryStage::-webkit-scrollbar { display: none; }
.articleGallerySlide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.articleGallerySlide img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
}
.articleGalleryControls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  min-height: 52px;
  font: 15px/1.4 Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
.articleGalleryControls button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: 24px/1 Arial, sans-serif;
  cursor: pointer;
}
.articleGalleryControls button:disabled { opacity: .3; cursor: default; }
.articleGallery:not([data-gallery-ready]) .articleGalleryControls button { visibility: hidden; }
.articleGallery :focus-visible { outline: 2px solid #495a52; outline-offset: 2px; }
.articleGalleryCaptions {
  display: grid;
  font: 15px/1.5 Arial, sans-serif;
  color: #555;
  text-align: left;
  overflow-wrap: anywhere;
}
.articleGalleryCaptions .articleGalleryCaption {
  grid-area: 1 / 1;
  align-self: start;
  margin: 0;
  padding: 0;
  font: inherit;
}
.articleGalleryCaption[aria-hidden="true"] { visibility: hidden; }
