I can't seem to properly format the placement/margins of the modal

I'm trying to center the modal's positioning on the page and control the margins around the image. Having issues doing so. Please see attached snapshots.

Also, I'm trying to use regex to target all folders from a specific subdomain, blog.site.com/*, but I don't know how or where to do this.