.preview-gallery { position: absolute; top: 0; left: 0; width: 100%; bottom: 0; background: #000; z-index: 100; overflow: hidden; opacity: 1; visibility: visible; transition: all var(--transition-duration) ease-in-out; background-color: #333333; } .preview-gallery.offscreen { opacity: 0; visibility: hidden; transition: all 200ms ease-in-out; } /** Frame Container ---------------------------------------------------------*/ .frame-container { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; overflow: hidden; } .media-frame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #333333; } .media-frame > .image-view { top: 0; left: 0; position: absolute; pointer-events: none; } .media-frame > video { transform-origin: 0 0; } /** Preview Menu ---------------------------------------------------------*/ /** * 1. Sits on-top of frame-container. */ .preview-menu { position: relative; z-index: 1; /* 1 */ opacity: 0; visibility: hidden; pointer-events: none; transition: visibility var(--transition-duration) ease-in-out, opacity var(--transition-duration) ease-in-out; } /** * visible */ .preview-menu.visible { opacity: 1; visibility: visible; pointer-events: auto; } /** * [secure-mode=true] * * 1. !important is required to over-ride * strong specificty of