page-break-inside: avoid;
-webkit-column-break-inside: avoid;
break-inside: avoid;
.table > * {
page-break-inside: avoid;
-webkit-column-break-inside: avoid;
break-inside: avoid;
}
.simple-gallery._alt
.swiper-container.swiper-container_gallery
.swiper-wrapper
a.swiper-slide(href="img/room1-1.jpg")
img.simple-gallery__img(src="img/room1-1.jpg" title="" alt="")
a.swiper-slide(href="img/room2-1.jpg")
img.simple-gallery__img(src="img/room2-1.jpg" title="" alt="")
a.swiper-slide(href="img/room2-2.jpg")
img.simple-gallery__img(src="img/room2-2.jpg" title="" alt="")
a.swiper-slide(href="img/room2-3.jpg")
img.simple-gallery__img(src="img/room2-3.jpg" title="" alt="")
a.swiper-slide(href="img/room3-1.jpg")
img.simple-gallery__img(src="img/room3-1.jpg" title="" alt="")
const swiperGallery = new Swiper('.swiper-container_gallery', {
slidesPerView: "auto",
loop: true,
spaceBetween: 0,
watchOverflow: true,
freeMode: true,
speed: 2000,
autoplay: {
delay: 1000,
disableOnInteraction: false
// waitForTransition: false,
},
});
$.fancybox.defaults.thumbs.autoStart = true;
$().fancybox({
selector : '.simple-gallery._alt .swiper-slide:not(.swiper-slide-duplicate)',
backFocus : false,
buttons: [
"thumbs",
"close"
],
});
$(document).on('click', '.swiper-slide-duplicate', function(e) {
var $slides = $(this)
.parent()
.children('.swiper-slide:not(.swiper-slide-duplicate)');
$slides
.eq( ( $(this).attr("data-swiper-slide-index") || 0) % $slides.length )
.trigger("click.fb-start", { $trigger: $(this) });
return false;
});