.js-custom-lightbox {
    cursor:pointer;
}
/* ===== MODALE LIGHTBOX FULLSCREEN ===== */
.js-clb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

.js-clb-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.js-clb-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    cursor: pointer;
}

.js-clb-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.js-clb-header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    font-size: 16px;
    z-index: 10;
}

.js-clb-header button {
    background: none !important;
    border: none !important;
    color: #fff !important;
    font-size: 4rem !important;
    line-height:.5em;
    cursor: pointer;
    padding: 5px !important;
    transition: opacity 0.3s !important;
}

.js-clb-header button:hover {
    opacity: .7; 
}

.js-clb-counter {
    font-weight: bold;
    padding:10px;
}

/* Contenitore immagine */
.js-clb-inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.js-clb-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Frecce centrali verticali */
.js-clb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    cursor: pointer;
    background: none !important;
    border-radius: 0 !important;
    border: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    padding:0 !important;
    z-index: 10;
}
.js-clb-arrow svg {
    fill:#fff;
}

.js-clb-prev:hover,
.js-clb-next:hover {
    opacity: .7;
}
.js-clb-arrow.disable,
.js-clb-arrow.disable:hover {
    opacity: .2;
    cursor: default;
}

.js-clb-prev { 
    width: 40px;
    height: 40px;
    left: 20px; 
}
.js-clb-next { 
    width: 40px;
    height: 40px;
    right: 20px; 
}

/* Responsive */
@media (max-width: 768px) {
    .js-clb-header {
        flex-direction: column;
        gap: 5px;
        font-size: 14px;
    }
    .js-clb-prev, .js-clb-next {
        width: 40px;
        height: 40px;
    }
    .js-clb-image {
        max-width: 95%;
        max-height: 80%;
    }
}
