.we88-popup {
  padding: 0;
  border: 0;
  border-radius: 8px;
  width: max-content;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  overflow: visible;
  color: #fff;
  background: #101114;
  box-shadow: 0 18px 65px rgba(0, 0, 0, .55);
}
.we88-popup:not([open]) { display: none; }
.we88-popup::backdrop { background: rgba(0, 0, 0, .76); }
.we88-popup__media { display: block; border-radius: 8px; overflow: hidden; }
.we88-popup__image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  object-fit: contain;
  border: 0;
  margin: 0;
}
.we88-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  color: #fff;
  background: #17191d;
  cursor: pointer;
  font: 30px/1 Arial, sans-serif;
  letter-spacing: 0;
}
.we88-popup__close:hover { background: #34383f; }
.we88-popup__close:focus-visible,
.we88-popup__media:focus-visible { outline: 3px solid #ffd447; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .we88-popup[open] { animation: we88-popup-enter .14s ease-out; }
  @keyframes we88-popup-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
}
