
  const embedButtons = document.querySelectorAll("[data-embed]");
  embedButtons.forEach((button) => {
    button.addEventListener("click", (event) => {
      // Set the embed code in the textarea
      renderEmbedCode();
      toggleModalVisibility('embed-modal', "open");

      const device = button.getAttribute("data-device");
      if (device === "mobile") {
        // Close the mobile filters drawer
        closeFiltersDrawer();
      }
    });
  });

  // Copy embed code
  const copyEmbedCode = docum