/********/
/* GRID */
/********/
.cc-news-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-gap: 0 2rem;
}

/*************/
/* ITEM GRID */
/*************/
.cc-news-ajax-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: min-content;
    grid-gap: 0 1.5rem;

}

.cc-news-itemWrapper {
    /*border: 1px solid #E5E5E5;*/
    /*padding: 15px;*/
    padding-top: 20px;
    margin-bottom: 30px;
}

.cc-news-ajax-wrapper > .cc-news-itemWrapper {
    min-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-flow: column nowrap;
}

.cc-news-itemWrapper > div > span:last-child {
    /*float: right;*/
}

.cc-news-itemWrapper {
    color: #707070;
}

.news-categories{

    min-height:45px;
}

.news-categories .news-cat-title h3 {
    color: #707070;
    font-weight: 500;
}

.cc-news-itemWrapper > h1 {
    margin-top: 20px;
    margin-bottom: 15px;
    line-height: 23px;
    height: 50px;
    /* truncate */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
}

.cc-news-itemWrapper .image-link{

    margin-top: auto;
}

.cc-news-itemWrapper > img {
    margin-top: auto;
    width: 450px;
    height: 200px !important;
    object-fit: cover;
    transition: opacity .5s ease-out;
    -moz-transition: opacity .5s ease-out;
    -webkit-transition: opacity .5s ease-out;
    -o-transition: opacity .5s ease-out;
    opacity: 1;
    width: 100%;
}

.cc-news-itemWrapper img:hover {
    opacity: 0.75 !important;
}

.cc-news-itemWrapper > p {
    height: 85px;
    color: black !important;
    max-width: 100%;
    margin: 0px 0 25px 4px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box !important;
    padding: 0;
}

.cc-news-itemWrapper > a {
    margin-bottom: 10px;
    color: var(--btn-text-color);
    border: 2px solid  var(--btn-border);
    background:var(--btn-background);
    border-radius: 4px;
    box-sizing: border-box;
    display: inline-block;
    padding: 7px 20px;
    font-size: 14px;
    font-weight: 700;
    max-width: 150px;
    text-align: center;
    transition: opacity .45s;
}

.cc-news-itemWrapper > a:hover {
    opacity:0.87;
    /*
    border-color: #57b3e5;
    background: #57b3e5;
    color: white;

     */
}

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

    .cc-news-itemWrapper img {
        width: 100% !important;
        /*  height: 10vh !important;*/
    }

}

@media screen and (max-width: 1299px) {
    .cc-news-itemWrapper > h1 {
        font-size: 20px !important;
    }
}

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

    .cc-news-itemWrapper img {
        width: 100% !important;
    }
}

@media screen and (max-width: 1430px) {
    .cc-news-ajax-wrapper {
        grid-template-columns: repeat(2, 1fr);


    }
}

@media screen and (max-width: 1000px) {
    .cc-news-ajax-wrapper {
        grid-template-columns: repeat(1, 1fr);


    }
}
