/*--------------------------------------------------------------
   Section Styles
--------------------------------------------------------------*/
.johannes-section{
    margin-bottom: get-gutter-width('xl')*0.75;
    @include mq('md') {
        margin-bottom: get-gutter-width('xl');
    } 
    @include mq('lg') {
        margin-bottom: get-gutter-width('xl')*1;
    }
}
.johannes-section.wa-layout.johannes-cover{
    margin-bottom: get-gutter-width('xl')*0.5;
    @include mq('md') {
        margin-bottom: get-gutter-width('xl')*0.5;
    } 
    @include mq('lg') {
        margin-bottom: get-gutter-width('xl')*1;
    }
}

.section-margin{
    margin-top: 20px;
    @include mq('sm') { 
        margin-top: 25px;
    }
    @include mq('md') {
        margin-top: get-gutter-width('md');
    }
    @include mq('lg') {
        margin-top: get-gutter-width('xl');
    }
}
.section-head .section-title,
.section-title{
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    @include mq('md') {
        margin-bottom: 24px;
    }
    @include mq('lg') {
        margin-bottom: 40px;
    }
}
.section-title > span{
    font-weight: 400;
}
.johannes-front-shop .section-title a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.johannes-front-shop .section-title a:after{
    content: "\e909";
    font-family: johannes-font;
    font-size: 3.6rem;
    line-height: 1;
}
.johannes-content{
    max-width: 100%;
    padding: 0;
    width:100%;
    @include mq('md') {
        max-width: size-by-col(6, 'xl');
        padding:0;
    }
}
.johannes-content-alt{
    max-width: 100%;
    padding: 0 15px;
    width:100%;
    @include mq('sm') {
        padding: 0;
    }
    @include mq('md') {
        max-width: size-by-col(6, 'xl');
        padding:0;
    }
    @include mq('lg') {
        max-width: size-by-col(8, 'xl');
    }
}
.johannes-overlay .johannes-content-alt{
    padding: 0 15px;
    @include mq('sm') {
        padding: 0 30px;
    }
}
.section-head{
    margin:0 auto;
    text-align: center;
    position: relative;
}
.section-title:after{
    content:"";
    width:20px;
    height: 2px;
    display: block;
    margin: 12px auto 0;
    @include mq('md') {
        width:30px;
        margin: get-gutter-width('xl')*0.35 auto 0;
    }
    @include mq('lg') {
        margin:32px auto 0;
    }
}
.entry-meta-sidebar{
    position: relative;
    width: 100%;

    @include mq('lg') {   
        position: absolute;
        max-width: size-by-col(2, 'lg');
        width: 100%;
        text-align: right;
        left: - (size-by-col(2, 'lg') + get-gutter-width('lg') / 2);
    }
    @include mq('xl') {   
        max-width: size-by-col(2, 'xl');
        width: 100%;
        text-align: right;
        left: - (size-by-col(2, 'xl') + get-gutter-width('xl') / 2);
    }
}
.section-head + .entry-media,
.entry-media + .section-head{
    margin-top: get-gutter-width('xs');
    @include mq('sm') {
        margin-top: get-gutter-width('sm');
    }
    @include mq('md') {
        margin-top: get-gutter-width('md');
    }
    @include mq('lg') {
        margin-top: get-gutter-width('xl');
    }
}
.section-bg{
    width: 100%;
    font-size: 0;
    height: 100%;
    min-height: 100px;
}
.section-bg img{
    width:100%;
    height: 100%;
    object-fit: cover;
}
.johannes-section.johannes-cover{
    display: flex;
    align-items: center;
    justify-content: center;    
    overflow: hidden;
}
.johannes-cover{
    position: relative;
    height: 300px;
    @include mq('sm') {
        height: 350px;
    }
    @include mq('md') {
        height: 500px;
    }
    @include mq('lg') {
        height: 500px;
    }
    @include mq('xl') {
        height: initial;
    }
}
.johannes-cover > .section-bg + .container{
    position: absolute;
    z-index: 2;
}
.johannes-offset-bg,
.johannes-offset-bg .section-title{
    text-align: center;
    @include mq('md') {
        text-align: left;
    } 
}
.johannes-offset-bg:after{
    background: rgba(0,0,0,.4);
    content: "";
    position: absolute;
    left: -75%;
    height: 110%;
    width: 300px;
    top: 50%;
    min-height: 200px;
    transform: translateY(-50%);
    z-index: 1;
    padding: 50px 0;
    box-shadow: -300px 0 0 rgba(0,0,0,.4), -600px 0 0 rgba(0,0,0,.4), -900px 0 0 rgba(0,0,0,.4), -1200px 0 0 rgba(0,0,0,.4), -1500px 0 0 rgba(0,0,0,.4);
    display: none;
    @include mq('sm') {
        display: block;
    }
    @include mq('md') {
        display: block;
        left: -45%;
    }  
    @include mq('lg'){
        left: -35%;
    } 
}
.johannes-bg-alt-2.johannes-related{
    padding-top: 24px;
    padding-bottom: 5px;
    @include mq('sm') {
        padding-top: 24px;
        padding-bottom: 5px;
    }
    @include mq('md') {
        padding-top: get-gutter-width('md')*1.25;
        padding-bottom: get-gutter-width('md')*0.35;
    }
    @include mq('lg') {
        padding-top: get-gutter-width('xl')*1.25;
        padding-bottom: get-gutter-width('xl')*1.25;
    }
}
.johannes-cover .johannes-breadcrumbs,
.johannes-cover .entry-category,
.johannes-cover .entry-title,
.johannes-cover .entry-meta,
.johannes-cover p,
.johannes-cover .display-1,
.johannes-cover .section-meta,
.johannes-cover .section-title,
.johannes-offset-bg .johannes-content .search-alt,
.johannes-cover .section-avatar,
.johannes-offset-bg .section-subnav.social-icons-clean{
    position: relative;
    z-index: 2;
}
.johannes-offset-bg .section-meta,
.johannes-offset-bg .johannes-breadcrumbs{
    text-align: left;
}
.johannes-offset-bg .johannes-content{
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    .search-alt{
        text-align: left;
    }    
}
.johannes-offset-bg .section-description .search-alt button[type=submit]{
    margin-left: 0;
    margin-right: 0;
}
.johannes-offset-bg .section-description .search-alt input[type=text]{
    text-align: left;
}
.johannes-offset-bg .section-avatar,
.johannes-offset-bg .section-title{
    text-align: left;
}
.johannes-offset-bg .section-subnav.social-icons-clean{
    justify-content: flex-start;
}
.johannes-offset-bg.section-head .section-head{
    padding: 0 !important;
}
.entry-media{
    position: relative;
}
.entry-media a:after{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width:100%;
    display: block;
    background: #000;
    opacity: 0;
    transition: opacity .15s ease-in-out;
}
.entry-media a:hover:after{
    opacity: .15;
}