/* ============================================
   Gallery Grid
   ============================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--spacing-lg) var(--spacing-md);
  align-items: end;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-item:hover {
  opacity: 0.75;
  transform: translateY(-2px);
}

.gallery-item__image-wrap {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.gallery-item__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-item__number {
  margin-top: var(--spacing-xs);
  font-size: 0.75rem;
  font-weight: 300;
  opacity: 0.6;
}

/* Fade in animation */
.gallery-item {
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for items */
.gallery-item:nth-child(1)  { animation-delay: 0.02s; }
.gallery-item:nth-child(2)  { animation-delay: 0.04s; }
.gallery-item:nth-child(3)  { animation-delay: 0.06s; }
.gallery-item:nth-child(4)  { animation-delay: 0.08s; }
.gallery-item:nth-child(5)  { animation-delay: 0.10s; }
.gallery-item:nth-child(6)  { animation-delay: 0.12s; }
.gallery-item:nth-child(7)  { animation-delay: 0.14s; }
.gallery-item:nth-child(8)  { animation-delay: 0.16s; }
.gallery-item:nth-child(9)  { animation-delay: 0.18s; }
.gallery-item:nth-child(10) { animation-delay: 0.20s; }
.gallery-item:nth-child(11) { animation-delay: 0.22s; }
.gallery-item:nth-child(12) { animation-delay: 0.24s; }
.gallery-item:nth-child(n+13) { animation-delay: 0.26s; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md) var(--spacing-sm);
  }
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md) var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
}
