Сетка-Templete-Rows: каменные

.container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: masonry;
}
Sefat Alam