/* Home "Give way" wall. Colours come from the template's look (--paper, --ink, --sale, --walk, --port, --accent), with fallbacks. */
.gs-blocks-wrap { position: relative; }
.gs-blocks { position: relative; height: calc(100vh - var(--hd-h, 64px)); height: calc(100svh - var(--hd-h, 64px)); min-height: 480px;
  overflow: hidden; background: var(--grain, none) var(--paper, #151412); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.gs-blocks .blk { position: absolute; overflow: hidden; display: block; color: inherit; text-decoration: none; background: #222; will-change: transform; cursor: grab; }
.gs-blocks .blk img, .gs-blocks .phc img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
@media (hover: hover) { .gs-blocks .blk:hover img { transform: scale(1.04); transition: transform .5s; } }
.gs-blocks .tag { position: absolute; left: 10px; bottom: 10px; background: var(--card, #fffdf7); color: var(--ink, #23211d);
  font: 600 12px/1 var(--f-ui, serif); padding: 6px 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }

/* loose cards in the physics pile */
.gs-blocks .phc { position: absolute; left: 0; top: 0; z-index: 20; background: var(--card, #fffdf7); padding: 6px; cursor: grab;
  will-change: transform; box-shadow: 0 8px 18px rgba(0, 0, 0, .45); }
.gs-blocks .phc:active { cursor: grabbing; }
.gs-blocks .phc.fizz { filter: brightness(1.2) saturate(1.5); }
.gs-blocks .phc.fizz > * { animation: gs-fizz .09s steps(2) infinite; }
@keyframes gs-fizz { 0% { transform: translate(1.5px, -1px); } 100% { transform: translate(-1.5px, 1px); } }
.gs-blocks .shards { position: absolute; z-index: 22; pointer-events: none; }
.gs-blocks .shards > * { position: absolute !important; left: 0 !important; top: 0 !important; box-shadow: none !important; will-change: transform; }
.gs-blocks .puff { position: absolute; z-index: 23; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 242, 235, .9) 0%, rgba(245, 242, 235, .45) 40%, rgba(245, 242, 235, 0) 70%); }

/* text cards: sizes come from --u (the cell height) */
.gs-blocks .tx { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--u) * .09) calc(var(--u) * .12);
  font-size: calc(var(--u) * .095); line-height: 1.15; cursor: pointer; }
.gs-blocks .tx .big { font: var(--head-weight, 400) 1.25em/1.12 var(--f-serif, Georgia, serif); }
.gs-blocks .tx .sm { font: 700 1.25em/1.1 var(--f-hand, cursive); margin-top: .45em; }
.gs-blocks .tx.span3 { font-size: calc(var(--u) * .24); padding: calc(var(--u) * .3) calc(var(--u) * .34); }
.gs-blocks .tx.span2 { font-size: calc(var(--u) * .17); padding: calc(var(--u) * .2) calc(var(--u) * .24); }
.gs-blocks .tx.paper { background: var(--card, #efe7d6); color: var(--ink, #23211d); }
.gs-blocks .tx.paper .sm { color: var(--accent, #c8402c); }
.gs-blocks .tx.ink { background: var(--ink, #26241f); color: var(--paper, #f1eadb); }
.gs-blocks .tx.ink .sm { color: var(--accent, #ffcf4a); }
.gs-blocks .tx.sale { background: var(--sale, #ffcf4a); color: var(--sale-ink, #1b1a16); }
.gs-blocks .tx.walk { background: var(--walk, #2f5d46); color: #fff; }
.gs-blocks .tx.port { background: var(--port, #8f3b28); color: #fff; }
.gs-blocks .phc.tx { padding: calc(var(--u) * .09) calc(var(--u) * .12); }

.gs-blocks-hint, .gs-wall-hint { position: absolute; right: 12px; bottom: 10px; z-index: 25; font: 700 1.1rem/1 var(--f-hand, cursive);
  color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); pointer-events: none; opacity: .9; }
.gs-blocks-below { max-width: 1100px; margin: 0 auto; padding: 2.5rem clamp(1rem, 3vw, 2.5rem) 0; }
.gs-blocks-below h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
.gs-blocks-below p { font-size: 1.2rem; max-width: 38rem; }

/* the wall goes edge to edge: the page's usual side margins come off on this page only */
.main:has(.gs-blocks-wrap) { max-width: none; padding: 0 0 3rem; }

/* hand-drawn 'print available' label: white writing with a dark edge so it reads on any picture */

/* upright pictures are shown whole: fitted inside the cell, on a dark mat (the wall's cells are wide) */
.gs-blocks .blk.tall > img:first-child, .gs-blocks .phc.tall > img:first-child { object-fit: contain; background: #2a2926; }
/* hand-drawn labels: a wrapper (position, size, tilt, soft edge) around a stencil filled with the chosen shade */
.gs-blocks .hl { position: absolute; display: block; width: calc(var(--u) * .8 * var(--k, 1) * var(--s, 1)); max-width: 80%; pointer-events: none; transform: rotate(var(--r, -4deg)); filter: drop-shadow(0 1px 2px var(--hs, rgba(0,0,0,.7))) drop-shadow(0 0 6px var(--hs, rgba(0,0,0,.5))); }
.gs-blocks .phc .hl { width: calc(42% * var(--s, 1)); }
.gs-blocks .hl__ink { display: block; width: 100%; height: 100%; background: var(--hc, #fff); -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }

/* Dartmoor, right now (weather.js): the real weather over the wall */
canvas.gs-wx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 25; }
.gs-blocks[data-wx="rain"] .blk:not(.tx) img, .gs-blocks[data-wx="storm"] .blk:not(.tx) img { filter: brightness(.78) saturate(.72) contrast(1.05); }
.gs-blocks[data-wx="mist"] .blk:not(.tx) img, .gs-blocks[data-wx="mizzle"] .blk:not(.tx) img { filter: saturate(.7) contrast(.86) brightness(1.04); }
.gs-blocks[data-wx="snow"] .blk:not(.tx) img { filter: saturate(.75) brightness(1.06); }
.gs-blocks[data-wx="clear"] .blk:not(.tx) img { filter: saturate(1.12); }
.gs-blocks[data-night="1"] .blk { filter: brightness(.5) saturate(.6); }
.gs-wx-plaque { position: fixed; left: 16px; bottom: 64px; z-index: 30; background: #fffdf7; color: #1d2124; padding: 10px 14px; box-shadow: 0 6px 18px rgba(0,0,0,.35); font: 400 15px/1.35 Georgia, serif; max-width: 330px; transform: rotate(-1deg); }
.gs-wx-plaque[hidden] { display: none; }
.gs-wx-plaque b { display: block; font: 600 11px/1 var(--f-ui, serif); letter-spacing: .14em; text-transform: uppercase; color: #6b6457; margin-bottom: 5px; }
.gs-wx-plaque .big { font-size: 22px; line-height: 1.1; display: block; }
.gs-wx-plaque .sm { font: 700 17px/1.1 cursive; color: #4a6e3a; display: block; margin-top: 3px; }
.gs-wx-try { position: fixed; left: 16px; bottom: 16px; z-index: 31; background: #1d2124; color: #fff; padding: 6px 10px; font: 13px/1.2 var(--f-ui, serif); border-radius: 3px; }
.gs-wx-try button { font: inherit; margin-left: 3px; padding: 3px 7px; border: 1px solid rgba(255,255,255,.5); background: none; color: inherit; border-radius: 2px; cursor: pointer; }
@media (max-width: 700px) { .gs-wx-plaque { left: 8px; bottom: 70px; max-width: 220px; font-size: 13px; } .gs-wx-plaque .big { font-size: 17px; } }

/* how-cards-vanish chooser (?fx=pick) */
.gs-fx-pick { position: fixed; right: 16px; bottom: 130px; z-index: 31; background: #1d2124; color: #fff; padding: 10px 14px; border-radius: 4px; font: 14px/1.5 var(--f-ui, serif); box-shadow: 0 6px 18px rgba(0,0,0,.4); max-width: 250px; }
.gs-fx-pick b { display: block; margin-bottom: 4px; }
.gs-fx-pick label { display: block; cursor: pointer; }
.gs-fx-pick button { margin-top: 6px; font: inherit; padding: 4px 12px; border: 1px solid #fff; background: none; color: inherit; border-radius: 3px; cursor: pointer; }
.gs-fx-pick small { display: block; margin-top: 6px; opacity: .65; font-size: 11px; line-height: 1.3; }
