html.fklb-open,
body.fklb-open { overflow: hidden !important; }

#fklb.fklb-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    direction: ltr;
    font-family: inherit;
}

#fklb.fklb-overlay.is-open { display: block; }

#fklb .fklb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

#fklb .fklb-dialog {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 54px 70px 70px;
    box-sizing: border-box;
}

#fklb .fklb-stage {
    position: relative;
    width: min(94vw, 1400px);
    height: min(82vh, 900px);
    display: flex;
    align-items: center;
    justify-content: center;
}

#fklb .fklb-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity .16s ease;
    user-select: none;
    -webkit-user-drag: none;
}

#fklb .fklb-image.is-loaded { opacity: 1; }

#fklb .fklb-loading {
    position: absolute;
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255,255,255,.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fklb-spin .7s linear infinite;
}

#fklb .fklb-stage:not(.is-loading) .fklb-loading { display: none; }

@keyframes fklb-spin { to { transform: rotate(360deg); } }

#fklb .fklb-close,
#fklb .fklb-nav {
    position: absolute;
    z-index: 3;
    border: 0;
    color: #fff;
    background: rgba(0,0,0,.45);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

#fklb .fklb-close {
    top: 14px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 34px;
    line-height: 40px;
    font-weight: 300;
}

#fklb .fklb-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 72px;
    border-radius: 12px;
    font-size: 48px;
    line-height: 58px;
}

#fklb .fklb-prev { left: 12px; }
#fklb .fklb-next { right: 12px; }
#fklb .fklb-close:hover,
#fklb .fklb-nav:hover { background: rgba(0,0,0,.72); }

#fklb .fklb-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 70px;
    color: #fff;
    pointer-events: none;
    text-align: center;
}

#fklb .fklb-caption { max-width: 80vw; font-size: 14px; line-height: 1.7; text-shadow: 0 1px 4px #000; }
#fklb .fklb-counter { font-size: 13px; opacity: .8; white-space: nowrap; }

@media (max-width: 700px) {
    #fklb .fklb-dialog { padding: 52px 8px 54px; }
    #fklb .fklb-stage { width: 100vw; height: 78vh; }
    #fklb .fklb-nav { width: 40px; height: 58px; font-size: 38px; line-height: 46px; }
    #fklb .fklb-prev { left: 6px; }
    #fklb .fklb-next { right: 6px; }
    #fklb .fklb-close { top: 9px; right: 9px; }
    #fklb .fklb-bottom { bottom: 8px; padding: 0 45px; }
}
