To post an update, admin please login
.fancybox__container {
z-index: 100000; /** Divi is 99999 */
}
.admin-bar .fancybox__container {
margin-top: 32px;
}
if ( window.Fancybox ){
var gvFancyboxSettings = {"animationEffect":"fade","toolbar":true,"closeExisting":true,"arrows":true,"mainClass":"gv-lightbox","buttons":["thumbs","close"],"i18n":{"en":{"CLOSE":"Close","NEXT":"Next","PREV":"Previous","ERROR":"The requested content cannot be loaded. Please try again later.","PLAY_START":"Start slideshow","PLAY_STOP":"Pause slideshow","FULL_SCREEN":"Full screen","THUMBS":"Thumbnails","DOWNLOAD":"Download","SHARE":"Share","ZOOM":"Zoom"}}};
// Stamp the per-View theme marker onto the body-mounted
// Fancybox container. The `gv-lightbox` hook is applied
// unconditionally via the `mainClass` setting; the theme
// classes are copied per-instance from the triggering element
// so only lightboxes opened from a themed View inherit the
// theme token scope.
gvFancyboxSettings.on = Object.assign( {}, gvFancyboxSettings.on, {
ready: function ( fancybox ) {
var trigger = fancybox.options && fancybox.options.$trigger;
var themed = trigger && trigger.closest ? trigger.closest( '.gv-themed' ) : null;
if ( themed && fancybox.$container ) {
fancybox.$container.classList.add( 'gv-themed' );
themed.classList.forEach( function ( cls ) {
if ( 0 === cls.indexOf( 'gv-theme-' ) ) {
fancybox.$container.classList.add( cls );
}
} );
}
}
} );
Fancybox.bind(".gravityview-fancybox", gvFancyboxSettings);
}