@media only screen and (max-width: 1000px) {
  #home-top{
    height: 575px;
  }

  .generic-top{
    height: 575px;
  }
}

@media only screen and (max-width: 981px) {
  .logo{
    width: 320px;
  }

  #header.fixed .logo{
    width: 280px;
  }

  nav ul li a{
    font-size: 17px;
  }

  nav ul li{
    margin: 0 13px;
  }
}

@media only screen and (max-width: 870px) {
  .burger-nav {
    font-size: 40px;
    cursor: pointer;
    color: #565655;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    display: table-cell;
    text-align: right;
    vertical-align: middle;
  }

  .nav{
    display: table;
    padding-right: 15px;
  }

  nav{
    display:none;
  }

  .contact-right{
    width: 100%;
    margin-top: 30px;
  }

  .gallery{
    max-width: 22.9%;
  }
}

@media only screen and (max-width: 800px) {
  .footer-container{
    text-align: center;
  }

  footer .left{
    margin-bottom: 10px;
  }

  footer .left, footer .right{
    float: none;
  }
}

@media only screen and (max-width: 740px) {
  #home-boxes-desktop{
    display: none;
  }

  #home-boxes-mobile{
    display: block;
  }

  .box-container{
    display: block;
  }

  .box-img{
    width: 100%;
    height: 350px;
    background-position: center;
    background-size: cover;
    display: block;
  }

  .services-img{
    background-image: url(images/services-img.jpg);
  }

  .gallery-img{
    background-image: url(images/gallery-img.jpg);
  }

  .box-text-container{
    width: 100%;
    display: block;
  }

  .box-text{
    transform: none;
  }
}

@media only screen and (max-width: 700px) {
  .overlay a{
    font-size: 27px;
  }

  .gallery{
    max-width: 28.9%;
  }
}

@media only screen and (max-width: 640px) {

}

@media only screen and (max-width: 620px) {
  #home-top{
    height: 450px;
  }

  .generic-top{
    height: 450px;
  }
}

@media screen and (max-height: 600px) {
  .overlay a {font-size: 20px}
  .overlay .closebtn {
  font-size: 40px;
  top: 15px;
  right: 35px;
  }
  .overlay-content{
    top: 15%;
  }
}

@media screen and (max-height: 600px) {

}

@media only screen and (max-width: 500px) {
  .logo{
    width: 240px;
  }

  #header.fixed .logo{
    width: 205px;
  }

  h2{
    font-size: 20px;
  }

  #contact h2{
    font-size: 24px;
  }

  p{
    font-size: 15px;
  }

  .gallery{
    max-width: 46%;
  }

  .call-to-action{
    height: auto;
  }

  .call-to-action-content{
    text-align: center;
    text-align: -webkit-center;
  }

  .call-to-action-content h3{
    margin: 0 auto 15px;
  }

  .call-to-action-content h3, .call-to-action-content a{
    display: block;
  }

  .overlay a{
    font-size: 21px;
  }
}

@media only screen and (max-width: 400px) {
  #home-top{
    height: 300px;
  }

  .generic-top{
    height: 300px;
  }
}

@media only screen and (max-width: 390px) {
  .logo {
    width: 200px;
  }

  #header.fixed .logo{
    width: 185px;
  }

  .burger-nav{
    font-size: 35px;
  }

  #contact .content{
    padding: 30px 0;
  }
}

@media only screen and (max-width: 360px) {
  .gallery{
    max-width: 95%;
  }
}

@media only screen and (max-width: 345px) {
  .header-contact-obj:nth-of-type(1), .header-contact-obj:nth-of-type(2){
    display: none;
  }
}
