/* ===== Popup banner ===================================================
   Site-wide modal that shows a single PNG on page load.
   Revertable: delete this file + popup-banner.js + their link tags.
   ====================================================================== */

.pism-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.pism-popup.is-open {
  display: flex;
  opacity: 1;
}

.pism-popup__inner {
  position: relative;
  max-width: min(92vw, 720px);
  max-height: 90vh;
  transform: scale(0.96);
  transition: transform 260ms cubic-bezier(0.2, 1, 0.32, 1);
}

.pism-popup.is-open .pism-popup__inner {
  transform: scale(1);
}

.pism-popup__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
}

.pism-popup__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 180ms ease, background 180ms ease;
  padding: 0;
}

.pism-popup__close:hover {
  background: #f1f5f9;
  transform: rotate(90deg);
}

.pism-popup__close svg {
  width: 18px;
  height: 18px;
}

/* Optional clickable link wrapping the image */
.pism-popup__link {
  display: block;
  border-radius: 14px;
  overflow: hidden;
}
