
.home-grid {
  display: grid;
  object-fit: cover;
  list-style: none;
  grid-gap: 18px;
  line-height: 0;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
}

.home-grid li {
  position: relative;
  --cols: 1;
  --rows: 1;
  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;
}
.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 {
  width: -webkit-fill-available;
  position: absolute;
  color: rgb(0, 0, 0);
  line-height: 1;
  clear: both;
  white-space: nowrap;
}

.home-grid hr {
  width: -webkit-fill-available;
  margin: 2.25rem 0 0 0;
  height: 1px;
}

.img-caption {
  grid-template-columns: repeat(3, 1fr);
  align-content: space-between;
  display: grid;
}

.img-caption-title {
  text-align: center;
  font-family: 'mainFont', sans-serif;
}

.img-caption-year {
  font-family: 'subFont', sans-serif;
}

.img-caption,
.video-caption {
  font-size: 16px;
  padding-top: 12px;
  line-height: 24px;
}

.post-cover{
  margin: 100px 0 24px 0;
}

.text-leader-homepage {
  margin-top: 12px;
}

.post-cover{
  margin: auto;
}

.home-main-image {
  height: 80vh;
}

span.img.img-home {
  height: 126px;
}

/* li.column:hover hr {
  visibility: hidden;
  transition: .1s ease-in;
  transition-property: all;
  transition-duration: 0.1s;
  transition-timing-function: ease-in;
  transition-delay: 0s;
} */

/* li.column:hover span.img.img-home {
  filter: grayscale(100%) brightness(40%) sepia(100%) hue-rotate(-50deg) saturate(600%) contrast(0.8);
} */

/* li.column:hover span.img.img-home {
  filter: 
  grayscale(100%) brightness(80%) sepia(100%) hue-rotate(-360deg) saturate(600%) contrast(0.8)
} */

/* li.column:hover span.img.img-home {
  mix-blend-mode: difference;
  -webkit-filter: invert(1%);
  filter: invert(1%);
} */

/* li.column:hover span.img.img-home  {
  transform: scale(0.99);
  transition: .4s ease-out;
  transition-property: all;
  transition-duration: 0.4s;
  transition-timing-function: ease-out;
  transition-delay: 0s;
} */

/* li.column:hover span.img.img-home  {
  transform: scale(0.99);
  transition: .4s ease-out;
  transition-property: all;
  transition-duration: 0.4s;
  transition-timing-function: ease-out;
  transition-delay: 0s;
} */


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

}

@media screen and (max-width: 320px) {
  .home-grid {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 32px;
  }


}

@media only screen and (min-width:321px) and (max-width:639px) {

    .header .logo {
      font-size: 24px;
  }

    .home-grid {
      grid-template-columns: repeat(1, 1fr);
      row-gap: 24px;
    }

    button#myBtn {
      font-size: 26px;
  }

  #myBtn:hover .square {
    width: 2.5px;
    height: 2.5px;
    background-color: white;
    border: 1px solid black;
    transition: background-color 0.4s;
}

li.column:hover hr {
  display: block;
}

figcaption.img-caption {
  font-size: 18px;
  padding-top: 12px;
  width: 100%;
}
}

@media only screen and (min-width:640px) and (max-width:1101px) {
  .home-grid {
      grid-template-columns: repeat(2, 1fr);
  }

  figcaption.img-caption {
    font-size: 18px;
    padding-top: 12px;
    width: 100%;
  }
  
}

@media screen and (min-width: 1101px) and (max-width: 1440px) {


  figcaption.img-caption {
    font-size: 18px;
    padding-top: 12px;
    width: 100%;
  }

}

@media only screen and (min-width:1401px) {

figcaption.img-caption {
  font-size: 24px;
  padding-top: 16px;
  width: 100%;
}

.home-grid {
  grid-gap: 18px;
}

.home-grid hr {
  width: -webkit-fill-available;
  margin: 52px 0 10px 0;
  height: 1px;
}
}