/* colors */
/* easing */
/* styles for filter project grid block */
.filter-project-grid {
  display: grid;
  gap: 17.5px;
  row-gap: 87.5px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 17.5px;
  margin-block-start: 17.5px !important;
}
@media screen and (min-width : 50em) {
  .filter-project-grid {
    gap: 35px;
    row-gap: 70px;
  }
}
@media screen and (min-width : 64.063em) {
  .filter-project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 35px;
    margin-block-start: 35px !important;
  }
}
.filter-project-grid .grid-item {
  position: relative;
}
.filter-project-grid .grid-item a h3 {
  position: absolute;
  bottom: -2.2em;
  font-weight: 500;
  font-size: 1.125rem;
  height: 2em;
}
@media screen and (min-width : 50em) {
  .filter-project-grid .grid-item a h3 {
    font-size: 1.125rem;
    bottom: -2.5em;
  }
}
.filter-project-grid .grid-item:hover img {
  transform: scale(1.05);
}
.filter-project-grid .grid-item:hover h3 {
  opacity: 40%;
}
.filter-project-grid .grid-item picture {
  position: relative;
  display: block;
  overflow: hidden;
}
.filter-project-grid .grid-item picture img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.filter-project-grid .grid-item picture img.new-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.filter-project-grid .grid-item picture img.new-image.fade-in {
  opacity: 1;
}
.filter-project-grid .grid-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.filter-project-grid .grid-item.wide {
  grid-column: span 2;
}
.filter-project-grid .grid-item.wide img {
  aspect-ratio: auto;
  object-fit: cover;
}
@media screen and (min-width : 64.063em) {
  .filter-project-grid .grid-item {
    /*&:nth-child(5n + 5){
      grid-column: initial;
    }
    */
  }
  .filter-project-grid .grid-item.wide a {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
  }
  .filter-project-grid .grid-item.wide a picture, .filter-project-grid .grid-item.wide a img {
    position: absolute;
    width: 100%;
    height: 100%;
  }
  .filter-project-grid .grid-item {
    /*&:nth-child(10n + 9){
      grid-column: span 2;

      picture, img{
          width: 100%;
          height: 100%;
        }
    }*/
  }
}
