.sip_popup {
  position: relative;
  background: #fff;
  padding: 5px;
  width: auto;
  margin: 20px auto;
}

.sip_popup .sip_inner_image {
  width: 100%;
}

.mfp-wrap {
  z-index: 99999 !important;
}

.mfp-bg {
  z-index: 88888 !important;
}

body.simple-image-popup-open {
  overflow: hidden;
}

.simple-image-popup-plugin {
  z-index: 999999 !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.72);
  overflow: auto;
  padding: 24px;
  box-sizing: border-box;
}

.simple-image-popup-plugin__inner {
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  margin: 0 auto;
  max-width: calc(100vw - 48px) !important;
  max-height: calc(100vh - 48px);
  outline: none;
}

.simple-image-popup-plugin__icon {
  width: 15px;
  height: 15px;
  fill: #fff;
}

#simple-image-popup-plugin__close {
  border-radius: 100%;
  height: 30px;
  width: 30px;
  background: #999;
  color: #000;
  cursor: pointer;
  transition: 0.25s ease all;
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  z-index: 2;
}

#simple-image-popup-plugin__close:hover {
  background: #333;
  color: #fff;
}

.simple-image-popup-plugin__image {
  width: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  display: block;
}

@media screen and (max-width: 480px) {
  .simple-image-popup-plugin {
    padding: 16px;
  }

  .simple-image-popup-plugin__inner {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
  }

  .simple-image-popup-plugin__image {
    max-height: calc(100vh - 32px);
  }
}
