

#news-container {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 1250px) {
    #news-container {
        grid-template-columns: 1fr 1fr;
    }
    #news-container .news-article{
        width: 304px;
        height: 256px;
    }
}
@media (max-width: 700px) {
    #news-container {
        grid-template-columns: 1fr;
    }
    #news-container .news-article{
        width: 260px;
        height: 300px;
    }
}

#news {
    max-width: 1200px;
    margin:0 auto
}

#news-container{
    padding: 20px;
    margin:0; 
    display:grid ; 
    justify-content: space-between ;
}

.news-article{
    width: 380px;
    height: 320px;
    padding: 10px;
    margin-bottom: 20px;
    justify-self: center;
    transition: 0.3s;
}

.news-article:hover {
    box-shadow: 3px 3px 20px #aaa;
}

.news-article img{
    width: 380px;
    object-fit: fill;
}

.news-date{
    display:flex;
    justify-content: flex-end ;
    font-size: 0.9rem;
    margin-top: 5px;
}

.news-title{
    text-overflow: ellipsis; 
    text-wrap: nowrap; 
    overflow: hidden;
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: bold;
}

.news-anchor:hover .news-title{
    color: #aaa;
}

.nav-links a{
    display:inline-block;
    padding: 0 8px;
}

.head{
    text-align: center;
}
