/* Art */
.home-art-grid {
  display: grid;
  list-style: none;
  grid-gap: 1.5rem;
  line-height: 0;
  grid-template-columns: repeat(1, 1fr);
  grid-auto-flow: dense;
}

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

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

.home-art-grid li:first-child {
  --cols: 2;
  --rows: 2;
}

.home-art-grid li:nth-child(5) {
  --cols: 2;
}

.home-art-grid li:nth-child(6) {
  --rows: 2;
}

.home-art-grid li:nth-child(7) {
  --cols: 2;
}

.home-art-grid a {
  display: block;
  height: 10rem;
}

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

.home-art-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, .3);
}

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

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

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

  .home-art-grid figcaption {
    font-size: 1.75rem;
    line-height: 1.3;
    padding: 0 0.5rem;
  }
}

/* Blog */
.home-blog {
  margin-top: 6rem;
}

.home-blog h2 {
  color: var(--color-text);
  margin-bottom: 3rem;
  font-size: 2rem;
  line-height: 1.25rem;
}

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

.home-blog-grid li {
  overflow: hidden;
}

.home-blog-grid a {
  display: block;
}

.home-blog-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .3s;
}

.home-blog-grid figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0.5rem;
}

.home-blog-grid figcaption > span {
  color: var(--color-text);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  line-height: 1.25rem;
  line-clamp: 2;
}

.home-blog-grid figcaption > div {
  color: var(--color-text-grey);
  text-align: left;
}

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

.home-blog .home-blog-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-blog .home-blog-links a {
  text-decoration: underline;
  padding: 1rem;
}
