.my-gallery {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    align-content: center;
    justify-content: center;
    justify-items: center;
    gap: 10px;
    margin: auto;
  }
  .my-gallery img {
    object-fit: cover;
    width: 100%;
    height: 300px;
  }
  .my-gallery figure {
    margin: 0px;
    display: grid;
    justify-content: center;
    width: 100%;
    height: 300px;
    transition : .5s all;
    position : relative;
  }
  .my-gallery figure:hover {    
      -webkit-transition: all .5s ease;
      -moz-transition: all .5s ease;
      -o-transition: all .5s ease;
      -ms-transition: all .5s ease;
      transition: all .5s ease;
  }
  .my-gallery figcaption {
    display: none;
  }
  .mask_image_content_frame i{
    font-size: 20px;
    border-radius: 200px;
    padding: 20px;
    background: var(--SLF-background-color);
    color: #000;
    margin: 0 5px 0 5px;
    opacity: 0;
    position: absolute;
    top: 50%;  /* position the top  edge of the element at the middle of the parent */
    left: 50%; /* position the left edge of the element at the middle of the parent */
    transform: translate(-50%, -50%); /* This is a shorthand of
    translateX(-50%) and translateY(-50%) */
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;
  }
  .my-gallery figure:hover .mask_image_content_frame i{
    opacity: 1;
    transition-delay : .25s;
  }
  
  .overlay{
    position : absolute;
    width : 100%;
    height : 100%;
    background-color : black;
    opacity: 0;
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;
  }
  

  
  @media (min-width: 630px) {
    .my-gallery {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  @media (min-width: 960px) {
    .my-gallery {
      grid-template-columns: 1fr 1fr 1fr;
    }

    .my-gallery figure:hover .overlay{
      opacity: .8;
    }

  }
  @media (min-width: 1290px) {
    .my-gallery {
      grid-template-columns: 1fr 1fr 1fr 1fr;
    }
  }
  @media (min-width: 1620px) {
    .my-gallery {
      grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }
  }
