/**
 * Defaults
 */
.introduction .date,
.introduction .author {
    display: block;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    color: #666;
}

.introduction .author + .date {
    display: table-cell;
    margin-right: 0.4em;
    font-weight: bold;
    color: inherit;
}

.introduction .author + .date::after {
    content: '\2013';
    margin-left: 0.6em;
    font-weight: bold;
}

/**
 * .newslistitem
 */
.newslistitem,
.newsitemlist {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 430px; /* min-height i.p.v. vaste height voorkomt overlapping */
    margin-bottom: 2em;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.newslistitem h3 a {
    display: block;
    text-decoration: none;
    text-align: left;
    font-weight: bold;
    min-height: 35px; /* min-height i.p.v. vaste height */
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

/**
 * News tags & tag lists
 */
.categories dt,
.categories dd {
    display: inline-block;
}

.categories dt {
    position: absolute;
    left: -999em;
}

.categories dd {
    margin: 0 0.3em 0.3em 0;
}

.categories a {
    display: inline-block;
    padding: 0.4em 0.6em;
    border: 1px solid #99cc00;
    border-radius: 2px;
    font-size: 0.9em;
    margin-top: 0.5em;
    text-decoration: none;
    color: #99cc00;
}

/**
 * .newsitem - Full news items
 */
.mod-news h1 {
    position: absolute;
    left: -999em;
}

.fullstory .author {
    display: block;
    margin-bottom: 1em;
    padding: 0.4em 1em;
    font-size: 0.8em;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.05);
}

.mod-news .newsitem,
.mod-news .newsarchive,
.mod-news .newsitem-back {
    width: 100%;
    margin-top: 15px;
    clear: both;
}

.smallNewsImage,
.largeNewsImage {
    display: block;
    margin: 1em 1em 0.5em 0;
    max-width: 100%;
    height: auto;
    border-radius: 7px;
    box-shadow: 0 6px 7px -4px rgba(0, 0, 0, 0.25);
}

/**
 * News lists
 */
.newsitem .introduction,
.newslistitem .introduction {
    clear: both;
    overflow: hidden;
}

.newsdateheader {
    margin-top: 4em;
    padding: 0 15px;
    clear: both;
}

.othernewslist,
.newslist,
.newsListArchive {
    margin: 0;
    padding: 0;
}

.othernewslist li,
.newslist li,
.newsListArchive li {
    list-style: none;
    margin-bottom: 0.75em;
    background: transparent;
}

.archive li a,
.newslist li a,
.othernewslist li a,
.newsListArchive li a {
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.newslist li .title,
.othernewslist li .title {
    display: block;
    line-height: 1.4;
    font-size: 1.25rem;
    font-weight: bold;
}

.archive .date,
.newslist .date,
.othernewslist .date,
.newsListArchive .date {
    display: block;
    font-size: 0.8em;
    color: #8e8e8e;
}

.archive .sep,
.newslist .sep,
.othernewslist .sep,
.newsListArchive .sep {
    display: none;
}

/**
 * News archive
 */
.newsnavbar {
    width: 100%;
    padding: 0.6em 1.4em;
    overflow: hidden;
    font-size: 0.8em;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.newsnavbar a {
    display: inline-block;
    text-decoration: none;
}

.newsnavbar .separator {
    display: none;
}

.newsnavbar span + a::before {
    content: '\232a';
    margin-left: 0.3em;
    font-size: 0.8em;
    color: #666;
}

.archive,
.newsListArchive {
    padding: 0 1em 0.6em;
    border-top: 1px solid #ccc;
}

@media screen and (min-width: 550px) {
    .newslistitem,
    .newsitemlist {
        width: 50%;
        float: left;
        padding: 0 20px;
        box-sizing: border-box;
        break-inside: avoid;
    }

    /* Enkel als er exact 3 items zijn: 3e item vult de volledige breedte */
    .newslistitem:nth-child(3):last-child,
    .newsitemlist:nth-child(3):last-child {
        width: 100%;
        float: none;
        clear: both;
        min-height: auto;
    }

    /* 3e item op smaller scherm: afbeelding links (~50%) en tekst netjes ernaast */
    .newslistitem:nth-child(3):last-child .introduction,
    .newsitemlist:nth-child(3):last-child .introduction {
        display: flow-root;
        overflow: hidden;
    }

    .newslistitem:nth-child(3):last-child .smallNewsImage,
    .newsitemlist:nth-child(3):last-child .largeNewsImage {
        float: left;
        width: calc(50% - 12px);
        max-width: 100%;
        height: auto;
        margin: 0 24px 0.5em 0;
        box-sizing: border-box;
    }
}

@media screen and (min-width: 990px) {
    .newslistitem,
    .newsitemlist {
        width: 33.333%;
        float: left;
        padding: 0 24px;
        margin-bottom: 2em;
        box-sizing: border-box;
    }

    /* Reset voor het 3e item op brede desktopschermen */
    .newslistitem:nth-child(3):last-child,
    .newsitemlist:nth-child(3):last-child {
        width: 33.333%;
        float: left;
        clear: none;
    }

    .newslistitem:nth-child(3):last-child .introduction,
    .newsitemlist:nth-child(3):last-child .introduction {
        display: block;
        overflow: hidden;
    }

    .newslistitem:nth-child(3):last-child .smallNewsImage,
    .newsitemlist:nth-child(3):last-child .largeNewsImage {
        float: left;
        width: auto;
        max-width: 100%;
        height: auto;
        margin: 1em 1em 0.5em 0;
    }
}