.scroll-collage,
.photo-wall { margin-top: 2rem; }

.scroll-collage { display: grid; gap: .75rem; }
.collage-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  align-items: center;
}
.collage-group img,
.photo-sequence img { width: 100%; height: auto; }

.photo-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  max-width: 850px;
  max-height: min(70vh, 650px);
  overflow: auto;
}
.photo-sequence { display: grid; gap: .75rem; padding-bottom: .75rem; }
.photo-repeat { display: none; }

@media (max-width: 600px) {
  .collage-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
  .collage-group.awaiting-view { opacity: 0; }
  .collage-group.entered { animation: rise-in .65s ease-out both; }

  .photo-wall.is-animated { overflow: hidden; }
  .photo-wall.is-animated .photo-track {
    animation: move-wall 155s linear infinite;
    animation-play-state: paused;
  }
  .photo-wall.is-animated .photo-lane:nth-child(2) .photo-track {
    animation-direction: reverse;
    animation-duration: 165s;
  }
  .photo-wall.is-animated .photo-repeat { display: grid; }
  .photo-wall.is-visible:not(:hover):not(:focus) .photo-track { animation-play-state: running; }
}

@keyframes move-wall {
  to { transform: translateY(-50%); }
}
