/* Styles of cams.js that the shared sheet (flow.css, "CAMERAS") does not carry: the real picture inside a picture box,
   and what the box says while a camera cannot play. (Styles made at run time are forbidden by the Content-Security-Policy.) */

/* the real picture: under the box's own labels and buttons */
.sc>video{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;background:#000;pointer-events:none}
/* in the viewer nothing of the picture is cut off */
.vs .sc>video{object-fit:contain}
/* a camera that is asked for but has no picture yet keeps the idle face; the picture comes over it */
.sc[data-state=idle]>video,.sc[data-state=error]>video,.sc[data-state=off]>video{display:none}

/* could not start: the player's own words, and what can be done */
.sc[data-state=error]{background:radial-gradient(120% 90% at 30% 20%,#3a3f4f 0,#1f2430 60%,#151a23 100%)}
.sc[data-state=error] .sc-art{display:none}
.sc-no{max-width:34ch}
.sc-no p{overflow-wrap:anywhere}
.sc-acts{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 8px}
/* live, and the player has something to say (reconnecting, no picture yet): a slim line over the picture */
.sc-note{align-self:end;max-width:92%;margin-bottom:34px;padding:5px 9px;border-radius:9px;background:rgba(12,18,26,.72);font-size:13px;line-height:1.3;color:#fde9b0;overflow-wrap:anywhere}
/* no relay is set up on this copy of the site */
.sc-off{font-size:13px;color:#c9d2de}
/* a small box (two tiles side by side on a phone): what went wrong gets the whole box, so that the words are whole */
@container (max-width:215px){
  .sc[data-state=error] .sc-top,.sc[data-state=error] .sc-ctl{display:none}
  .sc[data-state=error] .sc-mid{padding:4px 6px}
  .sc-no{max-width:none;gap:2px}
  .sc-no p{font-size:12px;line-height:1.15;font-weight:600}
  .sc-acts{gap:0 6px}
  .sc-no .sc-link{padding:1px 3px;font-size:12px}
  /* connecting: the wheel and its words sit bottom left, clear of the camera's name and of the stop button */
  .sc[data-state=connecting] .sc-max{display:none}
  .sc[data-state=connecting] .sc-mid{place-items:end start;padding:0 46px 7px 8px}
  .sc-wait{flex-direction:row;align-items:center;gap:6px;text-align:left;font-size:12px;line-height:1.15}
  .sc-wait .spin{flex:none;width:16px;height:16px;border-width:2px}
  .sc-note{font-size:12px;line-height:1.15;margin-bottom:4px;max-width:calc(100% - 44px);justify-self:start;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
}
/* the small previews under the viewer never carry words */
.vf .sc-no,.vf .sc-note,.vf .sc-off{display:none}
.vf .sc>video{object-fit:cover}

/* the tile's line of live numbers is left out when there is nothing true to say */
.ct-r2[hidden]{display:none}

/* "Live right now": opened from the viewer too, so it sits above it */
.scrim.scrim-cam{z-index:115}
.wl-o{font-size:13px;color:var(--ink-3);white-space:nowrap}
.wl-none{padding:14px 0;font-size:14px;color:var(--ink-2)}

/* the numbers beside the picture: a calm line where a section is not visible to this account, or still loading */
.rl-gate{border-radius:16px;background:var(--card);padding:10px 12px;color:var(--ink)}
.rl-gate[hidden]{display:none}
.rl-h p[hidden]{display:none}

/* a phone: a long place name ("Loading point 3 & 4") is never cut; the viewer's buttons then take a row of their own */
@media (max-width:640px){
  .vw-h{flex-wrap:wrap;row-gap:6px}
  .vw-ttl{flex:1 1 auto}
}

/* the Live view band on a phone: when the pictures change places the row does not creep sideways with them */
.bd-row{overflow-anchor:none}

/* a camera's name and its line of numbers are never cut short: where the tile is too narrow they take a second line */
.ct-name,.ct-say{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.ct-r2{align-items:flex-start}
.ct-r2 .ic{flex:none;margin-top:1px}

/* a phone: the line of numbers under a picture (2 or 4 pictures) is never cut short; it takes a second line instead */
@media (max-width:640px){
  .vs-strip,.vw[data-layout="2"] .vs-strip{height:auto;min-height:36px;padding-top:7px;padding-bottom:7px;white-space:normal}
  .vs-strip b,.vs-long{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
}
