/* ── Overlay ─────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Popup ───────────────────────────────────────── */
.popup {
  position: relative;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 90vw;
  max-height: 90vh;
  display: inline-flex;
}

.popup-overlay.active .popup {
  transform: translateY(0) scale(1);
}

/* ── Bild ────────────────────────────────────────── */
.popup img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
}

/* ── Close-Button ────────────────────────────────── */
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

.popup-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.popup-close svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
}
