Render Flow - Scrollable and centered modals
Load HTML with modal markup
Bootstrap JS initializes modal
Modal overlay and dialog elements created
Apply 'modal-dialog-centered' class
Apply 'modal-dialog-scrollable' class
Calculate viewport height and modal content height
Enable vertical centering and scrolling
Render modal on top of page content
The browser reads the modal HTML, Bootstrap JavaScript sets up the modal overlay and dialog. The 'modal-dialog-centered' class centers the modal vertically in the viewport. The 'modal-dialog-scrollable' class makes the modal body scrollable if content is tall, keeping header and footer fixed.