.header {

  /*margin-bottom: 6rem;*/
}

.main {
  padding: 1.5rem 0.75rem 0.75rem 0.75rem;
}

.home-grid {
  display: grid;
  list-style: none;
  grid-gap: var(--gutter);
  line-height: 0;
  grid-template-columns: repeat(1, 1fr);
  grid-auto-flow: dense;
}

.home-grid li {
  position: relative;
  --cols: 1;
  --rows: 1;

  overflow: hidden;
  background: #000;
  line-height: 0;
}

/*
.home-grid li:first-child {
  --cols: 2;
  --rows: 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;
}
  */
.home-grid a {
  display: block;
  /*height: 10rem;*/
}

.home-grid img {
  position: static;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .3s;
}

.home-grid figcaption {
  display: flex;
  align-items: flex-start;
  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, 0.0);
  transition: background-color 0.2s;
}

.home-grid figcaption>span {

  margin: 0 0.75rem;

  line-height: 1rem;
  position: absolute;
  top: calc(50% - 1rem);
  left: 0;
  right: 0;
}

.home-grid figcaption .title-grid {
  display: inline-block;
  padding: 0.35rem 0.5rem 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  transition: background-color 0.2s;
  border-radius: 3px;
}

.home-grid figcaption .subtitle-grid {
  padding: 0;
  background: rgba(0, 0, 0, 0.0);
  margin: 0;
  margin-top: 0.5rem;
  display: none;
  font-size: 0.9em;
  transition: display 0.2s;
}

.home-grid figcaption:hover {
  background: rgba(0, 0, 0, 0.5);
}

.home-grid figcaption:hover .title-grid {
  background: rgba(0, 0, 0, 0.0);
}

.home-grid figcaption:hover .subtitle-grid {
  display: block;
}

@media screen and (min-width: 45em) {
  .main {
    padding: 1.75rem 1.5rem 0.75rem 1.5rem;
  }

  .home-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 2.5rem;
  }

  .home-grid li {
    grid-column-start: span var(--cols);
    grid-row-start: span var(--rows);
  }

  .home-grid a {
    padding-bottom: 100%;
  }

  .home-grid img {
    position: absolute;
  }
}

@media screen and (min-width: 60em) {

  .home-grid {
    grid-template-columns: repeat(4, 1fr);
  }

}