/* St. John Almanac: the living island as an opening picture. Tokens only. The still holds the box; the model is laid over it. */
.lh { position: relative; overflow: hidden; background: var(--forest); }
.lh-still { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: cover; }
.lh canvas { position: absolute; inset: 0; display: block; width: 100%; opacity: 0; transition: opacity 0.9s ease; touch-action: pan-y; cursor: grab; outline-offset: -3px; }
.lh canvas:active { cursor: grabbing; }
.lh--live canvas { opacity: 1; }
.lh--rest canvas { opacity: 0; pointer-events: none; }
.lh-say { position: absolute; z-index: 2; left: var(--gutter-l, 1rem); right: var(--gutter-r, 1rem); bottom: 0.6rem; max-width: 40rem; margin: 0; pointer-events: none; font: 500 0.75rem/1.35 var(--text); color: var(--on-photo); text-shadow: 0 1px 6px rgba(var(--photo-shade), 0.95), 0 0 2px rgba(var(--photo-shade), 0.9); }
.lh-tools { position: absolute; z-index: 2; right: var(--gutter-r, 1rem); top: 0.9rem; display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; max-width: 80%; }
.lh-tool { display: inline-flex; align-items: center; gap: 0.35rem; font: 600 0.8125rem/1 var(--text); color: var(--on-forest); background: color-mix(in srgb, var(--forest) 82%, transparent); border: 1px solid color-mix(in srgb, var(--on-forest) 45%, transparent); border-radius: 999px; padding: 0.5rem 0.8rem; cursor: pointer; text-decoration: none; }
.lh-tool[hidden] { display: none; }
.lh-tool[aria-pressed="true"], .lh-open { background: var(--gold-bright); color: var(--forest); border-color: var(--gold-bright); }
.lh-tool:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.lh-here { padding: 0.42rem 0.55rem; }
.lh-place { position: absolute; z-index: 2; left: 0; top: 0; margin: 0; pointer-events: none; white-space: nowrap; font: 600 0.84rem/1 var(--text); color: var(--on-forest); background: color-mix(in srgb, var(--forest) 88%, transparent); padding: 0.32rem 0.7rem; border-radius: 999px; }
.lh-place[hidden] { display: none; }
.lh-frames { flex: 1 1 100%; margin: 0; padding: 0.35rem 0.55rem; border-radius: 0.4rem; pointer-events: none; font: 600 0.75rem/1.35 var(--text); font-variant-numeric: tabular-nums; color: var(--on-forest); background: color-mix(in srgb, var(--forest) 88%, transparent); }      /* a row of its own under the controls, whatever rows they take */
.lh-frames[hidden] { display: none; }
@media (max-width: 36rem) { .lh-tool { font-size: 0.75rem; padding: 0.42rem 0.62rem; } .lh-frames-btn { display: none; } .lh-frames-btn[aria-pressed="true"] { display: inline-flex; } }
.lh--bare .lh-say, .lh--bare .lh-tools, .lh--bare .lh-place, .lh--bare .lh-frames { display: none; }      /* for a picture of the model alone */
.lh-why { position: absolute; z-index: 3; left: var(--gutter-l, 1rem); right: var(--gutter-r, 1rem); bottom: 0.7rem; max-width: 30rem; margin: 0; padding: 0.55rem 0.8rem; border-radius: 0.6rem; font: 500 0.875rem/1.4 var(--text); color: var(--on-forest); background: color-mix(in srgb, var(--forest) 93%, transparent); }
.lh--why .lh-say { display: none; }      /* the caption stands aside while the line that says why is shown */
.lh-why[hidden] { display: none; }
.lh-why a { color: var(--gold-bright); }
.lh--bare .lh-why { display: none; }
.lh-why-btn { font: inherit; font-weight: 600; color: var(--forest); background: var(--gold-bright); border: 0; border-radius: 999px; padding: 0.3rem 0.7rem; cursor: pointer; }
.lh-why-btn:focus-visible { outline: 3px solid var(--on-forest); outline-offset: 2px; }
