/* 
###
BACKSTAGE 5.1 CSS > NEWS AND CALENDAR PLUGINS
###
*/


.news-overview {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 102%;
    margin-left: -1%;
}
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;
    overflow: hidden;
    border-radius: 3px;
}
.news-overview .item:hover {
    filter:  drop-shadow(0px 0px 40px rgba(0,0,0,0.1));
}
.news-overview .item a {
    display: flex;
    flex-direction: column;
    color: var(--main);
}
.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%;
    text-align: center;

    display: flex;
    justify-content: center;
    flex-direction: column;
}
.news-overview .item a .news-overview-content .title {
    font-weight: 400;
    font-family: "DM Serif Display";
    font-size: 1.5em;
    line-height: 1.2;
}
.news-overview .item a .news-overview-content .meta,
.page_content .date {
    font-size: .8em;
    text-transform: uppercase;
    font-weight: 900;
    color: var(--main);
    margin-bottom: 10px;
}

.news-overview.news-overview--is-calendar .item a .news-overview-content {
    padding: 4em 2em;
}
.news-overview.news-overview--is-calendar .item a .news-overview-content .meta {
    order:  0;
}
.news-overview.news-overview--is-calendar .item a .news-overview-content .title {
    order:  1;
}
.news-overview.news-overview--is-calendar .item a .news-overview-content .meta:after {
    content:  "";
    width: 60px;
    height: 60px;
    background: url("/images/divider.svg");
    background-size: 60px 60px;
    background-position: center center;
    background-repeat: no-repeat;
    display: block;
    margin: 0 auto;
    margin-top: 10px;
}




/*p a.back {
    margin-top: 40px;
    display: inline-block;
}*/
.news_item .section {
    margin-top: 40px;
    padding: 40px;
    background: var(--accents);
}
.pagination {
    display: flex;
    justify-content: center;
    width: 70%;
    margin: 40px auto;
    margin-bottom: 0;
    display: none;
}
.pagination div {
    width: 50px;
    height: 50px;
    font-size: 1.2em;
    font-weight: bold;
    background: var(--accents);
    line-height: 50px;
    text-align: center;
    margin: 0 10px;
}
.pagination div a {
    display: block;
    color: var(--main);
}
.pagination div:hover,
.pagination div.active {
    background: var(--primarycta);
}
.pagination div:hover a,
.pagination div.active,
.pagination div.active a {
    color: var(--background);
}



.tag_wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: absolute;
    left: 15px;
    top: 10px;
    font-size: 11px;
    pointer-events: none;
}
.tag_wrapper .tag {
    background: #fff;
    margin: 10px 5px 0 5px;
    border-radius: 30px;
    line-height: 1;
    white-space: nowrap;
    filter: drop-shadow(0px 0px 30px rgba(0, 0, 0, 0.3));
    pointer-events: initial;
}
.tag_wrapper.inline .tag {
    margin-bottom: -5px;
}
.tag_wrapper .tag a {
    display: block;
    padding: 10px 15px;
}
.tag_wrapper .tag:hover a {
    color: rgba(0, 0, 0, 0.6) !important;
}
.tag_wrapper.inline {
    position: static;
    margin-top: 30px;
}
.tag_wrapper.inline .tag {
    filter: none;
}
.tag_wrapper.inline .tag {
    background: #fff;
}
.tag_wrapper.inline .tags-label {
    display: block;
    margin-top: 10px;
    margin-right: 10px;
    margin-bottom: -5px;
    padding: 10px 0;
}
.tag_wrapper.inline .tag a {
    color: #000;
}

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

    .news-overview {
        display: block;
        width: 100%;
        margin-left: 0;
    }
    .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: .7em;
        white-space: nowrap;
    }

}*/


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

     .news-overview {
        flex-direction: column;
    }   
    .news-overview .item {
        width: 100%;
        margin: 0;
        margin-bottom: 1em;
    }
    .news-overview .item:last-of-type {
        margin-bottom: 0;
    }
    
}