@baspisa Try removing the previous CSS and add the following:
.wp-block-image.aligncenter, .wp-block-image .aligncenter, .wp-block-image.alignleft, .wp-block-image .alignleft, .wp-block-image.alignright, .wp-block-image .alignright {
display: table;
}
.wp-block-image .aligncenter {
margin-left: auto;
margin-right: auto;
}
.wp-block-image img {
height: auto;
max-width: 100%;
vertical-align: bottom;
}
.wp-block-image.aligncenter, .wp-block-image .aligncenter, .wp-block-image.alignleft, .wp-block-image .alignleft, .wp-block-image.alignright, .wp-block-image .alignright {
display: table;
}
.wp-block-image .alignleft {
float: left;
margin: 0.5em 1em 0.5em 0;
}
.wp-block-image.aligncenter, .wp-block-image .aligncenter, .wp-block-image.alignleft, .wp-block-image .alignleft, .wp-block-image.alignright, .wp-block-image .alignright {
display: table;
}
.wp-block-image .alignright {
float: right;
margin: 0.5em 0 0.5em 1em;
}
.wp-block-image:before,
.wp-block-image:after {
display: none !important;
}