/* Popup Modal Styles - Based on digitalpolicy.gov.hk */

.popup-modal-overlay {
    background: rgba(0, 0, 0, 0.4);
    display: none;
    height: 100%;
    position: fixed;
    text-align: center;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
}

.popup-modal-overlay.active {
    display: block;
}

.popup-modal-overlay img {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

.popup-modal-overlay .popup-helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.popup-modal-overlay > div {
    cursor: default;
    background-color: #fff;
    box-shadow: 10px 10px 60px #555;
    display: inline-block;
    height: auto;
    max-width: 630px;
    min-height: 100px;
    vertical-align: middle;
    width: 60%;
    position: relative;
    padding: 15px;
}

.popup-close-button {
    text-decoration: none;
    color: #000;
    cursor: pointer;
    display: inline-block;
    font-family: arial, sans-serif;
    position: absolute;
    top: 0;
    right: 0;
    font-size: 25px;
    line-height: 30px;
    width: 30px;
    height: 30px;
    text-align: center;
    background: transparent;
    border: none;
    transition: color 0.2s ease;
}

.popup-close-button:hover {
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .popup-modal-overlay > div {
        width: 90%;
        max-width: 90%;
        padding: 10px;
    }
}
