#news-hero {
    background-image: url(img/news-herobg.png);
    background-repeat: no-repeat;
    background-size: cover;
    width: 100vw;
    height: auto;
    display: flex;
    flex-direction: column;
    padding-left: 300px;
    padding-top: 80px;
    padding-bottom: 8%;
}

@media screen and (max-width: 1390px) {
    #news-hero {
        padding-left: 45px;
        height: auto;
    }
}

#news-tiles-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    padding-top: 100px;
    padding-bottom: 100px;
}

#news-tiles-container {
    display: grid;
    grid-template-columns: repeat(1, 404px);
    grid-template-rows: repeat(2, 480px);
    grid-gap: 40px;
    margin-top: 40px;
}

.pagination {
    width: 100%;
    height: 39px;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end;
}

.pagination a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 2px solid #009fff;
    margin: 0 4px;
}

.pagination a.active {
    background-color: #009fff;
    color: white;
    border: 2px solid #009fff;
}

.pagination a:hover:not(.active) {
    background-color: transparent;
}

@media screen and (max-width: 540px) {
    #news-tiles-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

@media screen and (min-width: 688px) {
    #news-tiles-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .pagination {
        grid-column-start: 1;
    }
}

@media screen and (min-width: 992px) {
    #news-tiles-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .pagination {
        align-self: end;
        grid-column-start: 2;
    }
}

@media screen and (min-width: 1312px) {
    #news-tiles-container {
        grid-template-columns: repeat(3, 404px);
    }

    .pagination {
        grid-column-start: 3;
    }
}

@media screen and (min-width: 1579px) {
    #news-tiles-container {
        grid-template-columns: repeat(3, 404px);
    }

    .pagination {
        grid-column-start: 3;
    }
}

@media screen and (min-width: 1920px) {
    #news-tiles-container {
        grid-template-columns: repeat(3, 404px);
    }

    .pagination {
        grid-column-start: 3;
    }
}