Different Template based on HTTP Referer

Fancybox has built in fallback, it displays images without JavaScript.

I don’t see why you would want to remove the header ( or footer) since it usually contains some good info like your doctype, css, meta, title, etc.

If you want it to look different ( aka strip it clean) you should still include it and use conditionals for your “Portfolio” page.