/**
 * Portfolio Displays — the scrolling project page (2.10).
 * Big title, one discipline line, pictures large and stacked, words in a narrow column beside a short label,
 * a credits table and previous / next. Fonts follow the site; sizes scale with the page width.
 *
 * 2.11: these are defaults only. Anything the owner sets in Elementor wins: the context of each rule sits inside
 * :where() (no weight), leaving one class on the element itself, just enough to stay above a theme's bare element
 * styles (h1, p, a) and below every Elementor control and the Site Settings. Colours and fonts come from the plugin's
 * theme, then the Elementor kit (Site Settings › Global Colours / Fonts), then a plain fallback. Nothing here styles
 * the owner's own Heading or Text widgets: the seeded title and line carry their look in their own settings.
 */
.pfd-case { --pfd-case-gutter: clamp(18px, 5vw, 64px); --pfd-case-ink: var(--pfd-fg, var(--e-global-color-text, #111)); --pfd-case-muted: color-mix(in srgb, var(--pfd-case-ink) 58%, transparent); --pfd-case-line: color-mix(in srgb, var(--pfd-case-ink) 14%, transparent);
  max-width: 1320px; margin: 0 auto; padding-bottom: 120px; color: var(--pfd-case-ink); font-family: var(--pfd-font-body, var(--e-global-typography-text-font-family, inherit)); container-type: inline-size; }
.pfd-case__top { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 12px); z-index: 4; display: flex; justify-content: flex-end; padding: 12px var(--pfd-case-gutter) 0; height: 0; overflow: visible; }
/* doubled class: outranks theme button styles (Hello's red outline) */
.pfd-case__flip.pfd-case__flip { min-width: 0; min-height: 0; line-height: 1; font: inherit; text-transform: none; }
.pfd-case__flip.pfd-case__flip:hover, .pfd-case__flip.pfd-case__flip:focus { background: color-mix(in srgb, var(--pfd-bg, #fff) 88%, transparent); color: var(--pfd-case-ink, #111); }
.pfd-case__flip.pfd-case__flip { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--pfd-case-ink, #111);
  background: color-mix(in srgb, var(--pfd-bg, #fff) 88%, transparent); border: 1px solid var(--pfd-case-line, rgba(0,0,0,.14)); box-shadow: 0 2px 12px rgba(0, 0, 0, .08); backdrop-filter: blur(8px); transition: transform .2s; }
.pfd-case__flip svg { width: 22px; height: 22px; }
.pfd-case__flip:hover { transform: scale(1.06); }
.pfd-case__flip:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.pfd-case__head { padding: clamp(48px, 8cqi, 110px) var(--pfd-case-gutter) 0; max-width: 1100px; }
.pfd-case__title { font-family: var(--pfd-font-heading, var(--e-global-typography-primary-font-family, inherit)); font-weight: 800; font-size: clamp(38px, 8.4cqi, 112px); line-height: .95; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.pfd-case__kick { margin: 16px 0 0; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--pfd-case-muted); }
.pfd-case__media { margin: clamp(24px, 4cqi, 48px) var(--pfd-case-gutter) 0; }
:where(.pfd-case__media) img, :where(.pfd-case__media) video { display: block; width: 100%; height: auto; max-width: 100%; border-radius: 3px; }
:where(.pfd-case__media) figure { margin: 0; }
/* Before / after on the scrolling page: both pictures fill the slider's box (the handle and its grip: pages.css) */
.pfd-case .pfd-ba { position: relative; overflow: hidden; border-radius: 3px; }
.pfd-case .pfd-ba :where(img) { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.pfd-case__grid { display: grid; grid-template-columns: repeat(var(--pfd-cols, 2), minmax(0, 1fr)); gap: clamp(8px, 1.6cqi, 20px); }
:where(.pfd-case__grid) img { width: 100%; height: auto; aspect-ratio: var(--pfd-nat-ar, auto); object-fit: cover; }
/* 2.12.3: never WordPress's 3000 × 1500 stand-in size for a lazy picture (it made 1500 px tall grid rows) */
.pfd-case img { contain-intrinsic-size: none; }
@container (max-width: 640px) { .pfd-case__grid { grid-template-columns: 1fr; } }
/* Reels: side by side on wide screens, a sideways swipe on phones */
.pfd-case__reels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(8px, 1.6cqi, 20px); }
:where(.pfd-case__reels) video { aspect-ratio: 9 / 16; object-fit: cover; }
@container (max-width: 640px) { .pfd-case__reels { grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .pfd-case__reels figure { scroll-snap-align: center; } }
.pfd-case__media.pfd-lottie { aspect-ratio: 16 / 9; }
:where(.pfd-case__embed) iframe { width: 100%; max-width: 100%; }
.pfd-case__text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(12px, 4cqi, 56px); padding: clamp(28px, 5cqi, 64px) var(--pfd-case-gutter) 0; }
@container (max-width: 700px) { .pfd-case__text { grid-template-columns: 1fr; gap: 8px; } }
/* The opening question (an intro whose first paragraph asks one): a lead line across both columns, a step above the text, never a headline */
.pfd-case__question { grid-column: 1 / -1; margin: 0 0 clamp(6px, 1.4cqi, 16px); max-width: 46ch; font-family: var(--pfd-font-heading, var(--e-global-typography-primary-font-family, inherit)); font-weight: 700; font-size: clamp(18px, 2.3cqi, 30px); line-height: 1.22; letter-spacing: -.01em; text-wrap: balance; }
.pfd-case__label { font-family: var(--pfd-font-heading, var(--e-global-typography-primary-font-family, inherit)); font-weight: 800; font-size: 15px; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.pfd-case__label--solo { padding: clamp(28px, 5cqi, 64px) var(--pfd-case-gutter) 0; }
.pfd-case__body { min-width: 0; }
.pfd-case__body :where(p) { margin: 0 0 .85em; font-size: clamp(16px, 1.5cqi, 19px); line-height: 1.55; max-width: 60ch; }
.pfd-case__link { margin-top: 6px; }
.pfd-case__quote { margin: clamp(36px, 6cqi, 80px) var(--pfd-case-gutter) 0; max-width: 980px; }
.pfd-case__quote :where(p) { font-family: var(--pfd-font-heading, var(--e-global-typography-primary-font-family, inherit)); font-weight: 800; font-size: clamp(26px, 4.4cqi, 56px); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
:where(.pfd-case__quote) footer { margin-top: 14px; color: var(--pfd-case-muted); font-size: 15px; }
.pfd-case__metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin: 18px var(--pfd-case-gutter) 0; }
.pfd-case__metrics :where(dt) { font-family: var(--pfd-font-heading, var(--e-global-typography-primary-font-family, inherit)); font-weight: 800; font-size: clamp(30px, 4.6cqi, 60px); line-height: 1; }
.pfd-case__metrics :where(dd) { margin: 6px 0 0; color: var(--pfd-case-muted); }
.pfd-case__credits { margin: clamp(48px, 7cqi, 96px) var(--pfd-case-gutter) 0; border-top: 1px solid var(--pfd-case-line); }
.pfd-case__credits > :where(div) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--pfd-case-line); font-size: 15px; }
.pfd-case__credits :where(dt) { color: var(--pfd-case-muted); }
.pfd-case__credits :where(dd) { margin: 0; }
.pfd-case__nav { display: flex; justify-content: space-between; gap: 18px; padding: clamp(40px, 6cqi, 80px) var(--pfd-case-gutter) 0; }
/* the link class twice: just above a theme's a:hover (one class + one element), still far below Elementor's controls */
.pfd-case__nav-link.pfd-case__nav-link { color: var(--pfd-case-ink); text-decoration: none; font-family: var(--pfd-font-heading, var(--e-global-typography-primary-font-family, inherit)); font-weight: 800; font-size: clamp(17px, 2.4cqi, 28px); line-height: 1.15; max-width: 45%; }
:where(.pfd-case__nav) .pfd-case__nav-title { display: block; }
:where(.pfd-case__nav) .pfd-case__nav-label { display: block; font: 500 12px/1.3 var(--pfd-font-ui, var(--e-global-typography-text-font-family, inherit)); letter-spacing: .09em; text-transform: uppercase; color: var(--pfd-case-muted); margin-bottom: 6px; }
:where(.pfd-case__nav) .pfd-case__nav-link:where(:hover) .pfd-case__nav-title { text-decoration: underline; text-underline-offset: 4px; }
:where(.pfd-case__nav) .pfd-case__next { text-align: right; }
/* Sound on a playing clip: tapping toggles it; a small mark says which state it is in */
.pfd-case [data-pfd-autoplay] { cursor: pointer; }
/* A Magazine page widget drawn on a built project page ("page look"): the blocks sit in their container */
.pfd-sheetbox--plain { max-width: none; }
.pfd-sheetbox--plain .pfd-case__media, .pfd-sheetbox--plain .pfd-case__text, .pfd-sheetbox--plain .pfd-case__quote, .pfd-sheetbox--plain .pfd-case__metrics, .pfd-sheetbox--plain .pfd-case__label--solo { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
/* A plain sheet inside a column is not a whole page: no page padding, no container width cap */
.pfd-case.pfd-sheetbox--plain { padding-bottom: 0; max-width: none; }
.pfd-sheetbox--plain .pfd-case__media:first-child, .pfd-sheetbox--plain .pfd-case__text:first-child { margin-top: 0; padding-top: 0; }
/* "Where it shows": magazine-only blocks leave the project page; in the editor they stay, marked */
.pfd-single--built .pfd-sheet-show-magazine { display: none !important; }
.elementor-editor-active .pfd-single--built .pfd-sheet-show-magazine, .elementor-edit-area .pfd-sheet-show-magazine { display: flex !important; outline: 2px dashed rgba(219, 0, 50, .55); outline-offset: -2px; }
.pfd-sheetbox { position: relative; }
.pfd-show-badge { position: absolute; top: 8px; left: 8px; z-index: 5; padding: 3px 8px; border-radius: 999px; background: #db0032; color: #fff; font: 600 11px/1.4 system-ui, sans-serif; letter-spacing: .02em; pointer-events: none; }
/* Built pages: the book icon widget, the seeded title / line (their look is in their own widget settings; these
   are only what Elementor has no control for, at no weight), and the credits + next widget */
.pfd-case-flipdock { position: fixed; top: calc(var(--wp-admin--admin-bar--height, 0px) + 16px); right: clamp(14px, 3vw, 32px); z-index: 50; }
.elementor-editor-active .pfd-case-flipdock, .elementor-edit-area .pfd-case-flipdock { position: static; display: flex; justify-content: flex-end; }
:where(.pfd-case-title) :where(.elementor-heading-title) { text-wrap: balance; }
:where(.pfd-case-kick) :where(p) { opacity: .6; }
:where(.pfd-case-kick) :where(p:last-child) { margin-bottom: 0; }
.pfd-case.pfd-case--end { padding-bottom: 40px; max-width: none; }
.pfd-case--end .pfd-case__credits, .pfd-case--end .pfd-case__nav { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
/* Print: the page itself, clean */
@media print { .pfd-case__top, .pfd-case__nav { display: none !important; } .pfd-case video { display: none; } }
@media (prefers-reduced-motion: reduce) { .pfd-case__flip { transition: none; } }
