//
//  Common
//  _____________________________________________

& when (@media-common = true) {
    // setting all cms pages to full width by default
    // if a page needs all content contained and not full width
    // then content can/should be wrapped in <div class"contained"></div>
    .cms-page-view {
        &.page-layout-1column {
            .page-main {
                max-width: none;
                padding-left: 0;
                padding-right: 0;
            }
        }
        .at-page-bottom {
            .lib-css(margin-bottom, -@indent__xl);
        }
    }
    .section-separated {
        margin-top: 35px;
        margin-bottom: 35px;
        &.first {
            margin-top: 0;
        }
        &.last {
            margin-bottom: 0;
        }
    }
    .section-has-bg {
        padding: 40px 0;
    }
    .bg-size-cover {
        background-size: cover;
    }
    .white {
        color: @color-white;
    }
    .gray {
        color: @djo-gray;
    }
    .gray-light {
        color: @djo-gray-light;
    }
    .no-margin-bottom {
        margin-bottom: 0 !important;
    }
    .no-margin-top {
        margin-top: 0 !important;
    }
}


//
//  Mobile
//  _____________________________________________

.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
    .section-padded-top-bottom {
        padding: 25px 0;
    }
    .section-padded-top {
        padding: 25px 0 0;
    }
    .section-padded-bottom {
        padding: 0 0 25px;
    }
    .no-section-bg-image-m {
        background-image: none !important;
    }
    // Utility: Hide/show elements on desktop or mobile.
    .show-screen-s {
        display: block;
    }
    .hide-screen-s {
        display: none;
    }
}

.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
    // Global messages.
    .cms-page-view.page-layout-1column .page-main .messages {
        padding-left: 15px;
        padding-right: 15px;
    }
}


//
//  Desktop
//  _____________________________________________

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__s) {
    .section-padded-top-bottom {
        padding: 40px 0;
    }
    .section-padded-top {
        padding: 40px 0 0;
    }
    .section-padded-bottom {
        padding: 0 0 40px;
    }
    // Utility: Hide/show elements on desktop or mobile.
    .show-screen-s {
        display: none;
    }
}

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
    // Global messages.
    .cms-page-view.page-layout-1column .page-main .messages {
        max-width: 1270px;
        padding-left: 15px;
        padding-right: 15px;
    }
}
