/* Sfondo lightbox nero */
.owo-custom-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999990;
    background: #000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.owo-custom-lightbox.is-visible {
    display: flex;
}

/* Immagine */
.owo-custom-lightbox-img {
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

/* Share bar */
.owo-lightbox-sharebar {
    position: fixed;
    top: 20px;
    right: 70px;
    z-index: 9999999;
    display: none;
    gap: 8px;
    flex-wrap: wrap;
    pointer-events: auto;
}

.owo-lightbox-sharebar.is-visible {
    display: flex;
}

/* Pulsanti */
.owo-share-btn,
.owo-lightbox-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    cursor: pointer;
}

.owo-share-btn:hover,
.owo-share-btn:focus,
.owo-lightbox-close:hover,
.owo-lightbox-close:focus {
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Bottone chiusura */
.owo-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999999;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    margin: 0;
    font-size: 16px;
}

/* blocca scroll pagina */
body.owo-lightbox-open {
    overflow: hidden;
}

/* Mobile */
@media (max-width: 767px) {
    .owo-lightbox-sharebar {
        top: 12px;
        left: 12px;
        right: 60px;
        gap: 6px;
    }

    .owo-share-btn {
        font-size: 11px;
        padding: 8px 10px;
        gap: 6px;
    }

    .owo-lightbox-close {
        top: 12px;
        right: 12px;
    }

    .owo-custom-lightbox-img {
        max-width: 94vw;
        max-height: 80vh;
    }
}