.nbr-photo-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(20,12,16,.97);
  color: white;
}

.nbr-photo-viewer::backdrop {
  background: rgba(20,12,16,.97);
}

.nbr-viewer-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nbr-viewer-content figure {
  margin: 0;
  max-width: 85vw;
  text-align: center;
}

.nbr-viewer-content img {
  display: block;
  max-width: 85vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.nbr-viewer-content figcaption {
  margin-top: 15px;
  font: italic 18px Georgia,serif;
}

.nbr-photo-viewer button {
  position: absolute;
  z-index: 2;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}

.nbr-viewer-close {
  top: 20px;
  right: 25px;
  font-size: 42px;
}

.nbr-viewer-prev,
.nbr-viewer-next {
  top: 45%;
  font-size: 60px;
}

.nbr-viewer-prev {left: 20px}
.nbr-viewer-next {right: 20px}

.nbr-viewer-counter {
  position: absolute;
  bottom: 25px;
  font-size: 12px;
  letter-spacing: .2em;
}

@media(max-width:650px) {
  .nbr-viewer-content figure {max-width:94vw}
  .nbr-viewer-content img {
    max-width:94vw;
    max-height:75vh;
  }
  .nbr-viewer-prev {left:3px}
  .nbr-viewer-next {right:3px}
  .nbr-viewer-prev,.nbr-viewer-next {font-size:42px}
}
