ent.getElementById('copy-embed-code');
  if (copyEmbedCode) {
    copyEmbedCode.addEventListener('click', () => {
      copyEmbedCodeToClipboard("embed-code");
    });
  }

  // Close embed modal
  const closeEmbedModal = document.getElementById('close-embed-modal');
  if (closeEmbedModal) {
    closeEmbedModal.addEventListener('click', () => {
      toggleModalVisibility('embed-modal', "close");
    });
  }

  const backdropEmbedModal = document.getElementById('backdrop-embed-modal');
  if (backdropEmbedMo