
/* === Additive Postcard Enhancements (PCX) ===
 * Scope: .pcx-* only, plus lightbox overlay injected by JS.
 * Safe: No global resets; no changes to existing sizing/layout.
 */

/* Lightbox overlay */
.pcx-lightbox[hidden] { display: none !important; }
.pcx-lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.6);
  z-index: 9999;
  padding: 20px;
}
.pcx-lightbox__img {
  max-width: min(92vw, 1200px);
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0,0,0,.35);
  background: #fff;
}
.pcx-lightbox__cap {
  margin-top: 10px;
  color: #fff;
  text-align: center;
  font: 600 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}
.pcx-lightbox__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,.95);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

/* Optional: gentle focus ring for keyboard users on postcard cards without changing layout */
.pcx-focus-ring:focus {
  outline: 2px solid rgba(99,102,241,.75);
  outline-offset: 3px;
  border-radius: 10px;
}
