/* Overlay - czarne tło z 30% przezroczystości */
.lhse-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Kontener popupu - wyśrodkowany */
.lhse-popup-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Link wokół obrazka */
.lhse-popup-link {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    text-decoration: none;
    outline: none;
}

/* Obrazek popupu */
.lhse-popup-image {
    max-width: 100%;
    max-height: 90vh;
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* Przycisk ZAMKNIJ - żółty, prawy górny róg */
.lhse-popup-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #FFD700;
    color: #000;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000000;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.lhse-popup-close:hover {
    background-color: #FFC700;
    transform: scale(1.05);
}

.lhse-popup-close:active {
    transform: scale(0.95);
}

/* Responsywność - Mobile (do 991px) */
@media screen and (max-width: 991px) {
    .lhse-popup-overlay {
        padding: 10px;
    }
    
    .lhse-popup-container {
        max-width: 100%;
    }
    
    .lhse-popup-image,
    .lhse-popup-link {
        max-height: 85vh;
    }
    
    .lhse-popup-close {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Responsywność - Małe urządzenia mobilne */
@media screen and (max-width: 480px) {
    .lhse-popup-overlay {
        padding: 5px;
    }
    
    .lhse-popup-image,
    .lhse-popup-link {
        max-height: 80vh;
    }
    
    .lhse-popup-close {
        top: 8px;
        right: 8px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Desktop - od 992px wzwyż */
@media screen and (min-width: 992px) {
    .lhse-popup-overlay {
        padding: 20px;
    }
    
    .lhse-popup-container {
        max-width: 90%;
    }
    
    .lhse-popup-image,
    .lhse-popup-link {
        max-height: 90vh;
    }
}
