img {
  max-width: 100% !important;
  width: 100%;
}

div:has(> img:only-child) {
  left: 0px !important;
  top: 0px !important;
}

.custom-modal {
  position: fixed;
  z-index: 1;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -60%);
  max-width: 500px;
}

.custom-modal .close-popup {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  position: absolute;
  right: 0px;
  top: 20px;
  background: #000;
  line-height: 1;
  padding: 0px 6px;
  border-radius: 5px;
}

@media screen and (max-width: 500px) {
  .custom-modal {
    width: 90%;
    padding-left: 0px;
  }
}
