/* trava o scroll quando a lightbox abre */
html.wplg-lock, html.wplg-lock body { overflow: hidden; }

/* modal full screen */
.wplg-modal {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 99999;
}
.wplg-modal[aria-hidden="false"] { opacity: 1; pointer-events: auto; }

/* fundo preto */
.wplg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
}

/* container central */
.wplg-dialog {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* esconde overflow do slider */
  background: transparent;
}

/* botão fechar */
.wplg-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: #fff;
  color: #111;
  font-size: 26px;
  line-height: 40px;
  text-align: center;
  z-index: 100000; /* sempre acima */
}

/* SWIPER */
.wplg-slider.swiper {
  width: min(1200px, 94vw);
  height: min(86vh, 94vh);
  background: transparent;
}

.swiper-wrapper { align-items: center; } /* centraliza verticalmente */

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.swiper-slide img {
  display: block;           /* remove espaçamento inline */
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* botões de navegação do Swiper */
.swiper-button-prev,
.swiper-button-next {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: #111;
}
.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 18px;
  font-weight: 700;
}

/* bullets */
.swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: 16px;
}
.swiper-pagination-bullet {
  background: rgba(255,255,255,.35);
  opacity: 1;
}
.swiper-pagination-bullet-active {
  background: #fff;
}

/* performance */
.wplg-slider, .swiper-wrapper { will-change: transform; backface-visibility: hidden; }
