Move text over Image in Blog Masonry Squarespace

To move text over Blog Masonry Image in Squarespace, like this.

You can use this code to Website Tools > Custom CSS

/* Move text over image - Blog Masonry */
.blog-item-summary {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    opacity: 1;
    transition: all 0.3s;
}
.blog-item-summary * {
    color: #fff !important;
}
article.blog-item .image-wrapper:after {
    content: "";
    background-color: rgba(0,0,0,0.55);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: all 0.3s;
}