/* Yarchi Lightbox */
.yarchi-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
}

.yarchi-lightbox[hidden] {
  display: none !important;
}

.yarchi-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 16, 0.82);
  cursor: zoom-out;
}

.yarchi-lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.yarchi-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: min(82vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  background: #111;
}

.yarchi-lightbox__caption {
  color: rgba(247, 248, 246, 0.88);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  max-width: 42rem;
}

.yarchi-lightbox__close,
.yarchi-lightbox__nav {
  position: absolute;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.yarchi-lightbox__close:hover,
.yarchi-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.yarchi-lightbox__close {
  top: 18px;
  right: 18px;
}

.yarchi-lightbox__nav--prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.yarchi-lightbox__nav--next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.yarchi-lightbox__nav[hidden] {
  display: none !important;
}

html.yarchi-lightbox-open,
body.yarchi-lightbox-open {
  overflow: hidden;
}

.yarchi-media-preview {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

@media (max-width: 767px) {
  .yarchi-lightbox__nav--prev,
  .yarchi-lightbox__nav--next {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .yarchi-lightbox__nav--prev {
    left: 18px;
  }

  .yarchi-lightbox__nav--next {
    right: 18px;
  }
}


/* AURA LIGHTBOX THEME */
.lightbox,
.yarchi-lightbox {
  background-color: rgba(30, 26, 22, 0.92);
}
.lightbox__caption,
.yarchi-lightbox-caption {
  color: var(--yarchi-light);
}
.lightbox__close,
.lightbox__nav,
.yarchi-lightbox button {
  background-color: rgba(243, 238, 230, 0.12);
  border: 1px solid rgba(243, 238, 230, 0.22);
  color: var(--yarchi-light);
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background-color: rgba(243, 238, 230, 0.22);
}
