#npb-popup-overlay {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);

    z-index: 99999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .6s ease,
        visibility .6s ease;
}

#npb-popup-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#npb-popup {
    position: relative;

    width: auto;
    max-width: 95vw;

    opacity: 0;

    transform: translateY(60px) scale(.95);

    transition:
        opacity .6s ease,
        transform .6s cubic-bezier(.22, 1, .36, 1);
}

#npb-popup-overlay.show #npb-popup {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#npb-popup a {
    display: block;
}

#npb-popup img {
    display: block;

    width: auto;
    max-width: 95vw;

    height: auto;
    max-height: 88vh;

    border-radius: 14px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

/* Close Button */

#npb-close-popup {
    position: absolute;

    top: 12px;
    right: 12px;

    width: 34px;
    height: 34px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, .95);

    color: #000;

    font-size: 20px;
    line-height: 34px;

    text-align: center;

    cursor: pointer;

    z-index: 999;

    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);

    transition: all .25s ease;
}

#npb-close-popup:hover {
    background: #fff;
    transform: scale(1.08);
}
/* ==========================================
   Tablet + Mobile
========================================== */

@media (max-width: 1024px) {

    #npb-popup-overlay {
        padding: 16px;
    }

    #npb-popup {
        position: relative;
        width: 90vw;
        max-width: 460px;
        margin: 0 auto;
    }

    #npb-popup img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 88vh;
        border-radius: 12px;
    }

    #npb-close-popup {
        position: absolute;

        top: -10px;
        right: -10px;

        width: 24px;
        height: 24px;

        line-height: 22px;
        font-size: 13px;
        font-weight: 600;

        border-radius: 50%;
        border: none;

        background: #fff;
        color: #333;

        cursor: pointer;
        z-index: 99999;

        box-shadow: 0 2px 8px rgba(0,0,0,.25);
    }
}

/* ==========================================
   Phones Portrait
========================================== */

@media (max-width: 768px) {

    #npb-popup-overlay {
        padding: 18px;
    }

    #npb-popup {
        width: 88vw;
        max-width: 380px;
    }

    #npb-popup img {
        max-height: 82vh;
    }

    #npb-close-popup {

        top: -8px;
        right: -8px;

        width: 22px;
        height: 22px;

        line-height: 20px;
        font-size: 12px;
    }
}

/* ==========================================
   Very Small Phones
========================================== */

@media (max-width: 380px) {

    #npb-popup-overlay {
        padding: 16px;
    }

    #npb-popup {
        width: 86vw;
    }

    #npb-close-popup {

        top: -6px;
        right: -6px;

        width: 20px;
        height: 20px;

        line-height: 18px;
        font-size: 11px;
    }
}

/* ==========================================
   Mobile Landscape + iPhone Landscape
========================================== */

@media (max-width: 926px) and (orientation: landscape) {

    #npb-popup-overlay {
        padding: 12px;
    }

    #npb-popup {
        width: auto;
        max-width: 55vh;
    }

    #npb-popup img {
        max-height: 86vh;
    }

    #npb-close-popup {

        top: -6px;
        right: -6px;

        width: 20px;
        height: 20px;

        line-height: 18px;
        font-size: 11px;
    }
}