#bsv-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bsv-overlay-content {
    position: relative;
    text-align: center;
    background: #111;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
    max-width: 90%;
    max-height: 90%;
}

/* 🔽 Regola l’immagine: massimo 75% dell’altezza visibile */
.bsv-overlay-content img {
    max-width: 100%;
    max-height: 75vh; /* <-- limita l’altezza al 75% della finestra */
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

#bsv-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: white;
    cursor: pointer;
    transition: color 0.2s ease;
}

#bsv-close-btn:hover {
    color: #d69e2e;
}

.bsv-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: 15px;
    margin-top: 10px;
}

.bsv-checkbox input {
    transform: scale(1.2);
    cursor: pointer;
}