/* Lightbox Overlay */
.its-lb {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  opacity: 0;
  transition: opacity 180ms ease;
}
.its-lb.is-open { display: block; opacity: 1; }

.its-lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(2px);
}

.its-lb__dialog {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
}

.its-lb__img {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  opacity: 1;
  transform: scale(1);
  transition: opacity 180ms ease, transform 180ms ease;
}

.its-lb__img.is-fadeout {
  opacity: 0;
  transform: scale(.985);
}

.its-lb__btn {
  position: fixed;
  top: 12px;
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  background: rgba(0,0,0,.55);
  color: #fff;
}

.its-lb__btn:hover,
.its-lb__nav:hover {
  background: rgba(0,0,0,.7);
}

.its-lb__close { right: 12px; }

.its-lb__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  background: rgba(0,0,0,.55);
  color: #fff;
}

.its-lb__prev { left: 12px; }
.its-lb__next { right: 12px; }

/* Cursor hint */
[data-its-lightbox="1"] img[data-its-full] { cursor: zoom-in; }

/* Scroll lock */
html.its-lb--open { overflow: hidden; }
