.gallery {
    padding-top: 2em;
    display: flex;
    flex-wrap:wrap;
    justify-content: space-evenly;
    align-content: space-around;
}
img.mini{
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 4px solid #4894ce;
  border-radius: 3px;
  padding:1px;
  margin-bottom: 1em;
  transition-property: border;
  transition: 0.5s;
  
}
img.mini:hover{
    border: 1px solid #4894ce;
    
}

.gallery ul{
    list-style: none;
    text-align: justify-all;
    padding: 0;
    margin: 0;
}
.gallery ul li{
    position: relative;
    display: flex;
    cursor: pointer;
}

.modal {
    display: none; /* Hidden by default */
    vertical-align: middle;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 0; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    align-self: center;

}


.modal-content {  
    position: relative;
    background-color: #E1BEE7;
    margin: auto;
    padding: 0;
    border: 5px solid #FFF;
    max-width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    object-fit: contain;
}
.modal-content img{
  max-height: 97vh;
  width: auto;
  object-fit: contain;
}
}



@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0} 
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}


.close {
    position: absolute;
    left:95%;
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
