/* @media (min-width: 1100px) {

  .body-middle-two.about .body-middle-two-content img {
    height: 100%;
    width: auto;
  }

} */

@media (min-width: 850px) {

  .sub-menu {  
    display: none;
  }

  .header #menu > div > ul > li:hover .sub-menu {
    display: block;
  }

  .header #menu > div > ul li:hover > a, .body-bottom-content:hover p, .footer-outer ul li:hover a, a:hover, .flex-gallery-nav li:hover, .flex-bot-left ul li:hover > p, .blog-archive-text-container h2:hover, .gallery.doc-gallery li:hover p {
    color: #f9b301!important;
  }

  .body-middle-content a:hover {
    color: #f9b301;
    border-color: #f9b301;
  }

  .body-middle-two-content button:hover {
    color: #fff;
    border-color: #f9b301;
    background-color: #f9b301;
  }

  .gallery li:hover .gallery-description {
    display: block;
  }
}

@media (max-width: 850px) {

  header, footer, .body, .body > * {
    float: left;
    width: 100%;
  }

  .header-lines, .body-hero-text img, .filter, .about-body-middle-line, .about-body-testimonial-left img, .blog-hero .angle, .blog-hero .body-hero-text, .blog-comment-single-bottom .blog-comment-single-left, .flex-bot-left ul li > div {
    display: none;
  }

  .header {
    top: 5px;
  }
 
  .logo {
    margin-left: 8.75%;
  }

  #mobile-icon {
    display: block;
    float: right;
    margin-right: 8.75%;
    margin-top: 18px;
    cursor: pointer;
  }

  #menu {
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(255,255,255,.8);
    overflow: hidden;
    -webkit-transition: all .75s ease-in-out;
    -moz-transition: all .75s ease-in-out;
    -o-transition: all .75s ease-in-out;
    transition: all .75s ease-in-out;
  }

  #menu.open {
    height: 425px;
  }

  .header #menu > div > ul {
    width: 100%;
  }

  .header #menu > div > ul li {
    width: 100%;
  }

  .header #menu > div > ul li a {
    width: 100%;
    font-size: 18px;
    text-align: center;
    border: 0;
  }

  #menu ul li:last-of-type a {
    padding: 8px 22px;
  }

  .sub-menu {
    float: left;
    position: relative;
    width: 100%;
    background: 0;
    border: 0;
    box-shadow: none;
  }

  .body-hero {
    height: 310px;
  }

  .frontpage-slider {
    height: 290px;
  }

  .body-hero-text {
    min-height: 10px;
  }

  .body-hero-text h2 {
    font-size: 22px;
    margin-top: 50px;
    padding: 0 15%;
  }
  
  .body-middle {
    height: auto;
    padding-bottom: 30px;
  }

  .body-middle-content {
    height: auto;
    padding: 0 3.5%;
    margin-top: 35px;
  }

  .body-middle-content h3 {
    width: 100%;
    font-size: 18px;
  }

  .body-middle-two {
    height: 760px;
    overflow: hidden;
  }

  .body-middle-two > .container {
    display: flex;
    flex-flow: row wrap;
  }

  .body-middle-two-content {
    width: 100%;
    height: 280px;
    order: 2;
  }

  .body-middle-two-content:last-of-type {
    height: auto;
    order: 1;
    padding: 0 9% 50px;
  }

  .body-middle-two-content:last-of-type h3 {
    width: 100%;
  }

  .body-middle-two-content:last-of-type p {
    width: 100%;
  }

  .body-middle-two-content:last-of-type button {
    display: block;
    margin: 40px auto 0;
  }

  .body-middle-two-content img {
    width: 100%;
    height: auto;
  }

  .body-bottom {
    height: auto;
    padding-bottom: 20px;
  }

  .body-bottom-content {
    width: 80%;
    height: auto;
    padding: 45px 0;
    margin: 0 10%;
    border: 0;
    border-bottom: 1px solid rgb(204,204,204);
  }

  .body-bottom-content img {
    display: inline-block;
    width:  25%;
    vertical-align: middle;
  }

  .body-bottom-content p {
    display: inline-block;
    width: 70%;
    margin: 0;
    text-align: left;
    vertical-align: middle;
  }

  footer {
    height: auto;
    padding-bottom: 30px;
  }

  .footer-outer {
    display: none;
  }

  .footer-inner, .footer-outer.contactform {
    display: block;
    width: 82%;
    margin: 0 9%;
  }

  .footer-inner {
    height: auto;
  }

  .sub-footer {
    width: 80%;
    margin: 0 10%;
    border: 0;
  }

  .sub-footer > p {
    width: 100%;
    text-align: center;
  }

  .sub-footer a:last-of-type {
    width: 100%;
    padding-top: 23px;
    margin-top: 10px;
    text-align: center;
    border-top: 1px solid rgb(165,165,165);
  }

  /* About */
  
  .body-middle.about {
    height: auto;
    min-height: 230px;
    padding-top: 10px;
    padding-bottom: 30px;
  }

  .about-body-middle-left {
    width: 82%;
    padding: 0;
    margin: 0 9%;
    border-bottom: 7px solid rgb(249,179,1);
  }

  .about-body-middle-left h2 {
    margin-bottom: 0;
    font-size: 16px;
    text-align: left;
  }

  .about-body-middle-left img {
    position: absolute;
    top: 75px;
    left: 1%;
    width: 22%;
    margin-right: 2%;
  }

  .about-body-middle-right {
    float: right;
    width: 58%;
    margin-right: 9%;
  }

  .about-body-middle-right p {
    font-size: 14px;
    line-height: 20px;
  }

  .single-about-profile {
    width: 100%;
  }

  .body-middle-two.about .body-middle-two-content:first-of-type {
    width: 82%;
    margin: 0 9%;
  }

  .body-middle-two-content h3, .body-middle-two-content p {
    width: 100%;
  }

  .body-middle-two.about .body-middle-two-content:last-of-type {
    width: 100%;
    padding: 0;
  }

  .body-middle-two.about .body-middle-two-content:last-of-type img {
    width: 100%;
    height: auto;
  }

  .about-body-testimonial {
    height: auto;
  }

  .about-body-testimonial-left {
    width: 82%;
    height: auto;
    padding: 0;
    margin: 35px 9% 0;
    border: 0;
  }

  .about-body-testimonial-left h3 {
    padding-bottom: 10px;
    text-align: left;
    border-bottom: 5px solid rgb(249,179,1);
  }

  .about-body-testimonial-right {
    width: 82%;
    height: auto;
    padding-bottom: 30px;
    margin: 0 9%;
  }

  .about-body-testimonial-right-content {
    float: right;
    width: 65%;
    padding: 20px 0 0;
  }

  .about-body-testimonial-right-image {
    width: 25%;
    padding-top: 20px;
  }

  /* Blog Archive */

  .blog-archive-single {
    height: auto;
  }

  .blog-archive-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
  }

  .blog-archive-image-container img {
    top: -50%;
    width: 100%;
    height: auto;
  }

  .blog-archive-text-container {
    width: 100%;
    height: auto;
    padding-bottom: 30px;
  }

  .blog-archive-text-container h2 {
    width: 82%!important;
    padding: 0 0 8px!important;
    margin: 10px 9% 15px!important;
  }

  .blog-archive-text-container p {
    width: 82%;
    margin: 0 9% 10px;
    font-size: 14px;
  }

  .blog-archive-text-container button {
    margin-left: 9%;
  }

  /* Blog Single */

  .blog-hero {
    max-height: 200px;
  }

  .blog-content, .blog-sidebar {
    width: 82%;
    margin: 0 9%;
  }

  .blog-comment-form input[type="text"], .blog-comment-form input[type="email"], .blog-comment-form input[type="submit"] {
    width: 100%;
  }

  .blog-comment-list {
    float: left;
    margin-top: 20px;
  }

  .blog-comment-single-top .blog-comment-single-left, .blog-comment-single-top .blog-comment-single-right {
    width: auto;
  }

  .blog-comment-single-bottom .blog-comment-single-right {
    width: 100%;
    margin: 0;
  }

  .blog-comment-single:last-of-type {
    margin-bottom: 45px;
  }

  .blog-sidebar li {
    padding-bottom: 10px;
  }

  .blog-sidebar > a {
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
  }

  /* Contact Form */

  .contact-form-image-cover {
    height: 80px;
    top: 114px;
  }

  .contact-form-image-cover h2 {
    margin-top: 20px;
    font-size: 24px;
  }

  .contact-form-wrap {
    width: 82%;
  }

  .contact-form-content input {
    width: 100%;
  }

  .contact-form-wrap img {
    margin-top: 120px;
  }

  /* Flexrotor */

  .flex-hero {
    -webkit-clip-path: polygon(0px 95%,50% 100%,100% 95%,100% 0px,0px 0px);
  }

  .flex-content-top {
    -webkit-clip-path: polygon(0px 99%,50% 100%,100% 99%,100% 0px,0px 0px);
  }

  .flex-gallery-nav {
    float:left;
    height: auto;
  }

  .flex-gallery-nav li {
    width: 82%;
    padding-top: 10px;
    margin: 0 9%;
  }

  .flex-gallery-nav li:last-of-type {
    margin: 0 9%;
  }

  .flex-gallery {
    float: left;
  }

  .flex-gallery-content {
    width: 82%;
    margin: 0 9%;
  }

  .flex-gallery-content:last-of-type {
    padding-top: 16px;
    padding-bottom: 70px;
  }

  .flex-gallery-content h3 {
    font-size: 18px;
    line-height: 28px;
    text-align: left;
  }

  .flex-bot-left {
    width: 82%;
    padding-top: 30px;
    margin: 0 9%;
  }

  .flex-bot-left ul li {
    height: 50px;
    margin: 15px 0;
  }

  .flex-bot-left ul li > p {
    padding: 16px 0;
    color: rgb(35,64,106);
    text-align: center;
    background: rgb(235,235,235);
    border-bottom: 0;
  }

  .flex-bot-left ul li.selected > p {
    color: rgb(35,64,106);
    background: rgb(249,179,1);
    border: 0;
  }

  .flex-bot-right {
    width: 82%;
    margin: 0 9%;
  }

  .flex-bot-right-single .flex-table > p, .flex-bot-right table {
    width: 100%;
  }

  /* Applications */

  .blog-hero.applications {
    max-height: 445px;
  }

  .applications-hero-left, .applications-hero-right {
    height: 420px;
  }

  .applications .body-hero-text, .applications .angle, .applications .body-hero-text img {
    display: block;
  }

  .blog-hero.applications .body-hero-text h2 {
    font-size: 20px;
  }

  .applications-content-content {
    margin-top: 15px;
  }

  .applications-content-content-left {
    width: 82%!important;
    margin: 0 9% 10px;
  }

  .applications-content-content > .container h2 {
    font-size: 18px;
    line-height: 28px;
    text-align: left;
  }

  .applications-content-content-right {
    width: 82%!important;
    padding: 0;
    margin: 0 9%;
  }

  .applications-content-content-right p {
    font-size: 14px;
  }

  .applications-content-content-right p:first-of-type {
    width: 100%;
    padding: 20px 0 0;
    margin: 0 0 20px;
  }

}

@media (max-width: 640px) {

  .body-hero .frontpage-slide img {
    height: 100%;
  }

  .flex-hero {
    height: 250px;
    -webkit-clip-path: polygon(0px 95%,50% 100%,100% 95%,100% 0px,0px 0px);
  }

  .flex-hero > img {
    height: 100%;
    width: auto;
  }

  .flex-slider {
    height: 350px;
  }

  .flex-slide img {
    height: 100%;
    width: auto;
  }

  .flex-slider-container img.flexnav {
    top: 55px;
  }

  .gallery li {
    width: 49%;
    height: 150px;
  }

  .media-gallery-nav li, .media-gallery-nav li:last-of-type {
    width: 48.5%;
    margin-top: 10px;
  }

  .gallery.doc-gallery img {
    height: 50px;
    margin-bottom: 0;
  }

  .media-gallery-nav li img, .media-gallery-nav li img:last-of-type {
    display: none!important;
  }

}