.wp-block-post-template {
    @media screen and (min-width: 1024px) {
        .wp-block-post {
            display: grid;
            grid-auto-rows: auto 1fr;

            > .wp-block-group.post-details {
                display: grid;
                grid-template-rows: auto auto auto 1fr;
                align-items: start;

                .wp-block-buttons {
                    margin-top: auto;
                    align-self: end;
                }
            }
        }
    }
}

/* Post Template Masonry Layout Styles */
.wp-block-post-template.is-style-masonry-layout {
    @media screen and (max-width: 600px) {
        .wp-block-post:nth-child(6n + 3),
        .wp-block-post:nth-child(6n + 4){
            grid-column-end: span 1;
        }
    }
}