I am seeking guidance on creating a grid with a variable number of columns and rows. It should be contained within a separate div and should not interfere with other objects or alter the parent's size.
The grid needs to be square and I am currently utilizing Tailwind CSS, but I am open to transitioning to SCSS or plain CSS if necessary. Additionally, I would like it to be interactive, allowing users to touch and move it with a mouse on desktops and touch-enabled devices.
Could you provide suggestions on how to achieve this functionality?