/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox,
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox[hidden],
.video-modal[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   Lightbox de imagens
   -------------------------------------------------------------------------- */

.lightbox {
  gap: 16px;
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  object-fit: contain;
}

.lightbox__caption {
  margin: 0;
  color: var(--white);
  font-family: var(--font-family-01);
  font-size: 14px;
  font-weight: var(--font-weight-regular);
}

/* --------------------------------------------------------------------------
   Vídeo
   -------------------------------------------------------------------------- */

.video-modal__video {
  display: block;
  width: 100%;
  max-width: 1200px;
  max-height: calc(100vh - 48px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background-color: #000;
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */

.lightbox__close,
.video-modal__close,
.lightbox__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background-color: #ebebeb;
  cursor: pointer;
}

.lightbox__close,
.video-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1;
  font-size: 24px;
  line-height: 1;
}

.lightbox__arrow {
  flex-shrink: 0;
}

.lightbox__arrow img {
  width: 20px;
  height: 20px;
}

.lightbox__arrow--prev img {
  transform: scaleX(-1);
}