.wp-block-gallery img,
.wp-block-gallery figure,
.blocks-gallery-grid img,
.blocks-gallery-grid .blocks-gallery-item,
.gallery img,
.gallery .gallery-item,
.wp-block-jetpack-tiled-gallery img,
.wp-block-jetpack-tiled-gallery figure,
.acf-gallery img,
.acf-gallery figure,
.ciranda-galeria-single__item img {
  cursor: zoom-in;
}

.ciranda-gallery-lightbox {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.ciranda-gallery-lightbox::backdrop {
  background: rgba(8, 13, 20, .92);
}

.ciranda-gallery-lightbox__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 64px 72px 24px;
}

.ciranda-gallery-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 1200px);
  max-height: calc(100vh - 128px);
  object-fit: contain;
  object-position: center;
}

.ciranda-gallery-lightbox__caption {
  min-height: 1.5em;
  margin: 12px 52px 0;
  color: #fff;
  text-align: center;
}

.ciranda-gallery-lightbox__close,
.ciranda-gallery-lightbox__nav {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .48);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.ciranda-gallery-lightbox__close:hover,
.ciranda-gallery-lightbox__nav:hover {
  background: #185b9c;
}

.ciranda-gallery-lightbox__close {
  top: 20px;
  right: 24px;
  font-size: 30px;
}

.ciranda-gallery-lightbox__nav--previous {
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
}

.ciranda-gallery-lightbox__nav--next {
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

.ciranda-gallery-lightbox__nav[hidden] {
  display: none;
}

@media (max-width: 575px) {
  .ciranda-gallery-lightbox__content {
    padding: 56px 48px 20px;
  }

  .ciranda-gallery-lightbox__image {
    max-height: calc(100vh - 100px);
  }

  .ciranda-gallery-lightbox__close {
    top: 10px;
    right: 10px;
  }

  .ciranda-gallery-lightbox__nav--previous {
    left: 6px;
  }

  .ciranda-gallery-lightbox__nav--next {
    right: 6px;
  }
}
