/*
  LIGHTBOX v2.0 — Loureiro B&B
  Substitui o lightbox.css anterior. Mantém as mesmas classes
  (.lightbox, .lightbox__main__carousel, .lightbox__thumbs__thumb, .selected, .active...).
  Fica escondido com visibility:hidden, por isso o Owl mede as larguras corretamente
  mesmo com a galeria fechada e os botões não entram na ordem de tabulação.
*/

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 4.5rem 0 1rem;
  background: rgba(0, 0, 0, .95);
  color: #fefffe;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease-in-out, visibility 0s linear .25s;
}

.lightbox.active {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  z-index: 3;
  width: 3rem;
  height: 3rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fefffe;
  background: rgba(0, 0, 0, .65);
  border: 2px solid #fefffe;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s ease-in-out, color .2s ease-in-out;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: #fefffe;
  color: #000;
}

.lightbox__close svg,
.lightbox__prev svg,
.lightbox__next svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
}

.lightbox__prev,
.lightbox__next {
  top: calc(50% - 3rem);
}

.lightbox__prev {
  left: 1rem;
}

.lightbox__next {
  right: 1rem;
}

.lightbox__main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__main__carousel {
  width: 100%;
}

.lightbox .lightbox__main__carousel .owl-item {
  display: flex;
  justify-content: center;
}

.lightbox__main__img {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.lightbox .lightbox__main__carousel .owl-item img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - 14rem);
  object-fit: contain;
}

.lightbox__main__img p {
  margin: .75rem 0 0;
  font-size: .9375rem;
  text-align: center;
  color: #fefffe;
}

.lightbox__thumbs {
  flex: 0 0 auto;
}

.lightbox__thumbs__thumb {
  height: 4.5rem;
  overflow: hidden;
  cursor: pointer;
  opacity: .6;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: opacity .2s ease-in-out, border-color .2s ease-in-out;
}

.lightbox .lightbox__thumbs__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox__thumbs__thumb:hover,
.lightbox__thumbs__thumb.selected {
  opacity: 1;
}

.lightbox__thumbs__thumb.selected {
  border-color: #fefffe;
}

/* uma só imagem: não há o que navegar */
.lightbox--single .lightbox__prev,
.lightbox--single .lightbox__next,
.lightbox--single .lightbox__thumbs {
  display: none;
}

@media only screen and (max-width: 767px) {
  .lightbox__prev {
    left: .5rem;
  }

  .lightbox__next {
    right: .5rem;
  }

  .lightbox__thumbs__thumb {
    height: 3.5rem;
  }
}
