@media screen and (max-width: 1024px) {
    html, body {
      height: auto;
    }
}
@media screen and (max-width: 1024px) {
    .home .main {
        padding: 260px 12px 252px;
    }
}
@media screen and (max-width: 1024px) {
    .main {
        padding: 186px 12px 252px;
    }
}
@media screen and (max-width: 1024px) {   
    #header-wrapper {
        height: 186px;
    }
}
@media screen and (max-width: 1024px) {
    #header-wrapper.scrolled-nav {
        height: 186px;
    }
}    
@media screen and (max-width: 1024px) {    
    .scrolled-nav #header-top-area, .scrolled-nav .header-top-left2, .scrolled-nav .header-search, .scrolled-nav .header-navbar {
        top: 0;
    }
}  
@media screen and (max-width: 1024px) {
    #header-top-area {
        width: 100% !important;
        float: none !important;
        text-align: center;
    }
}
@media screen and (max-width: 1024px) {
    .site-header {
        padding: 0 12px !important;
    }
}
@media screen and (max-width: 1024px) {
    .columns-2 > .column, .columns-2 > * > .column {
        width: 100%;
    }
}
@media screen and (max-width: 1024px) {
    .posts-grid p {
      height: auto;
    }
}
@media screen and (max-width: 1024px) {
    #footer-wrapper {
        margin: -252px 0 0;
        height: 100%;
        padding: 12px;
        width: 100%;
    }
}
@media screen and (max-width: 1024px) {
    #footer-widget-area {
        margin: 0 12px !important;
    }
}
@media screen and (max-width: 1024px) {
    .header-top-left, .header-top-left2 {
        display: none;
    }
}
@media screen and (max-width: 1024px) {
    .header-top-right {
        width: 100%;
        float: none;
    }
}
@media screen and (max-width: 1024px) {
    #menu-top {
        float: none;
    }
}
@media screen and (max-width: 1024px) {
    #menu-top li a {
        font: normal 0.875em "AMS", sans-serif;
    }
}
@media screen and (max-width: 1024px) {
    #menu-home li a {
        width: 100px;
        height: 60px;
        font-size: 1.125em;
        border: 0 none;
        padding: 12px 22px;
        line-height: 3.2;
        margin-bottom: 12px;
    }
}
@media screen and (max-width: 1024px) {
    #aw_quick_menu-3 {
        top: 26px;
        position: relative;
    }
}
@media screen and (max-width: 1024px) {
    .scrolled-nav #logo img {
        padding: 16px 0 0 0;
        height: 108px;
    }
}
@media screen and (max-width: 1024px) {
    #side-menu {
        width: 640px;
        margin-top: 180px;
    }
}
@media screen and (max-width: 1024px) {
    #nav_menu ul {
      margin: 6px 0 0;
    }
}
@media screen and (max-width: 1024px) {
    .header-navbar {
        margin: 16px 0 0 3px;
        width: 50%;
    }
}
@media screen and (max-width: 1024px) {
    .header-search {
        margin: 18px 0 0;
    }
}
@media screen and (max-width: 1024px) {
    .header-search .search-form, .header-search .search-input{
        width: 180px;
    }
}
@media screen and (max-width: 1024px) {
    .header-search .searchsubmit {
        margin: 0 0 0 138px;
    }
}
@media screen and (max-width: 1024px) {
    .entry-content img, .widget img, img.wp-post-image {
        width: 120px !important;
    }
}
@media screen and (max-width: 1024px) {
    .one-fourth {
        width: 100%;
        margin: 16px 0;
    }
}
@media screen and (max-width: 1024px) {
    .one-half, .one-third, .two-third, .one-fourth, .three-fourth, .one-fifth, .two-fifth, .three-fifth, .four-fifth, .one-sixth, .five-sixth {
        margin-right: 0;
    }
}
@media screen and (max-width: 1024px) {
    .second-mainbar {
        margin: 24px auto;
    }
}
@media screen and (max-width: 1024px) {
    .second-mainbar .post-entry img {
        width: 120px !important;
    }
}
@media screen and (max-width: 1024px) {
    .widget.widget_slideshow {
        display: none;
    }
}
@media screen and (max-width: 1024px) {
    .copyright, .copyright a {
      display: none;
    }
}
@media screen and (max-width: 1024px) {
    .footer-col .widget h3 {
      font-size: 1.35em;
    }
}
@media screen and (max-width: 1024px) {
    .custom-links a {
      font-size: 1.20em;
    }
}
@media screen and (max-width: 640px) {
    img.alignleft, img.alignright {
      float: none !important;
    }
}
@media screen and (max-width: 640px) {
    .columns-3 .column, .columns-4 .column, .columns-5 .column {
      Width: 50% !important;
    }
}