/* EOTLS Review 05c — adaptive Art + Motion mosaic, based on Review 05a.
   No fixed desktop/tablet/mobile column counts and no uniform tile crop.
   Items keep their original aspect ratio; wider pieces can occupy two cells.
   A tiny layout helper assigns vertical spans after media dimensions load. */
body.eotls-071 .e062-gallery-grid[data-adaptive-gallery] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, clamp(168px, 24vw, 270px)), 1fr));
  grid-auto-rows: 10px;
  grid-auto-flow: dense;
  align-items: start;
  gap: .8rem;
}
body.eotls-071 .e062-gallery-grid[data-adaptive-gallery] > figure {
  min-width: 0;
  margin: 0;
  background: #ddd;
  overflow: hidden;
  grid-row-end: span var(--media-row-span, 24);
  grid-column: span var(--media-col-span, 1);
}
body.eotls-071 .e062-gallery-grid[data-adaptive-gallery] > figure > :is(img, video) {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
body.eotls-071 .e062-gallery-grid[data-adaptive-gallery] > figure > video {
  background: #151515;
}
@media (prefers-reduced-motion: reduce) {
  body.eotls-071 .e062-gallery-grid[data-adaptive-gallery] figure img {
    transition: none;
  }
}
