﻿
.contrast {
    color: black !important;
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /*20px;*/
    justify-content: center; /* horizontal center */
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.news-tile {
    box-sizing: border-box;
    width: calc(25% - 14px); /*calc(33.33333% - 62px);*/
    padding: 10px; /* 20px;*/
    border-radius: 14px;
    background: #f4f4f4;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: inline-block;
    position: relative;
    /*width: calc(33.333% - 14px);*/
    min-height: 220px;
    /*padding: 24px;*/
    /*border-radius: 18px;*/
    /*background: linear-gradient(180deg, #1c1c1c, #2b2b2b);*/
    color: black;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    /*transition: transform .25s ease, box-shadow .25s ease, width .3s ease;*/
    transition: transform .25s ease, box-shadow .25s ease, flex-basis .3s ease, max-width .3s ease;
    order: 2;
    padding-bottom: 25px; /* space for bottom element */
}

    .news-tile:hover img.graphic {
        transform: scale(1.02);
        /*transform: translateY(-4px);
        box-shadow: 0 14px 32px rgba(0,0,0,.22);*/
    }

    .news-tile h3 {
        font-size: 16px; /*   20px;*/
        line-height: 1.2;
        /* 
        margin: 0 24px 0 0;
        padding: 36px 36px 36px 36px;
        position: absolute;
        top: 0;
        left: 0;*/
        color: white;
        text-shadow: 0 2px 6px rgba(0,0,0,0.9);
        /*Background: linear-gradient( transparent, rgba(0,0,0,0.8);*/
    }

        .news-tile h3.overlay {
            /*margin: 0 24px 0 0;*/
            /*padding: 36px 36px 36px 36px;*/
            padding: 0 18px 0 18px;
            position: absolute;
            bottom: 0;
            left: 0;
            /*Background: linear-gradient( transparent, rgba(0,0,0,0.8);*/
        }

        .news-tile h3.notoverlay {
            display: none;
        }

/*        .news-tile h3.overlay {
            display: block;
        }*/

        .news-tile h3.black {
            color: black;
        }

            .news-tile h3.black.notoverlay {
                display: block;
                text-shadow: none;
            }

    .news-tile p {
        margin: 0;
        font-size: 16px;
        line-height: 1.5;
        /*display: -webkit-box;*/
        display: none;
        -webkit-line-clamp: 4; /* number of visible lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
        /*color: rgba(255,255,255,.88);*/
    }

    .news-tile div.body {
        display: none
    }

    .news-tile h2 {
        margin: 0 0 20px 0;
        font-size: 16px;
        line-height: 1.2;
        font-style:italic;
        font-weight:normal;
    }

    .news-tile img.graphic {
        display: block;
        width: 100%;
        aspect-ratio: 3 / 2;
        object-fit: cover;
        border-radius: 18px;
        transition: transform 0.4s ease;
        padding-bottom: 8px;
        /*        position: relative;
        overflow: hidden;
        aspect-ratio: 3 / 2;
        float: left;
        width: 100%;
        border-radius: 18px;*/
    }

    .news-tile div.text {
        display: none;
    }

    .news-tile div.image {
        position: relative;
        overflow: hidden
    }

    .news-tile div.PubDate1, div.PubDate2 {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #8a6a00;
        font-weight: bold;
        padding: 2px 5px 2px 0;
        /*margin-bottom: 8px*/
    }

    .news-tile div.PubDate2 {
        float: left;
    }


    .news-tile ul {
        margin: /*10px 0 16px 0*/ 0;
        padding-left: 22px;
        /*list-style-position: outside;*/
        list-style-position: inside;
    }

    .news-tile li {
        margin: 0 0 6px 0;
        padding: 0;
    }


    .news-tile div.tag, div.tag2, div.tag3 {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #8a6a00;
        font-weight: bold;
        margin-bottom: 8px;
    }

    .news-tile div.tag3 {
        display: none;
    }

.news-more {
    display: inline-block;
    margin-top: 24px;
    /*margin-top: auto;*/
    font-size: 14px;
    font-weight: bold;
    color: red;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

    .news-more::after {
        content: "Read More"; /*"click to expand";*/
    }
/* Expanded state */
.news-tile.expanded {
    width: 100%;
    order: 1;
    /*background: #e9eef6;*/
    /*background-size: cover;*/
    /*            background-position: left;
            background-repeat: no-repeat;
            background-size: calc(33% - 10px) auto;*/
}

    .news-tile.expanded div.tag2, .news-tile.expanded div.tag {
        display: none;
    }

    .news-tile.expanded div.tag3 {
        display: block;
    }

    .news-tile.expanded p {
        display: block;
        overflow: visible;
    }

    .news-tile.expanded h2, .news-tile.expanded h3.black {
        display: none;
    }

        .news-tile.expanded h3.black.notoverlay {
            display: none;
        }

        .news-tile.expanded h2.overlay {
            display: block;
            /*font-weight: bold;*/
        }
        .news-tile.expanded h3.notoverlay {
            display: block;
            color: black;
            /*font-weight: bold;*/
        }

    .news-tile.expanded div.text {
        display: block;
    }

    .news-tile.expanded img.graphic {
        width: calc(33.33333% - 87px);
        margin-right: 24px;
        margin-bottom: 24px;
        float: left;
    }
    /* 
    .news-tile.expanded h3 {
       width: calc(33.33333% - 160px)
        width: 100%;
        margin-right: 24px;
    };*/


    .news-tile.expanded h3 {
        /*        color: Red;*/
        text-shadow: none;
        /*display: none;*/
    }


        .news-tile.expanded h3.overlay {
            /*        width: calc(33.33333% - 160px);
        margin-right: 24px;*/
            margin: 0 0 20px 0;
            padding: 0;
            position: relative;
            color: black;
            /*font-variant-caps: small-caps;*/
        }


    .news-tile.expanded .news-more::after {
        content: "Read Less"; /* "click to collapse";*/
    }

}



.news-tile.expanded div.image {
    overflow: unset;
}

.news-tile.expanded div.body {
    display: block
}


.news-tile.expanded div.PubDate1 {
    display: none;
}

@media (max-width: 1000px) {
    .news-tile {
        width: calc(33.3333333% - 14px);
    }



    @media (max-width: 800px) {
        .news-tile {
            width: calc(50% - 14px);
        }

        /*        .news-tile.expanded h3 {
            width: calc(50% - 86px);
        }*/

        /*        .news-tile.expanded img {
            width: calc(50% - 62px);
        }*/
    }

    @media (max-width: 400px) {
        .news-tile {
            width: 100%;
        }

        /*        .news-tile.expanded img {
            width: 100%;
        }*/
    }
}

@media screen and (max-width: 993px) {
    .news-tile h2, .news-tile h3, .news-tile p {
        font-size: 15px !important;
        /*line-height: 1.5 !important;*/
    }

    .news-more {
        font-size: 13px;
    }
}

@media screen and (max-width: 909px) /*and (min-width: 874px)*/ {
    .news-tile h2, .news-tile h3, .news-tile p {
        font-size: 14px !important;
        /*line-height: 1.4 !important;*/
    }

    .news-more {
        font-size: 12px;
    }

    .news-tile div.tag, div.tag2, div.tag3 {
        font-size: 11px !important;
        /*line-height: 1.4 !important;*/
    }

    .aLink {
        font-size: 11px;
        padding: 1px 3px 3px 1px;
    }
}


@media screen and (max-width: 759px) {
    .news-tile h2, .news-tile h3, .news-tile p {
        font-size: 13px !important;
        /*line-height: 1.3 !important;*/
    }

    .news-more {
        font-size: 11px;
    }

    .aLink {
        font-size: 10px;
        padding: 1px 3px 1px 3px;
    }
}

@media screen and (max-width:699px) {
    .news-tile h2, .news-tile h3, .news-tile p {
        font-size: 12px !important;
        /*line-height: 1.2 !important;*/
    }

    .news-tile div.PubDate1, div.PubDate2 {
        font-size: 11px;
    }

    .aLink {
        font-size: 9px;
    }

    .news-tile div.tag, div.tag2, div.tag3 {
        font-size: 10px !important;
        /*line-height: 1.4 !important;*/
    }
}

@media screen and (max-width:669px) {
    .news-tile h2, .news-tile h3, .news-tile p {
        font-size: 11px !important;
    }

    .news-tile div.PubDate1, div.PubDate2 {
        font-size: 10px;
    }

    .aLink {
        font-size: 8px;
        padding: 1px 1px 1px 1px;
    }

    .news-more {
        font-size: 10px;
    }
}
