.popup-overlay{
  position:fixed !important;
  inset:0 !important;
  background:rgba(0,0,0,.35) !important;
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
  z-index:999999 !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:20px !important;
}

.popup-box{
  position:relative !important;
  display:inline-block !important;

  width:auto !important;
  max-width:90vw !important;

  padding:0 !important;
  background:transparent !important;

  border-radius:22px !important;
  overflow:hidden !important;

  box-shadow:0 20px 60px rgba(0,0,0,.35) !important;
  animation:popupShow .25s ease;
}

.popup-box img{
  display:block !important;

  width:auto !important;
  height:auto !important;

  max-width:90vw !important;
  max-height:78vh !important;

  object-fit:contain !important;
  background:transparent !important;
  border-radius:22px !important;
}

.popup-content{
  display:none !important;
}

.popup-close{
  position:absolute;
  top:12px;
  right:12px;
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:#7b001c;
  color:#fff;
  font-size:20px;
  cursor:pointer;
  z-index:2;
}

.popup-close:hover{
  background:#b00030;
}

@keyframes popupShow{
  from{
    opacity:0;
    transform:translateY(20px) scale(.96);
  }
  to{
    opacity:1;
    transform:none;
  }
}

@media(max-width:600px){
  .popup-box img{
    max-width:94vw !important;
    max-height:72vh !important;
  }
}