html.nsl-image-lightbox-open,
html.nsl-image-lightbox-open body {
  overflow: hidden !important;
}

html.nsl-image-lightbox-open body > :not(#nsl-image-lightbox):not(#nae-smooth-cursor):not(script):not(style) {
  filter: blur(10px) saturate(0.86) brightness(0.62);
  transition: filter 180ms ease;
}

html.nsl-image-lightbox-open #nae-smooth-cursor {
  opacity: 0 !important;
}

html.nsl-smooth-cursor.nsl-image-lightbox-open,
html.nsl-smooth-cursor.nsl-image-lightbox-open body,
html.nsl-smooth-cursor.nsl-image-lightbox-open body *,
html.nsl-smooth-cursor.nsl-image-lightbox-open .nsl-image-lightbox,
html.nsl-smooth-cursor.nsl-image-lightbox-open .nsl-image-lightbox * {
  cursor: default !important;
}

html.nsl-smooth-cursor.nsl-image-lightbox-open .nsl-image-lightbox__close {
  cursor: pointer !important;
}

img[data-lightbox] {
  cursor: zoom-in;
}

.nsl-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 46px);
  background: rgba(3, 3, 6, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.nsl-image-lightbox.is-open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.nsl-image-lightbox__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.nsl-image-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - clamp(36px, 8vw, 92px));
  max-height: calc(100vh - clamp(36px, 8vw, 92px));
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.66);
}

.nsl-image-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.82);
  color: rgba(255, 255, 255, 0.92);
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nsl-image-lightbox__close:hover {
  transform: translateY(-1px);
  background: rgba(22, 22, 28, 0.92);
  border-color: rgba(255, 255, 255, 0.34);
}

@media (max-width: 720px) {
  .nsl-image-lightbox {
    padding: 14px;
  }

  .nsl-image-lightbox__img {
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
  }

  .nsl-image-lightbox__close {
    top: 8px;
    right: 8px;
  }
}
