Modal standard no static

Quando a modal estiver aberta, clicar fora dela fará com que ela seja fechada.

Link para usar (css): https://jpm-development.com/css/modals/standard/styles.css

Link para usar (js): https://jpm-development.com/js/jquery/jquery-3.6.3.slim.js

Link para usar (js): https://jpm-development.com/js/jquery/jquery.min.js

Link para usar (js): https://jpm-development.com/js/modals/standard/custom.js

Tamplates Logins
<button id="openModalBtn" class="open-modal-button">Open Modal</button>
<div id="customModal" class="modal">
    <div class="modal-content">
        <div class="modal-header">
            <h2><span id="titulo_save"></span></h2>
            <button class="close-modal-btn">&times;</button>
        </div>
        <div class="modal-body">
            <p>This is the content of the modal. Here you can place any information or form elements.</p>
        </div>
        <div class="modal-footer">
            <button class="action-button">Confirm</button>
        </div>
    </div>
</div>