.grey-site .live-article-body .article-gallery {
  margin: 24px 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--frame-line);
  border-top-color: rgba(255, 246, 211, .94);
  border-radius: 5px;
  background: rgba(255, 255, 255, .72);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, .94),
    -4px -3px 14px rgba(255, 238, 184, .18),
    6px 8px 16px rgba(31, 31, 31, .08);
}
.grey-site .article-gallery__viewport {
  display: flex;
  direction: ltr;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--frame-muted) #e9e9e6;
  background-color: #e9e9e6;
  background-image: linear-gradient(130deg, rgba(255,255,255,.38), rgba(255,255,255,.12)), var(--material-mineral, none);
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 640px 640px;
  background-blend-mode: normal, soft-light;
}
.grey-site .article-gallery__slide {
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.grey-site .live-article-body .article-gallery__slide > a {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 540px;
  max-height: 72svh;
  padding: 12px;
  color: var(--frame-ink);
  text-decoration: none;
}
.grey-site .live-article-body .article-gallery__slide img {
  display: block;
  width: 100%;
  height: 100% !important;
  min-height: 0;
  object-fit: contain;
  margin: 0;
}
.grey-site .live-article-body .article-gallery__slide figcaption {
  display: grid;
  align-items: center;
  height: 64px;
  padding: 8px 16px;
  border-top: 1px solid var(--frame-line);
  border-left: 3px solid var(--frame-ember);
  background-color: rgba(255, 255, 255, .78);
  color: var(--frame-ink);
  font: 500 .875rem/1.6 var(--font-ui, sans-serif);
  text-align: left;
  overflow-wrap: anywhere;
}
.grey-site .live-article-body .article-gallery:is(:hover, :focus-within) figcaption { background-color: #fff; }
.grey-site .article-gallery__controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 44px 76px 44px;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background-color: #e9e9e6;
  background-image: var(--material-led-edge, none), linear-gradient(130deg, rgba(255,255,255,.68), rgba(255,255,255,.18)), var(--material-reflection, none);
  background-repeat: repeat-x, no-repeat, repeat;
  background-position: top left, top left, center;
  background-size: 512px 6px, 100% 100%, 720px 720px;
  background-blend-mode: normal, normal, soft-light;
  border-top: 1px solid var(--frame-line);
}
.grey-site .article-gallery__label {
  margin: 0;
  color: var(--frame-muted);
  font: 500 .65rem/1.5 var(--font-code, monospace);
  text-transform: uppercase;
}
.grey-site .article-gallery__controls select {
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 32px 0 12px;
  border: 1px solid var(--frame-line);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, .78);
  color: var(--frame-ink);
  font: 400 .85rem var(--font-ui, sans-serif);
  letter-spacing: 0;
  text-transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94);
}
.grey-site .article-gallery__controls .article-gallery__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--frame-line) !important;
  border-radius: 4px;
  background: rgba(255, 255, 255, .78) !important;
  color: var(--frame-ember) !important;
  box-shadow: inset 0 1px 0 #fff !important;
  animation: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: none;
}
.grey-site .article-gallery__arrow::before,
.grey-site .article-gallery__arrow::after { display: none; }
.grey-site .article-gallery__controls .article-gallery__arrow:hover:not(:disabled) { background: #fff !important; border-color: var(--frame-ember) !important; }
.grey-site .article-gallery__controls .article-gallery__arrow:disabled { color: var(--frame-muted) !important; cursor: default; opacity: .5; }
.grey-site .article-gallery__counter {
  color: var(--frame-muted);
  font: 400 .78rem/1.5 var(--font-code, monospace);
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.grey-site .article-gallery :is(button, select, a, .article-gallery__viewport):focus-visible {
  outline: 2px solid var(--frame-ember);
  outline-offset: -3px;
}
.grey-site .article-gallery__unavailable {
  position: absolute;
  padding: 8px;
  color: var(--frame-muted);
  background: #fff;
  font-size: .85rem;
}
.grey-site .live-article-body .prompt-section { margin: 40px 0; scroll-margin-top: 110px; }
.grey-site .live-article-body .prompt-section h3 { margin: 0 0 16px; }
.grey-site .live-article-body .prompt-keywords { margin: 16px 0 32px; }
.grey-site .prompt-keywords > summary { padding: 10px 0; color: var(--frame-ink); font-weight: 500; cursor: pointer; }
.grey-site .prompt-keywords > summary::marker { color: var(--frame-ember); }
.grey-site .prompt-keywords pre { margin-top: 8px; }
@media (max-width: 600px) {
  .grey-site .live-article-body .article-gallery__slide > a { height: auto; aspect-ratio: 1; max-height: none; padding: 8px; }
  .grey-site .article-gallery__controls { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; padding: 10px; }
  .grey-site .article-gallery__label { grid-column: 1 / -1; }
  .grey-site .article-gallery__controls select { grid-column: 1 / -1; grid-row: 2; }
  .grey-site .article-gallery__counter { grid-column: 2; grid-row: 3; }
}
@media print {
  .grey-site .article-gallery__controls { display: none; }
  .grey-site .article-gallery__viewport { display: block; overflow: visible; }
  .grey-site .article-gallery__slide { break-inside: avoid; page-break-inside: avoid; margin-bottom: 20px; }
  .grey-site .article-gallery__slide a { height: 150mm !important; max-height: none !important; }
  .grey-site .live-article-body .article-gallery { overflow: visible; box-shadow: none; border: 0; }
}
