document.addEventListener("DOMContentLoaded", function () { if (window.innerWidth <= 1024) { document.querySelectorAll('.h-element-gallery-caption').forEach(el => { el.remove(); }); document.querySelectorAll('.h-element-gallery-item').forEach(item => { item.style.pointerEvents = 'auto'; }); document.querySelectorAll('.h-element-gallery-item a').forEach(link => { link.style.zIndex = '10'; link.style.position = 'relative'; }); } });