ById('popupModal');
            const overlay = document.getElementById('overlay');
            const modalHeader = document.getElementById('modalHeader');
            const popupText = document.getElementById('popupText');

            // Reset animations before applying new ones
            modal.style.animation = 'none';
            overlay.style.animation = 'none';
            void modal.offsetWidth; // Force reflow

            // Set modal content
            modalHeader.innerHTML = this.innerHTML;
  