Skip to content
/* ==========================================
MB IMAGE LIGHTBOX
CSS Class: mb-image-lightbox
========================================== */
document.addEventListener('DOMContentLoaded', function () {
document.querySelectorAll('.mb-image-lightbox a, a.mb-image-lightbox').forEach(function (button) {
button.addEventListener('click', function (e) {
e.preventDefault();
const imageUrl = 'https://rockofagessk.com/wp-content/uploads/2026/10/IMG_1860.jpeg';
if (
typeof elementorFrontend !== 'undefined' &&
elementorFrontend.utils &&
elementorFrontend.utils.lightbox
) {
elementorFrontend.utils.lightbox.showModal({
type: 'image',
url: imageUrl
});
}
});
});
});