@media (max-width: 1199px) {
    .theme-boxed, .theme-boxed.header-small .tw-header, .theme-boxed .fixed-footer {
        width:990px;
        margin: 0 auto;
    }
    body.header-dark .tw-header-widget .widget:nth-child(4){
        display: none;
    }
    .tw-socials.columns-6 a,
    .tw-socials.columns-7 a,
    .tw-socials.columns-8 a{
        width: 33.33%;
    }
}
@media (max-width: 991px) {
    .theme-boxed, .theme-boxed.header-small .tw-header, .theme-boxed .fixed-footer {
        width:100%;
    }
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11 {
        float: left;
    }
    /* Bootstrap column */
    [class*="col-md"] {
        width: 100%;
    }
    .header-fixed .header-clone, .tw-header-widget, .tw-logo, ul.sf-menu > li{
        max-height: 60px;
    }
    .header-transparent .tw-title,
    .header-widget .tw-title{
        padding-top: 60px;
    }
    /* Portfolio */
    .single-portfolio .col-md-4.pos-bottom,.single-portfolio .col-md-4.pos-top{
        position: relative !important;
        top:    auto !important;
        bottom: auto !important;
    }
    .portfolio-thumb > img {
        width: 100%;
    }
    .container>.fixed-sidebar-open,
    .mobile-menu-icon {
        display: block;
    }
    .tw-header-widget,
    nav.menu-container{
        display: none;
    }
    body.header-widget .tw-header{
        padding-bottom: 0;
    }
    .waves-container .tw-sidebar > section{
        padding: 80px 0 0;
    }
    .waves-container .tw-sidebar:first-child > section{
        padding-top: 0;
    }
    .col-md-4 > .portfolio-meta, .col-md-4 > .portfolio-single-content{
        padding: 60px 0 0;
    }
    article.single-portfolio > .row > .col-md-4{
        width: 100%;
    }
    body.header-widget.header-fixed .tw-header{
        position: fixed;        
    }
    .tw-socials.columns-5 a,
    .tw-socials.columns-6 a,
    .tw-socials.columns-7 a{
        width: 33.33%;
    }
    .tw-socials.columns-8 a{
        width: 25%;
    }
}

/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 991px) {
    .tw-sidebar aside.widget{
        width: 50%;
        float: left;
    }
    .waves-container .tw-sidebar > section{
        margin: 0 -30px;
    }
    .tw-sidebar aside.widget{
        padding: 0 30px;
    }
    .col-md-4,
    .col-md-3, .col-md-6 {
        width: 50%;
    }
    .col-md-8,
    .tw-sidebar.col-md-4{
        width: 100%;
    }
    .waves-header .col-md-4 {
        width: 100%;
        text-align: center;
    }
}

/* Landscape phone to portrait tablet */
@media (max-width: 767px) {
    .tw-title{
        max-height: 400px;
    }
    .tw-title h1{
        font-size: 21px;
    }
    .tw-title .page-subtitle{
        font-size: 14px;
        line-height: 1.4;
        margin-top: 10px;
    }
    .theme-boxed {
        width:auto;
        margin: 0 !important;
        padding: 0 !important;
        border: none;
    }
    .theme-boxed, .theme-boxed.header-small .tw-header, .theme-boxed .fixed-footer {
        width:100%;
    }
    #main .waves-blog.grid-blog .row.isotope{
        margin-left: 0;
        margin-right:0;
    }
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11,
    #bottom ul{
        float: none;
    }
    body{
        padding: 0;
        margin:0 !important;
    }
    .top-bar, .abs-meta,
    .tw_post_sharebox .share-text{
        display: none;
    }
    .entry-content > blockquote{
        margin: 0;
        padding: 20px 10px 30px 20px;
    }
    .entry-content > blockquote:before{
        left: 0;
    }
    article.single .entry-title{
        font-size: 15px;
    }
    .tw-author{
        padding: 30px 0;
        border-left: none;
        border-right: none;
    }
    .link-content, .format-quote blockquote{
        padding: 30px 20px;
    }
    .tw-blog .entry-block{
        padding-left: 0;
    }
    .tw-socials.columns-4 a,
    .tw-socials.columns-5 a,
    .tw-socials.columns-6 a,
    .tw-socials.columns-7 a,
    .tw-socials.columns-8 a{
        width: 50%;
    }
}
/* Landscape phones and down */
@media (max-width: 480px) {
    .wpcf7 textarea,
    .wpcf7 input[type="text"], .wpcf7 input[type="password"], .wpcf7 input[type="email"]{
        position: relative;
        min-width: 200px;
        margin-right: 0;
        top: auto;
    }
    .theme-boxed {
        width:auto;
    }
    .tw_post_sharebox{
        text-align: center;
    }
    .tw_post_sharebox > div{
        float: none;
        display: inline-block;
        margin: 5px;
    }
    .tw-socials.columns-2 a,
    .tw-socials.columns-3 a,
    .tw-socials.columns-4 a,
    .tw-socials.columns-5 a,
    .tw-socials.columns-6 a,
    .tw-socials.columns-7 a,
    .tw-socials.columns-8 a{
        width: 100%;
    }
}

/* Table Styling on Mobile */

@media screen and (max-width: 600px) {
    table {width:100%;    border-top: none;}
    table th{border-right: 1px solid #ccc;}
    thead {display: none;}
    tr:nth-of-type(2n) {background-color: inherit;}
    tr td:first-child {background: #f0f0f0; font-weight:bold;font-size:1.3em;}
    tbody td {display: block;  text-align:center;}
    #wp-calendar tbody td {display: table-cell;}
    tbody td:first-child {display: block;  text-align:center;}
    tbody td:before { 
        content: attr(data-th); 
        display: block;
        text-align:center;  
    }
}