/* Styles per lightbox immagini book */
.photo-item img {
    cursor: zoom-in;
    transition: transform 0.2s ease;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-item img:hover {
    transform: scale(1.02);
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10050;
    padding: 1.5rem;
}

.lightbox.open {
    display: flex;
}

.lightbox-inner {
    position: relative;
    max-width: 1200px;
    width: 100%;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
    margin-top: 0.6rem;
    color: #ddd;
    font-size: 0.95rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .lightbox-inner {
        padding: 0.5rem;
    }

    .lightbox-close {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}