/* Gallery Mosaic module */

.gallery_mosaic_module__heading{
  text-align: center;
  margin-bottom: 24px;
}

.gallery_mosaic_slider .splide__slide{
  width: auto;
}

.gallery_mosaic_slide{
  display: block;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
}

.gallery_mosaic_slide img{
  display: block;
  width: auto;
  height: auto;
  max-height: 320px;
  max-width: 100%;
}

@media (max-width: 640px){
  .gallery_mosaic_slide img{
    max-height: 220px;
  }
}


.gallery_mosaic_slider .splide__arrow{
  background: var(--ib-primary);
  opacity: .85;
  transition: opacity .2s ease;
}
.gallery_mosaic_slider .splide__arrow svg{
  fill: #fff;
}

.gallery_mosaic_slider .splide__pagination__page.is-active{
  background: var(--ib-primary);
}

.gallery_mosaic_lightbox{
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.gallery_mosaic_lightbox__stage{
  max-width: 90vw;
  max-height: 90vh;
}

.gallery_mosaic_lightbox__stage img{
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}

.gallery_mosaic_lightbox__close{
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.gallery_mosaic_lightbox__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: 0;
  color: #fff;
  font-size: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.gallery_mosaic_lightbox__nav:hover{
  background: rgba(255,255,255,.25);
}

.gallery_mosaic_lightbox__prev{ left: 16px; }
.gallery_mosaic_lightbox__next{ right: 16px; }

.gallery_mosaic_lightbox__counter{
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  letter-spacing: .05em;
  background: rgba(0,0,0,.4);
  padding: 4px 12px;
  border-radius: 999px;
}

@media (max-width: 640px){
  .gallery_mosaic_lightbox__nav{
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .gallery_mosaic_lightbox__prev{ left: 8px; }
  .gallery_mosaic_lightbox__next{ right: 8px; }
}

body.gallery-lightbox-open{
  overflow: hidden;
}
