/* 
###
BACKSTAGE 5.1 CSS > NEWS AND CALENDAR PLUGINS
###
*/
.news-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin-top: 45px;
}
a.back {
    display: block;
    margin-top: 45px;
}
.news-overview.news-overview--is-calendar {
    /* calendar only class */
}
.news-overview.news-overview--is-news {
    /* news only class */
}
.news-overview .item {
    position: relative;
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden;
    background: var(--background);
}
.news-overview .item a {
    display: flex;
    flex-direction: column;
    color: var(--main);
    text-decoration: none!important;
}
.news-overview .item a .image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 3 / 2;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}
.news-overview .item a .image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-overview .item a .image img.none {
    width: auto;
    max-width: 80%;
    height: auto;
    max-height: 40%;
    object-fit: initial;
    opacity: 0.25;
}
.news-overview .item a .image .icon img {
    filter: invert(1);
}
.news-overview .item a .news-overview-content {
    padding: 30px 35px 45px 35px;
    line-height: 1.5;
    box-sizing: border-box;
    width: 100%;
}
.news-overview .item a .news-overview-content .title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}
.news-overview .item a .news-overview-content .meta {
    margin-bottom: 8px;
    padding-right: 5%;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    box-sizing: border-box;
    opacity: 0.6;
}
.page_content .date {
    margin-bottom: 15px;
    color: var(--main);
    opacity: 0.5;
    font-weight: 500;
}
/*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: 60px 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;
    border-radius: 5px;
}
div.pagination div:not(.disabled) {
    background: var(--accents);
}
div.pagination div a {
    display: block;
    color: var(--main);
    text-decoration: none!important;
}
div.pagination div:hover:not(.disabled),
div.pagination div.active {
    background: var(--darkblue);
}
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: 100%;
        margin-top: 30px;
        margin-left: 0;
    }
    .news-overview .item {
        width: 100%;
        margin: 0;
        margin-bottom: 1em;
        border-radius: 5px;
    }
    .news-overview .item:last-of-type {
        margin-bottom: 0;
    }
    .news-overview .item a {
        flex-direction: row;
    }
    .news-overview .item a .image {
        width: 30%;
        aspect-ratio: 1/1;
        border: none;
        border-right: 1px solid rgba(0, 0, 0, 0.05);
    }
    .news-overview .item a .news-overview-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0 15px;
        width: 70%;
    }
    .news-overview .item a .news-overview-content .title {
        margin-bottom: 5px;
        font-size: 16px;
        line-height: 1.1;
    }
    .news-overview .item a .news-overview-content .meta {
        margin-bottom: 2px;
        padding: 0;
        font-size: 14px;
        white-space: nowrap;
    }
    .page_content .date {
        font-size: .9em;
        white-space: nowrap;
    }

}
