/* Ewa Kalińska – public site. Black gallery look inspired by the original Divi site. */
:root {
  --bg: #000;
  --bg-2: #0d0d0d;
  --line: #262626;
  --text: #d9d6d0;
  --muted: #8d8a84;
  --head: #f4f1ea;
  --accent: #c8ad7f;
  --on-accent: #000;
  --header-bg: #000;
  --header-line: #111;
  --nav: #fff;
  --nav-muted: #6d6a65;
  --tile: #111;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Open Sans", Arial, sans-serif;
  --wrap: 1240px;
  --header-h: 86px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 300 15px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--head); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--head); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: .01em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: 22px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); border-bottom: 1px solid var(--header-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 86px; }
.logo { display: block; }
/* the signature (a transparent PNG) is used as a mask and painted in the logo colour from the admin */
.logo-mark { display: block; height: 52px; width: calc(52px * var(--logo-ratio, 4.4)); max-width: 46vw; background: var(--logo, #fff);
  -webkit-mask: var(--logo-url) left center / contain no-repeat; mask: var(--logo-url) left center / contain no-repeat; }
.main-nav { display: flex; gap: 34px; }
.main-nav a { color: var(--nav); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); border-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--nav); margin: 6px 0; transition: transform .25s, opacity .25s; }

/* hero */
/* the whole photo is always visible (with the text that is part of it): it fits the screen height,
   and on screens wider than the photo the sides are filled with a soft, blurred copy of it */
.hero { position: relative; overflow: hidden; background: #000; }
.hero::before { content: ""; position: absolute; inset: -40px; background: var(--hero-bg) center / cover no-repeat; filter: blur(28px) brightness(.55); transform: scale(1.1); }
.hero img { position: relative; display: block; width: 100%; height: auto; max-height: calc(100vh - var(--header-h)); max-height: calc(100svh - var(--header-h)); object-fit: contain; }
.intro { text-align: center; padding: 64px 24px 16px; }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3.5vw, 40px); color: var(--head); margin: 0; }
.quote::before, .quote::after { content: ""; display: block; width: 60px; height: 1px; background: var(--accent); margin: 22px auto; }

.section { padding: 56px 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.section-head h2 { margin: 0 0 12px; }
.more { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }

.page-head { padding: 64px 24px 30px; text-align: center; }
.page-head h1::after { content: ""; display: block; width: 60px; height: 1px; background: var(--accent); margin: 24px auto 0; }

/* gallery */
/* gallery: slimmer page title, categories as thin underlined tabs (like the menu),
   the bar sticks under the header while scrolling */
.page-gallery .page-head { padding: 34px 24px 4px; }
.page-gallery .page-head h1 { font-size: clamp(32px, 4vw, 42px); margin: 0; }
.page-gallery .page-head h1::after { margin-top: 16px; }
.filters { position: sticky; top: 86px; z-index: 20; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 30px;
  margin: 0 -24px 26px; padding: 16px 24px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.filters button { background: none; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; color: var(--muted);
  font: 400 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 0 0 14px; cursor: pointer; transition: color .2s, border-color .2s; white-space: nowrap; }
.filters button:hover { color: var(--head); }
.filters button.active { color: var(--accent); border-bottom-color: var(--accent); }





/* masonry mosaic (like the old site): whole works, tight 5px joints, order left → right */
.mosaic { --gap: 5px; --cols: 3; position: relative; display: flex; flex-wrap: wrap; gap: var(--gap); }
.mosaic .work { position: relative; margin: 0; width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); background: var(--tile); }
.mosaic.js { display: block; }
.mosaic.js .work { position: absolute; top: 0; left: 0; }
.mosaic.js .work img { opacity: 0; transition: opacity .5s ease, transform .6s ease, filter .4s; }
.mosaic.js .work.loaded img { opacity: 1; }
.work a { position: absolute; inset: 0; display: block; overflow: hidden; }
.work img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .6s ease, filter .4s; }
.work a:hover img { transform: scale(1.03); filter: brightness(.82); }
.work figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #ddd; font-size: 12.5px; line-height: 1.45; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.work a:hover figcaption, .work a:focus-visible figcaption { opacity: 1; transform: none; }
.work figcaption strong { display: block; color: #fff; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.work figcaption .status { display: block; color: var(--accent); font-style: normal; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }
.work.hide { display: none; }
.work.fade { animation: fade .45s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* exhibitions */
.ex-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ex-card { display: block; color: var(--text); }
.ex-card .ex-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); }
.ex-card img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s; }
.ex-card:hover img { transform: scale(1.04); }
.ex-meta { padding-top: 14px; }
.ex-meta h3 { margin: 4px 0; color: var(--head); }
.ex-date { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.ex-venue { font-size: 13px; color: var(--muted); }

.ex-list { max-width: 980px; padding-bottom: 60px; }
.ex-group { font-size: 13px; font-family: var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin: 46px 0 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ex-rows { list-style: none; margin: 0; padding: 0; }
.ex-rows li { border-bottom: 1px solid var(--line); }
.ex-rows a { display: grid; grid-template-columns: 96px 64px 1fr; align-items: center; gap: 22px; padding: 16px 0; color: var(--text); transition: background .2s; }
.ex-rows a:hover { background: var(--bg-2); }
.ex-rows .thumb { width: 96px; height: 72px; background: var(--bg-2); overflow: hidden; }
.ex-rows .thumb img { width: 100%; height: 100%; object-fit: contain; }
.ex-rows .year { font-family: var(--serif); font-size: 24px; color: var(--muted); }
.ex-rows strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 400; color: var(--head); line-height: 1.25; }
.ex-rows .info > span { font-size: 13px; color: var(--muted); }
.ex-head .back { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 26px; }
.kicker { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.ex-sub { color: var(--muted); margin: 18px 0 0; }
.ex-head h1::after { display: none; }
/* exhibition: title picture (poster) beside the description, like the original site */
.ex-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 60px; align-items: start; padding-bottom: 56px; }
.ex-feature.no-poster { grid-template-columns: minmax(0, 780px); justify-content: center; }
.ex-poster { margin: 0; position: sticky; top: 110px; }
.ex-poster a { display: block; background: var(--tile); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.ex-poster img { width: 100%; height: auto; max-height: calc(100vh - 140px); object-fit: contain; transition: filter .3s; }
.ex-poster a:hover img { filter: brightness(.9); }
.ex-poster figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; text-align: center; }
.ex-facts { margin: 0 0 30px; padding: 0 0 26px; border-bottom: 1px solid var(--line); display: grid; gap: 16px; }
.ex-facts dt { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.ex-facts dd { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.35; color: var(--head); }
.ex-desc { font-size: 16px; }
.ex-desc p:first-child { margin-top: 0; }
.ex-desc h2 { font-size: 28px; margin-top: 1.2em; }
.ex-more { display: inline-block; margin-top: 26px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.ex-photos { scroll-margin-top: 100px; }
.ex-photos .ex-group { margin-top: 0; margin-bottom: 26px; }
.pager { display: flex; justify-content: space-between; gap: 20px; padding-top: 30px; padding-bottom: 60px; border-top: 1px solid var(--line); margin-top: 30px; font-size: 14px; }
.pager a { max-width: 45%; }

/* biography */
.bio { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; padding-bottom: 70px; }
.bio-portrait { position: sticky; top: 110px; }
.bio-portrait img { display: block; width: 100%; height: auto; }
.bio-text { font-size: 16px; }
.bio-text + .bio-text { margin-top: 50px; padding-top: 40px; border-top: 1px solid var(--line); }
.bio-text h2 { font-size: 30px; margin-top: 1.4em; }
.bio-text h2:first-child { margin-top: 0; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; padding-bottom: 80px; }
.contact-info { font-size: 16px; }
.contact-info .links { display: flex; gap: 22px; }
.contact-form label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 8px; background: var(--bg-2); border: 1px solid var(--line); color: var(--head); font: 400 15px var(--sans); padding: 12px 14px; border-radius: 0; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; }
.btn { display: inline-block; background: none; border: 1px solid var(--accent); color: var(--accent); font: 400 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 14px 34px; cursor: pointer; transition: all .2s; }
.btn:hover { background: var(--accent); color: var(--on-accent); }
.flash { padding: 12px 16px; border: 1px solid; margin: 0 0 20px; }
.flash.ok { border-color: #5f8a5f; color: var(--head); }
.flash.err { border-color: #b35a5a; color: var(--head); }

/* footer */
.site-footer { background: var(--header-bg); border-top: 1px solid var(--header-line); padding: 34px 0; margin-top: 30px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-inner p { margin: 0; font-size: 12px; color: var(--nav-muted); letter-spacing: .06em; }
.social { display: flex; gap: 18px; }
.social a { color: var(--nav); opacity: .8; }
.social a:hover { opacity: 1; }
.social a:hover { color: var(--accent); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.lightbox figcaption { color: #ddd; font-size: 14px; padding-top: 14px; text-align: center; min-height: 1.5em; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .7; font: 300 54px/1 var(--sans); padding: 16px; }
.lightbox button:hover { opacity: 1; color: var(--accent); }
.lb-close { top: 8px; right: 14px; font-size: 44px !important; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lightbox button[hidden] { display: none; }
.lb-next .back { display: none; }
.lb-next.lb-end { opacity: .9; }
.lb-next.lb-end .arrow { display: none; }
.lb-next.lb-end .back { display: flex; flex-direction: column; align-items: center; gap: 8px; font: 400 11px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; max-width: 90px; text-align: center; }
.lb-count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); color: #aaa; font: 400 12px var(--sans); letter-spacing: .18em; }

@media (max-width: 980px) { .mosaic { --cols: 2; } }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--header-bg); flex-direction: column; gap: 0; padding: 6px 24px 18px; border-bottom: 1px solid var(--line); display: none; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--header-line); }
  .nav-open .main-nav { display: flex; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
      .ex-cards { grid-template-columns: 1fr; }
  .bio, .contact { grid-template-columns: 1fr; gap: 36px; }
  .bio-portrait { position: static; }
  .ex-feature { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .ex-more { display: none; }
  .ex-poster { position: static; max-width: 560px; margin: 0 auto; width: 100%; }
  .ex-poster a { display: flex; justify-content: center; background: transparent; box-shadow: none; }
  .ex-poster img { width: auto; max-width: 100%; max-height: 62vh; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .logo-mark { height: 40px; width: calc(40px * var(--logo-ratio, 4.4)); }
  .header-inner { min-height: 72px; }
          .ex-rows a { grid-template-columns: 72px 1fr; gap: 14px; }
  .ex-rows .thumb { width: 72px; height: 56px; }
  .ex-rows .year { display: none; }
  .lightbox button { font-size: 40px; }
}
@media (max-width: 600px) {
  .page-head { padding: 36px 16px 22px; }
  .page-gallery .page-head { padding: 24px 16px 2px; }
  /* phones: one row of tabs, swiped sideways */
  .filters { top: 72px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 0 22px; margin: 0 -16px 18px; padding: 14px 16px 0;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { font-size: 11px; letter-spacing: .12em; padding-bottom: 12px; }
}

/* home page invitation – upcoming exhibition */
.invite-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; }
.invite-inner.no-img { grid-template-columns: minmax(0, 760px); justify-content: center; text-align: center; }
.invite-inner.no-img .ex-facts { justify-content: center; }
.invite-img { margin: 0; }
/* poster: as tall as the screen allows together with the heading (never cut off), text right next to it */
.invite-img a { display: block; }
.invite-img img { display: block; width: auto; height: auto; max-height: clamp(360px, calc(100vh - 270px), 900px); max-height: clamp(360px, calc(100svh - 270px), 900px);
  max-width: min(46vw, 680px); object-fit: contain; object-position: left center; transition: filter .3s; }
.invite-img a:hover img { filter: brightness(.92); }
.invite-title { font-size: clamp(30px, 4vw, 46px); margin: 0 0 26px; }
.invite-text .ex-desc { margin-bottom: 28px; }
@media (max-width: 900px) {
  /* phones and tablets: picture stays on the left, text on the right */
  .invite-inner { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 18px; align-items: start; }
  .invite-img img { width: 100%; height: auto; max-width: none; max-height: 46vh; }
  .invite-title { font-size: 22px; margin-bottom: 12px; }
  .invite .ex-facts { gap: 8px; margin-bottom: 14px; padding-bottom: 12px; }
  .invite .ex-facts dt { font-size: 9px; letter-spacing: .16em; margin-bottom: 1px; }
  .invite .ex-facts dd { font-size: 16px; line-height: 1.3; }
  .invite-text .ex-desc { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
  .invite-text .ex-desc p { margin: 0 0 8px; }
  .invite-text .btn { padding: 10px 16px; font-size: 10px; letter-spacing: .14em; }
}

/* language switch (flags) */
.lang-switch { display: flex; align-items: center; gap: 4px; margin-left: 10px; padding-left: 22px; border-left: 1px solid var(--header-line); }
.main-nav .lang { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border: 0; opacity: .5; transition: opacity .2s; font-size: 11px; letter-spacing: .12em; }
.main-nav .lang:hover { opacity: .9; }
.main-nav .lang.on { opacity: 1; color: var(--nav); }
.main-nav .lang .flag { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(127,127,127,.35); }
@media (max-width: 900px) {
  .lang-switch { margin: 10px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--header-line); gap: 16px; }
  .main-nav .lang { padding: 6px 0; border-bottom: 0; }
}
@media (max-width: 900px) { .lang-switch { border-top: 0; margin-top: 4px; padding-top: 8px; } }

@media (max-width: 600px) {
  /* keep air between the home-page sections on phones */
  .wrap.section { padding-top: 40px; padding-bottom: 40px; }
  /* the invitation already has its button under the text */
  .invite .section-head .more { display: none; }
}

/* wider content on big monitors (1600 px and more) */
@media (min-width: 1600px) { :root { --wrap: 1440px; } }
@media (min-width: 2400px) { :root { --wrap: 1680px; } body { font-size: 16px; } }
@media (max-width: 600px) { :root { --header-h: 72px; } }

/* lightbox: details + ask */
.lb-actions { display: flex; gap: 22px; justify-content: center; align-items: center; margin-top: 12px; }
.lb-actions[hidden] { display: none; }
.lb-actions a { font: 400 11px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #ddd; padding: 8px 0; border-bottom: 1px solid transparent; }
.lb-actions a:hover { color: var(--accent); border-color: var(--accent); }
.lb-actions .lb-ask { color: var(--accent); border: 1px solid var(--accent); padding: 9px 16px; }
.lb-actions .lb-ask:hover { background: var(--accent); color: var(--on-accent); }
.lightbox img { max-height: 78vh; }

/* a single work */
.work-page { padding-top: 36px; padding-bottom: 20px; }
.work-page .back { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 26px; }
.work-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.work-image { margin: 0; position: sticky; top: 110px; }
.work-image a { display: flex; justify-content: center; }
.work-image img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 150px); object-fit: contain; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.work-info h1 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 28px; }
.work-info .kicker { margin-bottom: 12px; }
.work-info .ex-desc { margin-bottom: 28px; }
@media (max-width: 900px) {
  .work-layout { grid-template-columns: 1fr; gap: 28px; }
  .work-image { position: static; }
  .work-image img { max-height: 70vh; }
}

/* contact form: which work the question is about */
.ask-card { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); padding: 12px; margin: 0 0 24px; color: var(--text); }
.ask-card:hover { border-color: var(--accent); }
.ask-card img { width: 84px; height: 84px; object-fit: cover; flex: none; }
.ask-card span { display: flex; flex-direction: column; gap: 2px; }
.ask-card small { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.ask-card strong { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--head); }
.ask-card em { font-style: normal; font-size: 13px; color: var(--muted); }

.lb-actions a[hidden] { display: none; }

/* lightbox on phones: no double-tap zoom (pinch-zoom still works), whole sides switch pictures */
.lightbox { touch-action: pinch-zoom; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.lightbox figure { will-change: transform; }
.lb-ghost { pointer-events: none; z-index: 1; }
.lb-ghost .lb-actions { visibility: hidden; }
.lightbox img { -webkit-user-drag: none; pointer-events: none; }
.lightbox[data-zone="prev"], .lightbox[data-zone="next"] { cursor: pointer; }
.lightbox[data-zone="prev"] .lb-prev, .lightbox[data-zone="next"] .lb-next { opacity: 1; color: var(--accent); }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-close { z-index: 2; padding: 12px 18px !important; }
.lb-actions { position: relative; z-index: 2; }

/* smooth movement: no shadow repainted on every frame, both pictures on their own GPU layer */
.lightbox img { box-shadow: none; }
.lb-ghost { will-change: transform; }
.lightbox figure, .lb-ghost { backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: translateZ(0); }

.lightbox { overscroll-behavior: contain; }

/* exhibition page: long description cut to the poster height, "Read more" */
.ex-desc[data-clamp] { transition: max-height .45s ease; }
.ex-desc.clamped { position: relative; overflow: hidden; }
.ex-desc.clamped:not(.open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg) 92%); }
.read-more { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 6px; padding: 12px 22px; background: none; cursor: pointer;
  border: 1px solid var(--accent); color: var(--accent); font: 400 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; transition: background .2s, color .2s; }
.read-more:hover { background: var(--accent); color: var(--on-accent); }
.read-more i { font-style: normal; font-size: 14px; letter-spacing: 0; }
.read-more[hidden] { display: none; }
.read-more + .ex-more { margin-left: 18px; }
@media (max-width: 600px) { .read-more + .ex-more { display: block; margin: 14px 0 0; } }

/* several invitations (current & upcoming exhibitions) one under another */
.invite-inner + .invite-inner { margin-top: 70px; padding-top: 70px; border-top: 1px solid var(--line); }
.invite-kicker { margin: 0 0 12px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 900px) {
  .invite-inner + .invite-inner { margin-top: 36px; padding-top: 36px; }
  .invite-kicker { font-size: 9px; letter-spacing: .16em; margin-bottom: 6px; }
}

/* home page without the big photo: a little air under the menu */
.no-hero { height: 30px; }

/* hand-written motto under the biography portrait – part of the picture, in the signature colour */
.bio-motto { display: block; width: 80%; margin: 26px auto 0; aspect-ratio: var(--motto-ratio, 4.56); background: var(--logo, #fff);
  -webkit-mask: var(--motto-url) center / contain no-repeat; mask: var(--motto-url) center / contain no-repeat; opacity: .92; }
@media (max-width: 900px) { .bio-motto { width: min(80%, 420px); margin-top: 18px; } }

/* share row on work and exhibition pages */
.share { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.share button, .share a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: none; cursor: pointer;
  border: 1px solid var(--line); color: var(--text); font: 400 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transition: border-color .2s, color .2s; }
.share button:hover, .share a:hover { border-color: var(--accent); color: var(--accent); }
.share .share-copy.done { border-color: var(--accent); color: var(--accent); }
.share [hidden] { display: none; }
.share svg { flex: none; }
.ex-info .share { margin-top: 22px; }

/* bold / italic / underline typed in the admin: same font, only the style changes, always inline */
html body strong.f { display: inline; font: inherit; font-weight: 600; color: inherit; letter-spacing: inherit; }
html body em.f { display: inline; font: inherit; font-style: italic; color: inherit; letter-spacing: inherit; }
html body em.f strong.f, html body strong.f em.f { font-weight: 600; font-style: italic; }
html body u.f { display: inline; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* one invitation on its own page */
.invite-page { padding-top: 50px; }
.invite-page .back { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 30px; }
.invite-page .invite-title { font-size: clamp(30px, 4vw, 46px); }
.invite .share { margin-top: 24px; }
@media (max-width: 900px) {
  .invite .share { gap: 6px; padding-top: 14px; margin-top: 16px; }
  .invite .share button, .invite .share a { padding: 7px 10px; font-size: 9px; letter-spacing: .1em; }
  .invite-page .invite-title { font-size: 26px; }
}

/* invitation: the top of the picture is level with the top of the letters of the exhibition title
   (the exact distance is measured by the script; this is only the starting value) */
.invite-inner:not(.no-img) { align-items: start; }
.invite-inner .invite-img { margin-top: var(--title-drop, 0px); }

/* contact form: fields a bit lighter than the page, so they are easy to see (follows the colours set in the admin) */
.contact-form input, .contact-form textarea { background: color-mix(in srgb, var(--bg) 84%, var(--text)); border-color: color-mix(in srgb, var(--bg) 66%, var(--text)); }
.contact-form input:hover, .contact-form textarea:hover { border-color: color-mix(in srgb, var(--bg) 50%, var(--text)); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: color-mix(in srgb, var(--bg) 45%, var(--text)); }

/* extra empty lines typed in the admin: each one = one line of space */
p.txt-gap { margin: 0 !important; line-height: inherit; }

/* text only for Google and screen readers */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* text size chosen in the admin (A− / A+ / A++) */
html body .f.fs-s { font-size: .8em; }
html body .f.fs-l { font-size: 1.3em; line-height: 1.25; }
html body .f.fs-xl { font-size: 1.7em; line-height: 1.15; }
