/* exhibition.css — one exhibition's page, «Выставка 3.0» (her mockup of 15.11.2026, board «Выставки» 7.6–7.7, the
   generator gen-exh3.py). Prefix x3-. Every section shows only when its data is there: an exhibition with a title and
   dates alone is the head, the strip and the ticket. Big light type is for numbers only (her rule of 08.11). */
.x3 { --line: rgba(var(--ink), .12); padding-bottom: 72px; }
.x3 :where(h1, h2, p, figure, blockquote) { margin: 0; }
.x3-crumb { display: flex; gap: 16px; align-items: baseline; margin-top: 28px; font-size: 14px; color: var(--mut); }
.x3-crumb a { color: var(--txt); text-decoration: none; }
.x3-crumb a:hover { color: var(--acc); }
.x3-head { margin-top: 20px; }
.x3-head h1 { font-size: 72px; font-weight: 500; line-height: .95; letter-spacing: -.035em; text-wrap: balance; }
.x3-lead { margin-top: 16px; max-width: 640px; font-size: 20px; line-height: 1.45; color: var(--txt2); }

.x3-hero { margin-top: 28px; }
.x3-hero img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; background: var(--s2); }
.x3-hero figcaption, .x3-src, .x3-foot, .x3-pcap { margin-top: 8px; font-size: 12px; color: var(--mut); }

/* one strip of facts: when · then what the exhibition itself says matters (entry, queue, talk) */
.x3-facts { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.x3-fl { display: contents; }
.x3-fact { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 18px 20px; border-left: 1px solid var(--line); }
.x3-run { border-left: 0; padding-left: 0; }
.x3-k { font-size: 13px; color: var(--mut); }
.x3-fact b { font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.x3-fact > span:not(.x3-k) { font-size: 14px; color: var(--mut); }
.x3-run .x3-k { color: #3E8E1F; font-weight: 500; }
:root.dark .x3-run .x3-k { color: #8FD16A; }
.x3-run.is-soon .x3-k { color: var(--acc); }
.x3-run.is-over .x3-k { color: var(--mut); }
.x3-bar { height: 4px; margin-top: 10px; border-radius: 4px; overflow: hidden; background: var(--line); }
.x3-bar i { display: block; height: 100%; background: var(--txt); }
.x3-run .x3-left { color: var(--txt) !important; font-weight: 500; }

.x3-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.x3-sec { margin-top: 56px; }
.x3-sec h2 { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }
.x3-txt { max-width: 680px; }
.x3-txt p { font-size: 17px; line-height: 1.6; }
.x3-txt p + p { margin-top: 14px; }
.x3-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.x3-why > div { padding-top: 14px; border-top: 2px solid var(--acc); }
.x3-why b { display: block; margin-bottom: 8px; font-size: 36px; font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.x3-why span { font-size: 15px; line-height: 1.45; color: var(--mut); }

/* works: the first one tall on the left, the rest two by two */
.x3-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.x3-w img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--s2); }
.x3-w:first-child { grid-row: span 2; display: flex; flex-direction: column; }
.x3-w:first-child img { flex: 1; aspect-ratio: auto; min-height: 420px; }
.x3-w figcaption { margin-top: 10px; font-size: 14px; line-height: 1.4; }
.x3-w figcaption b { font-weight: 500; }
.x3-w figcaption .x3-wd { display: block; margin-top: 2px; font-size: 13px; color: var(--mut); }

/* the artist */
.x3-artist { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.x3-artist figure img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--s2); }
.x3-alead { font-size: 18px; line-height: 1.5; }
.x3-life { margin-top: 20px; }
.x3-life > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.x3-life b { font-weight: 500; font-variant-numeric: tabular-nums; }
.x3-life span { color: var(--mut); }
.x3-q { margin-top: 24px; padding-left: 18px; border-left: 2px solid var(--acc); font-size: 20px; line-height: 1.45; }
.x3-q cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--mut); }

/* interesting: a fact with a picture runs the whole width, the rest two by two */
.x3-facts2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.x3-f { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; }
.x3-f b { font-size: 17px; font-weight: 500; line-height: 1.35; }
.x3-f span { font-size: 14px; line-height: 1.5; color: var(--mut); }
.x3-f:has(img) { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); padding: 0; overflow: hidden; }
.x3-f img { display: block; width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.x3-f:has(img) .x3-fw { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 22px; }
.x3-f:has(img) b { font-size: 20px; }
.x3-fw { display: contents; }

/* before you go */
.x3-tips { counter-reset: t; }
.x3-tips > div { counter-increment: t; display: grid; grid-template-columns: 44px minmax(0, 1fr); row-gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.x3-tips > div::before { content: counter(t); grid-row: span 2; font-size: 28px; font-weight: 300; line-height: 1; color: var(--mut); }
.x3-tips b { font-size: 17px; font-weight: 500; }
.x3-tips span { font-size: 15px; line-height: 1.5; color: var(--mut); }

.x3-pt > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.x3-pt b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.x3-small { max-width: 640px; margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--mut); }

.x3-prep { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.x3-prep > a, .x3-prep > div { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 22px; border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; transition: border-color .2s; }
.x3-prep > a:hover { border-color: rgba(var(--accr), .5); }
.x3-prep b { font-size: 19px; font-weight: 500; }
.x3-prep span:last-child { font-size: 14px; line-height: 1.5; color: var(--mut); }

.x3-way { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.x3-way > div { display: flex; flex-direction: column; gap: 4px; }
.x3-way b { font-size: 17px; font-weight: 500; }
.x3-way span { font-size: 15px; color: var(--mut); white-space: pre-line; }

/* the ticket, sticky beside the head */
.x3-tk { position: sticky; top: calc(var(--top-h) + 24px); display: flex; flex-direction: column; gap: 16px; margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--s1); }
.x3-mu { display: flex; gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.x3-mu img { width: 56px; height: 56px; flex: none; border-radius: 10px; object-fit: cover; background: var(--s2); }
.x3-mu b { display: block; font-size: 17px; font-weight: 500; }
.x3-mu:hover b { color: var(--acc); }
.x3-mu small { font-size: 14px; color: var(--mut); }
.x3-open:not(:has(.pl-chip:not([hidden]), .x3-last)) { display: none; }
.x3-open .pl-chip:not([hidden]) + .x3-last::before, .x3-open :has(> .pl-chip:not([hidden])) + .x3-last::before { content: "\00a0· "; }
.x3-open { margin-top: 4px; position: relative; padding-left: 16px; font-size: 14px; line-height: 1.5; }
.x3-open .pl-chip { display: inline; position: static; padding: 0; border: 0; background: none; font: inherit; color: inherit; }
.x3-open .pl-chip i { position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #5FB236; }
.x3-open:not(:has(.pl-chip:not([hidden]))) { padding-left: 0; }
.x3-open .pl-chip.is-shut i { background: var(--faint); }
.x3-price { display: flex; align-items: baseline; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.x3-price b { font-size: 44px; font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.x3-price span { font-size: 14px; color: var(--mut); }
.x3-pl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.x3-pl span { color: var(--mut); }
.x3-pl b { font-weight: 500; white-space: nowrap; }
.x3-buy { display: block; padding: 15px; border-radius: 999px; background: var(--txt); color: var(--bg); font-size: 16px; font-weight: 500; text-align: center; text-decoration: none; transition: background .2s, color .2s; }
.x3-buy:hover { background: var(--acc); color: #FFFFFF; }
:root.dark .x3-buy:hover { color: #0F0F10; }
.x3-note { margin-top: -6px; font-size: 13px; color: var(--mut); text-align: center; text-wrap: pretty; max-width: 250px; margin-left: auto; margin-right: auto; }
/* ♡ выставки — общая таблетка .fav-pill в строке «назад» (styles.css); своих правил сердца здесь больше нет */

/* more in the museum and in the city: cards with pictures */
.x3-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.x3-c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.x3-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: inherit; text-decoration: none; }
.x3-cimg { display: block; aspect-ratio: 4 / 3; margin-bottom: 8px; overflow: hidden; border-radius: 12px; background: var(--s2); }
.x3-cimg img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.x3-card:hover .x3-cimg img { transform: scale(1.03); }
.x3-tile { display: flex; align-items: flex-end; padding: 16px; background: rgba(var(--accr), .14); }
.x3-tile b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 18px; font-weight: 500; line-height: 1.1; }
.x3-cw { font-size: 13px; color: var(--mut); }
.x3-card > b { font-size: 16px; font-weight: 500; line-height: 1.3; }
.x3-card:hover > b { color: var(--acc); }
.x3-card > small { font-size: 14px; color: var(--mut); }
.x3-all { display: inline-block; margin-top: 24px; font-weight: 500; color: var(--txt); text-decoration: none; }
.x3-all:hover { color: var(--acc); }
.x3-foot { margin-top: 48px; }

.x3-hero figcaption { line-height: 1.5; }
.x3-src { margin-top: 20px; }
@media (min-width: 601px) and (max-width: 1100px) { .x3-tips span { max-width: 640px; } }
.x3-card > b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.x3-buy { padding: 17px; }
.x3-save { padding-bottom: 6px; }
@media (max-width: 1100px) {
  .x3-grid { grid-template-columns: minmax(0, 1fr); }
  .x3-tk { position: static; margin-top: 32px; max-width: 480px; }
}
/* a tablet: the dates take the whole first row of the strip, the three facts share the second */
@media (min-width: 601px) and (max-width: 1100px) {
  .x3-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .x3-run { grid-column: 1 / -1; padding-right: 0; border-bottom: 1px solid var(--line); }
  .x3-fl .x3-fact:first-child { border-left: 0; padding-left: 0; }
  /* the ticket in two columns: the museum and its hours on the left, the price and the button on the right */
  .x3-tk { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-flow: dense; column-gap: 40px; row-gap: 14px; align-items: start; }
  .x3-tk > :is(div:first-child, .x3-open) { grid-column: 1; }
  .x3-tk > :not(div:first-child):not(.x3-open) { grid-column: 2; }
  .x3-price { border-top: 0; padding-top: 0; }
}
@media (min-width: 1101px) { .x3-tk-in { display: none; } }
/* правая колонка как у всех событий: картинка сверху вровень с названием, под ней билет; прилипает весь блок (event.css) */
.x3-tk-out { align-self: start; margin-top: 20px; }
.x3-tk-out .x3-hero { margin-top: 0; }
.x3-tk-out .x3-hero img { aspect-ratio: 16 / 10; }
.x3-tk-out .x3-tk { position: static; margin-top: 14px; }
@media (max-width: 1100px) { .x3-tk-out { display: none; } }
@media (max-width: 600px) {
  .x3-crumb span { display: none; }
  .x3-head h1 { font-size: 44px; }
  .x3-lead { font-size: 17px; }
  /* фото на телефоне — с полями и скруглением, как у всех записей (канон V2), не в край экрана */
  .x3-hero { margin: 20px 0 0; }
  .x3-hero img { aspect-ratio: 4 / 3; border-radius: 14px; }
  .x3-hero figcaption { padding: 0; font-size: 12.5px; }
  .x3-facts { grid-template-columns: 1fr 1fr; }
  .x3-run { grid-column: span 2; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .x3-fact:not(.x3-run) { padding: 16px 0 16px 16px; }
  .x3-fl .x3-fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .x3-fl .x3-fact:nth-child(3) { grid-column: span 2; border-top: 1px solid var(--line); }
  .x3-fact b { font-size: 20px; }
  .x3-facts { margin-top: 36px; }
  .x3-run { padding: 18px 0 20px; }
  .x3-fact:not(.x3-run) { padding-top: 20px; padding-bottom: 20px; }
  .x3-life > div { line-height: 1.45; }
  .x3-sec { margin-top: 48px; }
  .x3-sec h2 { font-size: 22px; }
  .x3-why { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .x3-works { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 12px; }
  .x3-w:first-child { grid-column: span 2; grid-row: auto; }
  .x3-w:first-child img { min-height: 0; aspect-ratio: 3 / 4; flex: none; }
  .x3-w figcaption .x3-wd { display: none; }
  .x3-artist { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .x3-artist figure img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
  .x3-facts2, .x3-prep, .x3-way { grid-template-columns: minmax(0, 1fr); }
  .x3-f:has(img) { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .x3-f img { min-height: 0; aspect-ratio: 4 / 3; }
  .x3-cards, .x3-c3 { display: flex; gap: 12px; margin-right: -18px; padding-right: 18px; overflow-x: auto; scrollbar-width: none; }
  .x3-card { flex: 0 0 220px; }
}
