#bnb-viewer {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.97);
    overflow: hidden;
}

#bnb-viewer.open {
    display: flex;
}

#bnb-viewer .bv-photo {
    max-width: 94vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .15s ease;
    transform-origin: center;
    user-select: none;
}

#bnb-viewer button {
    position: absolute;
    z-index: 2;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    color: white;
    font-size: 30px;
    cursor: pointer;
}

#bnb-viewer .bv-close {
    top: 18px;
    right: 18px;
}

#bnb-viewer .bv-prev {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

#bnb-viewer .bv-next {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

#bnb-viewer .bv-count {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(30,30,30,.8);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 14px;
}

body.bv-locked {
    overflow: hidden;
}

@media (max-width: 600px) {
    #bnb-viewer .bv-photo {
        max-width: 100vw;
        max-height: 82vh;
    }
}
