.grid {
  display: grid;
  grid: auto-flow / repeat(3, 1fr);
  gap: 0.5rem;
}

.grid div {
  padding: 0.5rem;
  border: 1px solid;
}