/* 
###
BACKSTAGE 5.1 CSS > NEWS AND CALENDAR PLUGINS
###
*/
.news-overview {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 50px 0;
    padding-top: 0;
    width: 102%;
    margin-left: -1%;

}
.page_content.news_item h1,
.page_content.news_content h1 {
    font-size: 2em;
    line-height: 1;
    color: var(--highlight);
}
.page_content.news_content h1 {
    margin-top: 50px;
    margin-bottom: 30px;
}
.page_content.news_content {
    width: 100%;
    background: transparent;
}


.newsarticle .media {
    width: 30%;
    max-width: 400px;
    position: relative;
}
.newsarticle .media a {
    display: block;
    position: relative;
}
.newsarticle .media a .icon {
    width: 50px;
    height: 50px;
}
.newsarticle .media a img {
    display: block;
    width: 100%;
    position: relative;
}
a.back {
    display: block;
    margin-top: 1em;
}
.news-overview.news-overview--is-calendar {
    /* calendar only class */
}
.news-overview.news-overview--is-news {
    /* news only class */
}
.news-overview .item {
    width: 31.333%;
    margin: 1%;
    box-sizing: border-box;
    background: var(--accents);
    position: relative;
}
.news-overview .item a {
    display: flex;
    flex-direction: column;
    color: var(--main);
    position: relative;
}
.news-overview .item a .image {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}



.news-overview .item a .image img {
    display: block;
    width: 100%;
}
.news-overview .item a .news-overview-content {
    padding: 2em;
    line-height: 1.5;
    box-sizing: border-box;
    width: 100%;
}
.news-overview .item a .news-overview-content .title {
    font-weight: 600;
}
.news-overview .item a .news-overview-content .meta,
.page_content .date {
    color: var(--color);
}
/*p a.back {
    margin-top: 40px;
    display: inline-block;
}*/
.news_item .section {
    margin-top: 40px;
    padding: 40px;
    background: var(--accents);
}
div.pagination {
    display: flex;
    justify-content: center;
    width: 70%;
    margin: 40px auto;
    margin-bottom: 0;
}
div.pagination div {
    width: 50px;
    height: 50px;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 50px;
    text-align: center;
    margin: 0 10px;
}
div.pagination div:not(.disabled) {
    background: var(--accents);
}
div.pagination div a {
    display: block;
    color: var(--main);
}
div.pagination div:hover:not(.disabled),
div.pagination div.active {
    background: var(--color);
}
div.pagination div:not(.disabled):hover a,
div.pagination div.active,
div.pagination div.active a {
    color: var(--background);
}

.tag-wrapper .tag {
    background: var(--color);
    border-radius: 8px;
    padding: 2px 6px;
    color: white;
    margin: 2px;
    text-align: center;
    font-size: 0.8em;
}

@media screen and (max-width: 1000px) {

    .news-overview {
        display: block;
        width: 90%;
        margin: 0 auto;
    }
    .page_content.news_content h1 {
        font-size: 1.3em;
        width: 90%;
        margin: 40px auto;
    }
    .news-overview .item {
        width: 100%;
        margin: 0;
        margin-bottom: 1em;
        background: transparent;
    }
    .news-overview .item:last-of-type {
        margin-bottom: 0;
    }
    .news-overview .item a {
        flex-direction: row;
    }
    .news-overview .item a .image {
        width: 30%;
    }
    .news-overview .item a .news-overview-content {
        width: 70%;
        padding: 0 15px;
        padding-right: 0;
    }
    .news-overview .item a .news-overview-content .title {
        font-size: 1em;
    }
    .news-overview .item a .news-overview-content .meta,
    .page_content .date {
        font-size: .9em;
        white-space: nowrap;
    }



    .newsarticle .media {
        width: 100%;
        max-width: 100%;
    }

}
