#entry-popup-stage.modal { align-items: center; padding: 12px; }
.entry-popup-stage.modal-box {
  width: min(560px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
  background: var(--modal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.entry-popup-stage .modal-head {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
}
.entry-popup-stage .modal-x {
  width: 38px;
  height: 38px;
  background: rgba(5, 10, 20, .85);
  border: 1px solid var(--border);
  border-radius: 50%;
}
.entry-popup-stage picture,
.entry-popup-stage picture img { display: block; width: 100%; }
.entry-popup-stage picture img { height: auto; max-height: calc(100dvh - 24px); object-fit: contain; }
