diff --git a/Resources/Public/JavaScript/Dist/bootstrap.lightbox.min.js b/Resources/Public/JavaScript/Dist/bootstrap.lightbox.min.js
index 47bee3d04..7ff6aab13 100644
--- a/Resources/Public/JavaScript/Dist/bootstrap.lightbox.min.js
+++ b/Resources/Public/JavaScript/Dist/bootstrap.lightbox.min.js
@@ -1 +1 @@
-window.addEventListener("DOMContentLoaded",function(){Array.from(document.querySelectorAll("a.lightbox")).forEach(function(a){a.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation();var t=a.getAttribute("rel"),e=Array.from(document.querySelectorAll("a.lightbox[rel="+t+"]")).indexOf(a);{var o=t;const n=[];if(Array.from(document.querySelectorAll("a.lightbox[rel="+o+"]")).forEach(function(t){let e=null,i=("lightboxTitle"in t.dataset&&""!==t.dataset.lightboxTitle&&(e=t.dataset.lightboxTitle),null),a=("lightboxAlt"in t.dataset&&""!==t.dataset.lightboxAlt&&(i=t.dataset.lightboxAlt),null),l=("lightboxCaption"in t.dataset&&""!==t.dataset.lightboxCaption&&(a=(a=t.dataset.lightboxCaption).replace(/(?:\r\n|\r|\n)/g,"
")),null);t.querySelector("img")?l=t.querySelector("img"):t.parentElement.querySelector("img")&&(l=t.parentElement.querySelector("img"));t={id:Array.from(document.querySelectorAll("a.lightbox[rel="+o+"]")).indexOf(t),src:t.getAttribute("href"),width:t.dataset.lightboxWidth,height:t.dataset.lightboxHeight,title:e,alt:i,caption:a,element:t,imgElement:l};n.push(t)}),0e.imgElement||t),new PhotoSwipeDynamicCaption(i,{type:"auto",captionContent:t=>{t=t.data;let e="";return t.title&&""!==t.title&&(e+=''+t.title+"
"),t.caption&&""!==t.caption&&(e+=''+t.caption+"
"),e}}),i.on("firstUpdate",()=>{i.pswp.element.ariaModal=!0,i.pswp.scrollWrap.ariaLabel="carousel",i.pswp.scrollWrap.removeAttribute("aria-roledescription")}),i.init(),i.loadAndOpen(e)}}})})});
\ No newline at end of file
+window.addEventListener("DOMContentLoaded",function(){Array.from(document.querySelectorAll("a.lightbox")).forEach(function(a){a.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation();var t=a.getAttribute("rel"),e=Array.from(document.querySelectorAll("a.lightbox[rel="+t+"]")).indexOf(a);{var o=t;const n=[];if(Array.from(document.querySelectorAll("a.lightbox[rel="+o+"]")).forEach(function(t){let e=null,i=("lightboxTitle"in t.dataset&&""!==t.dataset.lightboxTitle&&(e=t.dataset.lightboxTitle),null),a=("lightboxAlt"in t.dataset&&""!==t.dataset.lightboxAlt&&(i=t.dataset.lightboxAlt),null),l=("lightboxCaption"in t.dataset&&""!==t.dataset.lightboxCaption&&(a=(a=t.dataset.lightboxCaption).replace(/(?:\r\n|\r|\n)/g,"
")),null);t.querySelector("img")?l=t.querySelector("img"):t.parentElement.querySelector("img")&&(l=t.parentElement.querySelector("img"));t={id:Array.from(document.querySelectorAll("a.lightbox[rel="+o+"]")).indexOf(t),src:t.getAttribute("href"),width:t.dataset.lightboxWidth,height:t.dataset.lightboxHeight,title:e,alt:i,caption:a,element:t,imgElement:l};n.push(t)}),0e.imgElement||t),new PhotoSwipeDynamicCaption(i,{type:"auto",captionContent:t=>{t=t.data;let e="";return t.title&&""!==t.title&&(e+=''+t.title+"
"),t.caption&&""!==t.caption&&(e+=''+t.caption+"
"),e}}),i.on("firstUpdate",()=>{i.pswp.element.setAttribute("aria-modal",!0),i.pswp.scrollWrap.ariaLabel="carousel",i.pswp.scrollWrap.removeAttribute("aria-roledescription")}),i.init(),i.loadAndOpen(e)}}})})});
\ No newline at end of file
diff --git a/Resources/Public/JavaScript/Src/bootstrap.lightbox.js b/Resources/Public/JavaScript/Src/bootstrap.lightbox.js
index 309e16c06..d50593537 100644
--- a/Resources/Public/JavaScript/Src/bootstrap.lightbox.js
+++ b/Resources/Public/JavaScript/Src/bootstrap.lightbox.js
@@ -72,7 +72,7 @@ window.addEventListener('DOMContentLoaded', function () {
}
});
gallery.on('firstUpdate', () => {
- gallery.pswp.element.ariaModal = true;
+ gallery.pswp.element.setAttribute('aria-modal', true);
gallery.pswp.scrollWrap.ariaLabel = 'carousel';
gallery.pswp.scrollWrap.removeAttribute('aria-roledescription');
});