Pluck modal out of context, avoid parent z-index

This allows a modal to be placed in a view template nested inside a
parent element that also has a z-index set. Without this fix, the modal
does not show above the overlay as it inherits it's parent's z-index,
regardless of what is actually set on the modal element