/* .awp-screen-popup-public {
} */

.awp-screen-popup-widget {
  .overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 10000;
  }

  .popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
    height: 70%;
    animation: fadeIn 2s;
    padding: 20px;
    /* background-color: rgb(221, 221, 221); */
  }

  .popup a:hover {
    opacity: 0.7;
  }

  .popup-img {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .close-button {
    position: absolute;
    right: 0;
    top: 0;
    width: 25px;
    height: 25px;
    cursor: pointer;
  }

  .close-button:before {
    content: "";
    width: 20px;
    height: 3px;
    background-color: #000;
    position: absolute;
    top: 12px;
    right: 3.5px;
    transform: rotate(45deg);
  }

  .close-button:after {
    content: "";
    width: 20px;
    height: 3px;
    background-color: #000;
    position: absolute;
    top: 12px;
    right: 3.5px;
    transform: rotate(-45deg);
  }

  @keyframes fadeIn {
    0% {
      opacity: 0;
    }

    100% {
      opacity: 1;
    }
  }

  @media screen and (max-width: 1170px) {
    .popup {
      height: auto;
    }
  }

  @media screen and (max-width: 768px) {
    .popup {
      width: 90%;
      height: auto;
      padding: 4%;
    }

    .close-button {
      width: 20px;
      height: 20px;
    }

    .close-button:before {
      width: 15px;
    }

    .close-button::after {
      width: 15px;
    }
  }
}
