Removing inline styles from wp-caption div image in the content single WordPress

.wp-caption img,
.wp-caption {
    width:auto !important;
    max-width:100% !important;
    height:auto !important;
}

Inline width and height attributes were never a huge problem with images in WordPress, since these were easily overwritten with CSS. The problem I’m having is that any images with captions are being

Source: posts – removing inline styles from wp-caption div – WordPress Development Stack Exchange