Scale images, videos, and divs based on a parent element.