/* A receding photographic plane rises to meet the reader's scroll. */
.platform.platform--gallery { display: block; padding: 112px 0 80px; overflow: clip; }
.platform--gallery .platform-label { display: none; }
.platform--gallery .platform-content { padding: 0 24px; margin: 0 auto; text-align: center; }
.platform--gallery .platform-content h2 {
  max-inline-size: 34ch; margin-inline: auto;
  font: 400 clamp(2.5rem, 1.75rem + 2vw, 3.5rem)/1.04 "Newsreader Story", Georgia, serif;
  letter-spacing: -.02em; text-wrap: balance;
}
.gallery-heading-accent { color: #4b7145; }
.platform--gallery .platform-content > p {
  max-inline-size: 48ch; margin: 20px auto 0; font: 400 16px/1.6 Aspekta, Arial, sans-serif;
  letter-spacing: -.01em; color: #637066;
}
.gallery-actions { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 24px; }
.gallery-actions > a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; font: 400 14px/1.3 Aspekta, Arial, sans-serif; }
.gallery-primary { padding: 12px 18px; border-radius: 6px; background: #31583c; color: #fff; transition: background .2s; }
.gallery-primary:hover { background: #23422c; }
.gallery-secondary { color: #263c2e; }
.gallery-secondary:hover { text-decoration: underline; text-underline-offset: 4px; }
.research-gallery { margin-top: 100px; }
.gallery-sticky { padding: 0; }
.gallery-stage { overflow: clip; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 24px; }
.gallery-column { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gallery-column figure { margin: 0; background: #e3e9e1; border-radius: 6px; overflow: hidden; }
.gallery-column img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.gallery-column figure[aria-hidden="true"] { display: none; }
.gallery-reading { padding: 0 24px; margin: 40px auto 0; max-inline-size: 62ch; }
.gallery-reading > p { font: 400 clamp(1.125rem, 1rem + .25vw, 1.25rem)/1.65 Aspekta, Arial, sans-serif; letter-spacing: -.01em; color: #3f504a; }
.gallery-reading > .gallery-source-note { margin-top: 24px; font-size: 13px; line-height: 1.5; color: #526158; }
.gallery-source-note a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-height: 651px) and (prefers-reduced-motion: no-preference) {
  .platform.platform--gallery[data-gallery-pinned="true"] { padding-top: 0; scroll-margin-top: 0; }
  [data-gallery-pinned="true"] .gallery-sequence { height: calc(100svh + clamp(420px, 75svh, 800px)); }
  [data-gallery-pinned="true"] .gallery-scene {
    position: sticky; top: 0; height: 100svh; box-sizing: border-box;
    display: flex; flex-direction: column; gap: clamp(24px, 4svh, 56px); padding: 112px 0 24px;
  }
  [data-gallery-pinned="true"] .platform-content { flex: none; width: 100%; }
  [data-gallery-pinned="true"] .research-gallery { flex: 1; min-height: 0; height: auto; margin-top: 0; }
  [data-gallery-enhanced="true"] .gallery-sticky { height: 100%; }
  [data-gallery-enhanced="true"] .gallery-stage { height: 100%; perspective: 1400px; perspective-origin: 50% 0; }
  [data-gallery-enhanced="true"] .gallery-grid {
    width: 88%; max-width: 1200px; height: 100%; grid-template-rows: minmax(0, 1fr); margin: 0 auto; padding: 0;
    transform: translate3d(0, var(--gallery-rise, 48px), 0) rotateX(var(--gallery-tilt, 58deg)); transform-origin: 50% 0; transform-style: preserve-3d;
  }
  [data-gallery-enhanced="true"] .gallery-column { height: 100%; min-height: 0; transform: translate3d(0, var(--gallery-y, 0px), 0); }
  [data-gallery-enhanced="true"] .gallery-column figure { flex: 0 0 calc((100% - 24px) / 3); min-height: 0; }
  [data-gallery-enhanced="true"] .gallery-column img { height: 100%; aspect-ratio: auto; }
  [data-gallery-enhanced="true"] .gallery-column figure[aria-hidden="true"] { display: block; }
}
@media (max-width: 600px) {
  .platform.platform--gallery { padding-top: 112px; }
  .platform--gallery .platform-content h2 { font-size: 36px; }
  .gallery-actions { gap: 16px; flex-wrap: wrap; }
  .gallery-actions > a { font-size: 13px; }
  .research-gallery { margin-top: 72px; }
  [data-gallery-enhanced="true"] .gallery-stage { perspective: 700px; }
  [data-gallery-enhanced="true"] .gallery-grid { width: 92%; gap: 7px; }
  [data-gallery-enhanced="true"] .gallery-column figure { flex-basis: calc((100% - 14px) / 3); }
  .gallery-column { gap: 7px; }
  .research-gallery:not([data-gallery-enhanced="true"]) .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-gallery:not([data-gallery-enhanced="true"]) .gallery-column { display: contents; }
}
