/* ==========================================================================
   Lightbox
   Stile del visualizzatore di lightbox.js: sfondo scuro, contatore, barra
   in alto a destra, frecce ai lati e striscia di miniature in basso.
   ========================================================================== */
html.qk-lb-open {
    overflow: hidden
}
.qk-lb {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    background: rgba(38, 38, 38, .97);
    color: #fff;
    -webkit-user-select: none;
    user-select: none
}
.qk-lb[hidden] {
    display: none
}
.qk-lb-counter {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    padding: 0 1rem;
    line-height: 56px;
    font-size: .875rem;
    color: rgba(255, 255, 255, .85);
    font-variant-numeric: tabular-nums
}
.qk-lb-toolbar {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    display: flex;
    height: 56px
}
.qk-lb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 56px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .85);
    cursor: pointer;
    transition: color .15s, background-color .15s
}
.qk-lb-btn:hover,
.qk-lb-btn:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .12)
}
.qk-lb-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px
}
.qk-lb-btn[aria-pressed="false"] {
    opacity: .55
}
.qk-lb-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 28px;
    height: 56px;
    margin-top: -28px;
    background: rgba(255, 255, 255, .12)
}
.qk-lb-prev {
    left: 0;
    border-radius: 0 6px 6px 0
}
.qk-lb-next {
    right: 0;
    border-radius: 6px 0 0 6px
}
.qk-lb-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 56px 44px 0;
    overflow: hidden;
    touch-action: pan-y
}
.qk-lb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .2s ease, opacity .2s ease;
    -webkit-user-drag: none
}
.qk-lb-loading .qk-lb-img {
    opacity: 0
}
.qk-lb-loading::after {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: qk-lb-spin .8s linear infinite
}
.qk-lb-error::after {
    content: "\2715";
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, .6)
}
.qk-lb-zoomed .qk-lb-img {
    cursor: grab
}
.qk-lb-dragging .qk-lb-img {
    cursor: grabbing;
    transition: none
}
.qk-lb-caption {
    flex: 0 0 auto;
    padding: .5rem 1rem 0;
    text-align: center;
    font-size: .9rem;
    color: rgba(255, 255, 255, .9)
}
.qk-lb-caption[hidden] {
    display: none
}
.qk-lb-thumbs {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
    height: 84px;
    padding: 8px 12px;
    overflow-x: auto;
    scrollbar-width: none
}
.qk-lb-thumbs::-webkit-scrollbar {
    display: none
}
.qk-lb-no-thumbs .qk-lb-thumbs {
    display: none
}
.qk-lb-thumb {
    flex: 0 0 auto;
    width: 74px;
    height: 66px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 2px;
    background: #111;
    opacity: .6;
    overflow: hidden;
    cursor: pointer;
    transition: opacity .15s, border-color .15s
}
.qk-lb-thumb:hover,
.qk-lb-thumb:focus-visible {
    opacity: 1
}
.qk-lb-thumb.is-active {
    border-color: #fff;
    opacity: 1
}
.qk-lb-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}
.qk-lb-single .qk-lb-only-many {
    display: none
}
.qk-lb-single .qk-lb-stage,
.qk-lb-no-thumbs .qk-lb-stage {
    margin-bottom: 16px
}
@keyframes qk-lb-spin {
    to {
        transform: rotate(360deg)
    }
}
@media (max-width: 575.98px) {
    .qk-lb-stage {
        margin-left: 0;
        margin-right: 0
    }
    .qk-lb-btn {
        width: 42px
    }
    .qk-lb-thumbs {
        height: 70px
    }
    .qk-lb-thumb {
        width: 60px;
        height: 52px
    }
}
@media (prefers-reduced-motion: reduce) {
    .qk-lb-img,
    .qk-lb-btn,
    .qk-lb-thumb {
        transition: none
    }
    .qk-lb-loading::after {
        animation-duration: 2s
    }
}
