html.ehp-lock { overflow: hidden; }
.ehp-overlay {
  position: fixed; inset: 0; z-index: 999999;
  display: grid; place-items: center; padding: 20px;
  background: rgba(0,0,0,.78); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, visibility 0s linear .18s;
}
/* Author CSS can override the browser's native [hidden] rule, so force it here. */
.ehp-overlay[hidden] { display: none !important; }
.ehp-overlay.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .18s ease;
}
.ehp-card {
  position: relative; width: min(92vw, 620px); max-height: 90vh; overflow: auto;
  background: #101114; color: #fff; border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.58);
  transform: translateY(12px) scale(.985); transition: transform .18s ease;
}
.ehp-overlay.is-open .ehp-card { transform: translateY(0) scale(1); }
.ehp-close {
  position: absolute; top: 10px; right: 12px; z-index: 3;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.66); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.ehp-media { background: #050505; }
.ehp-media img, .ehp-media video { display: block; width: 100%; max-height: 52vh; object-fit: contain; }
.ehp-content { padding: 26px 28px 30px; text-align: center; }
.ehp-content h2 { margin: 0 0 12px; color: #fff; font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.03; letter-spacing: .02em; }
.ehp-body { color: rgba(255,255,255,.86); font-size: 1.05rem; line-height: 1.55; }
.ehp-body p:first-child { margin-top: 0; }
.ehp-body p:last-child { margin-bottom: 0; }
.ehp-cta {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 22px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: #c82333; color: #fff !important; text-decoration: none !important;
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(200,35,51,.28); transition: transform .15s ease, filter .15s ease;
}
.ehp-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }
@media (max-width: 520px) {
  .ehp-overlay { padding: 12px; }
  .ehp-card { width: 100%; border-radius: 14px; }
  .ehp-content { padding: 22px 18px 24px; }
  .ehp-media img, .ehp-media video { max-height: 45vh; }
}
