[data-image-gallery] { position: relative; }
[data-image-gallery] .storyboard-track,
.gallery-viewer-track {
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
[data-image-gallery] .storyboard-track::-webkit-scrollbar,
.gallery-viewer-track::-webkit-scrollbar { display: none; }
[data-image-gallery] .storyboard-frame { cursor: zoom-in; }
[data-image-gallery] .storyboard-nav a {
  border: 0;
  font-size: 0;
  color: #fff;
  min-width: 36px;
}
[data-image-gallery] .storyboard-nav a::after,
.gallery-dots button::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #777;
}
[data-image-gallery] .storyboard-nav a[aria-current="true"]::after,
.gallery-dots button[aria-current="true"]::after { background: #89cfe5; transform: scale(1.25); }
.gallery-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid #777;
  border-radius: 50%;
  background: #151515de;
  color: #fff;
  cursor: pointer;
}
.gallery-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-arrow { position: absolute; top: 45%; z-index: 2; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-icon:disabled { opacity: 0.3; cursor: default; }
.gallery-viewer {
  box-sizing: border-box;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #080808;
  color: #fff;
  overflow: hidden;
}
.gallery-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.gallery-viewer::backdrop { background: #080808; }
.gallery-viewer-header { display: flex; align-items: center; justify-content: flex-end; padding: max(8px, env(safe-area-inset-top)) 12px 8px; }
/* Keep position announcements available to screen readers without visual clutter. */
[data-gallery-count] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gallery-viewer-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; min-height: 0; }
.gallery-viewer-slide { flex: 0 0 100%; min-width: 0; height: 100%; display: grid; place-items: center; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery-viewer-slide img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; user-select: none; }
.gallery-dots { display: flex; justify-content: center; padding-bottom: max(4px, env(safe-area-inset-bottom)); }
.gallery-dots button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.gallery-icon:focus-visible,
.gallery-dots button:focus-visible { outline: 2px solid #89cfe5; outline-offset: -3px; }
@media (hover: none) and (pointer: coarse) { .gallery-inline-arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { [data-image-gallery] *, .gallery-viewer * { scroll-behavior: auto; } }
