/*
Theme Name: Pochówek i Pamięć 2026
Theme URI: https://pochowekipamiec.pl/
Author: Fundacja Pochówek i Pamięć
Description: Nowy, lekki motyw Fundacji Pochówek i Pamięć. Korzysta z istniejących stron, wpisów, kategorii, zdjęć wyróżniających i galerii Gutenberga.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: pochowek-pamiec-2026
*/

:root {
  --paper: #f5f2eb;
  --ink: #1d2b28;
  --muted: #69736e;
  --line: #d9d4c9;
  --forest: #24453e;
  --forest-light: #356057;
  --terracotta: #a4583f;
  --white: #fffefb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.site-frame { min-height: 100vh; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 1000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 16px; clip: auto; background: var(--white); }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
main { min-height: 100vh; overflow: hidden; }

.site-header {
  width: min(1440px, calc(100% - 72px));
  height: 108px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto auto;
  column-gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.wordmark-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 50px;
  border: 1px solid var(--forest);
  border-radius: 50% 50% 46% 46%;
  font: italic 28px/1 Georgia, serif;
}
.wordmark span:last-child { display: grid; gap: 1px; }
.wordmark strong {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.wordmark b { font: 600 18px/1.1 Georgia, serif; }
.custom-logo { display: block; width: auto; max-width: min(310px, 38vw); height: 64px; object-fit: contain; }

.desktop-nav { display: flex; align-items: center; gap: 29px; height: 100%; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-item > a { font-size: 13px; font-weight: 600; padding: 44px 0; }
.nav-item > a::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  margin-top: 5px;
  background: var(--terracotta);
  transition: width .2s ease;
}
.nav-item:hover > a::after, .nav-item:focus-within > a::after { width: 100%; }
.submenu {
  position: absolute;
  top: 80px;
  left: -22px;
  width: 230px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(29,43,40,.10);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: .2s ease;
}
.nav-item:hover .submenu, .nav-item:focus-within .submenu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.submenu a { display: block; padding: 11px 10px; font-size: 13px; border-bottom: 1px solid #ece8df; }
.submenu a:last-child { border-bottom: 0; }
.submenu a:hover { color: var(--terracotta); }
.support-button {
  justify-self: end;
  background: var(--forest);
  color: var(--white);
  padding: 13px 21px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  transition: background .2s ease;
}
.support-button:hover { background: var(--forest-light); }
.header-facebook {
  display: grid;
  place-items: end center;
  width: 34px;
  height: 34px;
  margin-left: 0;
  padding-top: 5px;
  border: 1px solid var(--forest);
  border-radius: 50%;
  font: 700 24px/1 Arial, sans-serif;
  transition: color .2s ease, border-color .2s ease;
}
.header-facebook:hover { color: var(--terracotta); border-color: var(--terracotta); }
.menu-button { display: none; border: 0; background: transparent; padding: 8px; }
.mobile-support-bar { display: none; }

.hero {
  width: min(1440px, calc(100% - 72px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 9vw 84px 5.5vw;
}
.eyebrow {
  margin: 0 0 28px;
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}
h1 {
  max-width: 720px;
  margin: 0;
  font: 400 clamp(54px, 5.1vw, 82px)/.96 Georgia, 'Times New Roman', serif;
  letter-spacing: -.04em;
}
.hero-lead {
  max-width: 520px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.hero-actions { display: flex; align-items: center; gap: 29px; margin-top: 38px; }
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 16px 19px;
  border: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.primary-button span { font-size: 17px; }
.text-link { border-bottom: 1px solid var(--ink); padding: 6px 0; font-size: 12px; font-weight: 700; }

.hero-visual { margin: 0; position: relative; overflow: hidden; min-height: 650px; }
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,42,38,.03), rgba(27,42,38,.23));
  pointer-events: none;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.78) sepia(.08); }
.hero-visual figcaption {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 23px;
  display: flex;
  justify-content: space-between;
  color: white;
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.latest-strip {
  width: min(1440px, calc(100% - 72px));
  min-height: 118px;
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 35px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.latest-label { display: grid; grid-template-columns: auto 1fr; gap: 4px 9px; align-items: center; }
.latest-label span:nth-child(2) { font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.latest-label time { grid-column: 2; color: var(--muted); font-size: 10px; }
.pulse { width: 7px; height: 7px; background: var(--terracotta); border-radius: 50%; grid-row: 1 / span 2; }
.latest-title { max-width: 950px; font: 400 clamp(20px, 2vw, 29px)/1.25 Georgia, serif; }
.round-link { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; font-size: 20px; }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 1fr auto auto auto; gap: 16px; }
  .desktop-nav { display: none; }
  .menu-button { display: grid; gap: 5px; }
  .menu-button span { display: block; width: 24px; height: 1px; background: var(--ink); }
  .hero-copy { padding-left: 2vw; padding-right: 5vw; }
}
@media (max-width: 760px) {
  .site-header, .hero, .latest-strip { width: calc(100% - 36px); }
  .site-header {
    height: 132px;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: 84px 48px;
    gap: 0 14px;
    position: relative;
    top: auto;
    z-index: 30;
    background: var(--paper);
  }
  .wordmark-mark { width: 35px; height: 41px; font-size: 23px; }
  .wordmark b { font-size: 15px; }
  .support-button { display: none; }
  .header-facebook { margin-left: 0; }
  .mobile-support-bar {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: calc(100% + 36px);
    height: 48px;
    margin-left: -18px;
    background: var(--forest);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 60px 0 48px; }
  h1 { font-size: clamp(46px, 14vw, 66px); }
  .hero-lead { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 13px; }
  .hero-visual { min-height: 470px; }
  .latest-strip { grid-template-columns: 1fr 44px; gap: 20px; padding: 25px 0; border-top: 1px solid #c7c0b4; }
  .latest-label { grid-column: 1 / -1; }
  .latest-label span:nth-child(2) { font-size: 13px; letter-spacing: .12em; }
  .latest-title { font-size: 21px; }
  .round-link { width: 40px; height: 40px; }
}

.mobile-nav { display: none; }
.section-shell { width: min(1240px, calc(100% - 72px)); margin: 0 auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.section-heading .eyebrow { margin-bottom: 12px; }
h2 { margin: 0; font: 400 clamp(40px, 4.6vw, 67px)/1.02 Georgia, serif; letter-spacing: -.035em; }

.news-section { padding: 110px 0 130px; }
.news-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 26px; align-items: start; }
.news-card { border-top: 1px solid var(--line); padding-top: 18px; }
.news-image { display: block; height: 260px; overflow: hidden; margin-bottom: 21px; background: var(--paper-deep); }
.news-card.featured .news-image { height: 390px; }
.news-image img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.8); transition: transform .45s ease; }
.news-card:hover img { transform: scale(1.025); }
.news-meta { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.news-meta span { color: var(--terracotta); font-weight: 700; }
.news-card h3 { margin: 15px 0 22px; font: 400 25px/1.18 Georgia, serif; }
.news-card.featured h3 { font-size: 34px; }
.card-link { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.card-link span { margin-left: 8px; font-size: 15px; }

.about-section { display: grid; grid-template-columns: 47% 53%; background: var(--forest); color: var(--white); }
.about-image { min-height: 660px; position: relative; overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.65) sepia(.12); }
.about-image span { position: absolute; right: 0; bottom: 0; padding: 13px 20px; background: var(--terracotta); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.about-copy { display: flex; flex-direction: column; justify-content: center; padding: 90px max(7vw, 70px); }
.about-copy .eyebrow { color: #d6a78e; }
.support-section .eyebrow { color: #ddc8b1; }
.about-copy p:not(.eyebrow) { max-width: 580px; margin: 28px 0 36px; color: #d5ded9; font-size: 17px; line-height: 1.75; }
.primary-button.light { color: var(--white); border-color: rgba(255,255,255,.65); }
.about-copy .primary-button.light { align-self: flex-start; }

.project-section { padding: 135px 0; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 8vw, 130px); align-items: center; }
.project-copy h2 { font-size: clamp(42px, 4.2vw, 64px); }
.project-copy > p:not(.eyebrow) { margin: 28px 0; color: var(--muted); line-height: 1.75; }
.project-copy ul { list-style: none; padding: 0; margin: 0 0 36px; border-top: 1px solid var(--line); }
.project-copy li { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.project-copy li::before { content: '→'; margin-right: 12px; color: var(--terracotta); }
.project-image { margin: 0; position: relative; }
.project-image img { width: 100%; display: block; filter: saturate(.75); }
.project-image figcaption { margin-top: 13px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.support-section {
  padding: 125px 36px;
  text-align: center;
  background: radial-gradient(circle at 50% -30%, #775b53 0, #5b403d 48%, #493432 100%);
  color: white;
}
.support-section h2 { max-width: 800px; margin: 0 auto; font-size: clamp(46px, 6vw, 82px); }
.support-section > p:not(.eyebrow) { max-width: 620px; margin: 27px auto 34px; line-height: 1.7; color: #e8ddd4; }
.support-section > div { display: flex; justify-content: center; align-items: center; gap: 28px; }
.support-section .primary-button { align-self: center; }
.light-link { border-color: white; }

footer { width: min(1240px, calc(100% - 72px)); margin: 0 auto; padding: 75px 0 25px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 45px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-brand { display: flex; gap: 16px; align-items: center; font: 400 18px/1.25 Georgia, serif; }
footer > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
footer > div > span { color: var(--terracotta); margin-bottom: 7px; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
footer p { margin: 0; line-height: 1.55; }
.copyright { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px; color: var(--muted); font-size: 10px; }

.article-page { width: min(1240px, calc(100% - 72px)); margin: 0 auto; }
.article-header { max-width: 1040px; padding: 90px 0 60px; }
.article-meta { display: flex; gap: 22px; margin-bottom: 24px; color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.article-meta a { color: var(--terracotta); font-weight: 800; }
.article-header h1 { max-width: 1000px; font-size: clamp(43px, 4.2vw, 64px); line-height: 1.06; }
.article-intro { max-width: 800px; margin: 30px 0 0; color: var(--muted); font: 400 21px/1.55 Georgia, serif; }
.article-cover { margin: 0; }
.article-cover img { width: 100%; height: min(68vw, 710px); object-fit: cover; display: block; filter: saturate(.76); }
.article-cover figcaption { margin-top: 12px; color: var(--muted); font-size: 10px; }
.article-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); justify-content: center; gap: 75px; padding: 95px 0; }
.article-aside { border-top: 1px solid var(--line); padding-top: 17px; }
.article-aside span { display: block; color: var(--terracotta); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.article-aside p { margin: 8px 0 27px; font-size: 12px; line-height: 1.5; }
.article-content { font: 400 19px/1.85 Georgia, serif; }
.article-content p { margin: 0 0 29px; }
.article-content > p:first-child::first-letter { float: left; font-size: 75px; line-height: .75; padding: 12px 9px 0 0; color: var(--terracotta); }
.article-content h2 { margin: 54px 0 22px; font-size: 40px; }
.article-gallery { padding: 0 0 130px; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.gallery-grid figure { grid-column: span 4; margin: 0; height: 390px; overflow: hidden; }
.gallery-grid figure:nth-child(1), .gallery-grid figure:nth-child(4) { grid-column: span 8; }
.gallery-grid figure > button { width: 100%; height: 100%; padding: 0; border: 0; background: transparent; position: relative; cursor: zoom-in; }
.gallery-grid figure > button > span { position: absolute; right: 15px; bottom: 15px; display: grid; place-items: center; width: 34px; height: 34px; background: rgba(245,242,235,.92); color: var(--ink); font: 300 23px/1 Arial, sans-serif; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.8); }
.lightbox-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; gap: 22px; padding: 50px 28px 24px; background: rgba(16,25,23,.96); color: var(--white); }
.lightbox figure { height: calc(100vh - 90px); margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox figure img { max-width: 100%; max-height: calc(100% - 35px); width: auto; height: auto; object-fit: contain; filter: none; }
.lightbox figcaption { margin-top: 15px; color: #c5cfca; font-size: 11px; letter-spacing: .12em; }
.lightbox button { border: 1px solid rgba(255,255,255,.45); background: transparent; color: var(--white); cursor: pointer; }
.lightbox-close { position: absolute; top: 18px; right: 24px; width: 42px; height: 42px; font: 300 28px/1 Arial, sans-serif; }
.lightbox-arrow { width: 54px; height: 54px; border-radius: 50%; font-size: 20px; justify-self: center; }
.article-next { padding: 80px max(36px, calc((100vw - 1240px)/2)); background: var(--forest); color: white; }
.article-next span { display: block; margin-bottom: 13px; color: #a9bbb5; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.article-next a { display: flex; justify-content: space-between; gap: 30px; font: 400 clamp(30px, 4vw, 57px)/1.1 Georgia, serif; }

.archive-header { padding: 95px 0 70px; border-bottom: 1px solid var(--line); }
.archive-header .eyebrow { margin-bottom: 25px; }
.archive-header > div { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; }
.archive-header h1 { font-size: clamp(55px, 6.4vw, 92px); }
.archive-header > div > p { max-width: 520px; margin: 0 0 8px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.archive-feature { padding: 65px 0 90px; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(45px, 7vw, 100px); align-items: center; }
.archive-feature-image { display: block; height: 560px; overflow: hidden; }
.archive-feature-image img, .archive-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.78); transition: transform .45s ease; }
.archive-feature:hover img, .archive-card:hover img { transform: scale(1.02); }
.archive-feature h2 { margin: 25px 0 23px; font-size: clamp(39px, 4vw, 59px); }
.archive-feature article > p { margin: 0 0 31px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.archive-list { padding: 0 0 120px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 70px 28px; padding-top: 65px; border-top: 1px solid var(--line); }
.archive-card-image { display: block; height: 300px; margin-bottom: 22px; overflow: hidden; }
.archive-card h2 { min-height: 86px; margin: 16px 0 23px; font-size: 27px; line-height: 1.18; letter-spacing: -.02em; }
.pagination { display: flex; align-items: center; gap: 9px; margin-top: 85px; padding-top: 28px; border-top: 1px solid var(--line); }
.pagination > a, .pagination > span { display: grid; place-items: center; min-width: 42px; height: 42px; border: 1px solid var(--line); font-size: 12px; }
.pagination > span { background: var(--forest); border-color: var(--forest); color: var(--white); }
.pagination .pagination-next { display: flex; gap: 24px; width: auto; margin-left: auto; padding: 0 17px; font-weight: 700; }
.pagination .next,
.pagination .prev { display: flex; width: auto; padding: 0 16px; white-space: nowrap; }
.pagination .next { margin-left: auto; }

.standard-page { padding-bottom: 120px; }
.standard-header { padding: 95px 0 65px; }
.standard-header .eyebrow { margin-bottom: 25px; }
.standard-header > div { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; }
.standard-header h1 { font-size: clamp(55px, 6.4vw, 92px); }
.standard-header > div > p { max-width: 550px; margin: 0 0 8px; color: var(--muted); font: 400 20px/1.55 Georgia, serif; }
.standard-cover { width: min(1440px, calc(100% - 72px)); margin: 0 auto; }
.standard-cover img { width: 100%; height: min(62vw, 690px); display: block; object-fit: cover; filter: saturate(.76); }
.standard-cover figcaption { margin-top: 12px; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.standard-content { max-width: 730px; margin: 0 auto; padding: 90px 0 0; font: 400 19px/1.85 Georgia, serif; }
.standard-content p { margin: 0 0 30px; }
.standard-content .standard-lead { margin-bottom: 42px; color: var(--forest); font-size: 25px; line-height: 1.55; }
.standard-content h2 { margin: 65px 0 28px; font-size: 43px; }
.standard-closing { padding: 105px 36px 115px; background: var(--forest); color: var(--white); text-align: center; }
.standard-closing .eyebrow { color: #d6a78e; }
.standard-closing h2 { margin-bottom: 38px; font-size: clamp(48px, 5.8vw, 78px); }
.standard-closing .primary-button { margin-inline: auto; }

.projects-header { padding: 95px 0 70px; border-bottom: 1px solid var(--line); }
.projects-header .eyebrow { margin-bottom: 25px; }
.projects-header > div { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; }
.projects-header h1 { font-size: clamp(55px, 6.4vw, 92px); }
.projects-header > div > p { max-width: 550px; margin: 0 0 8px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.projects-list { padding-bottom: 0; }
.project-row { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(55px, 8vw, 120px); align-items: center; padding: 75px 0; border-bottom: 1px solid var(--line); }
.project-row.reverse { grid-template-columns: .85fr 1.15fr; }
.project-row.reverse .project-row-image { order: 2; }
.project-row-image { display: block; height: 540px; overflow: hidden; }
.project-row-image img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.76); transition: transform .45s ease; }
.project-row:hover .project-row-image img { transform: scale(1.02); }
.project-row-copy .eyebrow { margin-bottom: 22px; }
.project-row-copy h2 { margin-bottom: 25px; font-size: clamp(39px, 4vw, 58px); }
.project-row-copy > p:not(.eyebrow) { margin: 0 0 31px; color: var(--muted); font-size: 15px; line-height: 1.75; }

.project-detail { padding-bottom: 125px; }
.project-detail-header { max-width: 1240px; padding: 90px 0 60px; }
.project-detail-header h1 { max-width: 1130px; font-size: clamp(43px, 4.7vw, 70px); line-height: 1.04; }
.project-detail-header > p { max-width: 780px; margin: 30px 0 0; color: var(--muted); font: 400 21px/1.55 Georgia, serif; }
.project-detail-cover { width: min(1440px, calc(100% - 72px)); margin: 0 auto; }
.project-detail-cover img { width: 100%; height: min(65vw, 720px); display: block; object-fit: cover; filter: saturate(.76); }
.project-detail-cover figcaption { margin-top: 12px; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.project-detail-content { max-width: 730px; margin: 0 auto; padding: 90px 0 100px; font: 400 19px/1.85 Georgia, serif; }
.project-detail-content p { margin: 0 0 30px; }
.project-detail-content .standard-lead { margin-bottom: 42px; color: var(--forest); font-size: 25px; line-height: 1.55; }
.project-detail-content h2 { margin: 65px 0 28px; font-size: 43px; }

.action-index { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding-top: 75px; padding-bottom: 110px; }
.action-card { display: grid; grid-template-columns: 42% 58%; min-height: 360px; border: 1px solid var(--line); margin: 0 -1px -1px 0; }
.action-card-image { min-height: 360px; overflow: hidden; }
.action-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.76); transition: transform .4s ease; }
.action-card:hover .action-card-image img { transform: scale(1.025); }
.action-card-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 42px 38px; }
.action-card-copy .eyebrow { margin-bottom: 20px; }
.action-card-copy h2 { margin-bottom: 22px; font-size: clamp(30px, 2.7vw, 43px); }
.action-card-copy > p:not(.eyebrow) { margin: 0 0 28px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.action-card-copy .card-link { margin-top: auto; }

.biogram-sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 65px; padding-bottom: 85px; border-bottom: 1px solid var(--line); }
.biogram-sections article { min-width: 0; }
.biogram-section-image { display: block; height: 300px; margin-bottom: 24px; overflow: hidden; }
.biogram-section-image img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.72); transition: transform .4s ease; }
.biogram-sections article:hover img { transform: scale(1.025); }
.biogram-sections .eyebrow { margin-bottom: 13px; }
.biogram-sections h2 { margin-bottom: 12px; font-size: 39px; }
.biogram-count { margin: 0 0 23px; color: var(--muted); font-size: 12px; }
.biogram-latest { padding-top: 90px; padding-bottom: 110px; }
.biogram-latest .archive-grid { padding-top: 0; }

.about-index-page { padding-bottom: 0; }
.about-index-content { width: min(1040px, calc(100% - 72px)); margin: 0 auto; padding: 90px 0 110px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; align-items: start; }
.about-index-lead { margin: 0; font: 400 23px/1.65 Georgia, serif; }
.about-index-links { border-top: 1px solid var(--line); }
.about-index-links a { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; padding: 25px 0; border-bottom: 1px solid var(--line); }
.about-index-links span { color: var(--terracotta); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.about-index-links strong { grid-column: 1; font: 400 30px/1.1 Georgia, serif; }
.about-index-links b { grid-column: 2; grid-row: 1 / span 2; font-size: 21px; font-weight: 400; }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.featured { grid-column: 1 / -1; }
  .news-card.featured .news-image { height: 480px; }
  .about-section, .project-section { grid-template-columns: 1fr; }
  .about-image { min-height: 520px; }
  .about-copy { padding: 80px 9vw; }
  .project-section { gap: 60px; }
  footer { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 35px; }
  .article-aside { display: grid; grid-template-columns: auto 1fr; gap: 10px 25px; }
  .article-aside p { margin: 0; }
  .gallery-grid figure, .gallery-grid figure:nth-child(1), .gallery-grid figure:nth-child(4) { grid-column: span 6; }
  .archive-feature { grid-template-columns: 1fr; }
  .archive-feature-image { height: 520px; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
  .project-row, .project-row.reverse { grid-template-columns: 1fr; gap: 45px; }
  .project-row.reverse .project-row-image { order: initial; }
  .action-index { grid-template-columns: 1fr; }
  .about-index-content { grid-template-columns: 1fr; gap: 55px; }
}

@media (max-width: 760px) {
  .mobile-nav {
    display: block;
    position: absolute;
    top: 132px;
    left: -18px;
    right: -18px;
    height: calc(100vh - 132px);
    overflow-y: auto;
    padding: 25px 24px 45px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .mobile-nav.is-open { transform: translateX(0); }
  .mobile-nav > div > a:first-child { display: block; padding: 17px 0 10px; border-bottom: 1px solid var(--line); font: 400 27px/1.2 Georgia, serif; }
  .mobile-subitem { display: block; padding: 8px 0 4px 18px; color: var(--muted); font-size: 13px; }
  .mobile-support { display: block; margin-top: 28px; padding: 16px 18px; background: var(--forest); color: white; text-align: center; font-size: 12px; font-weight: 700; }
  .section-shell, .article-page, footer { width: calc(100% - 36px); }
  .news-section { padding: 80px 0 90px; }
  .section-heading { align-items: flex-start; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: auto; }
  .news-card.featured .news-image, .news-image { height: 290px; }
  .news-card.featured h3 { font-size: 28px; }
  .about-image { min-height: 430px; }
  .about-copy { padding: 70px 24px; }
  .project-section { padding: 90px 0; }
  .support-section { padding: 90px 20px; }
  .support-section > div { flex-direction: column; }
  .support-section .primary-button { margin-inline: auto; }
  footer { grid-template-columns: 1fr; padding-top: 55px; }
  .article-header { padding: 65px 0 40px; }
  .article-header h1 { font-size: 37px; line-height: 1.1; }
  .article-cover img { height: 480px; }
  .article-layout { padding: 65px 0; }
  .article-aside { display: none; }
  .article-content { font-size: 18px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure, .gallery-grid figure:nth-child(1), .gallery-grid figure:nth-child(4) { grid-column: auto; height: 420px; }
  .article-gallery { padding-bottom: 85px; }
  .archive-header { padding: 65px 0 45px; }
  .archive-header > div { grid-template-columns: 1fr; gap: 25px; }
  .archive-header h1 { font-size: 54px; }
  .archive-header > div > p { font-size: 15px; }
  .archive-feature { padding: 40px 0 70px; gap: 32px; }
  .archive-feature-image { height: 360px; }
  .archive-feature h2 { font-size: 38px; }
  .archive-grid { grid-template-columns: 1fr; gap: 58px; padding-top: 48px; }
  .archive-card-image { height: 315px; }
  .archive-card h2 { min-height: 0; font-size: 28px; }
  .archive-list { padding-bottom: 85px; }
  .pagination { margin-top: 65px; }
  .pagination > a:nth-child(3) { display: none; }
  .pagination .pagination-next { gap: 12px; padding: 0 12px; }
  .standard-page { padding-bottom: 85px; }
  .standard-header { padding: 65px 0 43px; }
  .standard-header > div { grid-template-columns: 1fr; gap: 25px; }
  .standard-header h1 { font-size: 54px; }
  .standard-header > div > p { font-size: 18px; }
  .standard-cover { width: calc(100% - 36px); }
  .standard-cover img { height: 440px; }
  .standard-content { width: calc(100% - 36px); padding-top: 60px; font-size: 18px; }
  .standard-content .standard-lead { font-size: 22px; }
  .standard-content h2 { margin-top: 52px; font-size: 37px; }
  .standard-closing { padding: 80px 20px 88px; }
  .projects-header { padding: 65px 0 45px; }
  .projects-header > div { grid-template-columns: 1fr; gap: 25px; }
  .projects-header h1 { font-size: 54px; }
  .projects-header > div > p { font-size: 15px; }
  .projects-list { padding-bottom: 0; }
  .project-row { padding: 48px 0 60px; gap: 32px; }
  .project-row-image { height: 380px; }
  .project-row-copy h2 { font-size: 38px; }
  .project-detail { padding-bottom: 85px; }
  .project-detail-header { padding: 65px 0 42px; }
  .project-detail-header h1 { font-size: 38px; line-height: 1.08; }
  .project-detail-header > p { font-size: 18px; }
  .project-detail-cover { width: calc(100% - 36px); }
  .project-detail-cover img { height: 450px; }
  .project-detail-content { width: calc(100% - 36px); padding: 60px 0 70px; font-size: 18px; }
  .project-detail-content .standard-lead { font-size: 22px; }
  .project-detail-content h2 { margin-top: 52px; font-size: 37px; }
  .action-index { padding-top: 48px; padding-bottom: 75px; }
  .action-card { grid-template-columns: 1fr; }
  .action-card-image { min-height: 300px; }
  .action-card-copy { padding: 34px 25px; }
  .action-card-copy .card-link { margin-top: 10px; }
  .biogram-sections { grid-template-columns: 1fr; padding-top: 45px; padding-bottom: 65px; }
  .biogram-section-image { height: 330px; }
  .biogram-latest { padding-top: 65px; padding-bottom: 80px; }
  .about-index-content { width: calc(100% - 36px); padding: 60px 0 75px; }
  .about-index-lead { font-size: 21px; }
  .lightbox { grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 5px; padding: 62px 8px 18px; }
  .lightbox figure { height: calc(100vh - 100px); }
  .lightbox-arrow { width: 44px; height: 44px; }
  .lightbox-close { top: 12px; right: 14px; }
}

/* WordPress: menu, treść blokowa i galeria. */
.primary-menu,
.mobile-menu-list,
.primary-menu .sub-menu,
.mobile-menu-list .sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-menu { display: flex; align-items: center; gap: 29px; height: 100%; }
.primary-menu > li { position: relative; display: flex; align-items: center; height: 100%; }
.primary-menu > li > a { padding: 44px 0; font-size: 13px; font-weight: 600; }
.primary-menu > li > a::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  margin-top: 5px;
  background: var(--terracotta);
  transition: width .2s ease;
}
.primary-menu > li:hover > a::after,
.primary-menu > li:focus-within > a::after,
.primary-menu > .current-menu-item > a::after,
.primary-menu > .current-menu-ancestor > a::after { width: 100%; }
.primary-menu .sub-menu {
  position: absolute;
  top: 80px;
  left: -22px;
  width: 250px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(29,43,40,.10);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: .2s ease;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.primary-menu .sub-menu a { display: block; padding: 11px 10px; border-bottom: 1px solid #ece8df; font-size: 13px; line-height: 1.35; }
.primary-menu .sub-menu li:last-child > a { border-bottom: 0; }
.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus { color: var(--terracotta); }

.wp-entry-content > :first-child { margin-top: 0; }
.wp-entry-content > :last-child { margin-bottom: 0; }
.wp-entry-content img { max-width: 100%; height: auto; }
.wp-entry-content figure { max-width: 100%; }
.wp-entry-content figcaption { color: var(--muted); font: 10px/1.5 Arial, sans-serif; letter-spacing: .06em; }
.wp-entry-content h2 { margin: 60px 0 24px; font-size: 42px; }
.wp-entry-content h3 { margin: 45px 0 18px; font: 400 31px/1.15 Georgia, serif; }
.wp-entry-content ul,
.wp-entry-content ol { padding-left: 1.3em; }
.wp-entry-content blockquote { margin: 45px 0; padding-left: 25px; border-left: 2px solid var(--terracotta); }
.wp-entry-content .wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(1240px, calc(100vw - 72px));
  max-width: none;
  margin: 75px 0;
  margin-left: 50%;
  transform: translateX(-50%);
  gap: 18px;
}
.wp-entry-content .wp-block-gallery > figure { width: auto !important; margin: 0 !important; }
.wp-entry-content .wp-block-gallery > figure:first-child { grid-column: 1 / -1; }
.wp-entry-content .wp-block-gallery img { width: 100%; height: 390px; object-fit: cover; cursor: zoom-in; }
.wp-entry-content .wp-block-gallery > figure:first-child img { height: 560px; }
.wp-entry-content .wp-block-image a { cursor: zoom-in; }
.category-page-list { padding-bottom: 110px; }
.empty-state,
.error-page { padding-top: 90px; padding-bottom: 100px; }
.error-page h1 { margin-bottom: 30px; }
.error-page p { margin: 0 0 30px; color: var(--muted); }
.navigation.pagination { width: min(1240px, calc(100% - 72px)); margin: 70px auto 0; }
.navigation.pagination .nav-links { display: flex; align-items: center; gap: 9px; }
.navigation.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); font-size: 12px; }
.navigation.pagination .current { background: var(--forest); border-color: var(--forest); color: var(--white); }

.pp26-lightbox[hidden] { display: none; }
.lightbox-open { overflow: hidden; }
.pp26-lightbox {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 20px;
  padding: 52px 28px 24px;
  background: rgba(16,25,23,.96);
}
.pp26-lightbox figure { height: calc(100vh - 90px); margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pp26-lightbox img { max-width: 100%; max-height: calc(100% - 35px); width: auto; height: auto; object-fit: contain; }
.pp26-lightbox figcaption { margin-top: 15px; color: #c5cfca; font-size: 11px; letter-spacing: .08em; }
.pp26-lightbox button { border: 1px solid rgba(255,255,255,.45); background: transparent; color: var(--white); cursor: pointer; }
.pp26-lightbox-close { position: absolute; top: 18px; right: 24px; width: 42px; height: 42px; font: 300 28px/1 Arial, sans-serif; }
.pp26-lightbox-prev,
.pp26-lightbox-next { width: 54px; height: 54px; border-radius: 50%; font-size: 20px; justify-self: center; }

@media (max-width: 1120px) {
  .mobile-nav {
    display: block;
    position: absolute;
    z-index: 45;
    top: 108px;
    right: 0;
    bottom: auto;
    width: min(440px, 100%);
    height: calc(100vh - 108px);
    padding: 28px 30px 50px;
    overflow-y: auto;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: -20px 30px 50px rgba(29,43,40,.12);
    transform: translateX(105%);
    transition: transform .25s ease;
  }
  .mobile-nav.is-open { transform: translateX(0); }
  .mobile-menu-list > li > a { display: block; padding: 16px 0 10px; border-bottom: 1px solid var(--line); font: 400 27px/1.2 Georgia, serif; }
  .mobile-menu-list .sub-menu { padding: 5px 0 9px 18px; }
  .mobile-menu-list .sub-menu a { display: block; padding: 7px 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
  .menu-open { overflow: hidden; }
}

@media (max-width: 760px) {
  .site-header { position: relative; top: auto; }
  .admin-bar .site-header { top: auto; }
  .mobile-nav { top: 132px; right: -18px; width: calc(100% + 36px); height: calc(100vh - 132px); box-shadow: none; }
  .admin-bar .mobile-nav { top: 132px; }
  .custom-logo { max-width: 220px; height: 52px; }
  .wp-entry-content h2 { font-size: 36px; }
  .wp-entry-content h3 { font-size: 28px; }
  .wp-entry-content .wp-block-gallery { width: calc(100vw - 36px); margin-top: 55px; margin-bottom: 55px; gap: 10px; }
  .wp-entry-content .wp-block-gallery { grid-template-columns: 1fr; }
  .wp-entry-content .wp-block-gallery > figure:first-child { grid-column: auto; }
  .wp-entry-content .wp-block-gallery img,
  .wp-entry-content .wp-block-gallery > figure:first-child img { height: 420px; }
  .pp26-lightbox { grid-template-columns: 50px minmax(0, 1fr) 50px; gap: 4px; padding: 62px 7px 18px; }
  .pp26-lightbox-prev,
  .pp26-lightbox-next { width: 43px; height: 43px; }
  .navigation.pagination { width: calc(100% - 36px); }
}
