.masonry-with-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: sans-serif;
}
.masonry-with-flex .grid-container {
    columns: 5 200px;
    column-gap: 1.5rem;
    margin: 0 auto;
    padding: 0;
}
.masonry-with-flex .grid-container div {
    width: 150px;
    margin: 0 1.5rem 1.5rem 0;
    display: inline-block;
    width: 100%;
    border: solid 2px #4fa1b8;
    padding: 5px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    transition: all .25s ease-in-out;
    animation: animatetop 0.4s;
}
.masonry-with-flex .grid-container div:hover img {
     filter: grayscale(0);
}
.masonry-with-flex .grid-container div:hover {
     border-color: coral;
}
.masonry-with-flex .grid-container img {
    width: 100%;
    /*filter: grayscale(0);*/
    border-radius: 5px;
    transition: all .25s ease-in-out;
}
.masonry-with-flex div p {
    margin: 5px 0;
    padding: 0;
    text-align: center;
    font-style: italic;
}
.masonry-with-flex .static {
    background-color: #4fa1b8;
    color: white;
    padding: 1rem 1rem 0.5rem !important;
}
.masonry-with-flex .static h2,
.masonry-with-flex .static p {
    text-align: left;
}
.masonry-with-flex .static .button {
    background-color: white;
    color: #444;
    margin-top: 1rem;
}
.masonry-with-flex .static .button:hover {
    background-color: #c7f3ff;
}




