/* ==========================================================================
   EXP.001 — G4.5 / Logomark — styles.css (DESIGN layer)
   G4.4's stylesheet; G4.5 additions marked "G4.5": the logomark in the
   header (instead of RM.), the colophon of the footer, the tone-on-tone mark
   of About, its single appearance motion. The mark is inline SVG
   (shared/brand/logomark.js), fill = currentColor: its colour is `color`.

   EXP.001 — G4 / Random Edition — styles.css (DESIGN layer)
   G3's stylesheet, unchanged (G4 changes the content, not the design).

   EXP.001 — G3 / Thirteen Disciplines — styles.css (DESIGN layer)
   G.2's stylesheet, unchanged in its choices. G3 additions, marked "G3":
   the Lightbox on the ground of the site (90 %), the 'motion' cell placed
   at the end of a row, the editorial masonry.

   (G.2 notes follow.)

   EXP.001 — G.2 / Index — Refinement — styles.css (DESIGN layer)
   G (Swiss Modernism × Digital Portfolio), refined. Less, but better.

   Built on the global master grid (shared/design-system/master-grid.css,
   loaded first): .mg-page frames, .mg-grid compositions, --mg-* constants,
   spacing and type scales. No local grid, margin or gutter.

   G.2 — THE MARGINAL COLUMN (desktop, >= 1024 px)

     | margin | marginal | g |  1  2  3  4  5  6  7  8  9 10 11 12 | margin |
       64 px    88 px     24                                          64 px
              <------ --mg-index (112 px) ---->

   G's left margin looked larger than the right one because the master grid
   adds the index margin (--mg-index) to the left only, and G left it almost
   empty. G.2 makes it a column of the composition, of constant width:
   the marginal column = --mg-index minus one gutter (88 px), separated from
   column 1 by a gutter. It is not a 13th column of content: it carries the
   chapter numbers, the section letters and the mark RM. — nothing else.
   The outer margins are equal (64 | 64); the rules that open the chapters
   span the whole frame, marginal column included. Tablet and phone: no
   marginal column (--mg-index = 0), the marks return inline.

   Two axes for the whole site: column 1 (titles, labels, images) and
   column 7 (secondary information, texts) — column 5 on tablet; stacked on
   phone. Breakpoints: 768 / 1024 px (as in master-grid.css).

   One sans-serif family (neo-grotesque, --font-sans). Hierarchy by size,
   weight and space only. No radius, no shadow, no gradient. The colour
   comes from the works.
   ========================================================================== */

:root {
  --g-bg: #F7F7F5;
  --g-ink: #151515;
  --g-grey: #6B6B67;     /* secondary text (contrast ≥ 4.5 on --g-bg) */
  --g-mute: #A9A9A4;     /* large secondary numbers, dimmed index */
  --g-rule: #151515;
  --g-head: 64px;        /* height of the header */
  --g-head-bar: var(--g-head);   /* G4.8: height of the sticky header */
  --g-fast: 160ms;
  --g-ease: cubic-bezier(.2, 0, 0, 1);
  /* The marginal column (desktop): the index margin minus one gutter. */
  --g-marginal: calc(var(--mg-index) - var(--mg-gutter));
  /* LOGOMARK / CHAPTER NUMBERS — non-negotiable rule of the art direction
     (G5.0, 30.11.2026): the visible height of the header logomark is NEVER
     smaller than the visible height of the chapter numbers — homepage,
     About, every gallery, every width (not only the breakpoints).
     Single source of truth, here and nowhere else:
       --g-rm-h      visible height of the header logomark = its box height
                     (the SVG has no inner margin: viewBox 0 0 512 390 = the
                     bounds of the path). Phone: 28 px wide (compact header);
                     768 px and up: sized on the h2 figures (below).
       --g-figure    visible height of the figures per em (ink of 0–9,
                     overshoot included, measured in the real font by g.js;
                     .72 = Helvetica Neue until measured).
       --g-mark-max  the largest font size a chapter number may take: its
                     figures are then 6 % lower than the logomark (margin for
                     rounding and rendering). Derived from the logomark, so a
                     smaller logomark makes smaller numbers — never the reverse.
     Every chapter number is capped with min(…, var(--g-mark-max)); the
     titles keep their own size. On phone the numbers shrink (the logomark
     stays compact). Check: tools/check-mark-hierarchy.py. */
  --g-figure: .72;
  --g-rm-h: calc(28px * 390 / 512);
  --g-mark-max: calc(var(--g-rm-h) / (var(--g-figure) * 1.06));
  /* G3 — the Lightbox: exactly the ground of the site, at 90 %. */
  --g-lb-bg: rgba(247, 247, 245, .9);
  --g-lb-bg: color-mix(in srgb, var(--g-bg) 90%, transparent);
}
/* 768 px and up: the logomark follows the figures of an h2 heading, + 6 %
   (so --g-mark-max = the h2 size: tablet and desktop unchanged). */
@media (min-width: 768px) {
  :root { --g-rm-h: calc(var(--type-h2) * var(--g-figure) * 1.06); }
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--g-bg); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--g-bg);
  color: var(--g-ink);
  font-family: var(--font-sans);
  font-size: var(--type-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

:focus { outline: none; }
:focus-visible { outline: 1px solid var(--g-ink); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }

.g-skip { position: absolute; left: -9999px; top: 0; }
.g-skip:focus { left: var(--mg-margin); top: 8px; z-index: 100; background: var(--g-bg); padding: 4px 8px; }

/* ---- Shared typographic parts ---- */

.g-label {
  font-size: var(--type-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.g-num { color: var(--g-mute); font-variant-numeric: tabular-nums; font-size: min(1em, var(--g-mark-max)); }   /* logomark rule (:root) */

/* A composition opened by a rule: the rule spans exactly the 12 columns. */
.g-rule-top { border-top: 1px solid var(--g-rule); padding-top: var(--space-2); }

/* ---- G.2 — the marginal column ---- */

/* A heading with its mark (number, letter): the mark hangs in the marginal
   column, on the baseline of the heading; the heading starts on column 1.
   The mark keeps the size of its heading, up to the h2 size (a display
   title's number would not fit in the column). */
.g-marked { display: flex; align-items: baseline; }
.g-mark {
  flex: 0 0 var(--mg-index);          /* marginal column + gutter */
  margin-left: calc(-1 * var(--mg-index));
  padding-right: var(--mg-gutter);
  font-size: min(1em, var(--g-mark-max));   /* never above the logomark, at every width (:root rule) */
  color: var(--g-mute);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.g-mark-body { min-width: 0; }

/* G4.8 — optical alignment: the box of each part keeps its place on the
   grid; its content moves left by the side bearing of its first glyph
   (--g-optical, measured in g.js), so that the visible edge of the letter —
   not the box — sits on the edge of the column. The whole block moves (not
   only its first line): every line of a long title keeps the same start.
   Relative offset: the layout and the sizes are unchanged. */
.g-mark, .g-mark-body { position: relative; left: calc(-1 * var(--g-optical, 0px)); }

@media (min-width: 1024px) {
  /* The rules that open a chapter span the whole frame: marginal column + 12 columns. */
  .g-rule-top { position: relative; border-top: 0; }
  .g-rule-top::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(-1 * var(--mg-index));
    right: 0;
    border-top: 1px solid var(--g-rule);
  }
  /* The logomark heads the marginal column. */
  .g-rm { margin-left: calc(-1 * var(--mg-index)); }
}

/* ---- Playground band (not part of the design) ---- */

.g-lab {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  padding-top: var(--space-1-5);
  padding-bottom: var(--space-1-5);
  font-size: var(--type-label);
  color: var(--g-grey);
}
.g-lab a:hover, .g-lab button:hover { color: var(--g-ink); }
.g-lab-tag { margin-left: auto; }
.g-lab button { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; cursor: pointer; }
.g-lab button[aria-pressed="true"] { color: var(--g-ink); }

/* ---- Header ---- */

.g-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--g-bg);
}
.g-head-grid { height: var(--g-head); align-items: center; }
/* G4.5 — the logomark replaces RM.: alone (the name is the first line of the
   page, the hero signature, and closes it, in the colophon), 32 px wide on
   desktop, 28 px below 1024 px. Its straight left stem sits exactly on the
   left edge of the marginal column (column 1 on tablet / phone): geometric
   and optical edges coincide. Vertically: centred on the cap height of the
   navigation (optical centre of the bar), set by --g-rm-shift. Fixed size
   while scrolling: the header is already compact; no shrinking, no swap. */
.g-rm {
  --g-rm-w: calc(var(--g-rm-h) * 512 / 390);   /* from the global rule (:root) */
  grid-column: 1 / span 1;
  justify-self: start;
  display: block;
  width: var(--g-rm-w);
  line-height: 0;
  transform: translateY(var(--g-rm-shift, 0px));
  transition: color var(--g-fast);
}
.rm-logomark { display: block; width: 100%; height: auto; overflow: visible; }
/* Its size comes only from --g-rm-h (:root, logomark / chapter numbers rule):
   28 px wide on phone, sized on the h2 figures from 768 px, proportions kept
   (512 : 390). Same row, same 64 px bar: the header does not grow. */

/* G4.8 — the logomark + the name, one link to the homepage, on the master
   grid (subgrid of the header). The mark keeps its place and size (G4.5):
   alone in the marginal column on desktop, in column 1 below 1024 px. The
   name starts on the next column — column 1 on desktop (the left edge of
   the index titles), column 2 on tablet and phone — so the mark breathes.
   Same type as the navigation (14 px, line-height 1.5) and the same
   vertical centring in the bar: the name sits on the baseline of Index,
   About, Contact. Only the mark and the name are clickable, not the empty
   columns between them and the navigation.
   G4.8 — Index is gone from the navigation: the mark + the name are the
   way back to the index (same link, same current state). About, Contact
   keep their columns (desktop 11–12 · tablet 7–8).
   Phone (< 768 px): one row — the mark in column 1, « Ricardo Moreira »
   (the role is dropped) on column 2, the edge of the index titles; About
   and Contact leave the grid, set flush right at their natural width.
   Below 380 px: 13 px and a tighter gap, 12 px below 370 px; below 340 px
   the name is hidden
   (still read by screen readers). */
.g-rm {
  grid-column: 1 / -3;               /* up to About (desktop 11 · tablet 7) */
  display: grid;
  grid-template-columns: subgrid;
  justify-self: stretch;
  align-items: center;
  width: auto;
  min-width: 0;
  line-height: 1.5;
  transform: none;
  pointer-events: none;
}
.g-rm > * { pointer-events: auto; }
.g-rm .rm-logomark {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: var(--g-rm-w);
  transform: translateY(var(--g-rm-shift, 0px));
}
.g-rm-name {
  grid-column: 2 / -1;
  grid-row: 1;
  justify-self: start;
  max-width: 100%;
  font-size: var(--type-body-s);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 1024px) {
  .g-rm { margin-left: 0; }                                        /* the link stays on the columns… */
  .g-rm .rm-logomark { margin-left: calc(-1 * var(--mg-index)); }  /* …the mark heads the marginal column */
  .g-rm-name { grid-column: 1 / -1; }                              /* the name: column 1 */
}
@media (max-width: 767px) {
  .g-rm { grid-column: 1 / -1; grid-row: 1; }
  .g-rm-name { overflow: visible; max-width: none; }
  .g-rm-role { display: none; }
  .g-head .g-nav {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: end;
    gap: var(--space-1-5);           /* tighter than the space before it: About + Contact read as a pair */
  }
}
@media (max-width: 379px) {
  .g-rm-name, .g-head .g-nav a { font-size: 13px; }
  .g-head .g-nav { gap: 10px; }
}
@media (max-width: 369px) {
  .g-rm-name, .g-head .g-nav a { font-size: 12px; }
}
@media (max-width: 339px) {
  .g-rm-name {                       /* hidden, still read by screen readers */
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

.g-nav { display: contents; }
.g-nav a { font-size: var(--type-body-s); transition: color var(--g-fast); }
.g-nav a[data-nav="about"] { grid-column: -3 / span 1; }     /* desktop 11 · tablet 7 */
.g-nav a[data-nav="contact"] { grid-column: -2 / span 1; }   /* desktop 12 · tablet 8 */
.g-rm:hover, .g-nav a:hover { color: var(--g-grey); }
.g-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* ---- Main / view change ---- */

.g-main { display: block; transition: opacity 220ms var(--g-ease); }
.g-main.is-entering { opacity: 0; transition: none; }

/* ==========================================================================
   HOMEPAGE — the index is the hero
   ========================================================================== */

.g-hero {
  padding-top: var(--space-6);       /* G4.8: the only space above the index (the signature line is gone) */
  padding-bottom: var(--space-8);
}

.g-hero-grid { align-items: stretch; }   /* the preview frame is exactly as high as the index */

/* Index: columns 1–5 */
.g-index { grid-column: 1 / 6; align-self: start; }
.g-index-link {
  display: flex;
  align-items: baseline;
  font-size: var(--type-h2);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.018em;
  transition: color var(--g-fast);
}
/* Numbers: secondary, in the marginal column (desktop), on its left edge —
   the axis of every number of the site — and on the baseline of their title. */
.g-index-num {
  flex: 0 0 auto;
  width: var(--mg-index);
  margin-left: calc(-1 * var(--mg-index));
  padding-right: var(--mg-gutter);
  text-align: left;
  font-size: min(var(--type-small), var(--g-mark-max));   /* logomark rule (:root) */
  font-weight: 400;
  letter-spacing: 0;
  color: var(--g-grey);
  font-variant-numeric: tabular-nums;
}
.g-index-count {
  margin-left: .3em;
  font-size: var(--type-label);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--g-grey);
  vertical-align: super;
  line-height: 0;
  font-variant-numeric: tabular-nums;
}
.g-index.is-hovering .g-index-link:not(.is-on) { color: var(--g-mute); }
.g-index-link:focus-visible { outline-offset: 2px; }

/* Preview: columns 6–12, a fixed frame — nothing moves when the image changes.
   G4.9 — image + caption = one block anchored at the bottom of the frame
   (caption on the last line of the index), 12 px apart; the image grows
   upwards, left-aligned on the grid; the space left over is above it.
   Exact size of the image set by fitPreview (g.js): ≤ 16:9, ≤ 120 % of the
   file's resolution. */
.g-preview { grid-column: 6 / -1; position: relative; }
.g-pv {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms var(--g-ease), visibility 0s 200ms;
}
.g-pv.is-on { opacity: 1; visibility: visible; transition: opacity 200ms var(--g-ease), visibility 0s; }
/* Before fitPreview (no script yet): the whole image in the free space, at the bottom. */
.g-pv-frame { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; overflow: hidden; }
.g-pv-frame.is-fit { flex: 0 0 auto; max-width: 100%; }
.g-pv-frame .g-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
}
.g-pv-frame.is-crop .g-media { object-fit: cover; }   /* wider than 16:9: cropped, focal point inline */
/* G5.0 — 09 Pictograms: four pictograms on the MASTER GRID. The panel spans
   exactly master columns 6–12 (desktop, 7 columns) / 5–8 (tablet, 4
   columns): its tracks are those columns, with the master gutter — so every
   cell edge falls on a guide of the general grid. Each pictogram spans 3
   columns (tablet 2), two per row (composition on columns 6–11 / 5–8), square
   cells, row gap = the master gutter. Anchored at the bottom like every
   preview; the caption starts on the left edge of the composition. Each
   pictogram whole and centred in its cell (the files share the same white
   margin: same visual size). Phone: the preview is hidden (as before). */
.g-pv-frame.g-pv-grid {
  --pv-cols: 7;                      /* master columns 6–12 */
  --pv-span: 3;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(var(--pv-cols), minmax(0, 1fr));
  gap: var(--mg-gutter);
  overflow: visible;
}
.g-pv-cell { grid-column: span var(--pv-span); aspect-ratio: 1 / 1; min-width: 0; overflow: hidden; }
.g-pv-grid .g-media { object-position: 50% 50%; }
@media (max-width: 1023px) {
  .g-pv-frame.g-pv-grid { --pv-cols: 4; --pv-span: 2; }   /* master columns 5–8 */
}
.g-pv-cap {
  flex: 0 0 auto;
  width: 100%;
  margin-top: var(--space-1-5);   /* 12 px */
  display: flex;
  gap: var(--space-3);
  font-size: var(--type-small);
  color: var(--g-grey);
  white-space: nowrap;
  overflow: hidden;
}
.g-pv-cap span:first-child { color: var(--g-ink); }

/* ==========================================================================
   HOMEPAGE — continuous portfolio
   ========================================================================== */

.g-chap { padding-top: var(--section-gap); }
.g-chap-head { scroll-margin-top: calc(var(--g-head-bar) + var(--space-3)); }

.g-chap-head { align-items: baseline; }
.g-chap-title {
  grid-column: 1 / 7;
  font-size: var(--type-h2);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.018em;
}
.g-chap-meta {
  grid-column: 7 / -1;
  font-size: var(--type-small);
  color: var(--g-grey);
}
.g-chap-meta a { color: var(--g-ink); }
.g-chap-meta a:hover { color: var(--g-grey); }
.g-chap-body { margin-top: var(--head-gap); }

.g-sig-link .g-arrow {
  display: inline-block;
  color: var(--g-mute);
  transition: transform var(--g-fast) var(--g-ease), color var(--g-fast);
}
.g-sig-link:hover .g-arrow, .g-sig-link:focus-visible .g-arrow { color: var(--g-ink); transform: translate(.08em, -.08em); }
/* site/ — the arrow is an inline SVG (g.js -> arrow), the size of the former
   ↗ glyph: 1 em wide, ink from -0.03 to 0.76 em around the baseline. */
.g-arrow-svg {
  display: inline-block;
  width: 1em;
  height: .79em;
  vertical-align: -.03em;
  fill: currentColor;
  overflow: visible;
}

/* ==========================================================================
   COMPOSITIONS (homepage and chapter pages)
   ========================================================================== */

/* G.2 — MODULAR GALLERIES. One grid of identical cells per gallery: the
   rows are exactly as high as a cell, computed from the gallery's own width
   (container query units) — every row and every column falls on the same
   lines, whatever the images. --n: cells per row (a divisor of the grid
   columns), --r: the cell ratio (w / h). A work spanning several cells
   covers exactly those cells and their gutters. */
.g-gal { grid-column: 1 / -1; min-width: 0; container-type: inline-size; }
.g-mod {
  --n: var(--n-m, 2);
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  grid-auto-rows: calc((100cqw - (var(--n) - 1) * var(--mg-gutter)) / var(--n) / var(--r, 1));
  gap: var(--mg-gutter);
}
.g-cell { position: relative; overflow: hidden; min-width: 0; }
.g-work.g-cell .g-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: var(--fit, cover);          /* cover: non-destructive crop · contain: the whole work */
  object-position: var(--pos, 50% 50%);   /* focal point (layout.js) */
}
.g-cell--span { grid-column: span var(--c-m, 1); grid-row: span var(--r-m, 1); }
/* G3 — a spanning cell at a given column (side: 'end'): the other works fill the free cells. */
.g-cell--at { grid-column: var(--x-m, 1) / span var(--c-m, 1); grid-row: 1 / span var(--r-m, 1); }
/* Browsers without container query units: cells keep their ratio. */
@supports not (width: 1cqw) {
  .g-mod { grid-auto-rows: auto; }
  .g-cell { aspect-ratio: var(--r, 1); }
  .g-cell--span { aspect-ratio: auto; }
}

/* Fixed rows in their original proportions (the validated Packaging composition). */
.g-rows { grid-column: 1 / -1; display: grid; row-gap: var(--mg-gutter); min-width: 0; }
.g-row {
  display: grid;
  grid-template-columns: repeat(var(--n-m, 2), minmax(0, 1fr));
  gap: var(--mg-gutter);
  align-items: start;
}

/* G3 — EDITORIAL MASONRY. Six columns on desktop (two master columns each,
   the master gutter), four on tablet, two on phone; every work whole, in
   its proportions, 1 / 2 / 3 columns wide. Positions are computed by g.js
   from the known proportions (stable while loading); the gutter is read
   from here. */
.g-mas { position: relative; column-gap: var(--mg-gutter); }
.g-work.g-mas-item { position: absolute; left: 0; top: 0; width: 0; overflow: hidden; }
.g-work.g-mas-item .g-media { width: 100%; height: 100%; object-fit: cover; }

/* G4.2 — CAROUSELS (Print Design / A — Affiches): two rows across the 12
   columns, master gutters, one height per row (--r0: the median ratio of
   the works; --v: works per view). Moved by g.js (transform). */
.g-car-set {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  row-gap: var(--mg-gutter);
  container-type: inline-size;
  --v: 2;
}
.g-car { overflow: hidden; touch-action: pan-y; }
.g-car-track { display: flex; gap: var(--mg-gutter); width: max-content; will-change: transform; }
.g-work.g-car-item {
  flex: none;
  width: auto;
  height: calc((100cqw - (var(--v) - 1) * var(--mg-gutter)) / var(--v) / var(--r0));
}
.g-work.g-car-item .g-media { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .g-car-set { --v: 4; } }

/* G5.0 — FADE CAROUSELS (Print Design / D — Merchandising): two squares
   side by side at every width (6 + 6 master columns; tablet 4 + 4, phone
   2 + 2), master gutter. The works are stacked; the one shown is opaque,
   the change is a cross-fade. No visible control. */
.g-fade-set {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mg-gutter);
}
.g-fade { position: relative; aspect-ratio: 1 / 1; overflow: hidden; touch-action: pan-y; }
.g-work.g-fade-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease-in-out;
}
.g-work.g-fade-item.is-on { opacity: 1; pointer-events: auto; z-index: 1; }
.g-work.g-fade-item.is-on:hover { opacity: .88; transition-duration: var(--g-fast); }
.g-work.g-fade-item .g-media {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;                      /* only the empty ground is cropped (layout.js) */
  object-position: var(--pos, 50% 50%);
}
@supports not (aspect-ratio: 1 / 1) { .g-fade { height: 0; padding-bottom: 100%; } }
@media (prefers-reduced-motion: reduce) { .g-work.g-fade-item { transition: none; } }

/* G4.3 — PLAYGROUND ONLY: resolution diagnostic (button Resolution / key R). */
.g-diag-tag { display: none; }
.g-diag .g-work:not(.g-mas-item):not(.g-cell) { position: relative; }
.g-diag .g-diag-tag {
  display: block; position: absolute; left: 4px; bottom: 4px; z-index: 2; max-width: calc(100% - 8px);
  padding: 2px 4px; background: rgba(21, 21, 21, .78); color: #fff;
  font: 10px/1.3 var(--font-sans); font-variant-numeric: tabular-nums; text-align: left; pointer-events: none;
}
.g-diag .g-diag-tag.is-bad { background: #c8102e; }

/* A work: the image itself, nothing around it. A click opens the Lightbox. */
.g-work {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  transition: opacity var(--g-fast);
}
.g-work .g-media { width: 100%; height: auto; }
.g-work:hover { opacity: .88; }

/* Feature: the work on columns 1–8, the text on columns 10–12. */
.g-feature { align-items: end; }
.g-feature-media { grid-column: 1 / 9; display: grid; row-gap: var(--mg-gutter); }
.g-feature-text {
  grid-column: 10 / -1;
  font-size: var(--type-caption);
  line-height: 1.55;
  color: var(--g-grey);
}

/* G5.0 corrections — image only (07 Print Design, 10 Web Design, homepage): 100 % of the
   image's own size (max-width in g.js), centred on the grid width. */
.g-image-only-media { grid-column: 1 / -1; }
.g-image-only .g-work { width: 100%; margin-inline: auto; }

/* ==========================================================================
   PAGES (discipline pages, About)
   ========================================================================== */

.g-page-head {
  padding-top: var(--space-10);
  margin-bottom: var(--block-gap);
  align-items: baseline;
}
.g-crumb { grid-column: 1 / -1; margin-bottom: var(--space-5); color: var(--g-grey); }
.g-crumb a { color: var(--g-ink); }
.g-crumb a:hover { color: var(--g-grey); }
.g-page-title {
  grid-column: 1 / -1;
  font-size: var(--type-display-s);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
}
.g-page-meta {
  grid-column: 1 / 7;
  margin-top: var(--space-5);
  font-size: var(--type-small);
  color: var(--g-grey);
}
.g-page-desc {
  grid-column: 7 / -1;
  max-width: 36em;
  margin-top: var(--space-5);
}

.g-coll + .g-coll { margin-top: var(--section-gap); }
.g-coll-head { align-items: baseline; margin-bottom: var(--head-gap); }
.g-coll-title {
  grid-column: 1 / 7;
  font-size: var(--type-h3-l);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.012em;
}
.g-coll-meta { grid-column: 7 / -1; font-size: var(--type-small); color: var(--g-grey); }
.g-coll-text {
  grid-column: 7 / -1;
  max-width: 36em;
  margin-top: var(--space-2);
  font-size: var(--type-body-s);
  line-height: 1.55;
}

/* G5.0 editorial update — the editorial texts (discipline and sub-section
   intros): paragraphs, discreet underlined links in ink, sober hover. */
.g-rich p + p { margin-top: .75em; }
.g-rich a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--g-mute);
  transition: color var(--g-fast), text-decoration-color var(--g-fast);
}
.g-rich a:hover, .g-rich a:focus-visible { color: var(--g-grey); text-decoration-color: currentColor; }

.g-pager { margin-top: var(--section-gap); row-gap: var(--space-4); }
.g-pager a { display: flex; flex-direction: column; gap: var(--space-1); }
.g-pager .g-label { color: var(--g-grey); }
.g-pager-prev { grid-column: 1 / 7; }
.g-pager-next { grid-column: 7 / -1; }
.g-pager-name {
  font-size: var(--type-h3-l);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.012em;
  transition: color var(--g-fast);
}
.g-pager a:hover .g-pager-name { color: var(--g-grey); }

/* ---- About: label on column 1, then the axes 1 and 7 ---- */

.g-ab-name { grid-column: 1 / -1; }
.g-ab-role {
  grid-column: 1 / 7;
  margin-top: var(--space-3);
  font-size: var(--type-statement);
  line-height: 1.25;
  letter-spacing: -.01em;
}
.g-ab-figures {
  grid-column: 7 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--mg-gutter);
  margin-top: var(--space-3);
}
.g-ab-figures dt {
  font-size: var(--type-h2);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.g-ab-figures dd { margin-top: var(--space-1); font-size: var(--type-small); color: var(--g-grey); }

.g-ab { margin-top: var(--section-gap); row-gap: 0; }
.g-ab-label { grid-column: 1 / -1; margin-bottom: var(--head-gap); }
.g-ab-main { grid-column: 7 / -1; }
.g-ab-h {
  font-size: var(--type-h2);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.018em;
  margin-bottom: var(--space-5);
}
.g-ab-sub { margin-top: calc(-1 * var(--space-3)); margin-bottom: var(--space-5); color: var(--g-grey); }
.g-ab-sub a { color: var(--g-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.g-ab-text { max-width: 34em; }
.g-ab-text p + p { margin-top: 1em; }
.g-ab-statement {
  margin-top: var(--space-8);
  font-size: var(--type-statement);
  line-height: 1.3;
  letter-spacing: -.01em;
}

.g-ab--profile { align-items: start; }

/* G4.5 — About: the logomark once, tone on tone, on the width of the portrait
   (columns 1–4; tablet 1–3), its top on the cap height of the Approach
   heading. A colour just off the ground: present, never louder than the
   text. Phone: absent (it would only push the text down). */
.g-ab-mark {
  grid-column: 1 / 5;
  align-self: start;
  margin-top: calc(var(--type-h2) * .2);
  color: #E9E9E5;
}
.g-ab-portrait { grid-column: 1 / 5; }
.g-ab-portrait img { width: 100%; height: auto; }
.g-ab-caption { margin-top: var(--space-1-5); font-size: var(--type-label); color: var(--g-grey); }

.g-ab-row { align-items: start; }
.g-ab-row + .g-ab-row { margin-top: var(--block-gap); }
.g-ab-rowhead {
  grid-column: 1 / 6;
  font-size: var(--type-sub);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.g-ab-row .g-ab-text { grid-column: 7 / -1; }

.g-ab-pairs { margin-bottom: var(--space-8); }
.g-ab-pairs li {
  font-size: var(--type-h3-l);
  line-height: 1.2;
  letter-spacing: -.012em;
}

/* Tables (career, recognition): 1–3 · 4–6 · 7–12 */
.g-ab-table { row-gap: 0; }
.g-ab-tr {
  align-items: baseline;
  padding: var(--space-2) 0 var(--space-3);
  border-top: 1px solid #D6D6D2;
  font-size: var(--type-body-s);
  line-height: 1.5;
}
.g-ab-td1 { grid-column: 1 / 4; color: var(--g-grey); font-variant-numeric: tabular-nums; }
.g-ab-td2 { grid-column: 4 / 7; }
.g-ab-td2 strong { display: block; font-weight: 500; }
.g-ab-td2 span { display: block; }
.g-ab-td3 { grid-column: 7 / -1; max-width: 34em; color: var(--g-grey); }
.g-ab-td3 a { color: var(--g-ink); }
.g-ab-td3 a:hover { color: var(--g-grey); }
.g-ab--table .g-ab-main { margin-bottom: var(--block-gap); }
.g-ab-sublabel { grid-column: 1 / -1; margin-top: var(--block-gap); margin-bottom: var(--space-3); color: var(--g-grey); }
/* A label beside its list (Langues): same row, on the baseline of the first line. */
.g-ab-sublabel--side { grid-column: 1 / 7; margin-bottom: 0; padding-top: var(--space-1-5); }
.g-ab-sublabel--side + .g-ab-list { margin-top: var(--block-gap); }
.g-ab-note { grid-column: 7 / -1; margin-top: var(--space-3); font-size: var(--type-small); color: var(--g-grey); }

/* Lists (disciplines, languages): columns 7–12 */
.g-ab-list { grid-column: 7 / -1; }
.g-ab-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-1-5) 0;
  border-top: 1px solid #D6D6D2;
  font-size: var(--type-body-s);
}
.g-ab-li2 { color: var(--g-grey); text-align: right; }
a.g-ab-li1:hover { color: var(--g-grey); }

.g-ab-cv { margin-top: var(--block-gap); }

/* ---- Footer: Contact ---- */

.g-foot { margin-top: var(--section-gap); padding-bottom: var(--space-8); scroll-margin-top: var(--g-head-bar); }
.g-foot .mg-grid { row-gap: var(--space-5); }
.g-foot-label { grid-column: 1 / 7; }
.g-foot-body { grid-column: 7 / -1; }
.g-foot-title {
  font-size: var(--type-h2);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.018em;
}
.g-foot-text { margin-top: var(--space-2); color: var(--g-grey); }
.g-foot-mail {
  display: inline-block;
  margin-top: var(--space-5);
  font-size: var(--type-h3-l);
  font-weight: 500;
  letter-spacing: -.012em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.g-foot-mail:hover { color: var(--g-grey); }
.g-foot-social {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-4);
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--type-body-s);
  line-height: 1.4;
}
.g-foot-social a { transition: color var(--g-fast); }
.g-foot-social a:hover { color: var(--g-grey); }
.g-foot-meta { font-size: var(--type-small); color: var(--g-grey); }

/* G4.5 — the colophon: the end of the publication. The mark on columns 1–2
   (the only place where it is affirmed, in ink), the name and the role on
   column 7, their baseline on the baseline of the mark. Different from the
   header in every way (place, size, company of the name), never a repeat. */
.g-foot-sig { margin-top: var(--space-16); align-items: end; }
.g-foot-mark { grid-column: 1 / 3; display: block; line-height: 0; transition: color var(--g-fast); }
.g-foot-mark:hover { color: var(--g-grey); }
.g-foot-meta { grid-column: 7 / -1; line-height: 1; margin-bottom: -.2em; }
.g-foot-meta span { display: block; }
.g-foot-meta span + span { margin-top: .5em; }
.g-foot-name { color: var(--g-ink); }

/* The single motion: the mark appears (opacity, 12 px rise), once. */
.g-reveal { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--g-ease), transform 700ms var(--g-ease), color var(--g-fast); }
.g-reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   G.2 — THE UNIVERSAL LIGHTBOX — a work, whole, above the page
   Dark neutral ground, an almost silent interface: counter and Close above,
   ← → at the sides, discipline and title below. The work is sized by g.js
   (as large as the stage allows, never cropped, never distorted).
   ========================================================================== */

html.g-noscroll { overflow: hidden; }
/* G3: through the 90 % ground, the works of the page stay faintly visible;
   the page's own interface (header, Playground band) is hidden — the
   Lightbox bar takes its place, without two texts on top of each other. */
html.g-noscroll .g-head, html.g-noscroll .g-lab { visibility: hidden; }

.g-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: var(--g-head) minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  background: var(--g-lb-bg);    /* G3: the opacity is the ground's only */
  color: var(--g-ink);
  font-size: var(--type-body-s);
}
.g-lb[hidden] { display: none; }
.g-lb button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--g-grey);
  cursor: pointer;
  transition: color var(--g-fast);
}
.g-lb button:hover { color: var(--g-ink); }
.g-lb button[hidden] { display: none; }

/* The bar: the header's grid and height — the counter where RM. is, Close
   where Contact is, in the size of the navigation. */
.g-lb-bar { width: 100%; }
.g-lb-grid { height: var(--g-head); align-items: center; }
.g-lb-count {
  grid-column: 1 / span 2;
  font-size: var(--type-body-s);
  color: var(--g-grey);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.g-lb-close { grid-column: -2 / span 1; justify-self: start; min-height: 44px; font-size: var(--type-body-s); }

.g-lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0 var(--mg-margin);
  touch-action: pinch-zoom;      /* horizontal swipes are ours; pinch stays native */
}
.g-lb-media { display: block; max-width: none; background: transparent; }

/* ← → in the outer margins, centred on the stage. */
.g-lb-arrow {
  position: absolute;
  top: var(--g-head);
  bottom: var(--g-head);
  width: var(--mg-margin);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--type-sub);
}
.g-lb-prev { left: 0; }
.g-lb-next { right: 0; }

/* The caption: on column 1, the axis of every title — discipline in grey, title in ink. */
.g-lb-foot { width: 100%; }
.g-lb-cap {
  display: flex;
  gap: var(--space-3);
  min-height: var(--g-head);
  align-items: center;
  font-size: var(--type-body-s);
  color: var(--g-grey);
  white-space: nowrap;
  overflow: hidden;
}
.g-lb-where { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.g-lb-title { color: var(--g-ink); overflow: hidden; text-overflow: ellipsis; }

@media (min-width: 1024px) {
  /* The counter heads the marginal column, as RM. does in the header. */
  .g-lb-count { margin-left: calc(-1 * var(--mg-index)); }
}

/* ==========================================================================
   RESPONSIVE — tablet (8 columns): axes 1 and 5
   ========================================================================== */

@media (max-width: 767px) {
  .g-off-m { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .g-mod { --n: var(--n-t, 4); }
  .g-row { grid-template-columns: repeat(var(--n-t, 4), minmax(0, 1fr)); }
  .g-cell--span { grid-column: span var(--c-t, 1); grid-row: span var(--r-t, 1); }
  .g-cell--at { grid-column: var(--x-t, 1) / span var(--c-t, 1); grid-row: 1 / span var(--r-t, 1); }
  .g-off-t { display: none; }
}
@media (min-width: 1024px) {
  .g-mod { --n: var(--n-d, 4); }
  .g-row { grid-template-columns: repeat(var(--n-d, 4), minmax(0, 1fr)); }
  .g-cell--span { grid-column: span var(--c-d, 1); grid-row: span var(--r-d, 1); }
  .g-cell--at { grid-column: var(--x-d, 1) / span var(--c-d, 1); grid-row: 1 / span var(--r-d, 1); }
  .g-off-d { display: none; }
}

@media (max-width: 1023px) {
  .g-index { grid-column: 1 / 5; }
  .g-preview { grid-column: 5 / -1; }
  .g-index-num { width: 2.4em; margin-left: 0; padding-right: 0; text-align: left; }
  /* G4.8 — no marginal column: the mark and the title are two independent
     elements anchored on the grid (subgrid of the composition) — the mark
     at the start of column 1, the title at the start of column 2 (it may
     run to the last column of the heading; every line starts on column 2).
     One common baseline. The mark keeps the size of its heading. */
  .g-marked {
    display: grid;
    grid-template-columns: subgrid;
    column-gap: var(--mg-gutter);
    align-items: baseline;
  }
  .g-mark { grid-column: 1; margin-left: 0; padding-right: 0; }   /* size: the global cap (.g-mark) */
  .g-mark-body { grid-column: 2 / -1; }

  .g-chap-title { grid-column: 1 / 6; }
  .g-chap-meta { grid-column: 6 / -1; }

  .g-feature-media { grid-column: 1 / -1; }
  .g-feature-text { grid-column: 1 / 6; margin-top: var(--space-2); }


  .g-page-meta { grid-column: 1 / 5; }
  .g-page-desc { grid-column: 5 / -1; }
  .g-coll-title { grid-column: 1 / 5; }
  .g-coll-meta, .g-coll-text { grid-column: 5 / -1; }
  .g-pager-prev { grid-column: 1 / 5; }
  .g-pager-next { grid-column: 5 / -1; }

  .g-ab-role { grid-column: 1 / -1; }
  .g-ab-figures { grid-column: 1 / 7; margin-top: var(--space-6); }
  .g-ab-main, .g-ab-row .g-ab-text, .g-ab-list, .g-ab-note { grid-column: 5 / -1; }
  .g-ab-sublabel--side { grid-column: 1 / 5; }
  .g-ab-portrait { grid-column: 1 / 4; }
  .g-ab-rowhead { grid-column: 1 / 5; padding-right: var(--space-2); }
  .g-ab-td1 { grid-column: 1 / 3; }
  .g-ab-td2 { grid-column: 3 / 5; }
  .g-ab-td3 { grid-column: 5 / -1; }
  .g-foot-label { grid-column: 1 / 5; }
  .g-foot-body { grid-column: 5 / -1; }
  .g-foot-meta { grid-column: 5 / -1; }
  .g-ab-mark { grid-column: 1 / 4; }

}

/* ==========================================================================
   RESPONSIVE — phone (4 columns): one axis, stacked
   ========================================================================== */

@media (max-width: 767px) {
  .g-lab { flex-wrap: wrap; column-gap: var(--space-2); }
  .g-lab-tag { display: none; }
  .g-lab button { margin-left: auto; }
  .g-chap-title { font-size: 26px; }
  .g-index { grid-column: 1 / -1; }
  .g-index-link { font-size: clamp(26px, 8vw, 34px); line-height: 1.2; }
  /* G4.8 — the titles on column 2, under « Ricardo Moreira »: the number
     fills column 1 + one gutter ((index width + gutter) / 4 columns). */
  .g-index-num { flex: 0 0 calc((100% + var(--mg-gutter)) / 4); width: auto; }
  /* …and the longest title (Editorial Design, ~7.5 em) still holds on one
     line in columns 2–4: below ~480 px the size follows the width of those
     three columns (8 em), never above the G4.7 size. */
  .g-index-link { font-size: min(clamp(26px, 8vw, 34px), calc(((100vw - 2 * var(--mg-margin)) * 3 - var(--mg-gutter)) / 32)); }
  .g-preview { display: none; }

  .g-chap-title, .g-chap-meta { grid-column: 1 / -1; }
  .g-chap-meta { margin-top: var(--space-1); }

  .g-feature-text { grid-column: 1 / -1; }


  .g-page-meta, .g-page-desc, .g-coll-title, .g-coll-meta, .g-coll-text { grid-column: 1 / -1; }
  /* G4.8 — the discipline titles hold in columns 2–4 (as the index titles):
     the size follows the width of those three columns ((3 × content −
     gutter) / 4) so that the widest word of the titles (--g-title-em,
     measured in g.js) fits; never above the current size. The number keeps
     the size of its heading. */
  .g-page-title {
    font-size: min(var(--type-display-s), calc(((100vw - 2 * var(--mg-margin)) * 3 - var(--mg-gutter)) / 4 / var(--g-title-em, 6)));
  }
  .g-page-desc { margin-top: var(--space-3); }
  .g-pager-prev, .g-pager-next { grid-column: 1 / -1; }

  .g-ab-figures { grid-column: 1 / -1; }
  .g-ab-sublabel--side { grid-column: 1 / -1; }
  .g-ab-sublabel--side + .g-ab-list { margin-top: var(--space-3); }
  .g-ab-figures dt { font-size: var(--type-h3-l); }
  .g-ab-main, .g-ab-row .g-ab-text, .g-ab-list, .g-ab-note, .g-ab-portrait, .g-ab-rowhead { grid-column: 1 / -1; }
  .g-ab-portrait { margin-bottom: var(--space-6); }
  .g-ab-rowhead { margin-bottom: var(--space-3); }
  .g-ab-td1, .g-ab-td2, .g-ab-td3 { grid-column: 1 / -1; }
  .g-ab-td2 { margin-top: var(--space-1); }
  .g-ab-td3:not(:empty) { margin-top: var(--space-1); }
  .g-foot-label, .g-foot-body { grid-column: 1 / -1; }
  .g-foot-sig { margin-top: var(--space-12); row-gap: var(--space-3); }
  /* phone: same line, tap targets of 44 px without moving the composition */
  .g-foot-social { margin-top: calc(var(--space-2) - 12px); }
  .g-foot-social a { display: inline-block; padding-block: 12px; }
  .g-foot-meta { grid-column: 1 / -1; margin-bottom: 0; }   /* phone: under the mark, full measure */
  .g-ab-mark { display: none; }

  .g-lb-where { display: none; }
}

/* ==========================================================================
   REDUCED MOTION — nothing animates; works do not play by themselves
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   PLAYGROUND ONLY — Show Grid (shared grid-overlay.js): the index band shows
   the marginal column and, clear, the gutter that separates it from column 1.
   ========================================================================== */

.mg-ov-index {
  background: linear-gradient(to right, rgba(255, 170, 0, .14) 0 var(--g-marginal), transparent 0) !important;
}

/* G4.5 — print: the colophon is always there. */
@media print { .g-reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   site/ — VIDEOS AS WORKS (brief « Sequential Autoplay », 30.11.2026)
   No veil, no native bar: the colours and the light of the video stay
   exactly as they are, even under the mouse. One discreet play / pause
   control (SVG, the ground and the ink of the site, square like everything
   else): on a desktop under the mouse or with the keyboard, always on touch
   screens.
   ========================================================================== */
.g-work.g-work--video:hover, .g-work.g-work--video:focus-visible { opacity: 1; }
.g-work--video:not(.g-mas-item):not(.g-cell) { position: relative; }
.g-vctl {
  /* A small pictogram in the bottom right corner, sized by its own video
     (g.js: --vctl-g, --vctl-in, --vctl-hit); the touch area is larger than
     what is seen. No background, no veil: light glyph, a hairline of shadow
     so that it reads on any image. */
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  box-sizing: border-box;
  width: var(--vctl-hit, 36px);
  height: var(--vctl-hit, 36px);
  padding: var(--vctl-in, 10px);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--g-fast);
  -webkit-tap-highlight-color: transparent;
}
.g-vctl svg { display: block; width: var(--vctl-g, 14px); height: var(--vctl-g, 14px); fill: currentColor; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .5)) drop-shadow(0 1px 3px rgba(0, 0, 0, .25)); }
.g-work--video:hover .g-vctl, .g-vctl:focus-visible { opacity: 1; }
.g-vctl:focus-visible { outline: none; }
.g-vctl:focus-visible svg { outline: 1px solid currentColor; outline-offset: 3px; }
@media (hover: none) { .g-vctl { opacity: 1; } }

/* Lightbox: play / pause (+ sound) beside the caption, never on the work. */
.g-lb-foot { display: flex; align-items: center; gap: var(--space-3); }
.g-lb-foot .g-lb-cap { flex: 1 1 auto; min-width: 0; }
.g-lb-ctl { display: flex; align-items: center; gap: var(--space-2, 16px); }
.g-lb-ctl[hidden] { display: none; }
.g-lb .g-lb-btn { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.g-lb-btn svg { width: 14px; height: 14px; fill: currentColor; }   /* the size of the caption, never larger */
.g-lb video.g-lb-media { cursor: pointer; }
