.triade-grid-layout {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;

}
.calendar-column{
    width: 32%;
}

.calendar{
    width:100%;
    font-size: 16px;
}

.calendar h2.month {
    font-size: 35px;
    margin-bottom: 15px;
}

.tri-calendar-item {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-grow: 1;
    position: relative;
    align-items: stretch;
    width: 100%;
    margin-bottom: 1rem;
}

.tri-calendar-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

a.tri-calendar-link{
    transition: 0.2s ease-in-out;
}

a.tri-calendar-link:hover{
    color:black;
}

.tri-calendar-image-wrapper {
    position: relative;
    width: 225px;
    height: 118px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.tri-calendar-date {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #000;
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 2px;
}

.tri-calendar-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.tri-calendar-excerpt {
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    font-size: 16px;
    line-height: 1.2em;
}

.tri-calendar-universities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
    flex-direction: column;
}
.tri-calendar-university {
    color: white;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: auto;
    min-width: auto;
    align-self: center;
    /* center vertically in flex container */
    background-color: #333;
    /* fallback color */
    min-width: 120px;
    text-align: center;
    font-weight: bold;
}

.tri-calendar-link {
    font-weight: bolder;
}

.day-header {
    text-align: center;
}

.results-column {
    width: 65%;
}

/************************/
/* SECTION PUBLICATIONS */
/************************/
h2.last-news-title {
    font-size: 32px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    line-height: 1.2em;
}
.last-news-hr{
    color:#EFB357;
}
.news-section{
    margin-top: 4rem;
}

.news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    flex: 1;
    height: 100%;
    padding: 3%;
}

.news-university {
    position: absolute;
    width: fit-content;
    -webkit-width: fit-content;
    text-align: center;
    font-weight: bold;
    color: white;
    border-radius: 2px;
    padding: 6px 10px;
    font-size: 14px;
    z-index: 1;
}


.news-half-wrapper>.news-content>.news-university,
.news-wide-wrapper>.news-content>.news-university {
    top: 0px;
    left: 0px;


}

.news-quarter-wrapper>.news-image>.news-university {
    bottom: 0px;
    right: 0px;
}

.news-half-wrapper,
.news-wide-wrapper {
    display: flex;
    position: relative;
    flex-direction: row;
    gap: 0rem;
    height: 300px;
}

.news-quarter-wrapper {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    gap: 0rem;
    height: 500px;

}

.news-wide-wrapper>.news-image,
.news-half-wrapper>.news-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
    width: 30%;
    height: 100%;
}

.news-quarter-wrapper>.news-image {
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
    width: 100%;
    height: 50%;
    position: relative;
}

.news-types {
    margin-left: 10px;
}

.news-item {
    margin-bottom: 1rem;
    background-color: #f2f2f2;
}

.news-grid-wide{
    margin-top: 50px;
}

.news-grid-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    margin-top: 50px;
    margin-bottom: 50px;
}

.news-grid-quarter {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 1rem;
    margin-top: 50px;
}

.news-grid-quarter .news-content{
    margin-left:3%;
    margin-right:3%;
}

/*.news-half .news-title,
.news-half .news-excerpt,
.news-quarter .news-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    line-height: 1.4em;
    max-height: 2.8em;
    text-overflow: ellipsis;
}*/

.news-title{
    font-size: 22px;
    line-height: 1.3em;
    margin-bottom: 5px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    max-height: 2.8em;
    text-overflow: ellipsis;
}

.news-grid-half .news-title{
    margin-top:15px;
}

.news-excerpt {
      line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    font-size: 16px;
    line-height: 1.2em;
    margin-bottom: 8px;
    margin-top: 8px;
}

.news-author{
    font-size: 16px;
    line-height: 1.2em;
    font-weight: bold;
    margin-top:5px;
    margin-bottom:5px;
}

.news-link{
    font-size: 16px;
    line-height: 1.2em;
    font-weight: bold;
    margin-top:5px;
    margin-bottom:5px;
    transition: 0.2s ease-in-out;
}
.news-link:hover{
    color:black;
}

.news-content .fa{
    margin-right:5px;
}

#activity-caption{
    line-clamp: 3;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* Media querry */

@media (min-width:1600px) and (max-width:1800px){
    .calendar-column {
        width: 40%;
    }
    .results-column {
        width: 58%;
    }
    .calendar h2.month{
        font-size: 30px;
    }

    /* SECTION PUBLICATIONS */


}

@media (min-width:1300px) and (max-width:1599px){
    h2.last-news-title {
        font-size: 26px;
        font-weight: bold;
        margin-top: 10px;
        margin-bottom: 5px;
    }

    .calendar{
        font-size: 14px;
    }
    .entry-content tr td{
        padding: 6px 15px !important;
    }
    
    .calendar-column {
        width: 36%;
    }
    .results-column {
        width: 62%;
    }
    .calendar h2.month{
        font-size: 26px;
    }

    .tri-calendar-title{
        font-size: 18px;
    }

    /* SECTION PUBLICATIONS */

    .news-quarter-wrapper{
        height: 430px;
    }
    .news-title{
        font-size: 20px;
    }
}

@media (min-width:1180px) and (max-width:1299px){
    h2.last-news-title {
        font-size: 26px;
        font-weight: bold;
        margin-top: 10px;
        margin-bottom: 5px;
    }

    .calendar{
        font-size: 12px;
    }
    .entry-content tr td{
        padding: 5px 10px !important;
    }
    
    .calendar-column {
        width: 31%;
    }
    .results-column {
        width: 67%;
    }
    .calendar h2.month{
        font-size: 24px;
    }

    .tri-calendar-title{
        font-size: 18px;
    }

    /* SECTION PUBLICATIONS */

    .news-quarter-wrapper{
        height: 400px;
    }
    .news-title{
        font-size: 18px;
    }
}

@media (min-width:981px) and (max-width:1179px){
    h2.last-news-title {
        font-size: 22px;
        font-weight: bold;
        margin-top: 10px;
        margin-bottom: 5px;
    }

    .calendar{
        font-size: 10px;
    }
    .entry-content tr td{
        padding: 5px 5px !important;
    }
    
    .calendar-column {
        width: 28%;
    }
    .results-column {
        width: 70%;
    }
    .calendar h2.month{
        font-size: 20px;
    }

    .tri-calendar-title{
        font-size: 16px;
    }

    .tri-calendar-university {
        padding: 4px 5px;
        font-size: 12px;
        min-width: 100px;
    }

    /* SECTION PUBLICATIONS */
    .news-half-wrapper .news-excerpt, .news-half-wrapper .news-author, .news-half-wrapper .news-link{
        font-size: 14px;
    }
    .news-grid-quarter{
        grid-template-columns: 1fr 1fr 1fr;
    }
    .news-quarter-wrapper{
        height: 410px;
    }
    .news-title{
        font-size: 17px;
    }
}

@media (max-width:980px){
    h2.last-news-title {
        font-size: 22px;
        font-weight: bold;
        margin-top: 10px;
        margin-bottom: 5px;
    }

    .calendar{
        font-size: 16px;
    }
    
    .calendar-column {
        width: 100%;
    }
    .results-column {
        width: 100%;
    }
    .calendar h2.month{
        font-size: 30px;
    }

    .tri-calendar-title{
        font-size: 16px;
    }
    /* SECTION PUBLICATIONS */
    .news-half-wrapper{
        display: flex;
        position: relative;
        flex-direction: column;
        gap: 0rem;
        height: auto;
    }
    .news-half-wrapper>.news-image{
        height: 150px;
        width:100%;
    }
    .news-half-wrapper .news-content{
        width:100%;
    }
    .news-grid-half .news-title{
        margin-top:40px;
    }
    .news-grid-quarter{
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:767px){
    h2.last-news-title {
        font-size: 20px;
    }

    .calendar .day {
        width: 2em;
        height: 2em;
        line-height: 1.8em;
    }

    .calendar{
        font-size: 14px;
        overflow: scroll;
    }

    .tri-calendar-item{
        flex-direction: column;
    }
    .tri-calendar-university{
        font-size: 12px;
        padding: 6px 6px;
        min-width: 85px;
    }
    .tri-calendar-universities {
        flex-direction: column;
        align-items: flex-start;
        align-content: flex-start;
        order: 2;
    }
    .tri-calendar-image-wrapper{
        order: 1;
    }
    .tri-calendar-details{
        order: 3;
    }
    
    .calendar-column {
        width: 100%;
    }
    .results-column {
        width: 100%;
    }
    .calendar h2.month{
        font-size: 24px;
    }

    .tri-calendar-title{
        font-size: 14px;
    }
    /* SECTION PUBLICATIONS */
    .news-title{
        font-size: 20px;
    }
    .news-half-wrapper .news-excerpt, .news-half-wrapper .news-author, .news-half-wrapper .news-link{
            font-size: 14px;
        }
        .news-news-wide-wrapper .news-excerpt, .news-wide-wrapper .news-author, .news-wide-wrapper .news-link{
            font-size: 14px;
        }
    .news-half-wrapper, .news-wide-wrapper{
        display: flex;
        position: relative;
        flex-direction: column;
        gap: 0rem;
        height: auto;
    }
    .news-half-wrapper>.news-image, .news-quarter-wrapper>.news-image, .news-wide-wrapper>.news-image{
        height: 180px;
        width:100%;
    }
    .news-half-wrapper .news-content{
        width:100%;
    }
    .news-grid-half .news-title{
        margin-top:40px;
    }
    .news-quarter-wrapper{
        height: auto;
    }
    .news-grid-quarter .news-content, .news-wide-wrapper .news-content{
        margin-top:3%;
        margin-left:3%;
        margin-right:3%;
        margin-bottom:3%;
    }
    .news-grid-quarter, .news-grid-half{
        grid-template-columns: 1fr;
        gap:1rem;
    }
}

/* fin media querry */
