Fix box sizing and line height

If the containing page messes with either the box sizing mode or line height, then the dialog layout gets messed up, with photos overflowing the box. This fixes those rules within the dialog.