/**
 * 5.2 - Post Navigation
 */

.post-navigation {
    clear: both;
}

.post-navigation a {
    display: block;
    text-decoration: none;
}

.post-navigation .meta-nav {
    display: block;
    letter-spacing: 0.083em;
    margin-bottom: 0.583em;
    text-transform: uppercase;
}

.post-navigation .nav-links div:nth-child(1):nth-last-child(2),
.post-navigation .nav-links div:nth-child(2):nth-last-child(1) {
    display: inline-block;
    width: 48%;
}

.posts-navigation .nav-links div:nth-child(1):nth-last-child(2) {
    margin-right: 2%;
}

.posts-navigation .nav-links div:nth-child(2):nth-last-child(1) {
    margin-left: 2%;
}

.post-navigation .nav-links div:nth-child(1):nth-last-child(2) {
    margin-right: 2%;
}

.post-navigation .nav-links div:nth-child(2):nth-last-child(1) {
    margin-left: 2%;
}

.post-navigation .nav-previous,
.posts-navigation .nav-previous {
    text-align: left;
}

.post-navigation .nav-next,
.posts-navigation .nav-next {
    float: right;
    text-align: right;
}

.post-navigation div + div,
.posts-navigation div + div {
    margin-top: 0;
}

.post-navigation .post-title {
    display: block;
    text-rendering: optimizeLegibility;
}

.posts-navigation .nav-links,
.post-navigation .nav-links {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
}

.posts-navigation .nav-links {
    @include flex-justify-center;
}

.post-navigation .nav-links {
    border: 1px solid;
}

.pagination .prev,
.pagination .next {
    width: 100%;
}

.image-navigation,
.comment-navigation {
    border-top: 1px solid;
    border-bottom: 1px solid;
    font-size: 13px;
    font-size: 0.8125rem;
    line-height: 1.6153846154;
    margin: 0 7.6923% 2.1538461538em;
    padding: 1.0769230769em 0;
}

.comment-navigation {
    margin-right: 0;
    margin-left: 0;
}

.comments-title + .comment-navigation {
    border-bottom: 0;
    margin-bottom: 0;
}

.image-navigation .nav-previous:not(:empty),
.image-navigation .nav-next:not(:empty),
.comment-navigation .nav-previous:not(:empty),
.comment-navigation .nav-next:not(:empty) {
    display: inline-block;
}

.image-navigation .nav-previous:not(:empty) + .nav-next:not(:empty):before,
.comment-navigation .nav-previous:not(:empty) + .nav-next:not(:empty):before {
    content: "\002f";
    display: inline-block;
    opacity: 0.7;
    padding: 0 0.538461538em;
}

.posts-navigation,
.pagination,
#content #infinite-handle {
    clear: both;
    margin: 0;
    text-align: center;
}

#content #infinite-handle {
    display: block;
}

#content #infinite-handle span {
    background: none transparent;
    display: inline-block;
    padding: 0;
}

#content #infinite-handle span.ctis-load-more {
    display: block;

    button {
        display: block;
        margin: 0 auto;
        width: auto;
    }
}

.infinite-loader #ctis-loading img {
    width: 35px;
}

.infinite-loader {
    clear: both;
}

.posts-navigation a,
#content #infinite-handle span button {
    letter-spacing: 0;
    line-height: 1.4;
}

.pagination .prev,
.pagination .next {
    font-weight: 400;
    line-height: 1.75;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 7px 0;
    padding: 8px 16px;
    text-transform: uppercase;
}

.posts-navigation a,
#content #infinite-handle span button {
    border: none;
    -webkit-border-radius: 0;
    border-radius: 0;
    display: inline-block;
    text-transform: uppercase;
}

#content #infinite-handle span button,
.color-scheme-blog .button.play-button,
.color-scheme-corporate .button.play-button {
    @include border(35px);
}

.color-scheme-blog,
.color-scheme-corporate {
    #content #infinite-handle span button {
        @include border(5px);
    }
}

.ctis-loader-elements span {
    line-height: 1;
}

#content #infinite-handle {
    z-index: 2;
}

#content #infinite-handle,
#content .infinite-loader {
    cursor: pointer;
    clear: both;
    margin: 0 auto;
    margin-top: 42px;
    padding: 0;
    text-align: center;
    width: 100%;
}

.archive-posts-wrapper .section-content-wrapper {
    position: relative;
}

.site-content .archive-posts-wrapper .posts-navigation .nav-links {
    margin-top: 42px;
    
    > div {
        a {
            @include border(45px);
            display: inline-block;
            text-align: center;
        }
    }
}

.color-scheme-blog .site-content .archive-posts-wrapper .posts-navigation .nav-links > div a,
.color-scheme-corporate .site-content .archive-posts-wrapper .posts-navigation .nav-links > div a {
    @include border(5px);
}

.posts-navigation .nav-links .nav-previous a:before {
    margin-right: 10px;
}

.posts-navigation .nav-links .nav-next a:after {
    margin-left: 10px;
}

.post-navigation a {
    display: block;
    text-decoration: none;
}

.post-navigation span {
    display: block;
}

.post-navigation .nav-subtitle {
    letter-spacing: 0.083em;
    margin-bottom: 0.583em;
    text-transform: uppercase;
}

.post-navigation .nav-title {
    display: block;
    text-rendering: optimizeLegibility;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    position: relative;
    vertical-align: top;
    padding: 15px;
}

.post-navigation .nav-previous {
    border-right: 1px solid;
}

.pagination .prev,
.pagination .next {
    width: 100%;
}

.image-navigation,
.comment-navigation {
    border-top: 1px solid;
    border-bottom: 1px solid;
    font-size: 13px;
    font-size: 0.8125rem;
    line-height: 1.6153846154;
    margin: 0 7.6923% 2.1538461538em;
    padding: 1.0769230769em 0;
}

.comment-navigation {
    margin-right: 0;
    margin-left: 0;
}

.comments-title + .comment-navigation {
    border-bottom: 0;
    margin-bottom: 0;
}

.image-navigation .nav-previous:not(:empty),
.image-navigation .nav-next:not(:empty),
.comment-navigation .nav-previous:not(:empty),
.comment-navigation .nav-next:not(:empty) {
    display: inline-block;
}

.image-navigation .nav-previous:not(:empty) + .nav-next:not(:empty):before,
.comment-navigation .nav-previous:not(:empty) + .nav-next:not(:empty):before {
    content: "\002f";
    display: inline-block;
    opacity: 0.7;
    padding: 0 0.538461538em;
}

.posts-navigation,
.pagination,
#content #infinite-handle {
    clear: both;
    text-align: center;
}

#content #infinite-handle {
    display: block;
}

#content #infinite-handle span {
    background: none transparent;
    display: inline-block;
    padding: 0;
}

.infinite-loader #ctis-loading img {
    width: 35px;
}

.infinite-loader {
    clear: both;
}

.posts-navigation a,
#content #infinite-handle span button {
    line-height: 1.4;
}

.pagination .prev,
.pagination .next {
    font-weight: 400;
    line-height: 1.75;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 7px 0;
    padding: 8px 16px;
    text-transform: uppercase;
}

.pagination .page-numbers:not(.next):not(.previous):not(.prev) {
    @include border(50%);
}

.posts-navigation a,
#content #infinite-handle span button,
.header-media .more-link,
#feature-slider-section .more-link,
#hero-section .more-link,
.promotion-section .more-link {
    border: none;
    display: inline-block;
    text-transform: uppercase;
}