/* Round-3 audit fix (October 25, 2026): C041's two portrait-format board photographs
   (900 × 1200) sat letterboxed in wide fixed-height frames. Size those frames to the
   photographs' own 3:4 shape so the whole board shows with no empty black side blocks. */
body .copy-card#C041 .gallery {
  grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
  justify-content: center;
}
body .copy-card#C041 .gallery figure > img,
body .copy-card#C041 .gallery img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
}

/* Light themes: photo strips carried a dark charcoal strip background (Folio) and
   near-black letterbox fill behind contained photographs (Folio, Museum, Egyptian).
   Let the light record card and each frame's light panel show instead. Photographs
   stay whole (object-fit: contain, no cropping); dark themes are unchanged. */
body:is([data-design="folio"], [data-design="museum"], [data-design="egyptian"], [data-design="atlas"]) .copy-card .gallery {
  background: transparent;
}
body:is([data-design="folio"], [data-design="museum"], [data-design="egyptian"], [data-design="atlas"]) .copy-card .gallery figure img,
body:is([data-design="folio"], [data-design="museum"], [data-design="egyptian"], [data-design="atlas"]) .copy-card .gallery img {
  background: transparent;
}
