
.main {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin-top: 3em;
    margin-left: 0vw;
  }
  
  .nav {
    align-self: flex-start; 
    padding: 0;
    margin: 0;
  }

 .nav a{

    position: fixed;
    color: #000033;
    text-decoration: none;
    font-size: 2em;
    line-height: 0.5;
    margin-left: 2%;
    padding: 0;
} 


.gallery {
    column-count: 2;
    column-gap: .5em;
    padding: 0em;
    box-sizing: border-box;
    width: 75vw;
    margin: auto;
}
  
.gallery img {
    width: 100%;
    padding: 0;
    display: block;
    margin-bottom: .5em;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}
  
.modal-content {
    margin: auto;
    display: block;
    max-width: 700px;
}
  
.modal-content {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position:absolute;
    top:25px;
    right:25px;
    color:#f1f1f1;
    cursor: pointer;
    width: 1.5em;
    height: 1.5em;
    z-index: 99;
}
  
.prev,
.next {
    cursor:pointer;
    position:absolute;
    top:50%;
    width:auto;
    padding:16px;
    margin-top:-50px;
    color:white;
    font-weight:bold;
    width: 1.5em;
    height: 1.5em;
    z-index: 99;
}
  
.prev {
      left:0
}
.next {
      right:0
}



@media screen and (min-width:698px){
  .prev,
  .next,
  .close {
    width: 1em;
    height: 1em;
  }

  .gallery {
    column-gap: 2em;
}
  
.gallery img {
    margin-bottom: 2em;
}

}

