/* =========================================================
   Лента рецептов (карточки)
   ========================================================= */
.gallery ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery li {
  margin: 0;
}

.gallery picture {
  display: block;
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.gallery a:hover img {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery li > div {
  margin-top: 0.6rem;
  text-align: center;
}

.gallery li > div a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.gallery li > div a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

@media (max-width: 640px) {
  .gallery ul {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
}
