.wall {
  columns: 3;
  column-gap: 0.5rem;
}

.wall div {
  margin-bottom: 0.5rem;
  background-color: gainsboro;
  break-inside: avoid;
}

.a {
  height: 3rem;
}

.b {
  height: 5rem;
}
