How to restore the frontend product gallery dimensions in a third-party design theme after upgrading Magento from 2.1.x to 2.2.x?

See also: