* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  .container {
    margin: 0%;
  }
  
  .heading-text {
    margin: 0.8em 0em;
    font-size: 2rem;
    text-align: center;
  }
  
  .heading-text span {
    font-weight: 100;
  }
  
  ul {
    list-style: none;
  }
  
  .image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .image-gallery > li {
    flex-basis: 300px;
    position: relative;
    cursor: pointer;
  }
  
  .image-gallery::after {
    content: "";
    flex-basis: 300px;
  }
  
  .image-gallery li img {
    object-fit: cover;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-radius: 4px;
    box-shadow: 2px 2px 2px;
  }
  
  .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(57, 57, 57, 0.502);
    top: 0;
    left: 0;
    transform: scale(0);
    transition: all 0.2s 0.1s ease-in-out;
    color: #fff;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px;
  }
  
  .image-gallery li:hover .overlay {
    transform: scale(1);
  }
  
  #imagedisplay {
    position:fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    transform: scale(0);
    transition: all 0.2s 0.1s ease-in-out;
    z-index: 4;
    background: rgba(57, 57, 57, 0.9);
    overflow: scroll;
  }
  
  #imgcont {
    width: 100%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #zoomimg {
    position:absolute;
    display: block;
    max-height: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    z-index: -100;
    padding: 4px;
  }
  
  .ctls {
    position: sticky;
    padding: 4px;
    border-radius: 4px;
    top: 15px;
    float: left;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
  }

  #zoomctl {
    margin: 6px;
    left: 170px;
  }
  
  #closectl {
    margin: 6px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.8);
  }
  
  #prevctl {
    margin: 6px;
    left: 68px;
  }  
  
  #nextctl {
    margin: 6px;
    left: 112px;
  }

  #zoomctl img, #closectl img, #prevctl img, #nextctl img {
    width: 30px;
    height: 30px;
  }

  #pblurb {
    position: absolute;
    bottom: 5%;
    text-align: center;
    width: 90%;
    margin: 0px 5%;
    padding: 6px 6px 8px 6px;
    border-radius: 6px;
    background-color: rgba(1, 88, 138, 0.5);
    color: #fff;
    text-align: center;
  }
  
  @media screen and ((max-width: 600px) or (max-height: 600px)) {
    .image-gallery li:hover .overlay {
      display: none;
    }
  }