/* E6 — Work homepage: the Playground's sheet, used for the case studies.
   Same line system as every page: nav bar line, the 48px label row (who + Grid / List), then
   rows of equal columns on thin lines. Each column: name at the top, type + year just above the
   image, the image on the row's bottom line. Unlike the Playground, every cover has the same
   shape (5:4), so the projects read as equals and the tops line up. */

.wg-page { animation: none; }

/* label row = the site's second line */
.wg-label {
  display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 var(--m);
  border-bottom: 1px solid #000; font: 400 13px/1 var(--sans);
}
.wg-intro { margin: 0; color: #6b6b6b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-intro b { color: #000; font-weight: 500; }
.wg-view { margin-left: auto; }
.wg-count { margin-left: auto; color: #8a8a8a; font-variant-numeric: tabular-nums; }
.wg-view { display: flex; gap: 6px; color: #8a8a8a; }
.wg-view button { font: inherit; color: #8a8a8a; padding: 0; transition: color .2s; }
.wg-view button:hover { color: #000; }
.wg-view button[aria-pressed="true"] { color: #000; font-weight: 500; }

/* ---------- grid ---------- */
.wg-row { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-bottom: 1px solid #000; }
.wg-col {
  display: flex; flex-direction: column; min-width: 0;
  border-right: 1px solid #000; font: 400 13px/1.3 var(--sans); color: #000;
}
.wg-row > :last-child { border-right: 0; }
.wg-row { padding: 0 calc(var(--m) - 12px); }   /* the outer 12px + this = the 24px page margin; columns stay equal */
.wg-name { margin: 0; padding: 10px 12px 0; font: 500 15px/1.3 var(--sans); letter-spacing: -.005em; }
.wg-meta { margin: auto 0 0; display: flex; justify-content: space-between; gap: 12px; padding: 28px 12px 8px; }
.wg-meta span:first-child { color: #8a8a8a; min-width: 0; }
.wg-meta { align-items: flex-end; }
.wg-meta span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wg-img { position: relative; margin: 0 12px 12px; aspect-ratio: 5 / 4; background: #eee; overflow: hidden; }
.wg-img > img, .wg-img > video {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover;
}
/* the cover video waits under the still and fades in on hover */
.wg-img > video { opacity: 0; transition: opacity .4s; }
.wg-col.is-playing .wg-img > video { opacity: 1; }

/* "Coming soon": a grey block, not a link */
.wg-col.is-empty { color: #8a8a8a; cursor: default; }
.wg-col.is-empty .wg-name { font-weight: 400; }

/* reveal: the cover rises out of its line when the row comes into view, column after column
   (same curve as the Playground) */
.wg-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.wg-name, .wg-meta { opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 90ms + 250ms); }
.wg-row.in .wg-img { clip-path: inset(0 0 0 0); }
.wg-row.in .wg-name, .wg-row.in .wg-meta { opacity: 1; transform: none; }
.wg-img > img { transform: scale(1.08); transition: transform 1.4s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.wg-row.in .wg-img > img { transform: none; }

/* hover: the name underlines and the picture leans in a little — a link, plainly */
@media (hover: hover) {
  .wg-row.in a.wg-col:hover .wg-img > * { transform: scale(1.03); transition: transform .8s cubic-bezier(.16, 1, .3, 1), opacity .4s; transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) {
  .wg-img, .wg-name, .wg-meta, .wg-img > * { clip-path: none; opacity: 1; transform: none; transition: none; }
  .wg-img > video { display: none; }
}

/* ---------- list (the second view) ---------- */
.wg-list { list-style: none; margin: 0; padding: 0; }
.wg-li a, .wg-li > span {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 80px 24px; gap: 16px; align-items: baseline;
  padding: 14px var(--m) 13px; border-bottom: 1px solid #000; font: 400 15px/1.3 var(--sans); color: #000;
}
.wg-li .l-name { font-weight: 500; }
.wg-li .l-type { color: #8a8a8a; }
.wg-li .l-y { font-variant-numeric: tabular-nums; }
.wg-li .l-go { text-align: right; opacity: 0; transition: opacity .2s; }
.wg-li.is-empty > span, .wg-li.is-empty .l-name { color: #b4b4b4; font-weight: 400; }
@media (hover: hover) {
  .wg-li a:hover { background: #000; color: #fff; }
  .wg-li a:hover .l-type { color: #bdbdbd; }
  .wg-li a:hover .l-go { opacity: 1; }
}
/* a small cover follows the cursor in the list */
.wg-peek {
  position: fixed; left: 0; top: 0; z-index: 40; margin: 0; width: 220px; aspect-ratio: 5 / 4;
  background: #eee; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .2s;
}
.wg-peek.on { opacity: 1; }
.wg-peek > * { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .wg-peek { display: none; } }

@media (max-width: 760px) {
  .wg-li a, .wg-li > span { grid-template-columns: minmax(0, 1fr) 56px; }
  .wg-li .l-type, .wg-li .l-go { display: none; }
  .wg-intro { font-size: 12px; }
}
@media (max-width: 520px) { .wg-count { display: none; } }
.frame-tag[hidden] { display: none; }   /* review switcher only with ?frames=1 */
/* short views (List) still push the contact strip to the bottom of the screen */
.wg { min-height: calc(100svh - 97px - 45px); }
@media (max-width: 700px) { .wg { min-height: calc(100svh - 69px - 45px); } }

/* Yanzi (2026-11-02): two per row, uneven — 3.5/6 + 2.5/6, the wide side swapping every row.
   Same 5:4 covers, so the narrow one is shorter: bottoms sit on the row line, tops step. */
.wg-row.is-wide { grid-template-columns: 7fr 5fr; }
.wg-row.is-flip { grid-template-columns: 5fr 7fr; }
.wg-name { font-size: 17px; }
/* the narrow cover is square, so it stands nearly as tall as the wide one — a small step at the
   top instead of an empty white gap */
.wg-row.is-wide > :nth-child(2) .wg-img, .wg-row.is-flip > :first-child .wg-img { aspect-ratio: 1; }

/* Yanzi: the tags as the case study's boxes (Space Mono, capitals, thin outline) */
.wg-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.wg-tags .pill { font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 6px 10px; border-radius: 4px; color: #000; pointer-events: none; }
.wg-kind { color: #8a8a8a; }
.wg-meta .wg-y { align-self: flex-end; }

/* List view = E5's work index (work.css), placed in the page instead of over it */
.wg .wi-layer { position: static; inset: auto; z-index: auto; opacity: 1; pointer-events: auto; overflow: visible; background: none; }
.wg .wi-layer[hidden] { display: none; }
.wi-row.is-empty, .wi-row.is-empty * { color: #aaa !important; cursor: default; }   /* from home.css: Coming soon rows */
/* Yanzi: letters were cut (line-height 1 + overflow hidden clipped g / y) — give the line room */
.wg-intro { line-height: 1.5; padding: 2px 0; }
/* never hide words behind "…": the line wraps on narrow screens and the label row grows */
.wg-intro { white-space: normal; overflow: visible; text-overflow: clip; min-width: 0; }
.wg-label { height: auto; min-height: 48px; padding-top: 8px; padding-bottom: 8px; }
.wg-view { flex: none; }

/* Yanzi: the Rite Aid motion plays at its real size (no shrinking inside the video); instead the
   row it shares with Stay in Lign is shorter — wide cover 16:9, narrow cover 4:3 (nearly level) */
.wg-row.is-flip:has(a[href*="rite-aid"]) > :first-child .wg-img { aspect-ratio: 4 / 3; }
.wg-row.is-flip:has(a[href*="rite-aid"]) > :nth-child(2) .wg-img { aspect-ratio: 16 / 9; }

/* Yanzi 2026-11-13, after basedesign.com: a short line under each project's name, in the same small size,
   black, plain — it appears when the project is hovered (its line is kept, so nothing moves); always shown on touch */
.wg-line { margin: 0; padding: 4px 12px 0; font: 400 13px/1.3 var(--sans); color: #000;
  hyphens: none; opacity: 0; transition: opacity .3s ease; }   /* Yanzi 2026-11-15: long lines wrap (was one line + …) */
@media (hover: hover) { a.wg-col:hover .wg-line { opacity: 1; } }
@media (hover: none) { .wg-line { opacity: 1; } }

/* Yanzi 2026-11-13: spacing that breathes — one system for every card:
   · the image keeps a 12px frame inside its lines (sides and bottom), like a mount
   · text needs more air than an image: the name sits 18px under the row line (its leading adds ~3px)
   · name → description 6px (one unit); tags → image 12px (the same as the image's frame) */
.wg-name { padding-top: 18px; }
.wg-line { padding-top: 6px; }
.wg-meta { padding-bottom: 12px; }
@media (max-width: 700px) { .wg-name { padding-top: 14px; } }

/* E9 (Yanzi 2026-11-27): the second row holds three — equal columns, square covers */
.wg-row.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wg-row.is-three .wg-img { aspect-ratio: 1; }

/* E9 (Yanzi 2026-11-27, after yimao.design): the scrolling email line under the intro, above the work */
.wg > .h-foot-top { border-top: 0; border-bottom: 1px solid #000; }

/* E9 (Yanzi 2026-11-27): "Index" alone — black so it reads as a button, underline on hover;
   while the list is open a × says "click again to close" */
.wg-view button, .wg-view button[aria-pressed="true"] { color: #000; font-weight: 400; }
.wg-view button:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.wg-view .wg-x { display: none; }
.wg-view button[aria-pressed="true"] .wg-x { display: inline; }
/* Yanzi 2026-11-27: no black on hover — the line only pauses */
.wg > .h-foot-top, .wg > .h-foot-top:hover { background: none; color: #000; }
.wg > .h-foot-top:hover a { color: #000; }
/* E9: a homepage reel (grid.js `homeReel`) — clips cross-fade over the cover still; a `cell` clip is the
   top-left third of a 3000 x 2070 board, so it is drawn 3x wide from the top-left corner */
.wg-img > video.wg-reel { opacity: 0; transition: opacity .7s ease; }
.wg-img > video.wg-reel.on { opacity: 1; }
.wg-img > video.wg-reel.is-cell { inset: 0 auto auto 0; width: 300%; max-width: none; height: auto; object-fit: fill; }

/* ===== E9 (Yanzi 2026-11-27, after yimao.design): hierarchy ====================================
   1 nav (small) · 2 intro, EN | 中文 side by side · 3 the email line · 4 a big heading · 5 the work */
.wg-about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 14px var(--m) 22px; border-bottom: 1px solid #000; }
.wg-about p { margin: 0; max-width: 44em; font: 400 14px/1.45 var(--sans); color: #000; }
.wg-about .wg-k { margin-bottom: 2px; }
.wg > .h-foot-top { border-top: 0; }
.wg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 28px var(--m) 18px; border-bottom: 1px solid #000; }
.wg-title { margin: 0; font: 400 clamp(44px, 6.4vw, 96px)/.9 var(--sans); letter-spacing: -.055em; text-transform: uppercase; }   /* same as the case study titles (REBIRTH.EXE) */
.wg-head .wg-view { font: 400 14px/1 var(--sans); padding-bottom: 6px; }
@media (max-width: 700px) {
  .wg-about { grid-template-columns: 1fr; gap: 14px; }
  .wg-about p { font-size: 13px; }
  .wg-head { padding-top: 22px; padding-bottom: 12px; }
}

/* E9 (Yanzi 2026-11-27): the work shows as soon as the page opens — one-language intro, tighter top */
.wg-about { display: block; padding: 12px var(--m) 14px; }
.wg-about p { max-width: 62em; font-size: 14px; }
.wg-head { padding: 18px var(--m) 12px; }
.wg-title { font-size: clamp(36px, 4.6vw, 68px); }
/* Yanzi 2026-11-27 "第一行起码得看到": the first row fits the first screen — its covers take the height
   that is left in the window (never shorter than 280px), cropped, not squashed */
.wg-row.is-wide .wg-meta { padding-top: 14px; }
.wg-row.is-wide .wg-img, .wg-row.is-wide > :nth-child(2) .wg-img { aspect-ratio: auto; height: max(280px, calc(100svh - var(--above, 480px))); }
@media (max-width: 760px) { .wg-row.is-wide .wg-img, .wg-row.is-wide > :nth-child(2) .wg-img { height: auto; aspect-ratio: 5 / 4; } }

/* E9 (Yanzi 2026-11-27, type hierarchy) — four steps, each with one job:
   22px  project names (the biggest thing after the logo)
   17px  navigation (header)
   13px  labels and the one-line description (grey, so it sits under the name)
   12px  Space Mono — facts: tags and year together */
.wg-name { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.wg-line { color: #6b6b6b; }
.wg-meta .wg-y, .wg-y { font: 400 12px/1 var(--mono); letter-spacing: .04em; }
@media (max-width: 700px) { .wg-name { font-size: 19px; } }
/* Yanzi 2026-11-27: no underline on the project name on hover (the cursor + the line under it are enough) */
a.wg-col:hover .wg-name { text-decoration: none; }
/* Yanzi 2026-11-27: covers with slightly rounded corners (after yimao.design) */
.wg-img { border-radius: 6px; }
.wg-row.in .wg-img { clip-path: inset(0 0 0 0 round 6px); }
/* the last row's bottom line sat on the email strip's top line (2px) — the strip's line closes the grid */
.wg-track > .wg-row:last-child { border-bottom: 0; }

/* ===== E9 (Yanzi 2026-11-27 "spacing 太靠近"): one spacing step inside every card =====
   16px from every line to the content (top, sides, under the image); 6px name → line; 16px line → tags.
   Row 1 splits 2 : 1, so its divider lines up with row 2's second divider (thirds). */
.wg-row { padding: 0; }
.wg-row.is-wide { grid-template-columns: 2fr 1fr; }
.wg-name, .wg-row .wg-col:first-child .wg-name { padding: 16px 16px 0; }
.wg-line { padding: 6px 16px 0; opacity: 1 !important; }
.wg-meta, .wg-row.is-wide .wg-meta, .wg-row .wg-col:first-child .wg-meta { padding: 16px 16px 12px; }
.wg-img, .wg-row .wg-col:first-child .wg-img { margin: 0 16px 16px; }
@media (min-width: 701px) {
  .wg-row .wg-col:first-child .wg-name, .wg-row .wg-col:first-child .wg-line,
  .wg-row .wg-col:first-child .wg-meta { padding-left: var(--m); }
  .wg-row .wg-col:first-child .wg-img { margin-left: var(--m); }
  .wg-row .wg-col:last-child .wg-name, .wg-row .wg-col:last-child .wg-line,
  .wg-row .wg-col:last-child .wg-meta { padding-right: var(--m); }
  .wg-row .wg-col:last-child .wg-img { margin-right: var(--m); }
}

/* ===== E9 (Yanzi 2026-11-27, after yimao.design): calm cards =====
   picture first, caption under it; no lines between cards — space instead; tags as grey text */
.wg-track { display: grid; row-gap: 48px; padding: 20px var(--m) 64px; }
.wg-row, .wg-row.is-wide, .wg-row.is-three { border: 0; column-gap: 12px; padding: 0; }
.wg-col, .wg-row > :last-child, .wg-row > .wg-col:last-of-type { border: 0 !important; }
.wg-row .wg-img, .wg-row .wg-col:first-child .wg-img, .wg-row .wg-col:last-child .wg-img { margin: 0 !important; }
.wg-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 12px; }
.wg-cap .wg-name, .wg-row .wg-col .wg-cap .wg-name { padding: 0 !important; font: 500 17px/1.3 var(--sans); letter-spacing: -.005em; }
.wg-cap .wg-y { font: 400 12px/1 var(--mono); letter-spacing: .04em; color: #000; }
.wg-row .wg-col .wg-line { padding: 2px 0 0 !important; font: 400 13px/1.4 var(--sans); color: #000; opacity: 1 !important; }
.wg-row .wg-col .wg-kind { margin: 6px 0 0; padding: 0; font: 400 13px/1.4 var(--sans); color: #8a8a8a; }
.wg-cap, .wg-line, .wg-kind { opacity: 0; transform: translateY(6px); transition: opacity .6s, transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 90ms + 250ms); }
.wg-row.in .wg-cap, .wg-row.in .wg-line, .wg-row.in .wg-kind { opacity: 1; transform: none; }
.wg-track > .wg-row:last-child { border-bottom: 0; }
/* the first row still fits the first screen: leave room for its caption under the picture */
.wg-row.is-wide .wg-img, .wg-row.is-wide > :nth-child(2) .wg-img { height: max(280px, calc(100svh - var(--above, 480px) - 92px)); }
@media (max-width: 760px) {
  .wg-track { row-gap: 32px; padding-top: 16px; }
  .wg-row.is-wide .wg-img, .wg-row.is-wide > :nth-child(2) .wg-img { height: auto; aspect-ratio: 5 / 4; }
}
@media (prefers-reduced-motion: reduce) { .wg-cap, .wg-line, .wg-kind { opacity: 1; transform: none; transition: none; } }
/* Yanzi 2026-11-27: the boxed Space Mono tags come back, under the caption */
.wg-row .wg-col .wg-tags { margin-top: 10px; opacity: 0; transform: translateY(6px); transition: opacity .6s, transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 90ms + 250ms); }
.wg-row.in .wg-col .wg-tags { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .wg-row .wg-col .wg-tags { opacity: 1; transform: none; transition: none; } }
/* Yanzi 2026-11-27 "右边太窄了": row 1 is 3 : 2 (no divider lines any more, so it no longer has to match row 2) */
.wg-row.is-wide { grid-template-columns: 3fr 2fr; }
/* "不和谐": on one 6-column grid — row 1 halves (3 + 3), row 2 thirds (2 + 2 + 2); same 12px gutter */
.wg-row.is-wide { grid-template-columns: 1fr 1fr; }
/* Yanzi 2026-11-27 "rebirth 可以大一点": a 12-column grid — row 1 is 7 + 5; row 2 is 4 + 3 + 5, so the last card
   sits exactly under Fermologie and the first two exactly under Rebirth. Row 2 shares one height. */
.wg-row.is-wide { grid-template-columns: 7fr 5fr; }
.wg-row.is-three { grid-template-columns: 4fr 3fr 5fr; }
.wg-row.is-three .wg-img { aspect-ratio: auto; height: 27vw; }
@media (max-width: 760px) { .wg-row.is-three .wg-img { height: auto; aspect-ratio: 1; } }
/* exact: both rows on the same 12 columns (spans), so the gaps line up to the pixel */
.wg-row.is-wide, .wg-row.is-three { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.wg-row.is-wide > :nth-child(1) { grid-column: span 7; }
.wg-row.is-wide > :nth-child(2) { grid-column: span 5; }
.wg-row.is-three > :nth-child(1) { grid-column: span 4; }
.wg-row.is-three > :nth-child(2) { grid-column: span 3; }
.wg-row.is-three > :nth-child(3) { grid-column: span 5; }
@media (max-width: 760px) { .wg-row.is-wide, .wg-row.is-three { grid-template-columns: 1fr; } .wg-row > .wg-col { grid-column: auto !important; } }
/* fix: `.wg-track { display: grid }` was beating [hidden], so Index showed the list under the grid */
.wg-track[hidden] { display: none !important; }
/* Yanzi 2026-11-27 "位置不齐": tags sit on one line across a row, however long each description is
   (cards in a row are the same height; the tags go to the bottom of each card) */
.wg-row .wg-col .wg-tags { margin-top: auto; padding-top: 10px; }
/* Yanzi 2026-11-27: the Maarten Baas homepage cover a little closer (the posters fill more of the card) */
a.wg-col[href*="maarten-baas"] .wg-img > img { scale: 1.12; transform-origin: 50% 25%; }   /* zoom anchored high, so the dark edge at the bottom is cropped off */

/* Yanzi 2026-11-27 "把之前的那个线加回来": the thin lines come back — a line between cards and under each
   row, as before; the calm card order (picture, then name, line, tags) stays. 16px from each line. */
.wg-track { row-gap: 0; padding: 0; }
.wg-row, .wg-row.is-wide, .wg-row.is-three { column-gap: 0; border-bottom: 1px solid #000; }
.wg-track > .wg-row:last-child { border-bottom: 0; }
.wg-row > .wg-col { border-right: 1px solid #000 !important; padding: 16px 16px 20px; }
.wg-row > .wg-col:last-child { border-right: 0 !important; }
.wg-row > .wg-col:first-child { padding-left: var(--m); }
.wg-row > .wg-col:last-child { padding-right: var(--m); }
@media (max-width: 760px) {
  .wg-row > .wg-col { border-right: 0 !important; padding: 16px var(--m) 20px; }
  .wg-row.is-wide, .wg-row.is-three { border-bottom: 1px solid #000; }
}

/* Yanzi 2026-11-27 (after yimao.design): scrolling down, each work rises into place — fades in and lifts
   48px, the cards of a row one after another. Replaces the old "image rises out of its line" mask. */
.wg-row .wg-img, .wg-row.in .wg-img { clip-path: inset(0 0 0 0 round 6px); transition: none; }
.wg-row .wg-img > img, .wg-row.in .wg-img > img { transform: none; transition: transform .8s cubic-bezier(.16, 1, .3, 1), opacity .4s; }
.wg-row > .wg-col {
  opacity: 0; transform: translateY(48px);
  transition: opacity .9s ease, transform 1.2s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.wg-row > .wg-col.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .wg-row > .wg-col { opacity: 1; transform: none; transition: none; } }

/* Yanzi 2026-11-27: back to her earlier reveal (as on the live site) — each picture opens upward from its
   bottom edge (1.1s) while the image settles from 1.08 to its size (1.4s); cards in a row one after another.
   The card and its lines stay still (no lift). */
.wg-row > .wg-col, .wg-row > .wg-col.seen { opacity: 1; transform: none; transition: none; }
.wg-row > .wg-col .wg-img { clip-path: inset(100% 0 0 0 round 6px); transition: clip-path 1.1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.wg-row > .wg-col.seen .wg-img { clip-path: inset(0 0 0 0 round 6px); }
.wg-row > .wg-col .wg-img > img { transform: scale(1.08); transition: transform 1.4s cubic-bezier(.16, 1, .3, 1), opacity .4s; transition-delay: calc(var(--i, 0) * 90ms); }
.wg-row > .wg-col.seen .wg-img > img { transform: none; }
@media (hover: hover) { .wg-row > .wg-col.seen:hover .wg-img > * { transform: scale(1.03); transition-delay: 0s; } }
@media (prefers-reduced-motion: reduce) { .wg-row > .wg-col .wg-img { clip-path: inset(0 round 6px); transition: none; } .wg-row > .wg-col .wg-img > img { transform: none; } }

/* Yanzi 2026-11-27 "spacing 都太小": more air — 24px from the line above each picture, 48px under the tags
   to the row line (so rows breathe apart, and the last row sits clear of the email strip) */
.wg-row > .wg-col { padding-top: 24px; padding-bottom: 48px; }
.wg-row.is-wide .wg-img, .wg-row.is-wide > :nth-child(2) .wg-img { height: max(280px, calc(100svh - var(--above, 480px) - 124px)); }
@media (max-width: 760px) { .wg-row > .wg-col { padding-top: 20px; padding-bottom: 36px; } .wg-row.is-wide .wg-img, .wg-row.is-wide > :nth-child(2) .wg-img { height: auto; } }
/* Yanzi 2026-11-27 "是这里 space 更多": the grid closes with its own line, then 80px of white before the
   email strip (its top line) */
.wg-track > .wg-row:last-child { border-bottom: 1px solid #000; }
.wg-track { margin-bottom: 80px; }
@media (max-width: 760px) { .wg-track { margin-bottom: 56px; } }
/* Yanzi 2026-11-27 "这里有点尴尬": two parallel lines with an empty band between them — the email strip loses
   its top line on the homepage; the grid's own line closes the work, then white, then the strip */
.wg-page footer.h-foot { border-top: 0; }
.wg-track { margin-bottom: 48px; }
/* Yanzi 2026-11-27 "把这个线往下来点": the last row's closing line sits lower — more room under its tags */
.wg-track > .wg-row:last-child > .wg-col { padding-bottom: 96px; }
@media (max-width: 760px) { .wg-track > .wg-row:last-child > .wg-col { padding-bottom: 36px; } .wg-track > .wg-row:last-child > .wg-col:last-child { padding-bottom: 72px; } }
/* Yanzi 2026-11-27 "回到之前的宽度": no white gap — the email strip sits right under the work again, its top line
   closing the grid (one line, as before) */
.wg-track { margin-bottom: 0; }
.wg-track > .wg-row:last-child { border-bottom: 0; }
.wg-page footer.h-foot { border-top: 1px solid #000; }
@media (max-width: 760px) { .wg-track { margin-bottom: 0; } }
/* Yanzi 2026-11-27 (harmony pass): both rows the same space under the tags (72px); the Rite Aid logo motion
   sits on a light grey card so it has the same edge as the photos beside it */
.wg-row > .wg-col, .wg-track > .wg-row:last-child > .wg-col { padding-bottom: 72px; }
@media (max-width: 760px) { .wg-row > .wg-col, .wg-track > .wg-row:last-child > .wg-col { padding-bottom: 40px; } }
a.wg-col[href*="rite-aid"] .wg-img { background: #f3f3f3; }
a.wg-col[href*="rite-aid"] .wg-img > video { mix-blend-mode: multiply; }   /* the video's white turns into the card grey */
/* Yanzi 2026-11-27: caption a little further from the picture, the text itself kept as one tight block —
   picture → name 20px, name → description 4px, description → tags 14px */
.wg-cap { padding-top: 20px; }
.wg-row .wg-col .wg-line { padding-top: 4px !important; }
.wg-row .wg-col .wg-tags { padding-top: 14px; }
.wg-row.is-wide .wg-img, .wg-row.is-wide > :nth-child(2) .wg-img { height: max(280px, calc(100svh - var(--above, 480px) - 138px)); }
@media (max-width: 760px) { .wg-cap { padding-top: 16px; } .wg-row.is-wide .wg-img, .wg-row.is-wide > :nth-child(2) .wg-img { height: auto; } }
/* Yanzi 2026-11-28: the still that follows a card's motion (Rite Aid storefront) */
.wg-img > img.wg-after { opacity: 0; transition: opacity .7s ease; z-index: 1; object-position: 50% 68%; }   /* Yanzi: the storefront floor lines up with the It’s About Time shopfront next to it */
.wg-col.show-after .wg-img > img.wg-after { opacity: 1; }
/* Yanzi 2026-11-29: card lines fill the card naturally (balance looked odd); lone words are avoided by wording */
