/** @format */

body.popup-open {
  overflow: hidden;
}

.custom-pop-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  padding: 15px;
  display: -webkit-flex;
  display: -moz-flex;
  display: -o-flex;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-pop-overlay .pop {
  position: relative;
  background: none;
  border-radius: 10px;
  opacity: 0;
}

.custom-pop-overlay button {
  position: absolute;
  display: -webkit-flex;
  display: -moz-flex;
  display: -o-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 10px;
  right: 10px;
  font-size: 1rem;
  color: #000;
  cursor: pointer;
  padding: 5px;
  width: 40px;
  height: 40px;
  background: #fff;
  z-index: 1000;
}

.custom-pop-overlay button:hover,
.custom-pop-overlay button:focus-visible {
  background: #000;
  color: #fff;
}

.custom-pop-overlay img {
  max-width: 100%;
  height: auto;
}

@media screen and (min-width: 1025px) and (max-height: 700px) {
  .custom-pop-overlay .pop {
    max-height: 80vh;
    overflow-y: auto;
  }
}

/* Animation classes (as needed) */
.animated {
  animation-duration: 0.3s;
  animation-fill-mode: both;
}

.fadeIn {
  animation-name: fadeIn;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
