#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    height: 70%;
    width: auto;
    max-width: 95vw;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#popup_img {
    margin-top: 10px;
    height: 90%;
    max-height: 90%;
    width: auto;
    display: block;
}

#popup .close {
    color: white;
    font-size: 20px;
    cursor: pointer;
    text-align: right;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}