.gd-gallery-item { position: relative; min-width: 0; }
.gd-scenario > .gd-gallery-item { margin-block-start: 24px; }
.gd-scenario > .gd-gallery-item > .gd-scenario-art { margin: 0; }
.gd-gallery-item :is(img, video) { cursor: zoom-in; }
.gd-user-flow-art { margin: 0 0 clamp(20px, 4vw, 48px); }
.gd-user-flow-art img { display: block; width: 100%; height: auto; }
#gd-gallery button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
#gd-gallery[open] {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  padding: 0;
  background: #fff;
  color: #171717;
}
.gd-gallery-open { overflow: hidden; }
.gd-gallery-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid #dedede;
}
#gd-gallery button { font: 22px/1 system-ui, sans-serif; }
#gd-gallery button[hidden] { display: none; }
#gd-gallery button[aria-pressed="true"] { color: #aa3928; }
#gd-gallery :is([data-gallery-prev], [data-gallery-next], [data-gallery-close]) {
  position: absolute;
  z-index: 1;
  font-size: 32px;
}
#gd-gallery :is([data-gallery-prev], [data-gallery-next]) { top: 50%; transform: translateY(-50%); }
#gd-gallery [data-gallery-prev] { left: 0; }
#gd-gallery [data-gallery-next] { right: 0; }
#gd-gallery [data-gallery-close] { top: 10px; right: 10px; }
.gd-gallery-caption { min-width: 54px; text-align: center; font-variant-numeric: tabular-nums; }
.gd-gallery-viewport { display: grid; overflow: auto; padding: 12px 44px; }
.gd-gallery-viewport > :is(img, video) {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  place-self: safe center;
}
.gd-gallery-viewport.is-zoomed > img { max-width: none; max-height: none; }
.gd-gallery-viewport:not(.is-zoomed) { grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
