/* Cannyboy image lightbox — in-page popup with zoom/pan, used in the Filament
   panel (intercepts the FilePond «open» link) and on the print-preview sheet. */
.cb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    background: rgba(15, 15, 20, .92);
    backdrop-filter: blur(2px);
}
.cb-lightbox.is-open { display: flex; flex-direction: column; }
.cb-lightbox__bar {
    display: flex; gap: 12px; justify-content: flex-end;
    padding: 14px 18px; direction: ltr;
}
.cb-lightbox__bar button,
.cb-lightbox__dl {
    width: 56px; height: 56px; border-radius: 12px; border: none; cursor: pointer;
    background: rgba(255, 255, 255, .16); color: #fff; font-size: 28px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; transition: background .15s;
    -webkit-tap-highlight-color: transparent;
}
@media (max-width: 640px) {
    .cb-lightbox__bar { gap: 14px; padding: 16px; }
    .cb-lightbox__bar button,
    .cb-lightbox__dl { width: 62px; height: 62px; font-size: 32px; }
}
.cb-lightbox__bar button:hover,
.cb-lightbox__dl:hover { background: rgba(255, 255, 255, .28); }
.cb-lightbox__stage {
    flex: 1; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.cb-lightbox__stage img {
    max-width: 92vw; max-height: 82vh;
    transform-origin: center center;
    user-select: none; -webkit-user-drag: none; touch-action: none;
    transition: transform .05s linear;
}
