Demo:
An accessible Modal Window with JavaScript & CSS

This modal window is made with plain old semantic mark-up, CSS and a very little bit of JavaScript.

Check out the source code on codepen to see how it works!

Here's a link to the wikipedia entry on modal windows.