/* k0dns.us image popup (js/popup.js). Same look as the old modal.popup.js. */

dialog.k0-popup {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 95vw;
  max-height: calc(100vh - 40px);
  overflow: visible;
  opacity: 1;
  transition: opacity 0.3s;
}

dialog.k0-popup::backdrop {
  background: rgba(102, 102, 102, 0.4);   /* #666666 at 40% */
  transition: opacity 0.3s;
}

dialog.k0-popup.k0-closing,
dialog.k0-popup.k0-closing::backdrop {
  opacity: 0;
}

.k0-popup-box {
  background: #ffffff;
  border: 4px solid #333333;
  border-radius: 5px;
  padding: 10px;
  max-height: calc(100vh - 80px);
  overflow: auto;
  text-align: center;
}

.k0-popup-box img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.k0-popup-box img.k0-popup-loading {
  display: inline-block;
  max-width: none;
}
