/* ============================================================
   NULLGRAVE — ARCHIVE ART LAYER (small companion to archive.css)
   Adds only what archive.css does not already have:
   the captures gallery, the editor-only art slot, and the art
   image inside a merch card. Load AFTER archive.css.
   The portrait module and archive-series styles live in archive.css.
   ============================================================ */

/* Art image inside a merch card (.ng-merch-card__img is 1:1, overflow hidden) */
.ng-arc-merch-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show the whole piece, any orientation, no cropping */
}

/* Portrait (archive.css sets a fixed 4:5 crop; when real art is present,
   let the frame follow the image's own proportions instead, with a height cap) */
.ng-dossier__portrait-frame--art { aspect-ratio: auto; }
.ng-dossier__portrait-frame--art img {
  width: 100%;
  height: auto;
  max-height: 460px;      /* cap for very tall art */
  object-fit: contain;    /* letterboxed on the dark frame if capped */
}

/* Captures gallery */
.ng-arc-gallery { margin: 56px 0 0; }
.ng-arc-gallery__title {
  font-family: var(--ng-font-display);
  font-size: 28px;
  letter-spacing: .04em;
  font-weight: 400;
  color: var(--ng-bone);
  margin: 0 0 20px;
}
.ng-arc-gallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;          /* justified rows; per-item flex set inline from the real aspect ratio */
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
}
.ng-arc-gallery__grid::after { content: ""; flex-grow: 1000000; }  /* keeps the last row from stretching */
.ng-arc-gallery__item { margin: 0; min-width: 120px; }
.ng-arc-gallery__link {
  display: block;
  border: 1px solid var(--ng-border);
  background: var(--ng-bg);
}
.ng-arc-gallery__link img {
  display: block;
  width: 100%;
  height: auto;           /* natural proportions, no cropping */
}
.ng-arc-gallery__link:hover,
.ng-arc-gallery__link:focus-visible { border-color: var(--ng-amber); }
.ng-arc-gallery__link:focus-visible { outline: 2px solid var(--ng-amber); outline-offset: 3px; }
.ng-arc-gallery__cap {
  display: block;
  margin-top: 8px;
  font-family: var(--ng-font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--ng-arc-label);
}

/* Editor-only stand-in for a gallery image that is not uploaded yet */
.ng-arc-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  text-align: center;
  font-family: var(--ng-font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  line-height: 1.7;
  color: var(--ng-arc-label);
  border: 1px dashed var(--ng-amber-dim);
}

/* Archive series grid: style.css paints the grid with the border color
   (1px gaps between cards). With only a few cards that leaves solid
   empty slabs, so the series grid uses separated bordered cards instead. */
.ng-merch-series .ng-merch-grid { background: transparent; gap: 14px; }
.ng-merch-series .ng-merch-card { border: 1px solid var(--ng-border); border-left: 3px solid var(--ng-amber-dim); }