#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#popup-content {
    position: relative;
    background-color: transparent;
    max-width: 90%;
    max-height: 90%;
}

#popup-content img {
    max-width: 100%;
    height: auto;
    display: block;
}


#popup-close {
    position: absolute;
    width: 40px;
    height: 40px;
    top: -46px;        /* above the image */
    right: 0;          /* aligned with right edge of popup */
    background: white;
    border: none;
    font-size: 36px;   /* Adjust if needed */
    cursor: pointer;
    padding: 0;

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