/* SKHIZO pswp download fix iOS iOS Safari ignores the download attribute, so PhotoSwipe's "Download image" button appears dead on iPhone/iPad. Open the full-size image in a new tab instead, where a long-press saves it to Photos. */ (function () { var ua = navigator.userAgent || ''; var isIOS = /iPad|iPhone|iPod/.test(ua) || (/Macintosh/.test(ua) && 'ontouchend' in document); if (!isIOS) return; document.addEventListener('click', function (e) { var el = e.target && e.target.closest ? e.target.closest('.pswp a[download]') : null; if (!el) return; e.preventDefault(); e.stopPropagation(); window.open(el.getAttribute('href'), '_blank'); }, true); })();