/* Ze sub.css prototypu (prototype/navrh-h/web/sub.css) beze změny, úpravy pro WordPress jsou na konci. */
/* division subpages (hospitality, real estate) on top of site.css: the look the client approved on ../hospitality/v2.html?v=2, categories in olive above three large photos */
.wrap.wide { max-width: calc(1760px + 2 * var(--gutter)); }

/* hero: rotating photos, title on the photo over a soft shade */
.hero { position: relative; }
.hero .ph { position: relative; height: clamp(440px, 72vh, 760px); overflow: hidden; background: var(--ink); }
.hero .ph img { position: absolute; left: 0; top: -15%; width: 100%; height: 115%; object-fit: cover; translate: 0 var(--py, 0px); opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 8s linear; }
.hero .ph img.on { opacity: 1; transform: scale(1); }
.hero .ph::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(20, 24, 30, .6) 0%, rgba(20, 24, 30, .2) 40%, rgba(20, 24, 30, 0) 65%); }
.hero .panel { position: absolute; left: 0; right: 0; bottom: clamp(64px, 7vw, 92px); z-index: 2; padding: 0 var(--gutter); text-align: center; color: #fff; text-shadow: 0 1px 18px rgba(0, 0, 0, .25); }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.hero .panel p { max-width: 40em; margin: 10px auto 0; font-size: 1.05rem; color: rgba(255, 255, 255, .92); }
.hero .cap { position: absolute; left: var(--gutter); bottom: 22px; z-index: 2; font-size: 13px; color: rgba(255, 255, 255, .85); }
.dots { position: absolute; right: var(--gutter); bottom: 20px; z-index: 2; display: flex; gap: 8px; }
.dots button { width: 32px; height: 20px; border: 0; background: linear-gradient(rgba(255, 255, 255, .45), rgba(255, 255, 255, .45)) center / 100% 2px no-repeat; cursor: pointer; }
.dots button[aria-current] { background-image: linear-gradient(#fff, #fff); }
section:has(> .ph > .dots) { cursor: pointer; } /* klik na fotku přepne na další (site.js) */
/* bare (about): just the photo, no title on it and so no shade */
.hero.bare .ph::after { display: none; }
.hero.bare .ph img, .hero .ph img.keep-top { top: 0; height: 100%; translate: none; } /* no parallax, so the top of the photo (faces) is not pushed out */
.hero.strip .ph { height: clamp(260px, 40vh, 440px); } /* team: a low strip, so the first screen shows the faces continue below (client) */

/* figures */
.figures { padding: clamp(56px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); }
.figures dl { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1040px; margin: 0 auto; }
.figures dl > div { padding: 8px 24px; border-left: 1px solid var(--line); text-align: center; }
.figures dl > div:first-child { border-left: 0; }
.figures dt { font: 800 clamp(2.4rem, 4vw, 3.4rem)/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.figures dd { margin-top: 12px; font-size: 15px; }

/* intro text */
.intro { padding: clamp(40px, 5vw, 72px) 0 clamp(72px, 8vw, 120px); }
.intro .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: start; padding-top: clamp(48px, 6vw, 80px); background: linear-gradient(var(--line), var(--line)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px; }
.intro h2 { max-width: 9em; }
.intro h1 { max-width: 9em; font-size: clamp(1.85rem, 3.2vw, 2.9rem); color: var(--olive); } /* page title where the photo carries none */
.intro + .intro { padding-top: 0; }
.hero.bare + .intro { padding-top: clamp(56px, 6vw, 96px); } /* right under a bare photo the line would separate nothing */
.hero.bare + .intro .wrap { padding-top: 0; background: none; }
.intro p { max-width: 38em; }
.intro p + p { margin-top: 16px; }
.intro a { color: var(--olive-dark); font-weight: 600; }

/* gallery (energy, hotel detail): two photos in a row, narrower than the text above (client wanted them a little smaller) */
.gallery { padding-bottom: clamp(56px, 6vw, 96px); }
.gallery .wrap { max-width: calc(1080px + 2 * var(--gutter)); }
.gallery .grid { grid-template-columns: repeat(2, 1fr); }
.gallery a { display: block; overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); }

/* lightbox for the gallery: a native dialog over the whole screen, built by sub.js */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; border: 0; background: rgba(20, 24, 30, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: none; }
.lightbox img { max-width: calc(100% - 160px); max-height: calc(100% - 96px); object-fit: contain; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: none; color: #fff; cursor: pointer; transition: background .25s; }
.lightbox button:hover { background: rgba(255, 255, 255, .15); }
.lightbox svg { width: 20px; height: 20px; }
.lb-prev, .lb-next { top: 50%; translate: 0 -50%; }
.lb-prev { left: 24px; }
.lb-prev svg { transform: scaleX(-1); }
.lb-next { right: 24px; }
.lb-close { top: 24px; right: 24px; }
body:has(.lightbox[open]) { overflow: hidden; }

/* projects: each category is an olive heading on a line above three photos in a row, as large as the screen allows */
.projects { padding-bottom: clamp(56px, 6vw, 96px); }
.cat { position: relative; padding: 24px 0 clamp(40px, 4.5vw, 72px); border-top: 1px solid rgba(118, 122, 76, .45); }
.cat::before { content: ""; position: absolute; left: 0; top: -2px; width: 56px; height: 3px; background: var(--olive); }
.cat h3 { margin-bottom: 20px; font-size: 1.6rem; letter-spacing: -.02em; color: var(--olive); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.4vw, 24px); }

/* cards: photo with the name below it; a linked card shows no arrow (client), the hover zoom and olive line mark it */
.card .ph { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-alt); }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card .empty { display: grid; place-items: center; font-size: 14px; color: rgba(35, 43, 54, .55); }
.card .tag { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 3px 10px; background: var(--bg); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.card h4 { margin-top: 16px; font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.25; }
.card .txt p { margin-top: 2px; font-size: 15px; color: rgba(35, 43, 54, .75); }
a.card { display: block; text-decoration: none; }
a.card img { transition: transform 1.2s var(--ease); }
a.card:hover img, a.card:focus-visible img { transform: scale(1.04); }
a.card .ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--olive); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
a.card:hover .ph::after, a.card:focus-visible .ph::after { transform: none; }

/* page title (team): a page without a big photo starts with its title */
.page-title { padding: clamp(56px, 6vw, 96px) 0 clamp(32px, 4vw, 56px); }
.hero.bare + .page-title { padding-top: clamp(48px, 5vw, 80px); }
.page-title h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--olive); }

/* people (team): small portraits, six in a row on a wide screen, the whole card links to the bio */
.people { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px clamp(14px, 1.6vw, 24px); }
.person .ph { aspect-ratio: 4 / 5; }
.person img { object-position: 50% 15%; }
.person { container-type: inline-size; }
.card.person h4 { margin-top: 14px; font-size: min(1.05rem, 10cqi); white-space: nowrap; transition: color .25s; } /* the full name always on one line (client), it shrinks a little in a narrow card */
a.person:hover h4, a.person:focus-visible h4 { color: var(--olive-dark); } /* name and photo both lead to the bio */
.person .txt p { font-size: 14px; line-height: 1.45; }

/* bio (team detail): portrait on the left, name, role and the text from the current site on the right */
.bio { padding: clamp(40px, 5vw, 72px) 0 clamp(72px, 8vw, 120px); }
.back { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; color: var(--olive-dark); }
.back svg { width: 18px; height: 18px; transform: scaleX(-1); transition: translate .3s var(--ease); }
.back:hover svg { translate: -4px 0; }
.bio-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; margin-top: clamp(28px, 3vw, 44px); }
.bio .ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-alt); }
.bio .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.bio h1 { font-size: clamp(2rem, 3.6vw, 3rem); color: var(--olive); }
.bio .role { margin-top: 8px; font-size: 1.1rem; color: var(--olive-dark); }
.bio .text p { max-width: 38em; }
.bio .text p + p { margin-top: 16px; }
.bio .text .role + p { margin-top: 28px; }

/* jobs (careers): open positions as native <details>, one open at a time (name="job"), a plus turns into a cross;
   an open ad keeps its title row under the header and a panel with the key facts beside the text. The same accordion
   is the Details block (.wp-block-details, years of Wrote about us on News, one open at a time by the block's name) */
.jobs { padding-bottom: clamp(56px, 6vw, 96px); }
.jobs h2 { margin-bottom: clamp(24px, 3vw, 40px); }
:is(.job, .wp-block-details) { border-top: 1px solid rgba(118, 122, 76, .45); scroll-margin-top: var(--head); }
:is(.job, .wp-block-details):last-child { border-bottom: 1px solid rgba(118, 122, 76, .45); }
:is(.job, .wp-block-details) summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 24px; padding: 26px 0; list-style: none; cursor: pointer; }
:is(.job, .wp-block-details) summary::-webkit-details-marker { display: none; }
:is(.job, .wp-block-details) summary::after { content: ""; grid-column: 2; grid-row: 1 / span 2; width: 48px; height: 48px; border: 1px solid var(--olive); border-radius: 50%; background: linear-gradient(var(--olive-dark), var(--olive-dark)) center / 16px 1.5px no-repeat, linear-gradient(var(--olive-dark), var(--olive-dark)) center / 1.5px 16px no-repeat; transition: transform .3s var(--ease), background-color .25s; }
:is(.job, .wp-block-details) summary:hover::after { background-color: rgba(118, 122, 76, .12); }
:is(.job, .wp-block-details) summary:focus-visible { outline: none; } /* the client didn't want the frame; the circle shows keyboard focus instead */
:is(.job, .wp-block-details) summary:focus-visible::after { background-color: rgba(118, 122, 76, .22); }
:is(.job, .wp-block-details)[open] summary::after { transform: rotate(45deg); }
.job h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.02em; }
.job summary:hover h3 { color: var(--olive-dark); }
.wp-block-details summary { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; transition: color .25s; } /* the year like the title of an ad */
.wp-block-details summary:hover { color: var(--olive-dark); }
.wp-block-details summary::after { grid-row: 1; } /* one line (no location under it), the circle centred on the year */
.intro .text .wp-block-details > ul { margin-top: 0; } /* the articles of the year right under its row, the next year's line closes the list */
.wp-block-details li:last-child { border-bottom: 0; }
.job .where { grid-column: 1; font-size: 15px; color: var(--olive-dark); }
.job .body { display: grid; grid-template-columns: minmax(0, 820px) minmax(260px, 340px); justify-content: space-between; column-gap: clamp(32px, 5vw, 96px); align-items: start; padding: 0 0 44px; font-size: 17px; }
.facts { position: sticky; top: calc(var(--head) + 134px); margin-top: 12px; padding: 28px 28px 30px; background: var(--bg-alt); } /* 134px: the stuck title row plus a gap */
.facts dt { margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--olive); }
.facts dt:first-child { margin-top: 0; }
.facts dd { font-size: 15px; overflow-wrap: anywhere; }
.job .facts .btn { display: inline-flex; margin-top: 22px; padding: 12px 22px; background: var(--olive); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; transition: background .25s; }
.job .facts .btn:hover { background: var(--olive-dark); }
@media (min-width: 761px) {
  :is(.job, .wp-block-details)[open] summary { position: sticky; top: var(--head); z-index: 5; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
}
@media (max-width: 900px) {
  .job .body { display: block; }
  .facts { position: static; margin-top: 32px; }
}
.job .body p, .job .body ul { margin-top: 12px; }
.job .body ul { padding-left: 1.2em; }
.job .body li + li { margin-top: 6px; }
.job .body li::marker { color: var(--olive); }
.job .body h4 { margin-top: 40px; font-size: 1.25rem; letter-spacing: -.02em; color: var(--olive); }
.job .body h4 + * { margin-top: 10px; }
.job .body h5 { margin-top: 24px; font-size: 1.05rem; letter-spacing: -.01em; }
.job .body a { color: var(--olive-dark); font-weight: 600; overflow-wrap: anywhere; } /* dlouhý e-mail se v úzkém sloupci zalomí (320 px) */

@media (max-width: 1180px) {
  .people { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .people { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .card h4 { font-size: 1.15rem; }
}
@media (max-width: 760px) {
  .hero .ph { height: 92vw; min-height: 360px; max-height: 560px; }
  .hero.strip .ph { height: 56vw; min-height: 220px; }
  .hero .panel { bottom: 56px; }
  .hero .panel p { font-size: 15px; }
  .hero .cap { bottom: 16px; font-size: 12px; }
  .dots { bottom: 12px; }
  .figures dl > div { padding: 4px 8px; }
  .figures dt { font-size: 1.6rem; }
  .figures dd { font-size: 14px; line-height: 1.4; }
  .intro .wrap { grid-template-columns: 1fr; }
  .intro h1, .intro h2 { max-width: none; }
  .grid, .gallery .grid { grid-template-columns: 1fr; gap: 28px; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio .ph { max-width: 320px; }
  .people { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .lightbox img { max-width: 100%; max-height: calc(100% - 160px); }
  .lb-prev, .lb-next { top: auto; bottom: 24px; translate: none; }
}
@media (max-width: 430px) { /* "123,500 m²" and "39,805 m²" (Real Estate) fit in thirds of the width only from 420 px */
  .figures dl { grid-template-columns: 1fr; gap: 24px; }
  .figures dl > div { border-left: 0; }
}

/* --- WordPress ----------------------------------------------------------------------------------------------- */
/* galerie je core/gallery (obrázky s odkazem na plnou velikost) místo .gallery .grid .zoom; core ji staví flexem
   se šířkami po sloupcích, tady dvě fotky v řadě jako prototyp */
.wp-block-gallery.has-nested-images { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.4vw, 24px); max-width: calc(1080px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 6vw, 96px); }
.wp-block-gallery.has-nested-images.has-nested-images figure.wp-block-image:not(#individual-image) { width: auto; margin: 0; }
.wp-block-gallery.has-nested-images figure.wp-block-image a { display: block; overflow: hidden; cursor: zoom-in; }
.wp-block-gallery.has-nested-images.has-nested-images figure.wp-block-image:not(#individual-image) img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--ease); }
.wp-block-gallery a:hover img, .wp-block-gallery a:focus-visible img { transform: scale(1.04); }
.wp-block-gallery.has-nested-images.columns-4 { grid-template-columns: repeat(4, 1fr); } /* Columns 4 v editoru: čtyři v řadě (CSR), na mobilu dvě */
.wp-block-gallery.has-nested-images figure.wp-block-image:only-child { grid-column: 1 / -1; } /* jediná fotka přes celou šířku galerie (Logistics Hall A1), ne půl řádku */
/* lightbox: max-height v procentech se počítá z řádku mřížky dialogu, ten se u fotky na výšku natáhl podle ní a fotka
   přetekla okno; proto z výšky okna (dvh bez lišty prohlížeče na mobilu, vh pro starší prohlížeče), na mobilu níž */
.lightbox img { max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); }

/* Energy drží horní okraj fotky v hero jako .keep-top v prototypu (obličeje), třída slug-<slug EN stránky> na body;
   ořez fotek galerie Hero je z ohniska obrázku v editoru (inline object-position) */
.slug-energy .hero .ph img { top: 0; height: 100%; translate: none; object-position: 50% 0%; }
:is(.hero, .hero-home) .cap:empty { display: none; } /* fotka bez popisku při střídání */
/* pauza střídání fotek (WCAG 2.2.2, site.js) vlevo od čárek: dvě svislé čárky, po zastavení trojúhelník (přehrát) */
.dots .pause { display: grid; place-items: center; width: 24px; background: none; color: rgba(255, 255, 255, .7); transition: color .25s; }
.dots .pause:hover { color: #fff; }
.dots .pause::before { content: ""; width: 9px; height: 11px; border: solid currentColor; border-width: 0 3px; }
.dots .pause.paused::before { width: 10px; border: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* headliny fotek (Hero photo › Headline) jako v prototypu karusel.html: v h1 všechny přes sebe, nejvyšší určuje výšku
   (obsah pod hero neskáče) a kratší sedí na podnadpisu; aktuální se s fotkou prolne (site.js) */
.hero h1:has(> span) { display: grid; }
.hero h1 > span { grid-area: 1 / 1; align-self: end; opacity: 0; transition: opacity .5s; }
.hero h1 > .on { opacity: 1; transition-delay: .4s; }

/* Photo filter bloku Hero (data-filter, D555): čtyři filtry klientky z prototypu karusel.html přes fotky místo stínu,
   jen v CSS; u 1 a 4 zůstává pod filtrem stín kvůli nadpisu. Olivová je --olive-dark a --olive v rgba (color-mix
   z prototypu má jen Safari od 16.2). */
.hero[data-filter] .ph { isolation: isolate; }
.hero[data-filter] .ph::before, .hero[data-filter] .ph::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero:is([data-filter="1"], [data-filter="4"]) .ph::before { background: linear-gradient(to top, rgba(20, 24, 30, .6) 0%, rgba(20, 24, 30, .2) 40%, rgba(20, 24, 30, 0) 65%); }
/* 1: hranaté černé mikro tečky jako úvodní video carlson-chemie.com: tmavý závoj a tečka 1 px po 2 px */
.hero[data-filter="1"] .ph::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='1' height='1' fill-opacity='.19'/%3E%3C/svg%3E"), rgba(0, 0, 0, .35); }
/* 2: z tmavé do průhledné */
.hero[data-filter="2"] .ph::after { background: linear-gradient(to top, rgba(20, 24, 30, .88) 0%, rgba(20, 24, 30, .5) 38%, rgba(20, 24, 30, 0) 72%); }
/* 3: z olivové do průhledné */
.hero[data-filter="3"] .ph::after { background: linear-gradient(to top, rgba(94, 98, 59, .96) 0%, rgba(118, 122, 76, .72) 38%, rgba(118, 122, 76, 0) 74%); }
/* 4: trochu kreslený pastelový tečkovaný obrázek s film grain: změkčené světlejší barvy, přes ně zrno a jemné tečky */
.hero[data-filter="4"] .ph img { filter: saturate(.7) contrast(.82) brightness(1.1) sepia(.12); }
.hero[data-filter="4"] .ph::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"), radial-gradient(circle, rgba(255, 255, 255, .5) 0 1px, transparent 1.6px) 0 0 / 5px 5px; mix-blend-mode: overlay; opacity: .7; }
.intro :is(h2, h3) a { color: inherit; font-weight: inherit; } /* nadpis sekce s odkazem jako ostatní nadpisy, odkaz poznat podtržením */

/* sekce detailu projektu (blok odien/section): Intro jako .intro (nadpis vlevo, text vpravo), Full width nadpis nad
   textem přes celou šířku obsahu; text vpravo má styly .intro .text jako začátek detailu */
.intro.full .wrap { display: block; }
.intro.full h2 { max-width: none; }
.intro.full .text { margin-top: 24px; }
.intro.full .text p { max-width: none; } /* Asset Summary a další odstavce přes celou šířku jako Key facts */

/* ořez fotky na kartě projektu (v prototypu inline styly), třída slug-<slug EN projektu> na kartě */
.card.slug-industry-hall-203 img { object-position: 60% 50%; }
.card.slug-logistics-hall-a1 img { object-position: 40% 50%; }

/* detail projektu: vlevo název, lokalita a štítek, vpravo obsah z bloků (nadpisy h2, odstavce, seznamy); dlouhé
   slovo nebo adresa v textu se zalomí, místo aby roztáhla sloupec přes okraj */
.intro .wrap > * { min-width: 0; }
.intro .text { overflow-wrap: break-word; }
.intro .lead .where { margin-top: 12px; font-size: 15px; color: rgba(35, 43, 54, .75); }
.intro .lead .tag { display: inline-block; margin-top: 14px; padding: 3px 10px; background: var(--bg-alt); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.intro .text h2 { margin-top: 40px; font-size: 1.6rem; letter-spacing: -.02em; }
.intro .text h2 + * { margin-top: 14px; }
.intro .text h3 { margin-top: 28px; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.3; } /* podnadpisy v sekci (Le Méridien Lav: restaurace) */
.intro .text h3 + * { margin-top: 6px; }
/* CSR, About Sport2Life: země (h3) větší a s větší mezerou, „Events and Activities“ (h4) jako popisek Key facts, název
   akce (h5) tučně ve velikosti textu; mezi akcemi víc místa než uvnitř akce */
.intro .text:has(h4) h3 { margin-top: 56px; font-size: 1.35rem; }
.intro .text h4 { margin-top: 24px; font-size: 12px; font-weight: 700; letter-spacing: .09em; line-height: 1.4; text-transform: uppercase; color: var(--olive); }
.intro .text h5 { margin-top: 36px; font-size: 1.125rem; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
.intro .text h4 + h5 { margin-top: 10px; }
.intro .text h5 + * { margin-top: 4px; }
.intro .text > :first-child { margin-top: 0; }
.intro .text ul { margin-top: 16px; padding-left: 1.2em; }
.intro .text li + li { margin-top: 6px; }
.intro .text li::marker { color: var(--olive); }
/* Key facts (seznam se stylem is-style-key-facts): údaje pod sebou jako panel nabídky práce, popisek je tučný text na
   začátku položky (strong.key, functions.php), další tučná slova zůstanou v textu */
.intro .text ul.is-style-key-facts { padding: 0; list-style: none; border-top: 1px solid rgba(118, 122, 76, .45); }
.is-style-key-facts li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.intro .text .is-style-key-facts li + li { margin-top: 0; }
.is-style-key-facts strong.key { display: block; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--olive); }

/* podnadpisy nabídky práce (h5) jako v prototypu: tučné a s řádkováním textu (theme.json dává nadpisům 800 a 1.08) */
.job .body h5 { font-weight: 700; line-height: inherit; }

/* Hero jen s fotkou (blok Hero, varianty Photo only a Low strip; About us, Careers, Team): první sekce obsahu navazuje
   na fotku jako v prototypu (.hero.bare + .intro, .hero.bare + .page-title); obsah stránky je ve WP v .entry-content */
.hero.bare + .entry-content > .intro:first-child { padding-top: clamp(56px, 6vw, 96px); }
.hero.bare + .entry-content > .intro:first-child .wrap { padding-top: 0; background: none; }
.hero.bare + .entry-content > .page-title:first-child { padding-top: clamp(48px, 5vw, 80px); }

/* bio bez portrétu: „Photo coming soon“ jako karta projektu */
.bio .empty { display: grid; place-items: center; font-size: 14px; color: rgba(35, 43, 54, .55); }

/* stránka bez fotky s podnadpisem a 404: věta pod nadpisem, na 404 odkaz na úvodní stránku (.more z home.css) */
.page-title p { max-width: 38em; margin-top: 16px; }
.page-title .more { margin-top: 24px; }
.not-found .page-title { padding-bottom: clamp(72px, 8vw, 120px); }

/* detail novinky (single.html): fotka jako u projektu, vlevo kategorie a datum ve stylu karty novinky (small
   v prototypu) a nadpis, vpravo text */
.intro .lead .meta { display: flex; flex-wrap: wrap; gap: 0 .6em; margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--olive-dark); }
.intro .lead .meta > * + *::before { content: "·"; margin-right: .6em; }

/* Contact (blok Contacts) podle náčrtů klientky z 2. 11. 2026: každá kancelář je sekce přes celou šířku (.intro.full),
   nahoře název, pod ním úvod (.lead) a řádky Key facts s popiskem h3 (olivové verzálky jako HEAD OFFICE v patičce) nad
   textem, odstavce přes celou šířku. Sídlo: nadpis a kontakty s řádkem PR and Media vlevo, malá mapa vpravo nahoře na
   úrovni nadpisu a u pravého okraje obsahu (.split napůl, D787), pod nimi řádky přes celou šířku, jejich olivová linka
   je i linkou pod řádkem PR. Na mobilu vše pod sebou: kontakty, mapa přes celou šířku, řádky */
.page-title + .entry-content > .contacts:first-child > .intro:first-child { padding-top: 0; }
.contacts p { max-width: none; }
.contacts p + p { margin-top: 12px; }
.contacts .lead p + p { margin-top: 14px; }
.contacts h2 + * { margin-top: 24px; }
.contacts .split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px clamp(32px, 5vw, 96px); align-items: start; }
.contacts :is(.split, .lead) + .facts-list { margin-top: 16px; }
/* řádek PR nad řádky přes celou šířku jen s jednou linkou (jejich horní), s mapou (.split) i bez ní (jen .lead) */
.contacts :is(.split, .lead):has(+ .facts-list) .facts-list > li:last-child { padding-bottom: 0; border-bottom: 0; }
.contacts .facts-list { margin-top: 28px; list-style: none; border-top: 1px solid rgba(118, 122, 76, .45); }
.contacts .facts-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contacts .facts-list :is(h3, h4) { font-size: 13px; font-weight: 600; letter-spacing: .09em; line-height: 1.4; text-transform: uppercase; color: var(--olive); }
.contacts .facts-list :is(h3, h4) + * { margin-top: 6px; }
/* řádek s popiskem h4 (obě kanceláře: „How do you get to us?“ nad PUBLIC TRANSPORT, klientka 3. a 4. 11. 2026): h3 je
   tučný olivový nadpis, h4 popisek jako ostatní řádky */
.contacts .facts-list h3:has(+ h4) { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; text-transform: none; color: var(--olive); }
.contacts .social a { border-color: var(--olive); color: var(--olive); }
.contacts .social a:hover { background: rgba(118, 122, 76, .12); }
.contacts .map { position: relative; justify-self: end; width: 100%; max-width: 440px; margin: 0; }
.contacts .map > a { display: block; overflow: hidden; background: var(--bg-alt); }
.contacts .map img { width: 100%; height: auto; aspect-ratio: 12 / 7; object-fit: cover; transition: transform 1.2s var(--ease); } /* jako rámeček mapy ve Wordu klientky, obrázek 3 : 2 oříznutý kolem středu */
.contacts .map > a:hover img, .contacts .map > a:focus-visible img { transform: scale(1.03); }
.contacts .map figcaption { position: absolute; right: 0; bottom: 0; padding: 2px 8px; background: rgba(245, 241, 231, .88); font-size: 12px; line-height: 1.5; }
.contacts .map figcaption a { color: inherit; font-weight: inherit; }

/* Whole photo bloku Hero (atribut `uncropped`, D692): celá fotka bez ořezu, výška podle poměru stran fotky. Šablona dá
   fotce max-width = její šířka v pixelech: menší fotka se nezvětšuje, užší než okno je uprostřed na pozadí stránky
   (u nadpisu na fotce na tmavém, níž). Víc fotek leží přes sebe v mřížce (výšku dává nejvyšší), bez paralaxy
   a přiblížení. `section` kvůli přednosti před rozměry z home.css (načítá se později). */
section:is(.hero, .hero-home).whole .ph { display: grid; place-items: center; height: auto; min-height: 0; max-height: none; background: none; }
section:is(.hero, .hero-home).whole .ph img { position: static; grid-area: 1 / 1; width: 100%; height: auto; translate: none; transform: none; animation: none; }
section.hero.whole:not(.bare) .ph { background: var(--ink); } /* nadpis na fotce: bílý nadpis u užší fotky na tmavém, ne na pozadí stránky (D766) */

/* Detail projektu: nadpisy sekcí v textu (Key Highlights, Meeting & Event Facilities, názvy vil Adria Apartments…)
   o něco menší než název projektu (.intro h1), klientka 2. a 3. 11. 2026, pro všechny detaily (D795). Stejně na CSR
   s dlouhými názvy oddílů (Social Impact & Community Engagement…), uživatel 3. 11. 2026 (D886); jiné stránky ne. */
:is(.single-project, .slug-community) .intro > .wrap > h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
/* Community (dřív CSR): dlouhé názvy oddílů širší než 9em (.intro h2), ať se lámou na méně řádků, uživatel 3. 11. 2026 (D888); jen nad
   mobilním breakpointem (do 760 px platí max-width: none) a ne u Full width (.intro.full h2) */
@media (min-width: 761px) {
  .slug-community .intro:not(.full) h2 { max-width: 13em; }
}

@media (max-width: 760px) {
  .wp-block-gallery.has-nested-images { grid-template-columns: 1fr; gap: 28px; }
  .wp-block-gallery.has-nested-images.columns-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .lightbox img { max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); }
  .contacts .split { grid-template-columns: 1fr; }
  .contacts .map { max-width: none; }
}
