/* §323 SELF-FITTING VIDEOS — presentation only; video files are never altered.
   On load the system detects each video's own shape (video-fit.js sets
   aspect-ratio from the element's own videoWidth/videoHeight on
   loadedmetadata and adds vf-landscape / vf-portrait / vf-square) and
   fits it into its frame: width 100%, height auto, centred, the WHOLE
   video shown (object-fit: contain) — never stretched, never squashed,
   never band-cropped — with an even presentation beside its neighbours.
   The poster / first frame is fitted the same way: video-fit.js takes
   the frame's shape from the poster image until the metadata arrives,
   then the video's own dimensions rule. Outside embeds (YouTube,
   Vimeo, ...) are wrapped by video-fit.js in a .video-fit-embed frame
   whose aspect-ratio comes from the embed's own width/height when it
   carries them (16/9 when it does not); the frame is ours — the
   presentation inside it remains the outside player's own. */
video{width:100%;height:auto;max-width:100%;object-fit:contain;object-position:center center;display:block;background:#000}
video.vf-landscape,video.vf-portrait,video.vf-square{object-position:center center}
.video-fit-embed{position:relative;width:100%;max-width:100%;margin-left:auto;margin-right:auto}
.video-fit-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
