/* LG Flatsome Gallery Zoom v1.0.5 */

.mfp-wrap.mfp-gallery.lgfz-active {
    overflow: hidden !important;
}

.mfp-wrap.mfp-gallery.lgfz-active .mfp-container {
    padding-left: 4px !important;
    padding-right: 4px !important;
}

.mfp-wrap.mfp-gallery.lgfz-active .mfp-img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: calc(100vw - 8px) !important;
    max-height: calc(100vh - 8px) !important;
    padding: 0 !important;
    margin: 0 auto !important;
    object-fit: contain;
    cursor: zoom-in !important;
    transform: translate3d(0,0,0) scale(1);
    transform-origin: 50% 50%;
    transition: transform 220ms ease;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: auto;
    position: relative;
    z-index: 1;
}

.mfp-wrap.mfp-gallery.lgfz-active .mfp-content {
    top: 0 !important;
}

.admin-bar .mfp-wrap.mfp-gallery.lgfz-active .mfp-content {
    top: 0 !important;
}

.admin-bar .mfp-wrap.mfp-gallery.lgfz-active .mfp-img {
    max-height: calc(100vh - 8px) !important;
}

.mfp-wrap.mfp-gallery.lgfz-active.lgfz-zoomed .mfp-img {
    cursor: grab !important;
    touch-action: none;
}

.mfp-wrap.mfp-gallery.lgfz-active.lgfz-zoomed.lgfz-dragging .mfp-img {
    cursor: grabbing !important;
    transition: none;
}

.mfp-wrap.mfp-gallery.lgfz-active .mfp-arrow {
    position: fixed !important;
    width: 48px !important;
    height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    color: #fff !important;
    opacity: .78 !important;
    visibility: visible !important;
    display: block !important;
    background: transparent !important;
    border: 0 !important;
    mix-blend-mode: normal !important;
    z-index: 1047 !important;
    transition: color 160ms ease, opacity 160ms ease;
}

.mfp-wrap.mfp-gallery.lgfz-active .mfp-arrow:hover,
.mfp-wrap.mfp-gallery.lgfz-active .mfp-arrow:focus {
    color: #fff !important;
    opacity: 1 !important;
}

.mfp-wrap.mfp-gallery.lgfz-active .mfp-arrow::before,
.mfp-wrap.mfp-gallery.lgfz-active .mfp-arrow::after {
    display: none !important;
}

.mfp-wrap.mfp-gallery.lgfz-active .mfp-arrow i {
    display: block;
    width: 100%;
    height: 100%;
    font-size: 52px !important;
    line-height: 64px !important;
    text-align: center;
    color: currentColor !important;
    text-shadow: 0 1px 4px rgba(0,0,0,.35);
}

.mfp-wrap.mfp-gallery.lgfz-active .mfp-close {
    z-index: 40 !important;
}

.mfp-wrap.mfp-gallery.lgfz-active .mfp-bottom-bar {
    pointer-events: none;
}

@media (max-width: 549px) {
    .mfp-wrap.mfp-gallery.lgfz-active .mfp-container {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    .mfp-wrap.mfp-gallery.lgfz-active .mfp-img {
        max-width: calc(100vw - 4px) !important;
        max-height: calc(100vh - 4px) !important;
    }

    .mfp-wrap.mfp-gallery.lgfz-active .mfp-arrow {
        width: 42px !important;
        height: 58px !important;
    }

    .mfp-wrap.mfp-gallery.lgfz-active .mfp-arrow i {
        font-size: 46px !important;
        line-height: 58px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mfp-wrap.mfp-gallery.lgfz-active .mfp-img {
        transition: none;
    }
}
