/* Design renders full screen, PHONE ONLY (Camille 23 Oct 2026: "full phone only - add a function to allow TAP to view the
   render in full screen (no markers) and close as per normal - apply to both render images"). A tap on a render (not on a
   marker) opens it on its own: the whole render at the full height of the screen, without markers, and a finger slides
   along it (the render is wider than the phone and is never rotated). CLOSE X top right on the page margin (DESIGN.md 1.4),
   Escape or the phone's Back closes it. Pairs with render-view.js. */
@media (max-width:720px) {
 .render-view { position:fixed; inset:0; width:100vw; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:var(--sable-green); overflow:hidden; }
 .render-view:not([open]) { display:none; }
 .render-view::backdrop { background:var(--sable-green); }
 .render-view__track { position:absolute; inset:0; overflow-x:auto; overflow-y:hidden; overscroll-behavior:contain; scrollbar-width:none; -webkit-overflow-scrolling:touch; touch-action:pan-x; }
 .render-view__track::-webkit-scrollbar { display:none; }
 .render-view__track img { display:block; height:100%; width:auto; max-width:none; }
 .render-view__close.fbtn-x { position:absolute; z-index:2; top:max(20px, env(safe-area-inset-top)); right:var(--page,20px); }
 .material-render > img { cursor:zoom-in; }
}

@media (max-width:720px) { .render-view:focus, .render-view:focus-visible { outline:0; } }

/* Desktop (render-view.js): a click on a render (not a marker) floats the render alone over the page, as large as the screen
   allows below the header line, on a chalk veil (no blur, no feather). CLOSE X top right on the page margin, bark ink. */
@media (min-width:721px) {
 .render-view { position:fixed; inset:0; width:100vw; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:transparent; overflow:hidden; }
 .render-view:not([open]) { display:none; }
 .render-view::backdrop { background:transparent; }
 .render-view:focus, .render-view:focus-visible { outline:0; }
 .render-view__veil { position:absolute; inset:0; background:rgba(242,239,231,.94); }
 .render-view__track { position:absolute; inset:calc(var(--header-h,112px) + 8px) var(--page) 48px; display:flex; align-items:center; justify-content:center; pointer-events:none; }
 .render-view__track img { display:block; max-width:100%; max-height:100%; width:auto; height:auto; transform-origin:0 0; will-change:transform; pointer-events:auto; }
 .render-view__close.fbtn-x { position:absolute; z-index:2; top:var(--fullscreen-close-top,calc(clamp(30px,2.4vw,38px) - 5px)); right:var(--page,clamp(20px,4.1vw,72px)); } /* as fbtn-x--fullscreen, DESIGN.md 4.3 */
 .material-render > img { cursor:zoom-in; }
}
