#bp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#bp-overlay.bp-visible {
    opacity: 1;
}
#bp-modal {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    max-height: 90vh;
    line-height: 0;
    transform: scale(0.92);
    transition: transform 0.3s ease;
}
#bp-overlay.bp-visible #bp-modal {
    transform: scale(1);
}
#bp-modal img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}
#bp-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 1;
    padding: 0;
}
#bp-close:hover {
    background: rgba(0,0,0,0.8);
}
#bp-close svg {
    display: block;
}
