/* ==========================================================================
   Indigo Nicosia — popup.css
   Promo pop-up overlay (announcement poster shown on site entry).
   Loaded by layout.php only when the pop-up is active. Mobile-first.
   ========================================================================== */

.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(19, 18, 18, 0.85);
  padding: 16px;
  align-items: center;
  justify-content: center;
}
.popup-overlay.is-open { display: flex; animation: popup-fade 0.25s ease; }

/* Scroll lock while open (class set on <html> by popup.js) */
.popup-lock, .popup-lock body { overflow: hidden; }

.popup-box {
  position: relative;
  max-width: min(440px, 94vw);
  padding-bottom: 54px; /* reserved lane BELOW the poster for the close button — never overlaps */
  animation: popup-rise 0.3s ease;
}

.popup-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(80vh - 54px);   /* fallback */
  max-height: calc(82dvh - 54px);
  border-radius: 8px;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.55);
  display: block;
  margin: 0 auto;
}

.popup-close {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(19, 18, 18, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--color-white, #FFFFFF);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.popup-close:hover {
  background: rgba(19, 18, 18, 0.6);
  border-color: rgba(255, 255, 255, 0.75);
}
.popup-close:focus-visible { outline: 2px solid var(--color-white, #FFF); outline-offset: 2px; }

@keyframes popup-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes popup-rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
