/* =========================================================================
   Work index — desktop: Figma "WORK – List" (1100:2952, 1728)
     views  "Grid" x1496 / "List" x1613 (active #00D9BF) y994, 32/45 +2%
     head   "Project" x65 y1181, "Services" right 1663 y1174, 20/30 +2% #5B5B5B; line y1243 black
     rows   text 32/45 +2% every 102 from y1309; tags right 1663 at +6, gap 8;
            line under each row at +70, black 50%
     image  x621 340×326 r10 (hover preview, follows the pointer)
     then the Insights block at y2355
   Mobile: Figma "WORK – List" (1261:731, 440)
     views  y708 24/30 — right-aligned (Figma: left; moved right by decision 2026-09-28); head labels y778 16/24; line y823 black
     rows   title 20/28 from y863; tags +13, wrap within ~300 (gap 8 / 6); line 20 below,
            #999 50%; next title 20 below the line; image 88×72 r2 right, level with the title
   ========================================================================= */

.work-index { padding-top: calc(61 * var(--u)); padding-bottom: calc(58 * var(--u)); } /* text ends y647 → views y708; last line → black y1849 */

.work-index__views { display: flex; justify-content: flex-end; gap: calc(19 * var(--u)); font-size: max(calc(24 * var(--fu)), var(--fs-min)); line-height: calc(30 / 24); }
.work-index__view { text-align: left; }
.work-index__view:first-child { min-width: calc(43 * var(--u)); } /* Figma text boxes 43 / 36 (min: larger browser text widens them) */
.work-index__view:last-child { min-width: calc(36 * var(--u)); }
.work-index__view[aria-pressed="true"] { color: var(--teal); }
.work-index__view[aria-disabled="true"] { cursor: default; }

.work-list { margin-top: calc(40 * var(--u)); }
.work-list__head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: calc(20 * var(--u)); border-bottom: 1px solid var(--black); }
.work-list__label { font-size: max(calc(16 * var(--fu)), var(--fs-min)); line-height: calc(24 / 16); color: #5b5b5b; }
.work-list__label--services { display: none; } /* mobile: no right-hand column label (decided 2026-09-28) */

.work-list__body { position: relative; }
.work-list__rows { padding-top: calc(20 * var(--u)); }
.work-row { position: relative; }
.work-row__link { position: relative; display: grid; justify-items: start; row-gap: calc(13 * var(--u)); padding: calc(20 * var(--u)) 0; }
.work-row__title { font-size: max(calc(20 * var(--fu)), var(--fs-min)); line-height: calc(28 / 20); }
.work-row__tags { display: flex; flex-wrap: wrap; align-items: center; gap: calc(6 * var(--u)) calc(8 * var(--u)); max-width: calc(300 * var(--u)); }
.work-row__tags .tag { margin-block: calc(2 * var(--u)); } /* phones: each pill line keeps its old 28 slot (pills are 24 now) */
.work-row__thumb { position: absolute; top: calc(20 * var(--u)); right: 0; width: calc(88 * var(--u)); height: calc(72 * var(--u)); overflow: hidden; border-radius: 2px; background: #d9d9d9; }
.work-row__thumb img, .work-row__thumb video { width: 100%; height: 100%; object-fit: cover; }

/* Row line: grey 1px on every width (desktop too — client 2026-10-19: Figma's desktop 50% black read as black); hover (desktop, below) grows a black 2px line over it from the right edge, leaving shrinks it
   back (client request 2026-10-19; replaces unitedcarriers' slide-in highlight, timing kept: .6s ease). Absolute and
   bottom-aligned, so the thicker line never moves the layout. */
.work-row__line { position: relative; display: block; height: 1px; background: rgb(153 153 153 / 0.5); }
.work-row__line::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--black); transform: scaleX(0); transform-origin: right; transition: transform 0.6s ease; }

.work-list__thumb { display: none; }

@media (min-width: 1024px) {
	.work-index { padding-top: calc(145 * var(--u)); padding-bottom: calc(160 * var(--u)); } /* intro text ends y849 → views y994 */

	/* Boxes at Figma's text widths (59 / 50) so both words start where the design has them;
	   Inter Tight here sets ~2px narrower than Figma's render. */
	.work-index__views { justify-content: flex-end; gap: calc(58 * var(--u)); font-size: max(calc(32 * var(--u)), var(--fs-min)); line-height: calc(45 / 32); letter-spacing: 0; }
	.work-index__view:first-child { min-width: calc(59 * var(--u)); }
	.work-index__view:last-child { min-width: calc(50 * var(--u)); }

	.work-list { margin-top: calc(135 * var(--u)); } /* views end y1039 → "Services" y1174 */
	.work-list__head { padding-bottom: calc(31 * var(--u)); } /* labels y1181+30 → line y1242 */
	.work-list__label { font-size: max(calc(20 * var(--fu)), var(--fs-min)); line-height: calc(30 / 20); letter-spacing: 0; }
	.work-list__label--services { display: inline; }
	.work-list__label:first-child { margin: calc(7 * var(--u)) 0 0 0; } /* Figma: "Project" sits 7 below "Services" */

	.work-list__rows { padding-top: calc(34 * var(--u)); } /* line y1243 → first row y1309 (row pad 32) */
	.work-row__link {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		gap: calc(24 * var(--u));
		padding: calc(32 * var(--u)) 0 calc(24 * var(--u));
	}
	.work-row__title { font-size: max(calc(32 * var(--u)), var(--fs-min)); line-height: calc(45 / 32); letter-spacing: 0; }
	.work-row__thumb { display: none; }
	.work-row__tags { flex-wrap: nowrap; justify-content: flex-end; gap: calc(8 * var(--u)); max-width: none; margin-top: calc(6 * var(--u)); }
	.work-row__tags .tag { margin-block: 0; }

	/* Preview: stacked images, the active one fades in; JS moves the stack with the pointer. */
	.work-list__thumb {
		display: grid;
		position: absolute;
		top: 0;
		left: calc(556 * var(--u)); /* x621 − container x65 */
		width: calc(340 * var(--u));
		height: calc(326 * var(--u));
		pointer-events: none;
		z-index: 1;
		/* Grows 0 → 100% on the first hovered row, shrinks back on leaving the list (follow.js .is-shown;
		   client 2026-10-24 — RUH values, no Figma spec): soft quint-out in (0.8s), ease-in-out out (0.5s).
		   The scale is on the images: GSAP writes scale: none inline on the box it moves. */
		opacity: 0;
		transition: opacity 0.25s ease 0.25s;
	}
	.work-list__thumb.is-shown { opacity: 1; transition: opacity 0.25s ease; }
	.work-list__thumb-item {
		grid-area: 1 / 1;
		overflow: hidden;
		border-radius: 10px;
		background: #d9d9d9; /* projects without an image yet */
		opacity: 0;
		scale: 0;
		transition: opacity 0.3s cubic-bezier(0.445, 0.05, 0.55, 0.95), scale 0.5s cubic-bezier(0.65, 0, 0.35, 1);
	}
	.work-list__thumb-item.is-active { opacity: 1; }
	.work-list__thumb.is-shown .work-list__thumb-item { scale: 0.92; transition-duration: 0.3s, 0.8s; transition-timing-function: cubic-bezier(0.445, 0.05, 0.55, 0.95), var(--ease-out); }
	.work-list__thumb.is-shown .work-list__thumb-item.is-active { scale: 1; } /* row to row: the next image grows 92 → 100% as it fades in, the last one eases back */
	@media (prefers-reduced-motion: reduce) { .work-list__thumb-item { scale: 1 !important; } } /* fade only */
	.work-list__thumb-item img, .work-list__thumb-item video { width: 100%; height: 100%; object-fit: cover; }
}

@media (min-width: 1024px) and (hover: hover) {
	.work-row:hover .work-row__line::after { transform: scaleX(1); }
}

/* =========================================================================
   Work Grid — desktop (1094:308): 2 × 780×875 r10, gap 40, from y1125 (86 below the views);
     on hover: title x+32 bottom 32, 32/45 +2% white; tag (v2) 92×32 right 32, centred on the
     title, IBM Plex Mono 14/30 on #00D9BF, pad 1/12, square; 127px "Open ↗" cursor (casecursor.js)
   Mobile (1261:456): 400×449 r5, gap 20, from 32 below the views; title x+24 bottom 24,
     24/30 white; tag right 25, 12/16, centred on the title — always visible.
   Scrim: Figma's card gradient (black 0 → 30% from 20% height down) on every card for legibility.
   ========================================================================= */

.work-index[data-view="grid"] .work-index__view[aria-pressed="true"] { color: #14beaa; }

.work-grid { display: grid; gap: calc(20 * var(--u)); margin-top: calc(32 * var(--u)); }
.work-index:has(.work-grid:not([hidden])) { padding-bottom: calc(40 * var(--u)); } /* last card → dark block (440: y4502 → 4542) */
.work-card__link { position: relative; display: block; }
.work-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; /* client brief (Figma 400×449) */ border-radius: 5px; background: #d9d9d9; }
.work-card__media img, .work-card__media video { width: 100%; height: 100%; object-fit: cover; }
.work-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 20%, rgb(0 0 0 / 0.3)); }
.work-card__info {
	position: absolute;
	right: calc(25 * var(--u));
	bottom: calc(24 * var(--u));
	left: calc(24 * var(--u));
	z-index: 1;
	display: flex;
	flex-wrap: wrap; /* a long service tag drops under the title instead of running off the card */
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	color: var(--white);
}
.work-card__title { font-size: max(calc(24 * var(--fu)), var(--fs-min)); line-height: calc(30 / 24); }
.work-card__tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: calc(8 * var(--u)); max-width: 100%; } /* all services, outlined; teal = hover (client 2026-11-17); look = .tag (base.css) */
.work-card__tag { flex: none; max-width: 100%; color: rgb(255 255 255 / 0.85); border-color: rgb(255 255 255 / 0.55); } /* on the photo the grey #808080 / #626262 of the spec is unreadable, so white-ish at the same weight */

@media (min-width: 1024px) {
	.work-grid { grid-template-columns: repeat(2, calc(780 * var(--u))); gap: calc(40 * var(--u)); margin-top: calc(86 * var(--u)); }
	.work-index:has(.work-grid:not([hidden])) { padding-bottom: calc(44 * var(--u)); } /* last card → dark block y4789 */
	.work-card__media { border-radius: 10px; } /* 4:5 — client brief; Figma 780×875 */
	.work-card__info { right: calc(32 * var(--u)); bottom: calc(32 * var(--u)); left: calc(32 * var(--u)); }
	.work-card__title { font-size: max(calc(32 * var(--u)), var(--fs-min)); line-height: calc(45 / 32); letter-spacing: 0; }
	/* Over a pill the "Open ↗" circle hides (casecursor.js): the pill shows its own green hover, as in the List view (Habib 2026-11-17). */
	.work-card__tag:not(:hover) { transition: none; } /* green off at once on leaving, so the returning circle never blends over it (red) */
	.work-card__media img, .work-card__media video { transition: transform 1.2s var(--ease-out); }
}

/* Desktop mouse: title, tag and scrim appear on hover (Figma shows them on the hovered card only). */
@media (min-width: 1024px) and (hover: hover) {
	.work-card__media::after { opacity: 0; transition: opacity 0.5s var(--ease-out); }
	.work-card__info { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
	.work-card__link:hover .work-card__media::after,
	.work-card__link:hover .work-card__info,
	.work-card__link:focus-visible .work-card__info { opacity: 1; transform: none; }
	.work-card__link:hover .work-card__media img, .work-card__link:hover .work-card__media video { transform: scale(1.02); }
}


/* =========================================================================
   Work single — desktop (1144:4768): title x732 y524 174.8/174.8 300 +1%; services stacked
     on the left x65 from y536 (gap 8; 34 tall, stroke #808080, Azeret 300 14/20 #626262);
     intro x741 y734 517w 20/30 +2%; media 1598×875 r10 from y1121, gap 64.
   Mobile (1261:907): title y239 67/72.6; intro y377 16/24 #4E4E4E; services y602 (gap 10;
     28 tall, pad 8, Azeret 400 12/20 #8E8E8E); media 400×295 r5 from y742, gap 20.
   ========================================================================= */

.project { position: relative; display: block; padding-top: calc(239 * var(--u)); padding-bottom: calc(60 * var(--u)); }
/* Back arrow to the Work list — the Insights article's (article.css), Habib 2026-11-17. Phones: 100 above the title,
   as on the article; desktop: in the left column, on the title's first line (where the pills were). */
.project-back { position: absolute; top: calc((139 - 14.728 / 2) * var(--u)); left: var(--gutter); display: block; line-height: 0; color: var(--black); }
.project-back::after { content: ""; position: absolute; inset: calc(-14 * var(--u)) calc(-12 * var(--u)); } /* a 44px-ish tap area */
.project-back__arrow { display: block; height: calc(14.728 * var(--u)); overflow: visible; transition: transform 0.4s var(--ease-out); }
@media (hover: hover) { .project-back:hover .project-back__arrow { transform: translateX(-6px); } }
.project-back__arrow--41 { display: none; width: calc(41 * var(--u)); }
.project-back__arrow--33 { width: calc(33 * var(--u)); }
.project__head { display: grid; }
.project__title { font-size: max(calc(67 * var(--u)), var(--fs-min)); font-weight: 300; line-height: calc(72.6 / 67); }
.project__intro p { margin: 0; }
.project__intro p + p { margin-top: 1.5em; } /* paragraph gap = one blank line (line-height is 24/16 on phones, 30/20 on desktop = 1.5em both), as the client's other site (a double line break) */
.project__intro { order: 1; margin-top: calc(65 * var(--u)); font-size: max(calc(16 * var(--fu)), var(--fs-min)); line-height: calc(24 / 16); color: #4e4e4e; }
.project__tags { order: 2; display: grid; justify-items: start; align-items: center; grid-auto-rows: calc(28 * var(--u)); gap: calc(10 * var(--u)); margin-top: calc(81 * var(--u)); }

.project__media { display: grid; gap: var(--project-gap, 0px); margin-top: calc(74 * var(--u)); } /* client brief: images touch unless the project sets a gap (ruh_gap) */
.project__media { --media-r: 5px; }
/* The hero and the grey placeholders keep Figma's frame; the client's own images, videos, GIFs and
   embeds keep their proportions (full width). */
.project__media > * { margin: 0; overflow: hidden; border-radius: var(--media-r); }
.project__frame,
.project__media > .media-placeholder { aspect-ratio: 400 / 295; background: #cfcfcf; }
.project__media > * img,
.project__media > * video { display: block; width: 100%; height: auto; }
.project__frame img,
.project__frame video { height: 100%; object-fit: cover; }
/* Gap 0 (default): the images touch — only the outer corners stay rounded */
.project__media.is-flush > * { border-radius: 0; }
.project__media.is-flush > :first-child { border-radius: var(--media-r) var(--media-r) 0 0; }
.project__media.is-flush > :last-child { border-radius: 0 0 var(--media-r) var(--media-r); }
.project__media.is-flush > :only-child { border-radius: var(--media-r); }
/* Grey placeholders (demo / not replaced yet) aren't real media: they keep Figma's separate boxes — rounded,
   with the design gap — whatever the project's gap; otherwise five of them merge into one long grey slab. */
.project__media { --ph-gap: calc(20 * var(--u)); }
.project__media > .media-placeholder { border-radius: var(--media-r) !important; }
.project__media.is-flush > :has(+ .media-placeholder) { border-bottom-left-radius: var(--media-r); border-bottom-right-radius: var(--media-r); }
.project__media.is-flush > .media-placeholder + * { border-top-left-radius: var(--media-r); border-top-right-radius: var(--media-r); }
.project__media > * + .media-placeholder { margin-top: max(0px, calc(var(--ph-gap) - var(--project-gap, 0px))); }

/* "Images in the design frame" (project setting ruh_frame → .is-framed, 2026-10-24): the placeholder shape
   (--frame-r: 400×295 phones, 1600×875 desktop) for the blocks placed straight in the image column —
   Image and Video crop to fill (centred); Cover takes the shape; side-by-side Columns frame the whole row
   (stacked on a phone, each image gets the frame) — Columns nested inside a row too (2026-10-27: a row holding
   another Columns block let its tall image run 5,872px out over the page); YouTube / Vimeo keep the whole
   player, letterboxed on black inside the frame. Galleries and social embeds are untouched; an image whose own
   Aspect ratio is set (Image settings → inline aspect-ratio) keeps it. A framed row clips what still overflows. */
.project__media { --frame-r: 400 / 295; }
.project__media.is-framed > .wp-block-image img:not([style*="aspect-ratio"]),
.project__media.is-framed > .wp-block-columns .wp-block-image img:not([style*="aspect-ratio"]) { aspect-ratio: var(--frame-r); height: auto; object-fit: cover; }
/* WordPress stamps every video with its file's ratio and every min-height Cover with aspect-ratio:unset (inline) —
   not the editor's choice, so the frame overrides them; a Cover given its own Aspect ratio keeps it. */
.project__media.is-framed > .wp-block-video video { aspect-ratio: var(--frame-r) !important; height: auto; object-fit: cover; }
.project__media.is-framed > .wp-block-cover:not([style*="aspect-ratio"]),
.project__media.is-framed > .wp-block-cover[style*="aspect-ratio:unset"] { aspect-ratio: var(--frame-r) !important; min-height: 0 !important; }
.project__media.is-framed > .wp-block-columns .wp-block-image { margin: 0; overflow: hidden; border-radius: var(--media-r); }
.project__media.is-framed > .wp-block-columns .wp-block-columns { margin: 0; }
/* Side by side: the row is the frame, each half fills its height (a nested Columns block fills its half the same
   way) — from 782px (where WordPress stops stacking columns), and at any width for columns set not to stack */
@media (min-width: 782px) {
	.project__media.is-framed > .wp-block-columns { aspect-ratio: var(--frame-r); align-items: stretch !important; overflow: clip; border-radius: 0; }
	.project__media.is-framed > .wp-block-columns .wp-block-columns { flex: 1; align-items: stretch !important; }
	.project__media.is-framed > .wp-block-columns .wp-block-column { display: flex; min-width: 0; }
	.project__media.is-framed > .wp-block-columns .wp-block-image { flex: 1; }
	.project__media.is-framed > .wp-block-columns .wp-block-image img:not([style*="aspect-ratio"]) { aspect-ratio: auto; height: 100%; }
}
.project__media.is-framed > .wp-block-columns.is-not-stacked-on-mobile { aspect-ratio: var(--frame-r); align-items: stretch !important; overflow: clip; border-radius: 0; }
.project__media.is-framed > .wp-block-columns.is-not-stacked-on-mobile .wp-block-columns { flex: 1; align-items: stretch !important; }
.project__media.is-framed > .wp-block-columns.is-not-stacked-on-mobile .wp-block-column { display: flex; min-width: 0; }
.project__media.is-framed > .wp-block-columns.is-not-stacked-on-mobile .wp-block-image { flex: 1; }
.project__media.is-framed > .wp-block-columns.is-not-stacked-on-mobile .wp-block-image img:not([style*="aspect-ratio"]) { aspect-ratio: auto; height: 100%; }
/* YouTube / Vimeo: the frame, the player at its own shape centred inside (bars on black) */
.project__media.is-framed > .wp-block-embed.is-type-video { aspect-ratio: var(--frame-r); background: var(--black); container-type: size; display: grid; place-items: center; }
.project__media.is-framed > .wp-block-embed.is-type-video .wp-block-embed__wrapper { --embed-r: 16 / 9; position: relative; width: min(100cqw, 100cqh * (var(--embed-r))); aspect-ratio: var(--embed-r); }
.project__media.is-framed > .wp-block-embed.is-type-video .wp-block-embed__wrapper::before { display: none; }
.project__media.is-framed > .wp-block-embed.is-type-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.project__media.is-framed > .wp-embed-aspect-21-9 .wp-block-embed__wrapper { --embed-r: 21 / 9; }
.project__media.is-framed > .wp-embed-aspect-18-9 .wp-block-embed__wrapper { --embed-r: 2 / 1; }
.project__media.is-framed > .wp-embed-aspect-4-3 .wp-block-embed__wrapper { --embed-r: 4 / 3; }
.project__media.is-framed > .wp-embed-aspect-1-1 .wp-block-embed__wrapper { --embed-r: 1 / 1; }
.project__media.is-framed > .wp-embed-aspect-9-16 .wp-block-embed__wrapper { --embed-r: 9 / 16; }
.project__media.is-framed > .wp-embed-aspect-1-2 .wp-block-embed__wrapper { --embed-r: 1 / 2; }

@media (min-width: 1024px) {
	.project { padding-top: calc(524 * var(--u)); padding-bottom: calc(102 * var(--u)); } /* last media → dark y6793 */
	.project__head { grid-template-columns: calc(677 * var(--u)) 1fr; align-items: start; }
	.project__title { grid-column: 2; grid-row: 1; margin-left: calc(-9 * var(--u)); font-size: max(calc(174.8 * var(--u)), var(--fs-min)); line-height: 1; letter-spacing: 0; }
	.project-back { top: calc((524 + 12) * var(--u)); left: calc(var(--gutter) + 2 * var(--u)); display: flex; align-items: center; height: calc(34 * var(--u)); }
	.project-back__arrow--41 { display: block; }
	.project-back__arrow--33 { display: none; }
	/* Pills: left column, bottom-aligned with the intro, each row one intro line tall — the last pill sits on the intro's
	   last line (a multi-paragraph excerpt: the last paragraph's last line); more pills stack upwards (Habib 2026-11-17).
	   Figma (2026-11-18 screenshot): the last pill's bottom edge sits ~4px above that line's baseline, not centred on the
	   line box — so the column is lifted 10 (centred, the pill's bottom fell 6px below the baseline). */
	.project__tags { grid-column: 1; grid-row: 1 / 3; align-self: end; order: 0; font-size: max(calc(20 * var(--fu)), var(--fs-min)); line-height: calc(30 / 20); grid-auto-rows: 1lh; gap: calc(8 * var(--u)); margin: 0 0 calc(10 * var(--u)) calc(1 * var(--u)); }
	.project__intro { grid-column: 2; grid-row: 2; max-width: calc(826 * var(--u)); /* client 2026-11-14: wider block like her other site (Figma 517) */ margin-top: calc(35 * var(--u)); font-size: max(calc(20 * var(--fu)), var(--fs-min)); line-height: calc(30 / 20); letter-spacing: 0; color: var(--black); }
	/* Content edges 64–1664 = the sticky bar (Figma 65–1663, 2026-10-24); 1600:875 keeps Figma's 875 height. */
	.project__media { margin: calc(207 * var(--u)) 0 0; } /* intro y944 (+ Figma's trailing empty line 30) → y1121 */
	.project__media { --media-r: 10px; --ph-gap: calc(64 * var(--u)); --frame-r: 1600 / 875; }
	.project__frame,
	.project__media > .media-placeholder { aspect-ratio: 1600 / 875; }
}

/* =========================================================================
   Related Projects (dark end) — desktop: title y+160 56/64 300; Prev/Next 20/30 (gap 74);
     cards 512 (media 689 r10) gap 32 from +97; name 32/45 +2% 29 below; footer title +183.
   Mobile: title +60 36/40 300 +2%; cards 297 (media 400 r4) gap 12 from +32, swipe;
     name 20/28 22 below; footer title +80.
   ========================================================================= */

.related { padding: calc(60 * var(--u)) 0 calc(20 * var(--u)); background: var(--black); color: var(--white); }
.related__title { font-size: max(calc(36 * var(--u)), var(--fs-min)); font-weight: 300; line-height: calc(40 / 36); letter-spacing: 0; }
.related__nav { display: none; }
.related__track {
	display: grid;
	max-width: none; /* WP post-template caps it at 100% — the track bleeds past the column */
	grid-auto-flow: column;
	grid-auto-columns: calc(297 * var(--u));
	gap: calc(12 * var(--u));
	margin: calc(32 * var(--u)) calc(-1 * var(--gutter)) 0;
	padding: 0 var(--gutter);
	scroll-padding-inline: var(--gutter);
	overflow-x: auto;
	scroll-snap-type: none; /* free scrolling (slider.js) */
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.related__track::-webkit-scrollbar { display: none; }
.related-card { scroll-snap-align: start; }
.related-card__link { display: block; }
.related-card__media { display: block; overflow: hidden; aspect-ratio: 297 / 400; border-radius: 4px; background: #1c1c20; }
.related-card__media img, .related-card__media video { width: 100%; height: 100%; object-fit: cover; }
.related-card__title { display: block; margin-top: calc(22 * var(--u)); font-size: max(calc(20 * var(--fu)), var(--fs-min)); line-height: calc(28 / 20); }

@media (min-width: 1024px) {
	.related { padding: calc(160 * var(--u)) 0 calc(75 * var(--u)); } /* + footer 108 = 183 */
	.related__head { display: flex; justify-content: space-between; align-items: flex-start; }
	.related__nav { display: flex; } /* sizes: Prev / Next rules in components.css */
	.related__title { font-size: max(calc(56 * var(--u)), var(--fs-min)); line-height: calc(64 / 56); letter-spacing: 0; }
	.related__track { grid-auto-columns: calc(512 * var(--u)); gap: calc(32 * var(--u)); margin: calc(97 * var(--u)) 0 0; padding: 0; scroll-padding-inline: 0; }
	.related-card__media { aspect-ratio: 512 / 689; border-radius: 10px; }
	.related-card__title { margin-top: calc(29 * var(--u)); font-size: max(calc(32 * var(--u)), var(--fs-min)); line-height: calc(45 / 32); letter-spacing: 0; }
}
