"To capture the imagination" means to fully engage and inspire someone's thoughts, creativity, and curiosity. It implies that something is so fascinating or captivating that it stimulates imaginative thoughts or transports them into a different world mentally.
Full definition