           once: true
        });

        const modal = document.getElementById('imageModal');
        const modalImage = modal.querySelector('.modal-image');
        const closeButton = modal.querySelector('.close-modal');
        const images = document.querySelectorAll('.gallery-image, .featured-image');

        images.forEach(image => {
            image.addEventListener('click', () => {
                modalImage.src = image.src.replace('600x800', '1200x1600').replace('1400x600', '2800x1200');
      