.blog{
    padding: 2em 0 2em 0;
    text-align: center;
    border-top: 2px solid #2d7d9a;
}
.blog .posts{
    display: grid;
    gap: 2em;
    margin: 3em 0 0 0;
}
.blog .posts .post{
    flex: 0 0 calc(25% - 2em);
}
.blog .posts .post a{
    display: block;
    padding: 1em;
    background: #fff;
    border-radius: 10px;
    border: 2px solid transparent;
    box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.25);
}
.blog .posts .post a:hover{
    text-decoration: none;
    border: 2px solid var(--preto);
}
.blog .posts .post img{
    display: block;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 320/180;
    margin: 0 auto 1em auto;
}
.blog .posts .post h3{
    font-weight: bold;
    line-height: 1.2em;
}
.blog .posts .post p{
    margin: 0.5em 0 0 0;
}
@media only screen and (min-width: 1025px), only screen and (min-device-width: 1025px){
    .blog .posts{
        grid-template-columns: repeat(4, 1fr);
    }
    .blog .posts .post h3{
        font-size: 1em;
    }
    .blog .posts .post p{
        font-size: 0.8em;
    }
}
@media only screen and (max-width: 1024px), only screen and (max-device-width: 1024px){
    .blog .posts{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media only screen and (max-width: 640px), only screen and (max-device-width: 640px){
    .blog .posts .post h3{
        font-size: 0.8em;
    }
    .blog .posts .post p{
        font-size: 0.7em;
    }
}