.postDetails {
    max-width: min(80%, 48rem);
    margin-inline: auto;
}

.wl-postList,
.postDetails__relatedPostsList {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
}

.wl-postList__item,
.postDetails__relatedPost {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    margin: 0 0 1em 0;
    position: relative;
    border: 1px solid #e8e8e8;
    background-color: #fff;
    overflow: hidden;
}

.wl-postList__item:last-child,
.postDetails__relatedPost:last-child {
    margin-right: 0;
}

@media screen and (min-width: 500px) {
    .wl-postList__item,
    .postDetails__relatedPost {
        width: calc(100% / 2 - 0.5em);
        margin: 0 1em 1em 0;
    }

    .wl-postList__item:nth-child(2n),
    .postDetails__relatedPost:nth-child(2n) {
        margin-right: 0;
    }
}

@media screen and (min-width: 768px) {
    .wl-postList__item,
    .postDetails__relatedPost {
        width: calc(100% / 4 - 0.75em);
    }

    .wl-postList__item:nth-child(2n),
    .postDetails__relatedPost:nth-child(2n){
        margin-right: 1em;
    }

    .wl-postList__item:nth-child(4n),
    .postDetails__relatedPost:nth-child(4n){
        margin-right: 0;
    }
}

.no-flexbox .wl-postList,
.no-flexbox .postDetails__relatedPost {
    display: block;
}

.no-flexbox .wl-postList__item,
.no-flexbox .postDetails__relatedPost {
    display: inline-block;
    vertical-align: top;
}

.wl-postList__image,
.postDetails__relatedImage {
    display: block;
    border: none;
}

.wl-postList__content,
.postDetails__relatedContent {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    padding: 0.8em;
}

.wl-postList__meta,
.postDetails__relatedDate {
    font-size: 0.8em;
    color: #4a4a4a;
}

.wl-postList__time,
.wl-postList__author,
.postDetails__relatedDate {
    display: block;
}

.wl-postList__title,
.postDetails__relatedTitle {
    margin-bottom: 0;
    font-size: 1.125em;
}

.wl-postList__link,
.postDetails__relatedLink {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    text-decoration: none;
}

.wl-postList__moreItems {
    text-decoration: none;
}

.wl-postList__moreItems:hover {
    text-decoration: underline;
}

.wl-postList__moreItems:after {
    font-family: "icons";
    content: '\2192';
    margin-left: 0.5em;
    font-size: 0.8em;
}

/*
 *  Detail
 */

.postDetails__meta {
    margin-bottom: 3px;
    font-size: 0.85em;
    color: #4a4a4a;
}

.postDetails__title {
    margin-bottom: 0.6em;
}

.postDetails__authorLink {
    color: #4a4a4a;
}

.postDetails__introduction {
    font-size: 1.1em;
    color: var(--tertiaryColor500);
}

.postDetails__coverImageContainer {
    margin: 0 0 1em 0;
}

.postDetails__coverImage {
    display: block;
}

@media screen and (min-width: 768px) {
    .postDetails__title {
        font-size: 2.5em;
    }
}

/*
 *  Labels
 */

.postDetails__labelsList {
    padding: 0;
    margin: 0 0 1em 0;
    list-style: none;
}

.postDetails__label {
    display: inline-block;
    margin: 0 0.5em 0.5em 0;
}

.postDetails__labelLink {
    display: inline-block;
    padding: 5px 10px;
    color: #000;
    border: 1px solid #e8e8e8;
    background-color: #fff;
    text-decoration: none;
}

.postDetails__labelLink:hover {
    color: #000;
    border: 1px solid #929292;
}

/*
 *  Author info
 */

.c-postAuthors__author {
    padding: 1em;
    border: 1px solid var(--tertiaryColor500);
}

.c-postAuthors__author + .c-postAuthors__author {
    margin-top: 1em;
}

.c-postAuthors__authorImage {
    width: 100px;
    margin-bottom: 1em;
}

.c-postAuthors__description {
    margin-bottom: 0;
}

.c-postAuthors__profileLink {
    display: inline-block;
    margin-top: 0.2em;
}

@media screen and (min-width: 500px) {
    .c-postAuthors__authorImage {
        width: 100px;
        margin-right: 20px;
        margin-bottom: 0;
    }

    .c-postAuthors__authorImage + .c-postAuthors__authorInfo {
        display: inline-block;
        width: calc(100% - 140px);
        vertical-align: top;
    }
}

/**
 * Social Media
 */

.c-postAuthors__socialMedia {
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}

.c-postAuthors__socialMediaItem {
    display: inline-block;
}

.c-postAuthors__socialMediaButton {
    display: block;
    padding: 0.5em 0.5em 0.5em 0;
    text-decoration: none;
}

.c-postAuthors__socialMediaButton:hover {
    text-decoration: none;
    opacity: 1;
}

.c-postAuthors__socialMediaText {
    position: absolute;
    left: -999em;
}

.c-postAuthors__socialMediaButton::before {
    display: block;
    color: #4a4a4a;
    font-weight: normal;
    font-family: 'icons', sans-serif;
    font-size: 1em;
    line-height: 25px;
    text-align: center;
}

.c-postAuthors__socialMediaButton--facebook::before {
    content: '\66';
}

.c-postAuthors__socialMediaButton--twitter::before {
    content: '\74';
}

.c-postAuthors__socialMediaButton--linkedin::before {
    content: '\69';
}

/**
 * Highlighted block (template style in HTML-editor)
 */

.highlightedBlock {
    margin-bottom: 1em;
    padding: 1em;
    background-color: #efefef;
}

.highlightedBlock:after {
    content: "";
    display: table;
    clear: both;
}

.highlightedBlock p:last-child {
    margin: 0;
}

.highlightedBlock img {
    display: block;
    float: left;
    margin-right: 1em;
}
