#news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
    box-sizing: border-box;
    padding-bottom: 15px;
}

.news-element {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    min-width: 300px;
}

.news-element img {
    width: 100%;
    height: auto;
}

.news-title {
    font-size: 20px;
    font-weight: bold;
    padding: 14px 0 8px 0px;
}

.news-description {
    color: #4a4a4a;
    line-height: 1.4em;
    font-size: 85%;
    max-height: 7em;
    overflow: hidden;
}

@media (max-width: 750px) {
    .news-title {
        padding: 5px 0 3px 0px;
    }
}

@media (max-width: 1200px) {
    .news-title {
        font-size: 16px;
        padding: 10px 0 5px 0px;
    }
}
