Add CSS styling according to image/video