@charset "UTF-8";

:root {
  --bg: #0f0f13;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ------------ Popup ------------ */
.popup {
  position: relative;
  width: min(90vw, 320px);
  background: var(--bg);
  /* overflow: hidden; */
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.35);
}
.overlay.visible .popup {
  transform: translateY(0) scale(1);
}

.popup-image-wrap {
  display: block;
  background: rgba(255, 255, 255, .85);
  width: 100%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.popup-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s ease !important;
}

@media (any-hover: hover) {
  .popup-image-wrap:hover img {
    opacity: .75 !important;
  }
}

/* close */
.popup-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background: #F86C33;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 101;
  transition: background 0.25s, border-color 0.25s;
}
.popup-close::before,
.popup-close::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 1.5px;
  background-color: #fff;
  border-radius: 1px;
  transition: background 0.35s;
}
.popup-close::before { transform: rotate(45deg); }
.popup-close::after  { transform: rotate(-45deg); }

@keyframes fadeIn {
  to { opacity: 1; }
}

@media (any-hover: hover) {
  .popup-close:hover {
    background: #fff;
    border-color: #F86C33;
  }
  .popup-close:hover::before,
  .popup-close:hover::after {
    background-color: #F86C33;
  }
}
