@media screen and (max-width: 640px) {

  /* Ломаем ВСЕ сетки галерей, превращая в столбец */
  .t-gallery__container,
  .t-container_flex,
  .t-row,
  .t-gallery__row,
  .t-gallery__items,
  .t-records .t-col {
    display: block !important;
  }

  /* Каждая колонка — 100% ширины */
  .t-gallery__col,
  .t-col,
  [class*="t-gallery__col"],
  [class*="t-col"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }

  /* Сами картинки — тоже 100% */
  .t-gallery__img,
  .t-bgimg,
  .t-slds__bgimg,
  img.t-img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }

  /* Убираем все паддинги сетки, чтобы не влияло */
  .t-col,
  .t-container,
  .t-gallery__col {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}