.dnp-popup {
  box-sizing: border-box;
  width: min(570px, calc(100vw - 36px));
  max-width: none;
  max-height: calc(100dvh - 36px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: 0 24px 80px rgba(14, 28, 15, .30);
}

.dnp-popup::backdrop { background: rgba(29, 39, 31, .62); }

.dnp-popup__image-link { display: block; line-height: 0; border-radius: inherit; }

.dnp-popup__image {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 36px);
  height: auto;
  object-fit: contain;
  border-radius: inherit;
}

.dnp-popup__close {
  position: absolute;
  top: -18px;
  right: -18px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #465847;
  font: 29px/1 Arial, sans-serif;
  box-shadow: 0 6px 22px rgba(14, 28, 15, .22);
  cursor: pointer;
}

.dnp-popup__close:hover { background: #f4f0e8; }
.dnp-popup__close:focus-visible,
.dnp-popup__image-link:focus-visible { outline: 3px solid #5b6e5f; outline-offset: 3px; }

@media (max-width: 599px) {
  .dnp-popup { width: min(350px, calc(100vw - 32px)); }
  .dnp-popup__close { top: -13px; right: -8px; }
}
