.ndl-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.ndl-trigger > picture,
.ndl-trigger > img {
  display: block;
}

.ndl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  cursor: zoom-out;
}

.ndl-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.ndl-lightbox img {
  max-width: 92vw;
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.ndl-caption {
  margin-top: 14px;
  max-width: 92vw;
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}

.ndl-caption:empty {
  display: none;
}

.ndl-close,
.ndl-prev,
.ndl-next {
  position: absolute;
  padding: 0.1em 0.4em;
  border: 0;
  background: none;
  color: #fff;
  font-size: 2.75rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
}

.ndl-close:hover,
.ndl-prev:hover,
.ndl-next:hover {
  opacity: 1;
}

.ndl-close {
  top: 10px;
  right: 16px;
}

.ndl-prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.ndl-next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

body.ndl-lock {
  overflow: hidden;
}

@media (max-width: 575px) {
  .ndl-close,
  .ndl-prev,
  .ndl-next {
    font-size: 2.25rem;
  }
}
