Tweaked to layout better and conditionally use JWP if there is a media url