.home-grid {
  display: grid;
  list-style: none;
  grid-gap: 3rem;
  grid-template-columns: repeat(1, 1fr);
  grid-auto-flow: dense;
  margin: 3rem auto;
}

.home-grid li {
  position: relative;
  --cols: 1;
}
.home-grid li:first-child {
  --cols: 2;
}
.home-grid li:nth-child(5) {
  --cols: 2;
}
.home-grid li:nth-child(6) {
  --rows: 2;
}
.home-grid li:nth-child(7) {
  --cols: 2;
}

@media screen and (min-width: 768px) {
  .home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1200px) {
  .home-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
