/* Overlay + centered popup */
.apmbp-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  z-index: 999999;
  display:flex;
  justify-content:center;
  align-items:center;
  background: rgba(0,0,0,0.45);
}

/* popup container */
.apmbp-popup {
  position: relative;
  max-width: 640px;
  width: calc(100% - 48px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}

/* responsive image */
.apmbp-popup img {
  width:100%;
  height:auto;
  display:block;
  border-radius: 8px;
  cursor: pointer;
}

/* mobile: make popup almost full-screen and centered */
@media (max-width: 480px) {
  .apmbp-popup {
    max-width: 420px;
    width: calc(100% - 24px);
    border-radius: 8px;
  }
}
