.grid {
    display: grid;
    list-style: none;
    grid-gap: 1rem;
    line-height: 0;
    grid-template-columns: repeat(1, 1fr);
    grid-auto-flow: dense;
  }
  .grid li {
    position: relative;
    --cols: 1;
    --rows: 1;
  
    overflow: hidden;
    background: #000;
    line-height: 0;
  }
  .grid li:first-child {
    --cols: 2;
    --rows: 2;
  }
  .grid li:nth-child(5) {
    --cols: 2;
  }
  .grid li:nth-child(6) {
    --rows: 1;
  }
  .grid li:nth-child(7) {
    --cols: 2;
  }
  .grid li:nth-child(8) {
    --cols: 2;
  }
  .grid a {
    display: block;
    height: 10rem;
  }
  .grid img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* background: rgba(0,0,0, .5); */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1.2s;
    filter: gray; /* IE5+ */
    -webkit-filter: grayscale(1); /* Webkit Nightlies & Chrome Canary */
    filter: grayscale(0);
  }
  .grid .overlay {
    position:absolute;
    top:0;
    left:0;
    right: 0;
    bottom:0;
    /* background: rgba(0,0,0, 0);
    -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 {
    display: flex; 
    justify-content: center;
    align-items: center;
    align-self: center;
    position: absolute;
    color: #fff;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    font-size:1.1rem;
    letter-spacing: .135em;
    font-weight: 400;
    text-shadow: 1px 1px 6px #888888;
  }
  .grid figcaption span span.fig-category {
    display:flex;
    justify-content: center;
    align-items: flex-end;
    align-self: end;    
    position: absolute;
    top: 0;
    right: 0;
    bottom: 5px;
    left: 0;
    color:#d8d8d8;
    font-family: Arial, Helvetica, sans-serif;
    font-size:.780rem;
    font-weight: 400;
  }
  /* hover effects */
  .grid figure:hover img,
  .grid figure:hover .overlay {
      /* background: rgba(0,0,0, 0); */
      -webkit-filter: grayscale(0);
      filter: grayscale(0);
      -webkit-transform: scale(1.2);
      transform: scale(1.2);
  }
  .fig-name-txt {
    background-color: transparent;
    padding:0.5rem;
    border-radius: 6px;
  }
  .grid figure img {
    transition: all .1.2s;
    filter: gray; /* IE5+ */
    -webkit-filter: grayscale(1); /* Webkit Nightlies & Chrome Canary */
    filter: grayscale(1);
    -webkit-transition: 1.2s ease;
    transition: 1.2s ease;
  }
  @media screen and (min-width: 45em) {
    .grid {
      grid-template-columns: repeat(3, 1fr);
    }
    .grid li {
      grid-column-start: span var(--cols);
      grid-row-start: span var(--rows);
    }
    .grid a {
      padding-bottom: 52.65%;
    }
  }
  