/* 
###
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 {
    margin-top: 2em;
}
.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;
    border-radius: 10px;
    overflow: hidden;
}
body.homepage .news-overview {
    margin-top: 2em;
}
body.homepage .news-overview .item {
    background: var(--background);
}
.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:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-image: url('/images/raster.png');
}
.news-overview .item:hover a .image:after {
    opacity: 0;
}
.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(--main);
    opacity: 0.6;
    font-size: .8em;
    margin: 10px 0;
}
.news-overview .item a .news-overview-content .meta em {
    font-style: normal;
}

/* LIST MODE */
.news-overview.show-as-list {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    overflow: hidden;
    border-radius: 10px;
    row-gap: 30px;
}
.news-overview.show-as-list .item {
    width: 100%;
    margin: 0 0;
}
.news-overview.show-as-list .item:nth-of-type(even) {
    background: var(--accents2);
}
.news-overview.show-as-list .item a {
    flex-direction: row;
}
.news-overview.show-as-list .item a .image {
    width: 200px;
    height: 150px;
}
.news-overview.show-as-list .item a .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.pagination {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}
.pagination .active {
    font-weight: bold;
}


@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;
        box-sizing: border-box;
    }
    .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;
    }*/

    .news-overview {
        flex-direction: column;
        width: 100%;
        margin: 0;
        row-gap: 30px;
    }
    .news-overview .item {
        width: 100%;
        margin: 0%;
    }


    /* LIST MODE */
    .news-overview.show-as-list {
        row-gap: 20px;
    }
    .news-overview.show-as-list .item a .image {
        width: 80px;
        height: 100px;
        display: none;
    }
    .news-overview.show-as-list .item a .news-overview-content {
        width: 100%;
    }

}







/*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;
}*/
