body{
    margin: 0.5rem;
  }
    main{
        display: block;
    }
    img{
        margin-left: 0;
    }
    .nav a{
        width: 40vw;
    }
    a:hover{
      text-decoration: none;
    }
    .p-3{
      padding: 1rem!important;
    }
    .container{
      width:100%;
      margin-right: auto;
      margin-left: auto;
    }
/* GALLERY ITEMS */
.fg-gallery:after {
    content: "";
    display: block;
    clear: both;
}
.gallery-items {
    cursor: pointer;
    float: left;
    overflow: hidden;
    height: 20vh;
    width: 32%;
    margin-right: 2%;
    margin-bottom: 2%;
}
/* GALLERY COLUMNS */
.cols-2 .gallery-items {
    width: 49%;
    height:25vh;

}
.body-cover {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    transition: all .2s ease;
}
.body-cover.active  {
    opacity: 1;
    visibility: visible;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.94);
}

.body-cover.active img {
    transform: scale(1.05);
    opacity: 0;
    visibility: hidden;
    -webkit-animation: scale .3s .3s ease forwards;
            animation: scale .3s .3s ease forwards;
    box-shadow: 0 0 180px 0 rgb(24, 24, 24);
    border-radius: 0px;
}
@-webkit-keyframes scale {
    to { opacity: 1; visibility: visible; transform: scale(1) }
}
@keyframes scale {
    to { opacity: 1; visibility: visible; transform: scale(1) }
}

/* arrows */
.gallery-arrow {
    position: fixed;
    top: 47%;
    width: 30px;
    height: 30px;
    z-index: 9999;
    cursor: pointer;
}
.gallery-arrow > svg {
    fill: #fff;
    transition: all .2s ease;
    transform: scale(1);
}
.gallery-arrow:active svg {
    transition-duration: .0s;
    transform: scale(.9);
}
.next-btn {
    right: 25px;
}
.prev-btn {
    left: 25px;
}
/* close button */
.close-btn {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    right: 0;
    width: 75px;
    height: 75px;
    z-index: 9999;
    cursor: pointer;
}
.close-btn svg {
    fill: #fff;
    width: 15px;
    height: 15px;
    transition: all .5s ease;
    transform: rotateZ(0deg);
}
.close-btn:hover svg {
    transform: rotateZ(180deg);
}
.nav{
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}
@media screen and (max-width:754px){
  .gallery-items:nth-child(2n) {
        margin-right: 0;
    }
}
@media screen and (orientation: landscape){
    .body-cover.active img{
        width: 45%;
    }
}
@media screen and (min-width: 36em){
  .container{
    max-width: 25em;
  }
}
@media only screen and (min-width: 754px) {
    .cols-3 .gallery-items {
      width: calc(90% / 3);
      height: 300px;
    }
  
    .cols-3.gallery-items:nth-child(3n) {
      margin-right: 0;
    }
  }
  @media screen and (min-width:768px){
    .container{
      max-width: 100%;
    }
    .p-3{
      padding-left: 3.2rem!important;
     
    }
  }
  @media screen and (min-width:992px){
    .container{
      max-width: 100%;
    }
  }
  @media screen and (min-width: 1000px) {
    .fg-gallery {
      max-width: 100%;
      margin-top: 1.5em;
    }
    .cols-4 .gallery-items {
      width: calc(90% / 4);
      height: 300px;
    }
    .cols-4 .gallery-items:nth-child(4n) {
      margin-right: 0;
    }
  }
  @media screen and (min-width: 1200px) {
    .fg-gallery {
      margin: 1.5em auto;
    }
  }
  @media screen and (min-width: 85em){
    body{
      margin-left: auto;
      margin-right: auto;
    }
  }
