/* =========================================================
   gallery.css
   参考: Onoaz .gallery__track（写真が横に流れ続ける・大きさと高さを互い違いに）
   ========================================================= */
.gallery { overflow: hidden; }
.gallery__track {
  display: flex; align-items: flex-start; gap: 20px;
  width: max-content;
  animation: gallery-marquee 50s linear infinite;
}
.gallery:hover .gallery__track { animation-play-state: paused; }
@keyframes gallery-marquee { to { transform: translateX(calc(-50% - 10px)); } }   /* 中身はJSで複製 */

.gallery__item { flex: none; width: clamp(180px, 22vw, 320px); border-radius: var(--radius); overflow: hidden; }
.gallery__item > * { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery__item:nth-child(3n+2) { width: clamp(150px, 17vw, 240px); margin-top: clamp(40px, 6vw, 90px); }  /* Onoaz：nth-child でずらす */
.gallery__item:nth-child(3n+2) > * { aspect-ratio: 1; }
.gallery__item:nth-child(3n) { margin-top: clamp(16px, 2vw, 30px); }
.gallery__item:nth-child(3n) > * { aspect-ratio: 4 / 3; }

@media (prefers-reduced-motion: reduce) { .gallery__track { animation: none; } }
