.eipl-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.eipl-popup.is-visible {
    display: flex;
}

.eipl-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
}

.eipl-popup-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    animation: eiplPopupIn 0.25s ease-out;
}

.eipl-popup-link {
    display: block;
}

.eipl-popup-content img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.eipl-popup-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
}

.eipl-popup-close span {
    display: block;
    line-height: 1;
    transform: translateY(-1px);
}

.eipl-popup-close:hover,
.eipl-popup-close:focus {
    background: #f2f2f2;
    outline: none;
}

@keyframes eiplPopupIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 767px) {
    .eipl-popup {
        padding: 14px;
    }

    .eipl-popup-close {
        top: -12px;
        right: -12px;
        width: 34px;
        height: 34px;
        font-size: 24px;
    }
}
