html { margin: 0; background: #fff; }
body { margin: 0; display: flow-root; }
[hidden] { display: none !important; }
.portable-fallback { margin: 0; padding: 18px; font: 14px/1.5 system-ui, sans-serif; text-align: center; color: #334155; }
.portable-fallback a { color: #153caa; }
.portable-no-portraits { grid-template-columns: 1fr; }
.okcmv-portraits[data-count="1"] .okcmv-profile { position: relative; transform: none; margin: auto; max-width: 340px; }
.okcmv-portraits:not([data-count="1"]):not([data-count="2"]) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; min-height: 0; }
.okcmv-portraits:not([data-count="1"]):not([data-count="2"]) .okcmv-profile { position: relative; inset: auto; width: 100%; transform: none; }
.okcmv-portraits[data-count="1"] { min-height: 0; display: block; }
.okcmv-profile img { object-fit: cover; }
/* The PDF canvas supplies its dimensions, including short landscape pages. */
.okcmv-page { min-height: 0; }
/* Keep both contact links reachable while retaining the two-person overlap. */
@media (min-width: 561px) {
  .okcmv-portraits[data-count="2"] .okcmv-profile { width: min(340px, 64%); }
  .okcmv-portraits[data-count="2"] .okcmv-doug > div { grid-template-columns: 1fr; }
  .okcmv-portraits[data-count="2"] .okcmv-doug a {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 7px;
  }
}
/* The parent supplies its viewport height, preventing iframe height feedback. */
@media (max-width: 900px) {
  .okcmv-stage { height: min(calc(var(--parent-vh, 8px) * 72), 720px); }
}
@media (max-width: 560px) {
  .okcmv-stage { height: min(calc(var(--parent-vh, 8px) * 66), 560px); }
}
.okcmv-reader:fullscreen .okcmv-stage { height: calc(100vh - 118px); max-height: none; }
@media (max-width: 900px) {
  /* Restored mobile actions need two complete rows, not the original five slots. */
  .okcmv-mobile-bar {
    height: 108px;
    grid-template-columns: repeat(5, minmax(44px, 1fr));
    grid-template-rows: repeat(2, 44px);
    gap: 4px;
    padding: 8px 10px;
  }
  .okcmv-mobile-bar [data-action="fullscreen"] { grid-column: 5; grid-row: 1; }
  .okcmv-mobile-bar [data-action="zoom-out"] { grid-column: 1; grid-row: 2; }
  .okcmv-mobile-bar [data-action="zoom-in"] { grid-column: 2; grid-row: 2; }
  .okcmv-mobile-bar [data-action="share"] { grid-column: 3; grid-row: 2; }
  .okcmv-mobile-bar [data-pdf-download] {
    grid-column: 4 / 6;
    grid-row: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 10px;
    color: #f7f8fb;
  }
  .okcmv-mobile-bar [data-pdf-download]:hover { background: rgba(255,255,255,.1); }
  .okcmv-reader:fullscreen .okcmv-stage {
    height: calc(100svh - 108px);
    min-height: 0;
  }
}
