/* * {
    box-sizing: border-box;
    font-family: sans-serif;
    text-align: center;
  } */
  
  
  /* Gallery */
  
  .gallery {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    /* Change to repeat(3,1fr) or more to add extra columns, then add more photos in the HTML */
    gap: 15px;
    width: fit-content;
    /* margin: auto; */
  }
  
  /* Preview container */
  .gallery-photo {
    /* border: 1px solid #333; */
    box-shadow: 1px 2px 3px #444;
    width: 100%;
    /* Change ratio from square to rectangle by adjusting height and max-width */
    /* height: 225px; */
    /* height: 300px */
    /* max-width: 225px; */
    /* max-width: 406px; */
    border-radius: 10px;
    overflow: hidden;
    transition: 250ms;
  }
  /* Images inside the container */
  .gallery-photo img {
    min-height: 100%;
    max-width: 100%;
    object-fit: cover;
    overflow: hidden;
    cursor: pointer;
  }
  /* Adds an effect to previews on mouse-over */
  .grow:hover {
    transform: scale(1.03);
    transition: 250ms;
  }
  
  
  /* Pop-up */
  
  /* The whole element that pops up or hides */
  .show {
    position: fixed;
    z-index: 1;
    display: none;
  }
  
  /* Makes the background darker*/
  .show .overlay {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    position: fixed;
    top: 0;
    left: 0;
  }
  
  /* Container for the image */
  .show .img-show {
    width: 80vw;
    height: 80vh;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    overflow: hidden;
  }
  
  /* The image itself */
  .img-show img {
    /* max-width: 100%; */
    max-width: 80%;
    max-height: 95%;
    position: fixed;
    top: 67%;
    left: 50%;
    transform: translate(-50%,-50%);
    border: 1px solid #eee;
  }
  
  /* The "X" or close button */
  #close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 99;
    cursor: pointer;
    color: #333; 
    font-weight: 600;
    background-color: #eee;
    border-radius: 15px;
    padding: 5px 10px;
    outline: 2px solid #333;
    opacity: 0.5;
  }
  
  #caption {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 1.4em;
    font-weight: 400;
    color: white;
    text-shadow: 1px 1px 0 black;
  }
  
  /* Make pop-up image fill small screens a bit more */
  @media (max-width:800px) {
    .show .img-show {
      width: 95vw;
      height: 85vh;
    }
  }
  