
.avatar { 
    height: auto; 
}

header.entry-header { 
    position: relative; 
    
    .edit { 
        position: absolute; 
        right: 0; 
        top: 8px; 
    }
}

.posts-wrap { 
    position: relative; 
    
    &.timeline-layout { 
        padding-top: 20px; 
        
        @media #{$screen-medium} {
            padding-top: 0;
        }
        
        .column2 & {
            @media #{$screen-normal} {
                padding-top: 0;
            }
        }
        
    }
}

.post-content-wrap {
    .post-info { 
        float: left; 
        width: 85px; 
        margin-right: 15px; 
        margin-bottom: 15px;
        
        @media #{$screen-large} {
            width: 75px; 
            margin-right: 10px; 
            margin-bottom: 10px;
        }

        @media #{$screen-normal} {
            width: 60px;
        }
        
        @media #{$screen-small} {
            width: 40px;
        } 
        
        &.grid,
        &.gird.none-slideshow {
            width: 40px; 
            margin-top: 3px; 
            margin-right: 15px; 
            margin-bottom: 15px;
        }
        
        &.large-alt { 
            margin-right: 30px; 
            
            @media #{$screen-large} {
                margin-right: 20px;
            }
            
            @media #{$screen-small} {
                margin-right: 15px;
            }
        }
    }
    
    .post-date,
    .post-format { 
        float: left;  
        width: 85px; 
        height: 85px; 
        padding: 20px 0; 
        text-align: center; 
        font-weight: bold; 
        line-height: 1.1; 
        text-transform: uppercase;
        @include transition($transition); 
        
        @media #{$screen-large} {
            width: 75px; 
            height: 75px; 
            padding: 18px 0;
        }
        
        @media #{$screen-normal} {
            width: 60px; 
            height: 60px; 
            padding: 12px 0;
        }
        
        @media #{$screen-small} {
            float: none; 
            width: 40px; 
            height: 40px; 
            padding: 6px 0;
        }
    }
    
    .post-format { 
        padding: 28px 0; 
        
        @media #{$screen-large} {
            padding: 23px 0;
        }
        
        @media #{$screen-normal} {
            padding: 17px 0;
        }
        
        @media #{$screen-small} {
            padding: 10px 0;
        }
        
        .fa { 
            font-size: 30px;
            
            @media #{$screen-normal} {
                font-size: 25px;
            } 
            
            @media #{$screen-small} {
                font-size: 19px;
            } 
        }
        
        &.quote:before {
            display: none;
        }
    }
    
    .post-date {
        .post-date-day { 
            font-size: 20px; 
            display: block; 
            font-weight: bold; 
            
            @media #{$screen-normal} {
                font-size: 17px;
            }
            
            @media #{$screen-small} {
                font-size: 14px;
            }
        }
        
        .post-date-month { 
            font-size: 18px; 
            display: block; 
            font-weight: bold; 
            
            @media #{$screen-normal} {
                font-size: 17px;
            }
            
            @media #{$screen-small} {
                font-size: 14px;
            }
        }
    }
    
    .post-info.grid .post-date,
    .post-info.grid .post-format { 
        float: none; 
        width: 40px; 
        height: 40px; 
    }
    
    .post-info.grid .post-date {
        padding: 6px 0; 
        
        .post-date-day, 
        .post-date-month { 
            font-size: 14px; 
        }
    }
    
    .post-info.grid .post-format { 
        padding: 10px 0; 
        
        .fa { 
            font-size: 19px; 
        }
    }
        
    .post-content { 
        padding-left: 100px; 
        
        @media #{$screen-large} {
            padding-left: 90px;
        }
        
        @media #{$screen-normal} {
            padding-left: 75px;
        }
        
        @media #{$screen-small} {
            padding-left: 0;
        }
        
        &.large-alt { 
            padding-left: 115px; 
            
            @media #{$screen-large} {
                padding-left: 95px;
            }
            
            @media #{$screen-normal} {
                padding-left: 80px;
            }
            
            @media #{$screen-small} {
                padding-left: 0;
            }
        }
        
        &.grid,
        &.grid.none-slideshow,
        &.timeline { 
            padding-left: 0; 
        }
        
        &.medium-alt { 
            
            @media #{$screen-normal} {
                .post-content-small {
                    padding-left: 0;
                }
            }
            
            @media #{$screen-small} {
                padding-left: 0; 
                
                .post-slideshow-wrap {
                    padding-left: 0;
                    margin-left: 50px;
                }
            }
        }
        
        &.small-alt { 
            
            @media #{$screen-normal} {
                .post-content-small {
                    padding-left: 0;
                }
            }
            
            @media #{$screen-small} {
                padding-left: 0; 
                
                .post-slideshow-wrap {
                    padding-left: 50px;
                }
            }
        }
    }
}

.wp-post-image {
    width: 100%;
}

.post-slideshow-wrap {
    position: relative;
    
    @media #{$screen-small} {
        padding-left: 50px;
    }
    
    &.large-alt,
    &.grid,
    &.timeline { 
        padding-left: 0; 
    }
    
    &.small-alt { 
        float: left; 
        width: 450px; 
        margin-right: 30px; 
        
        .column2 & {
            width: 350px;
        }
        
        @media #{$screen-large} {
            width: 330px; 
            margin-right: 20px;
            
            .column2 & {
                width: 250px;
            }
        }
        
        @media #{$screen-normal} {
            float: none; 
            width: 100%; 
            margin-right: 0;
            
            .column2 & {
                width: 100%;
            }
        }
    }
}

.post-content-small { 
    padding-left: 480px;
    
    .column2 & {
        padding-left: 380px;
    } 
    
    @media #{$screen-large} {
        padding-left: 350px;
        
        .column2 & {
            padding-left: 270px;
        }
    }
    
    @media #{$screen-normal} {
        padding-left: 50px;
        
        .column2 & {
            padding-left: 50px;
        }
    }
}

.post-slideshow { 
    width: 100%; 
    margin-bottom: 30px; 
    
    .post-slideshow-wrap.medium-alt &,
    .post-slideshow-wrap.timeline & { 
        margin-bottom: 25px; 
    }
    
    .post-item & {
        
        .post-image,
        .fit-video {
            margin-bottom: 0;
        }
    }
}

.post-content { 
    
    .entry-title {
        font-size: 28px;
        font-weight: bold;
        line-height: 1.2;

        @media #{$screen-large} {
            font-size: 24px;
        }

        @media #{$screen-medium} {
            font-size: 20px;
        }
        
        #main & { 
            padding-left: 0;
            margin: 0 0 10px;

            &:before {
                display: none;
            }
        }
    }
}

.post-image img { 
    width: 100%; 
    height: auto; 
}

.entry-header .entry-thumbnail img { 
    width: 100%; 
    height: auto; 
    margin-bottom: 30px; 
}

.entry-meta { 
    margin-bottom: 15px;
    
    .meta-item { 
        display: inline-block;
        margin-right: 25px; 
        font-size: 14px; 
        line-height: 1.7;
        
        @media #{$screen-large} {
            margin-right: 20px;
        } 
        
        @media #{$screen-normal} {
            margin-right: 15px;
        }

        .meta-inner {
            display: inline-block;

            .single-portfolio & {
                display: block;
            }
        }
        
        .portfolio-content & {
            margin-right: 0;
        }

        .portfolio-cat-content & {
            margin-right: 25px;

            @media #{$screen-large} {
                margin-right: 20px;
            }

            @media #{$screen-normal} {
                margin-right: 15px;
            }
        }
        
        .fa { 
            margin-right: 5px; 
            width: 12px; 
            text-align: center; 
        }
    }
    .meta-title { 
        font-weight: bold; 
    } 
}

.entry-content,
.entry-author,
.entry-related,
.entry-comments,
.comment-respond,
.portfolio-content .sub-content { 
    margin-bottom: 75px; 
    //line-height: 1.5;

    @media #{$screen-normal} {
        margin-bottom: 70px;
    }
    
    @media #{$screen-medium} {
        margin-bottom: 65px;
    }
    
    .woocommerce-tabs & {
        margin-bottom: 0;
    }
}

.entry-author,
.comment-respond {
    margin-bottom: 95px;

    @media #{$screen-normal} {
        margin-bottom: 85px;
    }

    @media #{$screen-medium} {
        margin-bottom: 75px;
    }
}

.form-allowed-tags {
    display: none;
}

.entry-content {
    .portfolio-content &,
    .portfolio-page-content &,
    .faq-content &,
    .faq-page-content &,
    .grid-layout .post-item &,
    .timeline-layout .post-item &,
    .teaser_grid_container .post-item & {
        margin-bottom: 0; 
    }
}

.entry-addthis-above { 
    height: 40px; 
    margin-bottom: 20px; 
    
    > div {
        float: left;
    }
}

.entry-addthis-below { 
    height: 40px; 
    margin-top: 20px; 
    
    > div {
        float: right;
    }
}

.entry-author {
    .avatar { 
        float: left; 
        width: 145px; 
        margin-right: 30px; 
        
        @media #{$screen-normal} {
            width: 110px; 
            margin-right: 15px;
        }
        
        @media #{$screen-medium} {
            margin-bottom: 15px;
        }
    }

    .author-content { 
        padding-left: 175px;
        
        @media #{$screen-normal} {
            padding-left: 125px;
        } 
        
        @media #{$screen-medium} {
            padding-left: 0;
        }
        
        h3 { 
            margin-top: 0; 
            margin-bottom: 15px; 
        }
    }
}

.entry-related .title { 
    margin-bottom: 35px; 
}

.entry-related h3,
.entry-comments h3 { 
    font-size: 24px; 
    font-weight: bold; 
    text-transform: uppercase; 
    display: table-cell; 
    white-space: pre; 
}

.title-gap-wrap { 
    display: table-cell; 
    position: relative; 
    height: 1px; 
    vertical-align: middle; 
    width: 100%; 
    
    .title-gap { 
        margin-left: 25px; 
    }
}

.comment-list { 
    list-style: none; 
    padding: 0; 
    
    .children { 
        list-style: none; 
        padding: 0 0 0 50px; 
        
        @media #{$screen-large} {
            padding-left: 30px;
        }
        
        @media #{$screen-normal} {
            padding-left: 20px;
        }
    }
    
    .comment-body {
        padding: 35px 0;
    }
    
    .avatar { 
        float: left; 
        width: 70px; 
    }
    
    .comment-box { 
        padding-left: 100px;
        
        @media #{$screen-normal} {
            padding-left: 90px;
        } 
    }
    
    .meta { 
        font-style: italic; 
        font-size: 14px; 
        margin-bottom: 10px; 
        
        a { 
            font-style: normal; 
            font-weight: bold; 
            margin-right: 15px; 
        }
        
        strong { 
            margin-right: 8px; 
        }
        
        .comment-date { 
            margin-right: 15px; 
        }
    }
}

.entry-comments .no-comments { 
    padding: 35px 0; 
}

.comment-respond #reply-title { 
    text-transform: uppercase;

    .comment-list & {
        padding-top: 30px;
    }
}

.comment-respond {
    .comment-notes {
        margin-top: -5px;
        margin-bottom: 25px;
    }
}

.post-item {
    .post-slider &,
    .post-carousel &,
    .grid-layout &,
    .teaser_grid_container &,
    .timeline-layout & {
        padding-left: 15px; 
        padding-right: 15px; 
        padding-bottom: 3px;
    }

    .entry-related & {
        margin-top: 15px;
    }
    
    .timeline-layout & {
        @media #{$screen-medium} {
            padding-bottom: 20px;
            
            &.align-left,
            &.align-right {
                clear: both; 
                float: none;
                padding-left: 15px; 
                padding-right: 15px;
            }
        }
    }
    
    .column2 .timeline-layout & {
        @media #{$screen-normal} {
            padding-bottom: 20px;
            
            &.align-left,
            &.align-right {
                padding-left: 15px; 
                padding-right: 15px;
            }
        }
    }
    
    &.large-alt,
    &.medium-alt,
    &.small-alt {
        margin-bottom: 0;

        .posts-wrap & {
            margin-top: 100px;

            @media #{$screen-medium} {
                margin-top: 70px;
            }

            &:first-child {
                margin-top: 0;
            }
            
            .entry-content {
                margin-bottom: 0;
            }
        }
    }

    .grid-layout &,
    .teaser_grid_container & {
        padding-bottom: 30px;
        
        .inner:hover {
            @include box-shadow($timeline-hover-box-shadow);
        }
        
        .post-slideshow-wrap {
            .post-slideshow {
                margin-bottom: 10px;
            }
        }
        
        .post-content-wrap {
            padding: 20px 20px 30px;
        }
    }
    
    .timeline-layout & { 
        padding-bottom: 30px; 
    }
    
    .grid-layout &,
    .teaser_grid_container & {
        @media #{$screen-medium} {
            position: static !important;
        }
    }
    
    .portfolio-wrapper.grid-layout & {
        @media #{$screen-medium} {
            position: absolute !important;
        }
    }
    
    .timeline-layout &.align-left { 
        clear: left; 
        float: left; 
        padding-right: 30px;
        
        @media #{$screen-medium} {
            padding-right: 15px;
            clear: none;
            float: none;
        }
    }
    
    .timeline-layout &.align-right { 
        clear: right; 
        float: right; 
        padding-left: 30px; 
        
        @media #{$screen-medium} {
            padding-left: 15px;
            clear: none;
            float: none;
        }
    }
    
    .timeline-layout & > .inner { 
        padding: 16px 16px 25px;
        text-align: left;
        @include box-shadow(none);
    }
    
    .timeline-layout & > .inner:hover { 
        @include box-shadow($timeline-hover-box-shadow);
    }
    
    .post-slider &,
    .post-carousel & {
        .post-image,
        .fit-video { 
            display: block; 
            margin-bottom: 15px; 
            position: relative;
        }
    }
}

.fit-video iframe {
    width: 100% !important;
}

.entry-excerpt .more-links {
    &.inline { 
        font-weight: bold; 
    }
    
    &.btn {
        margin-top: 20px;
    }
}

.timeline-icon { 
    text-align: center; 
    font-size: 45px; 
    line-height: 1; 
    margin-top: -20px; 
    margin-bottom: -8px; 
    
    @media #{$screen-medium} {
        display: none;
    }
    
    .column2 & {
        @media #{$screen-normal} {
            display: none;
        }
    }
}

.timeline-date { 
    text-align: center; 
    
    .timeline-title { 
        position: relative; 
        display: inline-block; 
        margin: 20px 0 40px; 
        font-size: 15px; 
        font-weight: bold; 
        padding: 5px 10px;
        text-transform: none;
        
        @media #{$screen-medium} {
            margin-bottom: 30px;
        }
        
        .column2 & {
            @media #{$screen-normal} {
                margin-bottom: 30px;
            }
        } 
    }
}

.timeline-content-gap { 
    position: absolute; 
    left: 0; 
    right: 0; 
    top: 0; 
    bottom: 0; 
    margin: auto; 
    width: 2px;
    
    @media #{$screen-medium} {
        display: none;
    } 
    
    .column2 & {
        @media #{$screen-normal} {
            display: none;
        }
    }
}

.timeline-circle { 
    border-radius: 5px; 
    width: 10px; 
    height: 10px; 
    position: absolute; 
    margin-top: 5px; 
    
    @media #{$screen-medium} {
        display: none;
    }
    
    .column2 & {
        @media #{$screen-normal} {
            display: none;
        }
    }
    
    .timeline-layout .align-left & { 
        right: -5px;
    }
    
    .timeline-layout .align-right & { 
        left: -5px;
    }
}

.timeline-arrow { 
    position: absolute; 
    
    @media #{$screen-medium} {
        display: none;
    }
    
    .column2 & {
        @media #{$screen-normal} {
            display: none;
        }
    }
    
    .align-left & {
        margin-right: 31px; 
        right: 0;
    }
    
    .align-right & { 
        margin-left: -16px; 
    }
    
    &:before,
    &:after {
        top: 50%; 
        content: " "; 
        height: 0; 
        width: 0; 
        position: absolute; 
        pointer-events: none;
        
        .align-right & {
            right: 100%;
        }
    }
    
    &:before { 
        border: 7px solid transparent; 
        margin-top: 1px;
    }
    &:after {
        border: 5px solid transparent; 
        margin-top: 3px;
    }
}

.pagination {
    .infinite-content & { 
        display: none; 
    }
    
    .portfolio-page-content &,
    .blog-page-content & { float: right; }
}

.blog-page-content,
.portfolio-page-content,
.portfolio-cat-content {
    .post-slideshow-wrap,
    .portfolio-slideshow-wrap {
        .owl-theme .owl-controls .owl-buttons div {
            @include opacity(0);
        }

        &:hover .owl-theme .owl-controls .owl-buttons div {
            @include opacity(1);
        }
    }
}

.product-slider .post-carousel,
.related-slider .post-carousel {
    .post-item {
        .post-image {
            margin-bottom: 20px;
        }
        
        .post-title {
            font-size: 20px;
            font-weight: bold; 
            margin: 3px 0 15px;
            line-height: 1.25;
        }
        
        .entry-meta { 
            margin-bottom: 0; 
        }
        
        .read-more { 
            font-weight: bold; 
            font-size: 15px; 
        }
        
        .meta-date { 
            display: inline-block; 
            font-style: italic; 
            font-size: 14px; 
            padding-top: 2px; 
        }
    }
}

.hentry > div:last-child {
    margin-bottom: 0;
}
.hentry > div.last-child {
    margin-bottom: 0;
}

#infscr-loading { 
    position: absolute; 
    bottom: 0; 
    text-align: center; 
    left: 0; 
    right: 0; 
    padding: 15px; 
    line-height: 2; 
    z-index: 1000; 
    
    .grid-layout &,
    .teaser_grid_container &,
    .timeline-layout & { 
        left: 15px; 
        right: 15px; 
    }
}

.wp-caption {
    max-width: 100% !important;
}

.wp-caption-text {
    min-width: 0;
}

.gallery-caption {
    min-width: 0;
}

.bypostauthor {
    min-width: 0;
}
