#fbanner-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: flex-start;
    cursor: pointer;
}

#fbanner-modal .fbanner-modal-content {
    background: #fff;
    padding: 1.2em 1em 1em 1em;
    border-radius: 8px;
    max-width: 400px;
    width: 95vw;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    text-align: center;
    margin: 40px auto;
    cursor: auto;
    box-sizing: border-box;
}

#fbanner-modal .fbanner-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 1em;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#fbanner-modal .fbanner-link {
    display: inline-block;
    margin-top: 1em;
    padding: 0.5em 1.5em;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

#fbanner-modal .fbanner-link:hover {
    background: #005177;
}

#fbanner-modal .fbanner-close {
    position: absolute;
    top: 0.3em;
    right: 0.7em;
    font-size: 2em;
    color: #333;
    cursor: pointer;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    line-height: 1;
    width: 1.5em;
    height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 500px) {
    #fbanner-modal .fbanner-modal-content {
        max-width: 95vw;
        padding: 0.7em;
        margin: 20px auto;
    }

    #fbanner-modal .fbanner-close {
        font-size: 1.5em;
        top: 0.2em;
        right: 0.4em;
        width: 1.2em;
        height: 1.2em;
    }
}