.home-grid {
  display: grid;
  list-style: none;
  grid-gap: 1.5rem;
  line-height: 0;
  grid-template-columns: 1fr;
}

.home-grid li {
  position: relative;
  overflow: visible;
  background: transparent;
  line-height: 0;
}

.home-grid a {
  display: block;
  width: 100%;
}

.home-grid img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.home-grid figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  line-height: 1;
  text-align: center;

  color: #fff;
  background: none;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.home-grid a:hover figcaption {
  opacity: 1;
}

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