/* Other, grid variant (other-grid.js). Scrolls on its own, so the home can stay overflow: hidden. */
.view-other {
  position: fixed; inset: 0; z-index: 5;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  background: #fafafa;
}
.view-other[hidden] { display: none; }
.view-other:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink, #111); }

.og-wall { position: relative; width: 100%; }

.og-item { position: absolute; left: 0; top: 0; }
.og-item[hidden] { display: none; }
.og-art { display: block; width: 100%; }
.is-mask .og-art {
  -webkit-mask: var(--m) center / contain no-repeat;
          mask: var(--m) center / contain no-repeat;
}
/* pictures are <img srcset>: the box has the file's own proportion, so cover never crops */
.is-tone .og-art, .is-photo .og-art { object-fit: cover; color: transparent; }   /* no alt text flashing while it loads */
.is-photo .og-art { border-radius: var(--r, 8px); }
.is-video .og-art { object-fit: cover; border-radius: var(--r, 8px); background: #111; }
.is-video .og-art:focus-visible { outline: none; box-shadow: var(--focus); }

/* the label: number, file, size — as on the Shuttle grid */
.og-cap {
  display: flex; flex-wrap: wrap; gap: 2px 1.25em;
  margin: 10px 0 0;
  font-size: var(--fs-small, 13px); line-height: 1.3; font-feature-settings: var(--font-features);
  font-variant-numeric: tabular-nums;
  color: var(--muted, #737373);
  white-space: nowrap;
}
.og-cap span:first-child { color: var(--ink, #111); }
.og-cap span:last-child { white-space: normal; }   /* under a narrow piece "file · size" wraps instead of running past the margin */

/* coming in: a short rise */
@media (prefers-reduced-motion: no-preference) {
  .og-item > * { opacity: 0; translate: 0 24px; transition: opacity .5s ease, translate .8s var(--ease-out, cubic-bezier(.22,1,.36,1)); }
  .og-item.is-in > * { opacity: 1; translate: 0 0; }
}
