/*--------------------------------------------------------------
  Single Post Styles
--------------------------------------------------------------*/
.entry-single,
.paginated-post-wrapper{
    margin-bottom: get-gutter-width('xl')*0.8;
}
.paginated-post-wrapper{
    clear: both;
    display: block;
}
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}
.written-by .avatar{
    border-radius: 50%;
    max-width: 50px;
    min-height: 50px;
    margin-top: 8px;
    object-fit: cover;
}
.entry-single h1:first-child,
.entry-single h2:first-child,
.entry-single h3:first-child,
.entry-single h4:first-child,
.entry-single h5:first-child,
.entry-single h6:first-child{
    margin-top: 0;
}
.written-by{
    > span{
        line-height: 1.4;
        font-size: 1.2rem;
        display: block;
    }
    a span{
        display: block;
    }
    a{
        font-weight: 900;
        font-size: 1.6rem; 
        line-height: 1.2;
        display: block;
        transition: color .15s ease-in-out;
        @include mq('xl') {
            font-size: 1.7rem;  
        }
    }
}
.written-by{
    padding-left:65px;
    padding-top: 10px;
	@include mq('lg') {
		padding:0;
	}
}
.written-by a img.avatar {
    margin-top: -50px;
    margin-left: -65px;
    margin-bottom: 10px;
	@include mq('lg') {
		margin:5px 0 0;
	}
}

.coauthors-wrapper { 
    margin-top: 50px;
    
    .johannes-author {
        padding-bottom: 0; 
        padding-top: 30px;

        &:first-of-type {
            padding-top: 50px;
            padding-bottom: 0;
        }
        &:last-of-type {
            padding-bottom: 42px;
        }
    }
}

.written-by.coauthors {
    padding-left: 91px;
    @include mq('lg') {
       padding: 0;
    }
    .meta-sidebar-author {
        margin-top: -58px;
        margin-left: -71px;
        margin-bottom: 10px;
        @include mq('lg') {
            margin: 0;
        }
        img.avatar {
            margin-left: -20px;
            @include mq('lg') {
                margin: 5px 0 0 -20px;
            }
        }
    }
}

.entry-tags{
    clear: both;
    margin-top: get-gutter-width('xl')*0.8;
    span{
        display:block;
        font-size: 1.2rem;
        opacity: .8;
    }
    a{
        display: inline-block;
        transition: color .15s ease-in-out;
    }
}
.text-small{
    display:block;
    font-size: 1.2rem;
    opacity: .8;    
}
.entry-tags + .meks_ess{
    margin-top: 15px;
}
body .johannes-wrapper .meks_ess{
    padding-top: 30px;
    margin-bottom: 0;
    border-top: 1px solid;
    top: 0;
    margin-left: -5px;
}
body .johannes-wrapper .meks_ess span {
    margin-left: 5px;
}
body .johannes-wrapper .meks_ess a span {
    font-size: 12px; 
}
body .johannes-wrapper .meks_ess a{
    margin-right: 0;
    margin-left: 5px;
    font-size: 1.6rem;
    height: 36px;
    line-height: 36px;
}
body .johannes-wrapper .meks_ess.circle a, 
body .johannes-wrapper .meks_ess.square a, 
body .johannes-wrapper .meks_ess.transparent a {
    height: 40px;
    line-height: 40px;
}
body .johannes-wrapper .meks_ess.transparent a {
    margin-right: 15px;
    margin-left: 5px;
}
body .johannes-wrapper .meks_ess.transparent .socicon-facebook {
    margin-left: 2px;
}
body .johannes-wrapper .meks_ess.transparent.no-labels a {
    width: 30px;
    margin-right: 15px;
    margin-left: -3px;
}
body .johannes-wrapper .meks_ess.rectangle a {
    min-width: 100px;
}
body .johannes-wrapper .meks_ess.rounded a {
    min-width: 105px;
}

.johannes-section .johannes-share-label{
    display: inline-block !important;
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 1.2rem;
    opacity: .8;
}
body .johannes-wrapper .post > .meks_ess{
    border: none;
    padding-top: 25px;
    @extend .vertical-gutter-flow;
}
body .johannes-wrapper .post > .meks_ess .johannes-share-label{
    top: 0;
}
.johannes-author{
    display:flex;
    padding:20px 20px 15px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    @include mq('sm') { 
        padding:25px 25px 20px;    
    }
	@include mq('md') {
        flex-direction: row;
        justify-content: initial;
        align-items: initial;
        text-align: initial; 
        padding:get-gutter-width('md');         
    }
	@include mq('lg') {
        padding: 48px 48px 35px;
	}
}
.johannes-sidebar-none .johannes-author{
	@include mq('xl') {
		margin-left:- get-gutter-width('xl');
		margin-right:- get-gutter-width('xl');
	}
}

.author-content h6{
    margin:0;
}
.author-content a{
    transition: color .15s ease-in-out;
}
.author-avatar img{
    border-radius: 50%;
    width:100px;
    height:100px;
    object-fit: cover;
}
.author-avatar{
    margin-left: 0;
    min-width: 100px;
    margin-right: 0;

	@include mq('md') {
        margin-right: get-gutter-width('md');
    }
	@include mq('lg') {
        margin-left: -100px;
        margin-right: get-gutter-width('lg');
	}
}
.johannes-author-button{
    width: 30px;
    font-size: 1.8rem;
    padding: 7px 0;
    line-height: 1;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
}
.johannes-sidebar-left .author-avatar{
    margin-left: 0;
}
.single-md-content .entry-summary{
	@extend .vertical-gutter-flow;
}
.single-md-content .entry-summary span{
    float: left;
    margin-right: 5px;
}
.entry-content > p:first-child,
.single-md-content .entry-summary{
    @include mq('lg') {
        margin-top: -5px;
    }
}
.entry-single > *:last-child,
.widget p:last-of-type{
    margin-bottom: 0;
}
.author-description .johannes-button-square{
    margin-right: 5px;
    font-size: 1.6rem;
    vertical-align: top;
    padding: 0;
    line-height: 40px;
}

.section-head-alt{
    .entry-category{
        @include mq('lg') {
            margin-bottom: 15px;
        }       
    }

    .entry-title+.entry-meta {
        @include mq('lg') {
            margin-top: 23px;
        } 
    }
}
.single-layout-2{
        margin-bottom: 24px;
    @include mq('lg') {
        margin-bottom: get-gutter-width('xl')*1.25;
    }
}
.single-layout-4.johannes-cover .section-head {
    padding: 20px 0;
    @include mq('md') {
        padding: 48px 0 68px;
    }
}


//Sidebar left tweaks
.johannes-sidebar-left{
    @include mq('lg') {
        .offset-lg-2 {
            margin-left: 0;
            margin-right: 16.66667%;
        } 
    }
    .entry-meta-sidebar{
        left: auto;
        right: -172px;
        text-align: left;      
    }   

}
.entry-meta-sidebar{
    @include mq('md') {
        max-width: 540px;
        margin: 0 auto 5px;
    } 
}

.johannes-order-2 {
    order: 2;
    @include mq('lg') {
        order: initial;
    }
}
.johannes-order-3 {
    order: 3;
    @include mq('lg') {
        order: initial;
    }
}

.johannes-order-1 + .johannes-order-2{
    margin-top: 20px;
    @include mq('sm') {
        margin-top: 30px;
    }
    @include mq('md') {
        margin-top: get-gutter-width('md');
    }
    @include mq('lg') {
        margin-top: 0;
    }
}
.johannes-order-2 + .johannes-order-1{
    margin-bottom: 20px;
    @include mq('sm') {
        margin-top: 30px;
    }
    @include mq('md') {
        margin-bottom: get-gutter-width('md');
    }
    @include mq('lg') {
        margin-bottom: 0;
        margin-top: 0;
    }    
}

.offset-md-1.section-head-alt{
    padding-right: 0;
}

.johannes-section-margin-alt{
    @include mq('md') {
        margin-bottom: 5px;
    }
}

.single-layout-2.single-md-content .entry-category{
    @include mq('md') {
        margin-top: 10px;
    }    
}
.section-head-alt-page,
.section-head-alt-post{
    text-align: left;
    padding: 0;
    @include mq('md') {
        text-align: center;
    }
}
.entry-media .wp-caption-text,
.section-bg .wp-caption-text{
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: #FFF;
    padding: 7px 12px;
    z-index: 900;
    @include mq('md') {
        bottom: 20px;
        right: 20px;       
    }
    @include mq('lg') {
        bottom: 30px;
        right: 30px;       
    }
}
