.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-item {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.grid-item:hover {
  transform: translateY(-5px);
}

.grid-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.loading-spinner {
  text-align: center;
  padding: 2rem;
  color: #0a2b3e;
  font-weight: 500;
}

.back-btn {
  background: #facc15;
  color: #0a2b3e;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-weight: 600;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
}

.back-btn:hover {
  background: #eab308;
  transform: translateX(-3px);
}

@media (max-width: 800px) {
  .back-btn {
    width: auto; /* already there */
    align-self: center;
  }
}
