/* Overlay */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 99999999;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* When active */
.popup.show {
  display: flex;
  opacity: 1;
}

/* Popup Box */
.popup-content {
  width: 90%;
  max-width: 90vw;
  height: 90%;
  max-height: 90vh;
  position: relative;
  filter: drop-shadow(0 9px 7px rgb(0 0 0 / 0.1));
  transform: translateY(-20vh);
  transition: transform 0.75s ease;
}

.popup-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Slide-down animation when active */
.popup.show .popup-content {
  transform: translateY(0);
}

/* Close Button */
.close-btn {
  color: #fff;
  filter: drop-shadow(0 9px 7px rgb(0 0 0 / 0.1));
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 4rem;
  cursor: pointer;
}
