/* andreasmathes.com – Etch design system (Convernatics golden image)
   Brand kept: Bodoni URW (display), Texta (text), #b75c58 accent, warm black, light grey.
   Rhythm: 8px scale, fluid type, 65ch measure, one button size, clamped card titles. */

@font-face { font-family: 'texta'; font-weight: 300; font-style: normal; font-display: swap; src: url(/wp-content/uploads/2021/05/Texta-Light-webfont.woff) format('woff'); }
@font-face { font-family: 'texta'; font-weight: 700; font-style: normal; font-display: swap; src: url(/wp-content/uploads/2021/05/Texta-Bold-webfont.woff) format('woff'); }
@font-face { font-family: 'bodoni-urw'; font-weight: 300; font-style: normal; font-display: swap; src: url(/wp-content/uploads/2021/05/BodoniURW-Lig.woff) format('woff'); }
@font-face { font-family: 'bodoni-urw'; font-weight: 400; font-style: normal; font-display: swap; src: url(/wp-content/uploads/2021/05/BodoniURW-Reg.woff) format('woff'); }

:root {
  --m-ink: #1e0a04;
  --m-ink-soft: #4a3a35;
  --m-muted: #6b5f5b;
  --m-accent: #b75c58;
  --m-accent-dark: #9a4643;
  --m-gold: #d7b26b;
  --m-bg: #f9f9f9;
  --m-paper: #ffffff;
  --m-grey: #e8e8e8;
  --m-line: #d9d4d2;

  --m-font-display: 'bodoni-urw', 'Bodoni 72', 'Didot', Georgia, serif;
  --m-font-text: 'texta', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;

  --m-text: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);     /* 17 → 19 */
  --m-small: 0.9375rem;                                        /* 15 */
  --m-meta: 0.875rem;                                          /* 14 */
  --m-lead: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);       /* 19 → 22 */
  --m-h1: clamp(2.5rem, 1.9rem + 2.6vw, 3.5rem);              /* 40 → 56 */
  --m-h2: clamp(1.875rem, 1.6rem + 1.2vw, 2.375rem);          /* 30 → 38 */
  --m-h3: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);         /* 22 → 26 */
  --m-card-title: clamp(1.25rem, 1.18rem + 0.3vw, 1.375rem);  /* 20 → 22 */

  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-6: 48px; --s-8: 64px; --s-12: 96px;
  --m-section: 48px; /* stepped on the 8px scale: 48 / 64 / 96 */
  --m-gutter: 20px;
  --m-top: 24px;        /* first band under the header */
  --m-col-gap: 32px;    /* hero / split columns */
  --m-grid-gap: 32px 16px;
  --m-container: 1200px;
  --m-measure: 30em; /* ≈ 65–72 characters of Texta Light */
  --m-radius: 2px;
}

@media (min-width: 768px) { :root { --m-section: 64px; --m-gutter: 32px; --m-top: 48px; --m-col-gap: 48px; --m-grid-gap: 40px 24px; } }
@media (min-width: 1200px) { :root { --m-section: 96px; --m-gutter: 48px; --m-col-gap: 64px; --m-grid-gap: 48px 32px; } }

/* ---------- base ---------- */
body.mathes-etch {
  margin: 0;
  background: var(--m-bg);
  color: var(--m-ink);
  font-family: var(--m-font-text);
  font-weight: 300;
  font-size: var(--m-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.mathes-etch *, .mathes-etch *::before, .mathes-etch *::after { box-sizing: border-box; }
.mathes-etch img, .mathes-etch video, .mathes-etch iframe { max-width: 100%; height: auto; display: block; }
.mathes-etch a { color: var(--m-accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.mathes-etch a:hover { color: var(--m-accent-dark); }
.mathes-etch :focus-visible { outline: 2px solid var(--m-accent); outline-offset: 3px; }
:where(.mathes-etch) :where(p) { margin: 0; text-wrap: pretty; }
:where(.mathes-etch) :where(ul, ol, dl, figure, blockquote, address) { margin: 0; }
.mathes-etch address { font-style: normal; }
.mathes-etch strong, .mathes-etch b { font-weight: 700; }

:where(.mathes-etch) :where(h1, h2, h3, h4) { margin: 0; text-wrap: balance; color: var(--m-ink); }

/* ---------- vertical rhythm: ONE flow rule for every text column ----------
   16 between related lines, 24 after a title block, 32 before a sub-heading, a list, media or buttons,
   48 before a section heading inside long text. Zero specificity, so components can still opt out. */
:where(.m-flow, .m-prose, .m-prose > .wp-block-post-content, .m-prose > .entry-content, .m-stack, .m-hero__text, .m-split__text, .m-work__text, .m-single-head, .m-cta-pair > div, .m-cta .m-container) > * + * { margin-top: var(--s-2); }
:where(.m-flow, .m-prose, .m-prose > .wp-block-post-content, .m-prose > .entry-content, .m-stack, .m-hero__text, .m-split__text, .m-work__text, .m-single-head, .m-cta-pair > div, .m-cta .m-container) > :is(h1, .m-hero__sub) + :is(p, address):not(.m-hero__sub) { margin-top: var(--s-3); }
:where(.m-flow, .m-prose, .m-prose > .wp-block-post-content, .m-prose > .entry-content, .m-stack, .m-hero__text, .m-split__text, .m-work__text, .m-single-head, .m-cta-pair > div, .m-cta .m-container) > * + :is(h2, h3, ul, ol, dl, figure, .m-video, .wp-block-image, .wp-block-gallery, .wp-block-columns) { margin-top: var(--s-4); }
:where(.m-flow, .m-prose, .m-prose > .wp-block-post-content, .m-prose > .entry-content, .m-stack, .m-hero__text, .m-split__text, .m-work__text, .m-single-head, .m-cta-pair > div, .m-cta .m-container) > :is(figure, .m-video, .wp-block-image, .wp-block-gallery, .wp-block-columns, ul, ol, dl) + * { margin-top: var(--s-4); }
:where(.m-flow, .m-prose, .m-prose > .wp-block-post-content, .m-prose > .entry-content, .m-stack, .m-hero__text, .m-split__text, .m-work__text, .m-single-head, .m-cta-pair > div, .m-cta .m-container) > :is(h2, h3, h4) + * { margin-top: var(--s-2); }
.m-prose > * + h2, .m-prose > .wp-block-post-content > * + h2 { margin-top: var(--s-6); }
.mathes-etch h1 { font-family: var(--m-font-display); font-weight: 400; font-size: var(--m-h1); line-height: 1.08; color: var(--m-accent); letter-spacing: -0.005em; }
.mathes-etch h2 { font-family: var(--m-font-display); font-weight: 400; font-size: var(--m-h2); line-height: 1.15; }
.mathes-etch h3 { font-family: var(--m-font-display); font-weight: 400; font-size: var(--m-h3); line-height: 1.2; }
.mathes-etch h4 { font-family: var(--m-font-text); font-weight: 700; font-size: var(--m-text); line-height: 1.35; }

.m-skip { position: absolute; left: -9999px; top: 0; }
.m-skip:focus { left: var(--s-2); top: var(--s-2); z-index: 100; background: var(--m-paper); padding: var(--s-1) var(--s-2); }
.m-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.m-container { width: 100%; max-width: calc(var(--m-container) + 2 * var(--m-gutter)); margin-inline: auto; padding-inline: var(--m-gutter); }
.m-section { padding-block: var(--m-section); }
.m-section--tight { padding-block: var(--s-6); }
main > .m-section:first-child { padding-top: var(--m-top); }
.m-section--paper { background: var(--m-paper); }
.m-section--grey { background: var(--m-grey); }
/* same background back to back = one section gap (not two); a colour change keeps the full band */
:is(.m-section, .m-hero):not(.m-section--paper, .m-section--grey) + .m-section:not(.m-section--paper, .m-section--grey) { padding-top: 0; }
.m-section--paper + .m-section--paper, .m-section--grey + .m-section--grey { padding-top: 0; }
.m-stack--sm > * + * { margin-top: var(--s-1); }
.m-prose { max-width: var(--m-measure); }
.m-prose h2 { font-size: var(--m-h3); }
.m-prose h3 { font-size: calc(var(--m-h3) * 0.85); }
.m-prose ul, .m-prose ol { padding-left: 1.2em; }
.m-prose li + li { margin-top: var(--s-1); }
.m-prose figure img { width: 100%; }
.m-prose .wp-block-image img { margin: 0; }

.m-kicker { font-family: var(--m-font-text); font-weight: 700; font-size: var(--m-meta); letter-spacing: 0.12em; text-transform: uppercase; color: var(--m-muted); margin: 0; }
.m-lead { font-size: var(--m-lead); line-height: 1.55; max-width: var(--m-measure); }
.m-meta { font-size: var(--m-meta); color: var(--m-muted); letter-spacing: 0.02em; }
.m-section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-4); flex-wrap: wrap; }
.m-section-head h2 { max-width: 22ch; }

/* ---------- buttons ---------- */
.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 12px 24px; border: 1px solid var(--m-accent); border-radius: var(--m-radius);
  background: var(--m-accent); color: #fff !important; text-decoration: none !important;
  font-family: var(--m-font-text); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; letter-spacing: 0.01em;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.m-btn:hover { background: var(--m-accent-dark); border-color: var(--m-accent-dark); }
.m-btn--ghost { background: transparent; color: var(--m-accent) !important; }
.m-btn--ghost:hover { background: var(--m-accent); color: #fff !important; }
.m-btn--light { background: #fff; border-color: #fff; color: var(--m-accent) !important; }
.m-btn--light:hover { background: transparent; color: #fff !important; }
.m-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
* + .m-actions { margin-top: var(--s-4); }
.m-link-arrow { font-weight: 700; text-decoration: none; }
.m-link-arrow::after { content: ' →'; }
.m-back { display: block; width: fit-content; margin: 0 0 var(--s-3); font-size: var(--m-small); font-weight: 700; text-decoration: none; }
.m-back::before { content: '← '; }

/* ---------- header ---------- */
.m-header { position: sticky; top: 0; z-index: 50; background: rgba(249, 249, 249, 0.94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.m-header.is-scrolled { border-bottom-color: var(--m-line); }
.m-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 72px; }
.m-logo img { width: 150px; height: auto; }
.m-nav { display: flex; gap: clamp(16px, 2.2vw, 36px); align-items: center; }
.m-nav a { font-size: 1.125rem; color: var(--m-ink); text-decoration: none; padding-block: 8px; border-bottom: 1px solid transparent; }
.m-nav a:hover, .m-nav a[aria-current="page"] { color: var(--m-accent); border-bottom-color: currentColor; }
.m-menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: var(--m-ink); font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
@media (max-width: 1023px) {
  .m-menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .m-nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--m-bg); padding: var(--s-2) var(--m-gutter) var(--s-4); border-bottom: 1px solid var(--m-line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  .m-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .m-nav a { font-size: 1.375rem; padding-block: 12px; border-bottom: 1px solid var(--m-line); }
}

/* ---------- hero ---------- */
.m-hero { padding-block: var(--m-top) var(--m-section); }
.m-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--m-col-gap); align-items: center; }
.m-hero__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.m-hero__text > p, .m-hero__text > address, .m-split__text > p, .m-stack > p, .m-columns-2 p { max-width: var(--m-measure); }
.m-hero__sub { font-family: var(--m-font-text); font-weight: 700; font-size: var(--m-lead); line-height: 1.3; color: var(--m-ink); }
.m-hero--text .m-hero__grid { grid-template-columns: minmax(0, 1fr); }
.m-hero--text .m-hero__text { max-width: 760px; }
@media (max-width: 860px) {
  .m-hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: start; }
  .m-hero__media { margin-inline: calc(-1 * var(--m-gutter)); }
  .m-hero__media img { aspect-ratio: 4 / 3; }
}

/* ---------- split (image + text) ---------- */
.m-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--m-col-gap); align-items: center; }
.m-split--reverse .m-split__media { order: 2; }
.m-split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.m-split__media--square img { aspect-ratio: 1 / 1; }
.m-split__text p { max-width: var(--m-measure); }
@media (max-width: 860px) {
  .m-split { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .m-split--reverse .m-split__media { order: 0; }
  .m-split__media img { aspect-ratio: 4 / 3; }
}

/* ---------- CTA band ---------- */
.m-cta { text-align: center; }
.m-cta .m-container > * { margin-inline: auto; }
.m-cta h2 { max-width: 24ch; }
.m-cta p { max-width: 52ch; }
.m-cta .m-actions { justify-content: center; }
.m-cta-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.m-cta-pair > div { background: var(--m-paper); padding: var(--s-4); text-align: center; }
.m-cta-pair > div > * { margin-inline: auto; }
.m-cta-pair .m-actions { justify-content: center; }
@media (min-width: 768px) { .m-cta-pair > div { padding: var(--s-6); } }
.m-panel { background: var(--m-paper); padding: var(--s-4); }
@media (min-width: 768px) { .m-panel { padding: var(--s-6); } }
.m-cta-pair h2 { font-size: var(--m-h3); }
@media (max-width: 720px) { .m-cta-pair { grid-template-columns: minmax(0, 1fr); } }

/* ---------- cards / grids ---------- */
.m-grid { display: grid; gap: var(--m-grid-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.m-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.m-grid--works { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.m-card { position: relative; display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.m-card__media { display: block; overflow: hidden; background: var(--m-grey); aspect-ratio: 1 / 1; }
.m-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.m-card:hover .m-card__media img { transform: scale(1.03); }
.m-card--landscape .m-card__media { aspect-ratio: 4 / 3; }
/* Home news rail: Andreas' Beitragsbilder sind fast immer 1:1 */
.m-rail .m-card__media { aspect-ratio: 1 / 1; }
.m-card__body { display: flex; flex-direction: column; gap: var(--s-1); flex: 1; }
.m-card__title { font-family: var(--m-font-display); font-weight: 400; font-size: var(--m-card-title); line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.m-card__title a { color: var(--m-ink); text-decoration: none; }
.m-card__title a::after { content: ''; position: absolute; inset: 0; }
.m-card__title a:hover { color: var(--m-accent); }
.m-card__text { font-size: var(--m-small); line-height: 1.55; color: var(--m-ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.m-card__meta { font-size: var(--m-meta); color: var(--m-muted); }
.m-card--work .m-card__title { -webkit-line-clamp: 2; font-size: 1.1875rem; }
.m-card--category { background: var(--m-paper); }
.m-card--category .m-card__body { padding: 0 var(--s-3) var(--s-3); gap: var(--s-1); }
.m-card--category .m-card__title { -webkit-line-clamp: 2; }
.m-card--category .m-link-arrow { margin-top: auto; padding-top: var(--s-1); position: relative; z-index: 1; font-size: var(--m-small); }

/* horizontal rail (home news) */
.m-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 3 * 32px) / 4)); gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-2); scrollbar-width: thin; scrollbar-color: var(--m-line) transparent; }
.m-rail > * { scroll-snap-align: start; }
.m-rail-nav { display: flex; gap: var(--s-1); }
.m-rail-nav button { width: 44px; height: 44px; border: 1px solid var(--m-line); background: var(--m-paper); color: var(--m-ink); border-radius: 50%; cursor: pointer; font-size: 1.125rem; }
.m-rail-nav button:hover { border-color: var(--m-accent); color: var(--m-accent); }
@media (max-width: 1023px) { .m-rail { grid-auto-columns: minmax(250px, 42%); } }
@media (max-width: 600px) { .m-rail { grid-auto-columns: 80%; gap: 20px; } .m-rail-nav { display: none; } }

/* news archive: first post featured */
.m-news { display: grid; gap: var(--m-grid-gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m-news > .m-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--m-col-gap); align-items: center; padding-bottom: var(--s-2); }
.m-news > .m-card:first-child .m-card__media { aspect-ratio: 16 / 10; }
.m-news > .m-card:first-child .m-card__title { font-size: var(--m-h2); -webkit-line-clamp: 4; }
.m-news > .m-card:first-child .m-card__text { font-size: var(--m-text); -webkit-line-clamp: 5; }
.m-news .m-card__media { aspect-ratio: 4 / 3; }
@media (max-width: 1023px) { .m-news { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .m-news { grid-template-columns: minmax(0, 1fr); }
  .m-news > .m-card:first-child { grid-template-columns: minmax(0, 1fr); }
  .m-news > .m-card:first-child .m-card__title { font-size: var(--m-h3); }
}

/* ---------- lists (exhibitions, public art, facts) ---------- */
.m-list { border-top: 1px solid var(--m-line); }
.m-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s-3); padding-block: var(--s-3); border-bottom: 1px solid var(--m-line); position: relative; }
.m-row__date { font-family: var(--m-font-display); font-size: var(--m-h3); line-height: 1.1; color: var(--m-accent); }
.m-row__date small { display: block; font-family: var(--m-font-text); font-size: var(--m-meta); color: var(--m-muted); margin-top: 6px; letter-spacing: 0.04em; }
.m-row__title { font-family: var(--m-font-text); font-weight: 700; font-size: 1.1875rem; line-height: 1.35; }
.m-row__title a { color: var(--m-ink); text-decoration: none; }
.m-row__title a::after { content: ''; position: absolute; inset: 0; }
.m-row__title a:hover { color: var(--m-accent); }
.m-row__body { display: flex; flex-direction: column; gap: 4px; }
.m-row__body .m-meta { font-size: var(--m-small); }
@media (max-width: 600px) { .m-row { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); } .m-row__date { font-size: 1.25rem; } }

.m-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s-1) var(--s-3); margin: 0; font-size: var(--m-small); }
.m-facts dt { color: var(--m-muted); }
.m-facts dd { margin: 0; }
.m-columns-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--m-col-gap); }
@media (max-width: 860px) { .m-columns-2 { grid-template-columns: minmax(0, 1fr); } }
.m-plain-list { list-style: none; padding: 0; margin: 0; }
.m-plain-list li { padding-block: 10px; border-bottom: 1px solid var(--m-line); }
.m-plain-list li:first-child { border-top: 1px solid var(--m-line); }

/* ---------- gallery + lightbox ---------- */
.m-gallery { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.m-gallery button { padding: 0; border: 0; background: var(--m-grey); cursor: zoom-in; aspect-ratio: 1 / 1; overflow: hidden; }
.m-gallery img { width: 100%; height: 100%; object-fit: cover; }
.m-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 10, 8, 0.94); display: none; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.m-lightbox.is-open { display: flex; }
.m-lightbox figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 12px; }
.m-lightbox img { max-height: calc(100vh - 140px); width: auto; margin-inline: auto; object-fit: contain; }
.m-lightbox figcaption { color: #eee; font-size: var(--m-small); text-align: center; }
.m-lightbox__close, .m-lightbox__prev, .m-lightbox__next { position: absolute; background: none; border: 0; color: #fff; font-size: 2rem; width: 48px; height: 48px; cursor: pointer; }
.m-lightbox__close { top: 8px; right: 8px; }
.m-lightbox__prev { left: 4px; top: 50%; }
.m-lightbox__next { right: 4px; top: 50%; }

/* press images */
.m-press-img { display: flex; flex-direction: column; gap: var(--s-2); margin: 0; }
.m-press-img button { padding: 0; border: 0; background: var(--m-grey); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.m-press-img img { width: 100%; height: 100%; object-fit: cover; }
.m-press-img__credit { font-size: var(--m-meta); color: var(--m-muted); }
.m-press-img__title { font-size: var(--m-small); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.m-download { font-size: var(--m-small); font-weight: 700; text-decoration: none; }
.m-download::before { content: '↓ '; }

/* ---------- consent-aware video ---------- */
/* YouTube via Convernatics Consent: dark 16:9 stage, consent placeholder restyled to the brand */
.m-video { position: relative; aspect-ratio: 16 / 9; background: #1b1310; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2); text-align: center; padding: var(--s-4); }
.m-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mathes-etch [hidden], .m-video iframe[hidden] { display: none !important; }
.m-video:has(iframe:not([hidden])) { padding: 0; }
.m-video:has(iframe:not([hidden])) > :not(iframe) { display: none; }
.m-video__notice { max-width: 46ch; font-size: var(--m-small); color: #fff; }
.m-video .cc-placeholder { --cc-surface: transparent; --cc-ink: #fff; --cc-muted: #e9dcd8; --cc-line: rgba(255,255,255,.35); --cc-accent: var(--m-accent); background: transparent; border: 0; padding: 0; box-shadow: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-1) var(--s-2); max-width: 46ch; color: #fff; }
.m-video .cc-placeholder > strong, .m-video .cc-placeholder > p { display: none; }
.m-video .cc-placeholder details { flex-basis: 100%; order: 3; font-size: 14px; text-align: left; }
.m-video .cc-placeholder a { color: #f1c9c6; }
.m-video .cc-placeholder [data-cc-action=always] { color: #fff; }
@media (max-width: 600px) { .m-video { aspect-ratio: auto; min-height: 56vw; } .m-video .cc-placeholder details { display: none; } }
/* Consent dialog + privacy table in brand colours */
.cc-dialog, .cc-placeholder { --primary: var(--m-accent); font-family: var(--m-font-text); }
.cc-cookie-table { margin-top: var(--s-2); overflow-x: auto; }
.m-cookie-table { max-width: none; }
.cc-cookie-table table { width: 100%; border-collapse: collapse; font-size: var(--m-small); }
.cc-cookie-table th, .cc-cookie-table td { text-align: left; vertical-align: top; padding: var(--s-1) var(--s-2) var(--s-1) 0; border-bottom: 1px solid var(--m-line); }
.cc-cookie-table caption { text-align: left; font-weight: 700; padding-bottom: var(--s-2); }
video.m-video-file { width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* ---------- artwork / single ---------- */
.m-work { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--m-col-gap); align-items: start; }
.m-work__media img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; background: var(--m-paper); }
.m-work__text { position: sticky; top: 96px; }
.m-work__sub { font-size: var(--m-lead); color: var(--m-ink-soft); }
.m-badge { display: inline-block; font-size: var(--m-meta); font-weight: 700; letter-spacing: 0.04em; color: var(--m-accent); border: 1px solid currentColor; padding: 4px 10px; border-radius: 99px; }
@media (max-width: 860px) { .m-work { grid-template-columns: minmax(0, 1fr); } .m-work__text { position: static; } }
.m-single-head { max-width: 860px; }
.m-single-media { margin-top: var(--s-6); }
.m-single-media img { width: 100%; max-height: 78vh; object-fit: cover; }
.m-single-body { margin-top: var(--s-6); }
.m-single-head + .m-single-body { margin-top: var(--s-4); }
.m-single-body:not(:has(p, img, figure, ul, ol, h2, h3, iframe, table)) { display: none; }
.m-ggpkg { width: 100%; min-height: 420px; }
.m-ggpkg > * { width: 100% !important; }

/* ---------- footer ---------- */
.m-newsletter { background: var(--m-accent); color: #fff; text-align: center; }
.m-newsletter h2 { color: #fff; }
.m-newsletter p { margin: var(--s-2) auto 0; max-width: 46ch; }
.m-newsletter .m-actions { margin-top: var(--s-4); }
.m-newsletter .m-actions { justify-content: center; }
.m-footer { background: var(--m-grey); padding-block: var(--s-8) var(--s-4); font-size: var(--m-small); }
.m-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: var(--s-4); }
.m-footer h2 { font-family: var(--m-font-text); font-weight: 700; font-size: var(--m-meta); letter-spacing: 0.12em; text-transform: uppercase; color: var(--m-muted); margin-bottom: var(--s-2); }
.m-footer ul { list-style: none; padding: 0; margin: 0; }
.m-footer li + li { margin-top: 10px; }
.m-footer a { color: var(--m-ink); text-decoration: none; }
.m-footer a:hover { color: var(--m-accent); }
.m-footer__brand img { width: 140px; }
.m-footer__brand p { margin: var(--s-2) 0 0; color: var(--m-ink-soft); max-width: 30ch; }
.m-footer__bottom { margin-top: var(--s-6); padding-top: var(--s-3); border-top: 1px solid var(--m-line); display: flex; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; color: var(--m-muted); font-size: var(--m-meta); }
.m-footer__bottom a { color: var(--m-muted); text-decoration: underline; }
@media (max-width: 900px) { .m-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .m-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .m-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* Gutenberg content inside posts (news, press, artworks) */
.m-prose .wp-block-columns { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.m-prose .wp-block-column { flex: 1 1 240px; }
.m-prose .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: var(--s-2); }
.m-prose .wp-block-gallery figure { margin: 0; }
.m-prose .wp-block-gallery img { aspect-ratio: 1 / 1; object-fit: cover; }
.m-prose .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; }

@media (prefers-reduced-motion: reduce) {
  .mathes-etch * { transition: none !important; scroll-behavior: auto !important; }
}
