  #mainimg, .thumb {
    padding: 5px;
    border-radius: 7px;
    background-color: #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.49);
  }
 #mainimg {
    transition: ease 1s;
    width: 100%;
    margin-bottom: 5px;
  }

  /*#slidercontainer {
    max-width:1000px;
  }*/

  .thumb {
    width: 100%;
    display: inline-block;
    overflow: hidden;
    cursor: pointer;
    opacity:0.5;
  }

  .collection {
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap:10px;
  } 

  .overlay {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    visibility: hidden;
    opacity: 0;
  }
  .overlay:target {
    visibility: visible;
    opacity: 1;
  }
  
  .popup {
    margin-top: 10%;
    padding: 10px;
    background: transparent;
    border-radius: 5px;
    width: 100%;
    position: relative;
    transition: all 5s ease-in-out;
  }
  
  .popup .close {
    position: absolute;
    top: 30px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    background:white;
    padding:0px 9px;
    border-radius: 100px;
  }

  .popup .close:hover {
    color: #4d5d53;
    scale: 1.1;
    opacity:0.9;
  }
  
  .popup .content {
    max-height: 30%;
    overflow: auto;
  }

  @media only screen and (max-width: 600px) {
    .collection {
        grid-template-columns: 1fr 1fr;
      }
  }
