CSS to auto image size only for 'Message' type questions

CSS to auto image size only for 'Message' type questions:

[data-qa-question-type="Message"] figure .ss_image_wrapper img{
max-width: 100% !important;
max-height: none !important;
}