/* NEWS GRID HEADER */
@media screen {


    .news-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-areas: "one" "two" "three" "four" "five";
        grid-column-gap: 10px;
        grid-row-gap: 10px;
        margin: 0;
        padding-top: 50px;
        height: 1010px;
        width: 100%;
        background-color: #000;
        padding: 0;
        opacity: 0;
        transition: opacity 1s ease-in;

    }

    .news-grid.active {
        opacity: 1;
    }

    .news-item {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        justify-content: flex-start;
        background-position: 50%;
        background-repeat: no-repeat;
        background-size: cover;
        width: 100%;
        min-height: 200px;
        margin: 0;
        position: relative;
    }


    .news-item a.news-item-link {
        position: absolute;
        top: 0;
        left: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        color: var(--white)
    }

    .news-grid>:first-child {
        grid-area: one
    }

    .news-grid>:nth-child(2) {
        grid-area: two
    }

    .news-grid>:nth-child(3) {
        grid-area: three
    }

    .news-grid>:nth-child(4) {
        grid-area: four
    }

    .news-grid>:nth-child(5) {
        grid-area: five
    }

    /* RESPONSIVE BREAK POINTS */



    .grid_item_text {
        position: absolute;
        width: 80%;
        margin: 0;
        margin-left: 2%;
        padding: 0;
        color: #fff;
        text-align: left;
        background-image: url('/Images/Backgrounds/opacity200.png');
        background-size: cover;
        padding: 10px;
        bottom: 2%;
        font-size: 0.8em;
    }

    .grid_item_text a {
        color: var(--white);
    }

    .grid_item_time {
        font-size: 12px;
        line-height: 25px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        margin: 0;
        padding: 0;
    }

    .grid_item_time .grid-item-icon {
        height: 24px;
        width: 24px;
        margin-right: 10px;
    }

    .grid_item_header {
        margin: 0;
        padding: 0;
    }

    .grid_item_header .grid_item_title {
        font-weight: 700;
        font-size: 1.2em;
        padding: 5px;
        margin-bottom: 5px;
    }

    .grid_item_header .grid_item_subhead {
        font-size: 1em;
        padding: 5px;
        padding-left: 10px;
        line-height: 1.2em;
    }




}

/* NEWS ITEMS - MAIN LISTING */
@media screen {

    .news-container {
        margin-top: 50px;
        width: 90%;
        margin-left: 5%;
        overflow: hidden;
        padding: 20px;
    }

    .news-cards {
        display: flex;
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    article.news-article {
        width: 98%;
        height: 300px;
        margin: 1%;
        flex-grow: 1;
        /* border: solid 2px var(--black); */
        border-radius: 2%;
        background-size: cover;
        box-shadow: 10px 10px 15px 1px var(--black);
    }

    article.news-article a {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        color: var(--white);

    }

    article.news-article .grid_item_text {
        position: absolute;
        width: 80%;
        margin: 0;
        margin-left: 2%;
        padding: 0;
        color: #fff;
        text-align: left;
        background-image: url('/Images/Backgrounds/opacity200.png');
        background-size: cover;
        font-size: 0.8em;
    }

}

/* RELATED NEWS - 3PART GRID */
@media screen {
    .related-news-container {
        width: 75%;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-areas: "one" "two" "three";
        grid-column-gap: 10px;
        grid-row-gap: 10px;
        padding: 20px;
        border: solid 1px var(--lightgrey);
        background-color: var(--white);
        margin-bottom: 2%;
    }

    .related-news-container>:first-child {
        grid-area: one
    }

    .related-news-container>:nth-child(2) {
        grid-area: two
    }

    .related-news-container>:nth-child(3) {
        grid-area: three
    }

    .related-item {
        position: relative;
        border: solid 1px var(--lightgrey);
        border-radius: 2%;
        padding: 5px;
        min-height: 150px;
        width: 100%;
    }

    .related-news-container .grid_item_text,
    .related-news-container .related-image {
        display: block;
        float: left;
        width: 100%;
        height: 100%;
    }

    .related-news-container .related-image {
        background-position: 50%;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .related-news-container .grid_item_text {
        position: absolute;
        right: 5%;
        bottom: 5%;
        height: 80px;
        width: 70%;
        background-color: var(--opacity90);
        color: var(--white);
    }

    .related-news-container>:first-child .grid_item_text {
        right: 25%;
    }


}

@media screen and (min-width:768px) {

    .news-grid {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: 1fr;
        grid-template-areas: "one one one one one ";

    }

    .news-grid>:nth-child(2) {
        display: none;
    }

    .news-grid>:nth-child(3) {
        display: none;
    }

    .news-grid>:nth-child(4) {
        display: none;
    }

    .news-grid>:nth-child(5) {
        display: none;
    }

    article.news-article {
        width: 48%;
        height: 300px;
    }

}

@media screen and (min-width:1024px) {

    .news-grid {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: 1fr 1fr;
        grid-template-areas: "one one one one one one one one one one one one" "two two two two three three three three four four four four";
        font-size: 0.8em;
        height: 70vh;
    }

    .news-grid>:first-child {
        grid-area: one
    }

    .news-grid>:nth-child(2) {
        grid-area: two;
        display: block;
    }

    .news-grid>:nth-child(3) {
        grid-area: three;
        display: block;
    }

    .news-grid>:nth-child(4) {
        grid-area: four;
        display: block;
    }

    .news-grid>:nth-child(5) {
        display: none;
    }

    /* article.news-article {
        width: 25%;
        height: 300px;
    } */

}

@media screen and (min-width:1440px) {

    .related-news-container {
        grid-template-columns: repeat(10, 1fr);
        grid-template-rows: 1fr 1fr;
        grid-template-areas: "one one one one one one  two two two two" "one one one one one one  three three three three";
    }

    .news-grid {
        grid-template-columns: repeat(20, 1fr);
        grid-template-rows: 1fr 1fr;
        grid-template-areas: "two two two two two one one one one one one one one one one three three three three three" "four four four four four one one one one one one one one one one five five five five five";
    }

    .news-item {
        min-height: 250px;
    }

    .news-grid>:nth-child(2) {
        display: block;
    }

    .news-grid>:nth-child(3) {
        display: block;
    }

    .news-grid>:nth-child(4) {
        display: block;
    }

    .news-grid>:nth-child(5) {
        display: block;
    }

    article.news-article {
        width: 31%;
        height: 300px;
    }
}

@media screen and (min-width:1800px){
     article.news-article {
        height: 500px;
    }
}