.news-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 750px;
  margin: 0 auto;
  padding: 16px 0;
  justify-content: center;
}

.news-gallery figure {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px; /* высота карточки */
}

.news-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* Одна картинка — без фиксированной высоты */
.news-gallery.gallery-1 figure {
  width: 60%;
  max-width: 400px;
  height: auto;
}

.news-gallery.gallery-1 img {
  height: auto;
  object-fit: contain;
}

/* Две в ряд */
.news-gallery.gallery-2 figure {
  width: calc(50% - 8px);
  max-width: 50%;
}

/* Три в ряд */
.news-gallery.gallery-3 figure {
  width: calc(33.333% - 10.66px);
  max-width: 33.333%;
}

/* Адаптив: на мобилке — 1 в ряд, высота авто */
@media (max-width: 600px) {
  .news-gallery figure {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
  }

  .news-gallery img {
    height: auto;
    object-fit: contain;
  }
}
