.home-grid {
  display: grid;
  list-style: none;
  grid-gap: 1.5rem;
  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: #fff;
  line-height: 0;
}
.home-grid li:first-child {
  --cols: 2;
  --rows: 2;
  mask-size: 100%, 100%;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-image:
    url("/assets/icons/ph.png");
}

.home-grid li:nth-child(2) {
  mask-size: 100%, 100%;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-image:
    url("/assets/icons/ph.png");
}

.home-grid li:nth-child(3) {
  mask-size: 100%, 100%;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-image:
    url("/assets/icons/ph.png");
}

.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: absolute;
  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: center;
  justify-content: center;
  position: absolute;
  color: #fff;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  line-height: 1;
  text-align: center;
  background: rgba(255,0,0, .2);
}

.home-section {
  margin-bottom: 4rem;
}

.home-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.home-section-more {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-grey);
  text-decoration: none;
}


.home-section-more:hover {
  color: var(--color-black);
  text-decoration: underline;
}

/* Datum overlay op de activiteiten-grid kaartjes */
.home-grid-date {
  display: block;
  font-size: 0.8em;
  margin-top: 0.3em;
  opacity: 0.85;
}

@media screen and (min-width: 45em) {
  .home-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-grid li {
    grid-column-start: span var(--cols);
    grid-row-start: span var(--rows);
  }
  .home-grid a {
    padding-bottom: 52.65%;
  }
}
