.notes .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  grid-gap: 1.5rem;
  grid-auto-rows: 1fr;
}
.note {
  position:relative;
  border: 1px solid transparent;
  background:#f7f7f7;
  border-radius: 4px;

}
.note a {
  display: block;
  padding: 1rem;
  line-height: 1.25em;
}
.note h2 {
  font-size: 1rem;
}
.note time {
  font-size: .75rem;
}
.grid {
  display: grid;
  list-style: none;
  grid-gap: 1rem;
  line-height: 0;
  grid-template-columns: repeat(1, 1fr);
  grid-auto-flow: dense;
}
.grid li.note div {
  position: relative;
  --cols: 1;
  --rows: 1;
  overflow: hidden;
  background: #fff;
  line-height: 0;
}
.grid a {
  display: block;
  height: 10rem;
}
.grid img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 1.2s;
}
.grid .overlay {
  position:absolute;
  top:0;
  left:0;
  right: 0;
  bottom:0;
  background: transparent;
  -webkit-transition: background 1.2s ease-out;
  -moz-transition: background 1.2s ease-out;
  -o-transition: background 1.2s ease-out;
  transition: background 1.2s ease-out;
}
.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.5;
  text-align: center;
  text-transform: uppercase;
  font-size: .875rem;
  letter-spacing: .125em;
  font-weight: 600;
}
.grid figcaption span span.fig-name {
  position: absolute;
  color: #fff;
  top: 40%;
  right: 0;
  bottom: 0;
  left: 0;
  transition: all 1.2s; 
}
.grid figcaption span span.fig-category {  
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  color:#ACA9A9;
  font-family: Arial, Helvetica, sans-serif;
  font-size:.780rem;
  font-weight: 400;
  transition: all 0.5s;
}
.grid figure:hover figcaption span span.fig-name {
  top: 20%;
  right: 0;
  bottom: 0;
  left: 0;
  transition: all 0.5s;
}
.grid figure figcaption span span.fig-description {
 position:absolute;
 font-size: 0.6rem;
 color:transparent;
 left:0;
 right:0;
 bottom:20px;
 transition: all 0.5s;
}
.grid figure:hover figcaption span span.fig-description {
  display: block;
  position: absolute;
  color:white;
  left: 0;
  bottom: 37px;
  right: 0;
  font-size: 0.6rem;
  transition: all 0.5s;
}
  /* hover effects */
  .grid figure:hover img,
  .grid figure:hover .overlay {
      background: rgba(0,0,0, 0.3);
      -webkit-filter: grayscale(1);
      filter: grayscale(1);
      -webkit-transform: scale(1.2);
      transform: scale(1.2);
  }
  .grid figure img {
    transition: all 1.2s;
    filter: gray; /* IE5+ */
    /* -webkit-filter: grayscale(0); */ /* Webkit Nightlies & Chrome Canary */
    /* filter: grayscale(0); */
    -webkit-transition:1.2s ease;
    transition:1 5s ease;
  }
  .grid figure:hover img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  }
  p {
    color: #757575;
    font-size: 0.8rem;
    padding: 0.6rem 0;
  }
  .mob-title,
  .mob-categorie {
    display: none;
  }
  @media screen and (max-width: 30em) {
    .notes .grid {
      grid-auto-rows: auto;
    }
    .grid figure figcaption span span.fig-description,
    .grid figcaption span span.fig-name {
      display:none;
    }
    .page {
      padding: 5vh 2vw 10vh;
      background: #fafafa;
    }
    .note {
      background:white;
    }
    .mob-title,
    .mob-categorie {
      display: block;
      color:#232323;
    }
    .mob-title {
      font-size: 1rem;
      line-height: 1.1rem;
      padding: 5px 5px 5px 0;
      background: white;
    }
    .mob-categorie {
      line-height: initial;
    }
  }