/* Kuula-like overlay (full viewport) — no browser Fullscreen API required */
.p360-overlay{
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: none; /* hidden by default */
}
.p360-overlay.is-open{ display:block; }

.p360-ov-frame{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100dvh;            /* use dvh (fixes iOS Chrome/Edge toolbar jumps) */
  border: 0;
  display: block;
  background: #000;
}

/* iOS WKWebView fallback */
@supports (-webkit-touch-callout: none) {
  .p360-ov-frame{ height: -webkit-fill-available; }
}

.p360-ov-close{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(17,24,39,.78);
  color: #fff;
  font: 700 20px/1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.p360-ov-close:hover{ background: rgba(17,24,39,.92); }

/* Lock scroll on page when overlay is active */
.p360-lock{ overflow: hidden; }
