.gallery {
  overflow: hidden;
  padding: 1.5rem 0;
  background: #211d1a;
}

.gallery-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  animation: galleryScroll 46s linear infinite;
}

.gallery:hover .gallery-track {
  animation-play-state: paused;
}

@keyframes galleryScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.gallery-item {
  position: relative;
  width: 260px;
  height: 320px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.gallery-item:nth-child(3n+2) {
  height: 280px;
  align-self: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: saturate(0.92);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

@media (max-width: 700px) {
  .gallery-item {
    width: 190px;
    height: 240px;
  }
  .gallery-item:nth-child(3n+2) {
    height: 210px;
  }
}
