.home-grid {
  display: grid;
  list-style: none;
  grid-gap: 1.5rem;
  line-height: 0;
  grid-template-columns: repeat(auto-fit, minmax(296px, 600px));
}
.home-grid li {
  position: relative;
  /* --cols: 1; */
  /* --rows: 1; */
  overflow: hidden;
  background: #000;
  line-height: 0;
  /* height: max-content; */
}

.home-grid li:hover {
  
}

.home-grid li:first-child {
  /* --cols: 1; */
  /* --rows: 1; */
}
.home-grid li:nth-child(5) {
  --cols: 1;
}
.home-grid li:nth-child(6) {
  --rows: 1;
}
.home-grid li:nth-child(7) {
  --cols: 1;
}
.home-grid a {
  /* display: block; */
}
.home-grid img {
  /* position: absolute; */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: max-content;
  /* object-fit: cover; */
  transition: all .3s;
}
.home-grid figcaption {
  /* display: flex; */
  /* align-items: center; */
  /* justify-content: center; */
  /* position: absolute; */
  /* color: #fff; */
  /* top: 0; */
  /* right: 0; */
  /* bottom: 0; */
  /* left: 0; */
  /* line-height: 1; */
  /* text-align: center; */
  /* background: rgba(0,0,0, .5); */
}

@media  {
  .home-grid {
    /* grid-template-columns: repeat(auto-fit, minmax(328px, 1fr)); */
  }
  .home-grid li {
    /* grid-column-start: span var(--cols); */
    /* grid-row-start: span var(--rows); */
  }
  .home-grid a {
    padding-bottom: 52.65%;
  }
}
