All is well, .popup appears above the iframe thanks to higher z-index.
PDF on top - error
PDF still on top - error
iframe.file with PDF moved before iframe.popup in HTML source. PDF appear at the bottom now, but notice problems with .popup borders