/*
Theme Name: The Courier
Theme URI: http://www.dcthomson.co.uk
Author: Robert Paul
Author URI: http://www.dcthomson.co.uk
Description: Grid CSS for The Courier theme.
*/

body {
    padding-top: 196px;    
}

/***
Grid
***/

.wrap {
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
}

.row:before,
.row:after,
.row-full:before,
.row-full:after {
    content: '';
    display: table;
}

.row:after,
.row-full:after {
    clear: both;
}

.row {
    width: 100%;
}

.row-full {
    margin-left: -10px;
    margin-right: -10px;
    width: auto;
}

.column {
    position: relative;
    float: left;
    padding-left: 10px;
    padding-right: 10px;
}

/* Shared CSS */
.wrap,
.column {
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.column--centered {
    float: none !important;
    margin-left: auto;
    margin-right: auto;
}

/* Grid: Default (mobile-first) */
.sm-12 {
    width: 100%;
}
.sm-11 {
    width: 91.66667%;
}
.sm-10 {
    width: 83.33334%;
}
.sm-9 {
    width: 75%;
}
.sm-8 {
    width: 66.66667%;
}
.sm-7 {
    width: 58.33334%;
}
.sm-6 {
    width: 50%;
}
.sm-5 {
    width: 41.66667%;
}
.sm-4 {
    width: 33.33334%;
}
.sm-3 {
    width: 25%;
}
.sm-2 {
    width: 16.66667%;
}
.sm-1 {
    width: 8.33334%;
}

/* Mobile */
@media only screen and (max-width: 767px) {

    body {
        padding-top: 80px;
    }

    #wpadminbar {
        position: fixed !important;
    }

    .wrap {
        padding: 0;
        width: 100%;
    }
    
    /* Show/hide classes */
    .hide-sm,
    .show-md,
    .show-lg {
        display: none !important;
    }
    
    .show-sm {
        display: block !important;
    }      
}

/* Tablet */
@media only screen and (min-width: 768px) and (max-width: 1024px) {

    .wrap {
        width: 768px;
    }

    /* Grid */
    .md-12 {
        width: 100%;
    }
    .md-11 {
        width: 91.66667%;
    }
    .md-10 {
        width: 83.33334%;
    }
    .md-9 {
        width: 75%;
    }
    .md-8 {
        width: 66.66667%;
    }
    .md-7 {
        width: 58.33334%;
    }
    .md-6 {
        width: 50%;
    }
    .md-5 {
        width: 41.66667%;
    }
    .md-4 {
        width: 33.33334%;
    }
    .md-3 {
        width: 25%;
    }
    .md-2 {
        width: 16.66667%;
    }
    .md-1 {
        width: 8.33334%;
    }
    
    /* Show/hide classes */    
    .hide-md,
    .show-sm,
    .show-lg {
        display: none !important;
    }    
    
    .show-md {
        display: block !important;
    }    
}

/* Desktop */
@media only screen and (min-width: 1025px) {
    
    .wrap {
        width: 980px;
    }

    /* Grid */
    .lg-12 {
        width: 100%;
    }
    .lg-11 {
        width: 91.66667%;
    }
    .lg-10 {
        width: 83.33334%;
    }
    .lg-9 {
        width: 75%;
    }
    .lg-8 {
        width: 66.66667%;
    }
    .lg-7 {
        width: 58.33334%;
    }
    .lg-6 {
        width: 50%;
    }
    .lg-5 {
        width: 41.66667%;
    }
    .lg-4 {
        width: 33.33334%;
    }
    .lg-3 {
        width: 25%;
    }
    .lg-2 {
        width: 16.66667%;
    }
    .lg-1 {
        width: 8.33334%;
    }
    
    /* Show/hide classes */    
    .hide-lg,
    .show-sm,
    .show-md {
        display: none !important;
    }
    
    .show-lg {
        display: block !important;
    }    
}
