/* Shared image lightbox — widget + staff inbox */

.pbc-msg-image,
.psi-msg-image {
    cursor: zoom-in;
}

.pbc-msg-image:focus-visible,
.psi-msg-image:focus-visible {
    outline: 2px solid #0a7cff;
    outline-offset: 2px;
}

body.pikamc-lightbox-open {
    overflow: hidden;
}

.pikamc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pikamc-lightbox[hidden] {
    display: none !important;
}

.pikamc-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.88);
    cursor: zoom-out;
}

.pikamc-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.pikamc-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.pikamc-lightbox__img {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1400px);
    max-height: 92vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    cursor: default;
    user-select: none;
}

@media (max-width: 640px) {
    .pikamc-lightbox {
        padding: 8px;
    }

    .pikamc-lightbox__close {
        top: 8px;
        right: 8px;
    }

    .pikamc-lightbox__img {
        max-width: 100vw;
        max-height: 88vh;
        border-radius: 4px;
    }
}

.vm-catalog-proof__img {
    cursor: zoom-in;
}

.vm-catalog-proof__frame:focus-within .vm-catalog-proof__img {
    outline: 2px solid #0a7cff;
    outline-offset: 2px;
}

