@charset "UTF-8";
/**
 * 内页图片放大预览（替代 jquery.lightbox）
 */

.ny-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.ny-lightbox.is-open {
  display: flex;
}

.ny-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
}

.ny-lightbox__stage {
  position: relative;
  z-index: 2;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.ny-lightbox__img {
  display: block;
  max-width: 96vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #111;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.ny-lightbox__caption {
  margin: 12px 0 0;
  padding: 0 8px;
  max-width: 96vw;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
}

.ny-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ny-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.ny-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  min-width: 44px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  display: none;
}

.ny-lightbox.is-open .ny-lightbox__nav.is-visible {
  display: block;
}

.ny-lightbox__nav--prev {
  left: 8px;
}

.ny-lightbox__nav--next {
  right: 8px;
}

.ny-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

body.ny-lightbox-open {
  overflow: hidden;
}

a.lightbox {
  cursor: zoom-in;
}

@media screen and (max-width: 768px) {
  .ny-lightbox {
    padding: 0;
  }

  .ny-lightbox__img {
    max-width: 100vw;
    max-height: 92dvh;
    box-shadow: none;
  }

  .ny-lightbox__close {
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.55);
  }

  .ny-lightbox__nav--prev {
    left: 4px;
  }

  .ny-lightbox__nav--next {
    right: 4px;
  }
}
