New Custom Prayer
diff --git a/assets/css/builder.css b/assets/css/builder.css
index 27c9d58..94163bd 100644
--- a/assets/css/builder.css
+++ b/assets/css/builder.css
@@ -461,19 +461,21 @@
/* ── Modal ───────────────────────────────────────────────────── */
-.modal-overlay[hidden] { display: none; }
-
.modal-overlay {
+ display: none; /* hidden by default; JS adds .modal-open to show */
position: fixed;
inset: 0;
background: rgba(0,0,0,0.45);
z-index: 1000;
- display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
+.modal-overlay.modal-open {
+ display: flex;
+}
+
.modal-box {
background: var(--bg-card);
border-radius: 12px;
diff --git a/assets/js/builder.js b/assets/js/builder.js
index a4ef4b8..499394c 100644
--- a/assets/js/builder.js
+++ b/assets/js/builder.js
@@ -257,12 +257,12 @@
updateModalFields();
updateAttrRadioStyles();
- modal.hidden = false;
+ modal.classList.add('modal-open');
document.getElementById('modal-name').focus();
}
function closeModal() {
- document.getElementById('prayer-modal').hidden = true;
+ document.getElementById('prayer-modal').classList.remove('modal-open');
editingPrayerId = null;
}