/* Små mennesker: skisse på utkastadressen, ikke på holmestrandit.no. Laget er bygget som laget «Båter»:
   en flate like stor som bildet, med samme utsnitt og samme glidning, så figurene står der de er tegnet. */
.himmel--kyst .lag-smaa { position: absolute; inset: 0; container-type: size; pointer-events: none; }
.himmel--kyst .lag-smaa .flate {
  --hb: 100cqh; --u0: var(--u0-pc, 0); --cw: var(--cw-pc, 14125);
  position: absolute; left: 0; bottom: calc(100cqh - var(--hb));
  width: max(100vw, calc(var(--hb) * var(--cw) / 1620)); aspect-ratio: var(--cw) / 1620;
  --start: clamp(calc(100vw - 100%), calc(50vw - var(--kx) * 100%), 0px);
  transform: translateX(var(--start));
  animation: kyst-gli var(--kyst-tid) ease-in-out infinite;
}
.himmel--kyst .lag-smaa svg {
  position: absolute; top: 0; height: 100%;
  left: calc(var(--u0) / var(--cw) * -100%); width: calc(14125 / var(--cw) * 100%);
  overflow: visible; max-width: none; max-height: none;
}
@media (orientation: portrait), (max-width: 1199px) and (max-aspect-ratio: 16/10), (max-width: 1366px) and (max-aspect-ratio: 27/20) {
  .himmel--kyst .lag-smaa .flate { --u0: var(--u0-nb, 1600); --cw: var(--cw-nb, 4800); }
}
@media (max-aspect-ratio: 5/8) {
  .himmel--kyst .lag-smaa .flate { --u0: var(--u0-mob, 1620); --cw: var(--cw-mob, 3560); }
  .himmel--kyst.himmel--vid .lag-smaa .flate { --hb: var(--vid-h); }
}
@media (prefers-reduced-motion: reduce) {
  .himmel--kyst .lag-smaa .flate { animation: none; }
}
/* Laget står rett før «Båter» i siden, så båtene og lyset ligger foran figurene */
.smaa-merke {
  position: fixed; right: 12px; bottom: 12px; z-index: 50; max-width: 320px;
  background: #0f2f4a; color: #fff; font: 14px/1.4 system-ui, sans-serif;
  padding: 10px 14px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.smaa-merke a { color: #ffd27a; }
.smaa-merke button { float: right; margin: -4px -6px 0 8px; background: none; border: 0; color: #fff; font-size: 18px; cursor: pointer; }
@media (max-width: 600px) { .smaa-merke { font-size: 12px; left: 12px; max-width: none; } }
