/* Estilos básicos do popup */
.gp-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.gp-img-wrapper {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  z-index: 2;
}

.gp-img-wrapper img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.gp-overlay {
  z-index: 1;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('https://media.arizeimobiliaria.com.br/wp-content/uploads/2021/10/arize-transparente-full.png') center center no-repeat;
  background-color: #ffffff0d;
  background-size: contain; /* ou cover, dependendo do estilo */
  pointer-events: none; /* garante que os cliques ainda passem para os controles (setas/fechar) */
}


.gp-lightbox .gp-close {
  position: absolute;
  top: 30px; right: 30px;
  font-size: 4rem;
  color: white;
  cursor: pointer;
}

.gp-backdrop {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 1;
}

.gp-prev,
.gp-next,
.gp-close {
  z-index: 3; /* acima do backdrop */
}

.gp-lightbox .gp-prev,
.gp-lightbox .gp-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
}

.gp-lightbox .gp-prev { left: 20px; }
.gp-lightbox .gp-next { right: 20px; }

.gp-loader {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.2rem;
  font-family: sans-serif;
  background: rgba(0,0,0,0.6);
  padding: 8px 16px;
  border-radius: 8px;
  display: none; /* escondido por padrão */
}

/* Exemplo de usar GIF no lugar de texto */
.gp-loader.loading {
  display: block;
  background: url('./img/preloader.gif') center center no-repeat;
  background-size: 50px 50px;
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 50%;
}

/* Versão Mobile (preenche a tela toda) */
@media (max-width: 768px) {
  .gp-img-wrapper img {
    width: 100vw;
    height: 100vh;
    object-fit: contain;  /* mantém proporção da imagem */
    border-radius: 0;
    box-shadow: none;
  }

  .gp-lightbox {
    align-items: center;
    justify-content: center;
  }

  .gp-lightbox .gp-close {
    font-size: 4rem;
  }
}