class CustomGalleryGrid extends HTMLElement { static get observedAttributes() { return ['items']; } constructor() { super(); this.items = []; } connectedCallback() { this.attachShadow({ mode: 'open' }); this.render(); } setItems(items) { this.items = items; this.render(); } render() { this.shadowRoot.innerHTML = `