/* =========================
   LIGHTBOX SYSTEM
   ========================= */
#lightbox {
    display: none; /* Zarządzane przez JS */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    z-index: 99999 !important; /* Bardzo wysoki priorytet */
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#lightbox-img {
    max-width: 90%;
    max-height: 85%;
    border: 3px solid #fff;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    background-color: #000;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}

/* Kursor lupy dla obrazków */
.lightbox-img, .news-content img, .gallery img {
    cursor: zoom-in !important;
}

/* Styl dla strzałek nawigacyjnych */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 60px;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
    z-index: 20002;
}

.lightbox-nav:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

#lightbox-prev {
    left: 20px;
}

#lightbox-next {
    right: 20px;
}

/* Ukrycie strzałek na bardzo małych ekranach, żeby nie zasłaniały zdjęcia */
@media (max-width: 480px) {
    .lightbox-nav {
        font-size: 40px;
        padding: 10px;
    }
    #lightbox-prev { left: 5px; }
    #lightbox-next { right: 5px; }
}