/* ==========================================================================
   Siła Miłości — XV Edycja · style
   Fonts: Bona Nova (serif) + Inter (sans)
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Bona Nova";
  src: url("../../Bona_Nova/BonaNova-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bona Nova";
  src: url("../../Bona_Nova/BonaNova-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bona Nova";
  src: url("../../Bona_Nova/BonaNova-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../../Inter/Inter-VariableFont_opsz,wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../../Inter/Inter-Italic-VariableFont_opsz,wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --cream: #f5f1e8;
  --cream-2: #ebe4d6;
  --ink: #14120f;
  --ink-soft: #1a1a19;
  --red: #8c1d24;
  --border: #ddd5c4;
  --muted: #6e6a62;
  --dark-card: #3a352e;
  --serif: "Bona Nova", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.08;
  margin: 0;
}

p { margin: 0 0 1rem; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red); }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: 1171px;
  margin: 0 auto;
  padding-inline: 40px;
}

.section { padding-block: 100px; }
.section--cream2 { background: var(--cream-2); }
.section--dark { background: var(--ink); color: var(--cream); }

/* sekcje — offset pod sticky navbar */
[id] { scroll-margin-top: 84px; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(245, 241, 232, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 18px rgba(20, 18, 15, 0.04);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
}
.nav-brand { display: none; }

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav-links a {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.18s ease;
}
.site-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.site-nav-links a:hover { color: var(--red); }
.site-nav-links a:hover::after,
.site-nav-links a.active::after { transform: scaleX(1); }
.site-nav-links a.active { color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.site-nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Eyebrow / section label ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
}

.section-title { font-size: clamp(30px, 4vw, 46px); }

.lead-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn-solid,
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 15px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.btn-solid {
  background: var(--red);
  color: var(--cream);
}
.btn-solid:hover { background: #74161c; color: var(--cream); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.link-arrow:hover { border-color: var(--red); }
.link-arrow .arw { transition: transform 0.18s ease; }
.link-arrow:hover .arw { transform: translateX(4px); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding-top: 130px;
  padding-bottom: 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 68px;
  align-items: start;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 26px;
}

.hero-birds {
  width: 246px;
  max-width: 60%;
  height: auto;
  margin: 0 0 34px;
  color: var(--ink-soft);
}

.hero-title {
  font-weight: 400;
  font-size: clamp(34px, 4.3vw, 50px);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.hero-sub {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 2.4vw, 26px);
  color: var(--ink);
  margin-bottom: 26px;
}

.hero-rule {
  width: 48px;
  height: 2px;
  background: var(--red);
  margin-bottom: 26px;
}

.hero-desc {
  max-width: 470px;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* info cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 40px;
}

.info-card {
  background: var(--cream-2);
  padding: 20px 22px 22px;
  border-right: 2px solid var(--cream);
  min-height: 146px;
}
.info-card:last-child { border-right: 0; }

.info-card .k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.info-card .v {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 3px;
}
.info-card .s {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
}

.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 440 / 766;
  object-fit: cover;
  background: #111;
}
.hero-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 440 / 766;
  background: #111;
  overflow: hidden;
}
.hero-slides .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slides .hero-slide.is-active {
  opacity: 1;
}
.hero-media figcaption {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  text-align: left;
  transition: opacity 0.4s ease;
}

/* ==========================================================================
   O WYDARZENIU
   ========================================================================== */
.about {
  text-align: center;
  padding-block: 110px;
}
.about .eyebrow { margin-bottom: 30px; }
.about-title {
  font-size: clamp(30px, 4.4vw, 48px);
  max-width: 780px;
  margin: 0 auto 34px;
}
.about-copy {
  max-width: 640px;
  margin: 0 auto 24px;
  font-size: 16.5px;
  line-height: 1.75;
}

.quote {
  max-width: 640px;
  margin: 46px auto 40px;
  text-align: left;
  border-left: 2px solid var(--red);
  padding: 6px 0 6px 26px;
}
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.quote cite {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  margin: 56px auto 44px;
  max-width: 900px;
}
.stat {
  padding: 40px 30px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: 0; }
.stat .n {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 42px);
  color: var(--red);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.stat .d {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 230px;
  margin: 0 auto;
}

/* ==========================================================================
   PROGRAM
   ========================================================================== */
.program-head { margin-bottom: 54px; }
.program-head .eyebrow { margin-bottom: 24px; }
.program-head h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.program-head p { color: var(--muted); font-size: 15px; }

.program-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.timeline { position: relative; }
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 24px;
  padding-bottom: 42px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-rail {
  position: relative;
  min-height: 50px;
}
.tl-time {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: var(--ink);
  letter-spacing: .01em;
}
.tl-dot {
  position: absolute;
  left: 50%;
  top: 31px;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  background: var(--cream-2);
  box-sizing: border-box;
}
.tl-dot--on {
  background: var(--red);
  border-color: var(--red);
}
/* cienka linia czasu pod kropką (tylko przy pozycjach z opisem) */
.tl-item:has(.tl-body p)::after {
  content: "";
  position: absolute;
  left: 32px;
  top: 51px;
  bottom: 34px;
  width: 1px;
  transform: translateX(-50%);
  background: var(--border);
}
.tl-body h4 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}
.tl-body p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted);
  margin: 0;
  max-width: 500px;
}
.tl-body p + p { margin-top: 6px; }
.tl-body .tl-lead {
  color: var(--ink);
  font-weight: 500;
}

/* Pełna lista utworów w części artystycznej */
.tl-body .program-details {
  margin-top: 18px;
  max-width: 540px;
}
.tl-body .program-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.tl-body .program-details summary::-webkit-details-marker { display: none; }
.tl-body .program-details summary .count { color: var(--red); }
.tl-body .program-details summary::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  color: var(--red);
}
.tl-body .program-details[open] summary::after { content: "–"; }
.tl-body .program-details[open] summary { border-bottom-color: transparent; }
.tl-body .program-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  max-width: 540px;
  counter-reset: track;
  border-top: 1px solid var(--border);
}
.tl-body .program-details .program-list {
  margin-top: 0;
  border-top: 0;
}
.tl-body .program-list li {
  position: relative;
  counter-increment: track;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  padding: 9px 0 9px 34px;
  border-bottom: 1px solid var(--border);
}
.tl-body .program-list li::before {
  content: counter(track) ".";
  position: absolute;
  left: 0;
  top: 9px;
  width: 24px;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  text-align: right;
}

/* side card */
.side-card {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 34px 32px 32px;
}
.side-card .eyebrow { margin-bottom: 20px; }
.side-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.4;
  margin-bottom: 16px;
}
.side-card p { font-size: 14px; line-height: 1.65; }
.side-card .email {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  margin: 6px 0 22px;
}
.side-card .btn-solid { width: 100%; }
.side-card hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 28px 0 20px;
}
.side-card .addr { font-size: 13.5px; line-height: 1.6; margin-bottom: 10px; }

/* ==========================================================================
   ZESPÓŁ / Wykonawcy
   ========================================================================== */
.team-head { max-width: 720px; margin-bottom: 56px; }
.team-head .eyebrow { margin-bottom: 24px; }
.team-head h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 20px; }
.team-head p { font-size: 16px; line-height: 1.7; }
.team-photo { margin: 0 0 56px; }
.team-photo img { display: block; width: 100%; height: auto; }

.group { margin-bottom: 54px; }
.group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 24px;
}
.group-head h3 {
  font-family: var(--serif);
  font-size: 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.group-head h3 .sub {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}
.group-head .count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.person {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 13px 16px;
}
.person .ini {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  background: var(--cream-2);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.person .nm { font-size: 14px; font-weight: 600; line-height: 1.3; }
.person .rl { font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.name-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3;
  column-gap: 40px;
  font-size: 14px;
  line-height: 1.5;
}
.name-list li {
  break-inside: avoid;
  padding: 5px 0;
}
.name-list li .rl { color: var(--muted); }
.people-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 10px;
}
@media (max-width: 820px) { .name-list { columns: 2; } }
@media (max-width: 520px) { .name-list { columns: 1; } }
.group-note {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 860px;
}

/* ==========================================================================
   BOHATERKI
   ========================================================================== */
.heroines-head { max-width: 720px; margin-bottom: 56px; }
.heroines-head .eyebrow { margin-bottom: 24px; }
.heroines-head h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 20px; }
.heroines-head p { font-size: 16px; line-height: 1.7; }

.heroines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.heroine {
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.heroine .ph {
  position: relative;
  background: var(--cream-2);
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.heroine .ph .yr {
  position: absolute;
  top: 16px;
  left: 18px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.heroine .ph .mono {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 54px;
  color: #d8cfbc;
  letter-spacing: 0.04em;
}
.heroine .ph .ph-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.heroine .ph .ph-photo--wide {
  object-position: 46% 35%;
}
.heroine .ph.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 16, 12, 0.4) 0%, rgba(20, 16, 12, 0) 45%);
  pointer-events: none;
  z-index: 1;
}
.heroine .ph.has-photo .yr {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
  z-index: 3;
}
.heroine .ph .ph-extra {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34%;
  max-width: 108px;
  max-height: 64%;
  object-fit: cover;
  border: 3px solid var(--cream);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  z-index: 2;
}
.heroine .body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.heroine h3 { font-size: 21px; line-height: 1.25; margin-bottom: 12px; }
.heroine .bio { font-size: 13.5px; line-height: 1.6; color: var(--ink); margin-bottom: 16px; }
.heroine .q {
  border-left: 2px solid var(--red);
  padding-left: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
}
.heroine .link-arrow { margin-top: auto; font-size: 13px; }

.heroines-note {
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
  max-width: 780px;
}
.team-note {
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
  max-width: 780px;
}

/* ==========================================================================
   GALERIA (dark)
   ========================================================================== */
.gallery { background: var(--ink); color: var(--cream); padding-block: 96px; }
.gallery .eyebrow { color: var(--red); }
.gallery h2 {
  color: var(--cream);
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 16px;
}
.gallery .sub { font-size: 15px; color: #b8b2a7; margin-bottom: 44px; }

.gallery-grid { display: grid; gap: 14px; }
.gallery-row { display: grid; gap: 14px; }
.gallery-row--1 { grid-template-columns: 539fr 264fr 264fr; }
.gallery-row--2 { grid-template-columns: 356fr 264fr 448fr; }
.gallery-row--3 { grid-template-columns: repeat(3, 1fr); }
.gallery-row figure { margin: 0; overflow: hidden; background: var(--dark-card); height: 350px; }
.gallery-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: transform 0.5s ease;
}
.gallery-row figure:hover img { transform: scale(1.03); }

.gallery-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 34px;
  font-size: 12px;
  color: #8f8a80;
}
.gallery-foot .link-arrow { color: var(--cream); }
.gallery-foot .link-arrow:hover { border-color: var(--cream); }

/* Pełna fotorelacja — wspólna galeria wszystkich zdjęć z photo-gallery.
   Rozwijana natywnym <details>, więc nie zajmuje miejsca, dopóki jest zwinięta. */
.photo-browser { margin-top: 0; }
.photo-browser > summary {
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}
.photo-browser > summary::-webkit-details-marker { display: none; }
.photo-browser > summary:hover .link-arrow { border-color: var(--cream); }
.photo-browser[open] > summary { margin-bottom: 30px; }
.photo-browser[open] > summary .arw { transform: rotate(90deg); }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.photo-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--dark-card);
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: transform 0.5s ease, filter 0.3s ease;
}
.photo-item:hover img,
.photo-item:focus-visible img { transform: scale(1.04); filter: grayscale(0) contrast(1); }
.photo-item:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Podgląd pojedynczego zdjęcia (natywny <dialog>) */
.photo-viewer {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  color: var(--cream);
}
.photo-viewer::backdrop { background: rgba(10, 10, 10, 0.94); }
.photo-viewer[open] { display: grid; place-items: center; }
.pv-img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.pv-close,
.pv-nav {
  position: fixed;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s ease;
}
.pv-close:hover,
.pv-nav:hover { background: rgba(255, 255, 255, 0.2); }
.pv-close { top: 18px; right: 22px; font-size: 30px; line-height: 1; }
.pv-nav { top: 50%; transform: translateY(-50%); font-size: 34px; line-height: 1; }
.pv-prev { left: 18px; }
.pv-next { right: 18px; }
.pv-counter {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #b8b2a7;
}

/* Galeria grafik Marii Hiszpańskiej-Neumann */
.mhn-gallery {
  width: min(980px, 94vw);
  max-width: 100%;
  max-height: 90vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.mhn-gallery::backdrop { background: rgba(22, 17, 12, 0.72); }
.mhn-gallery[open] { display: block; }
.mhn-panel {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  background: var(--cream);
  border: 1px solid var(--border);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}
.mhn-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px 18px;
  border-bottom: 1px solid var(--border);
}
.mhn-eyebrow {
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.mhn-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}
.mhn-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s ease;
}
.mhn-close:hover { background: var(--cream-2, #f0ebe1); }
.mhn-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 30px 34px;
}
.mhn-caption {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
}
.mhn-caption p { margin: 0 0 0.9em; }
.mhn-caption p:last-child { margin-bottom: 0; }
.mhn-caption em { font-style: italic; }
.mhn-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mhn-grid .photo-item {
  aspect-ratio: 3 / 4;
  background: var(--cream-2, #f0ebe1);
  border: 1px solid var(--border);
}
.mhn-grid .photo-item img { object-fit: contain; }

@media (max-width: 640px) {
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
  .pv-nav { width: 42px; height: 42px; font-size: 28px; }
  .pv-close { width: 42px; height: 42px; font-size: 26px; }
  .mhn-head { padding: 20px 20px 14px; }
  .mhn-body { padding: 18px 20px 26px; }
  .mhn-title { font-size: 20px; }
  .mhn-caption { font-size: 14.5px; }
  .mhn-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
}

/* ==========================================================================
   MEDIA
   ========================================================================== */
.media-head { margin-bottom: 46px; }
.media-head .eyebrow { margin-bottom: 24px; }
.media-head h2 { font-size: clamp(30px, 4vw, 46px); }

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.video-card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 480 / 360;
}
.video-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.5s ease, filter 0.4s ease;
}
.video-card:hover img { transform: scale(1.03); filter: grayscale(0.2); }
.video-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.72) 100%);
}
.video-card .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s ease;
}
.video-card:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.video-card .cap {
  position: absolute;
  left: 26px; right: 26px; bottom: 22px;
  color: #fff;
}
.video-card .cap .t { display: block; font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.video-card .cap .y { display: block; font-size: 12px; opacity: 0.8; }

/* Utwory z koncertów — rozwijane natywnym <details>. Karta z wyraźnym
   przyciskiem, żeby było jasne, że można kliknąć i rozwinąć filmy. */
.media-browser { margin-top: 46px; }
.media-browser > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
  padding: 22px 26px;
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.media-browser > summary::-webkit-details-marker { display: none; }
.media-browser > summary:hover {
  background: #fff;
  border-color: var(--red);
  box-shadow: 0 14px 34px rgba(20, 18, 15, 0.10);
}
.media-browser__title h3 { margin: 0 0 4px; font-size: clamp(22px, 2.8vw, 32px); }
.media-browser__hint { font-size: 13px; color: var(--muted); }
.media-browser__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid var(--red);
  border-radius: 999px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.media-browser__toggle-label::after { content: "Rozwiń filmy"; }
.media-browser > summary:hover .media-browser__toggle { background: var(--red); color: #fff; }
.media-browser__toggle .chev { transition: transform 0.25s ease; }
.media-browser[open] > summary { margin-bottom: 30px; }
.media-browser[open] > summary .media-browser__toggle { background: var(--red); color: #fff; }
.media-browser[open] .media-browser__toggle-label::after { content: "Zwiń filmy"; }
.media-browser[open] .media-browser__toggle .chev { transform: rotate(180deg); }

/* ==========================================================================
   PRASA / Napisali o nas
   ========================================================================== */
.press h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 40px; }

.press-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.press-item {
  padding: 34px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.press-item .src {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.press-item h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 14px;
}
.press-item .yr { font-size: 12px; color: var(--muted); }

.press-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  background: var(--cream-2);
  padding: 30px 34px;
  margin-top: 34px;
}
.press-bar .k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.press-bar p { font-size: 14px; margin: 0; max-width: 620px; }

.press-note {
  margin-top: 30px;
  font-size: 12px;
  color: var(--muted);
}

/* ==========================================================================
   HISTORIA / edycje
   ========================================================================== */
.hist-head { max-width: 720px; margin-bottom: 56px; }
.hist-head .eyebrow { margin-bottom: 24px; }
.hist-head h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 20px; }
.hist-head p { font-size: 16px; line-height: 1.7; }

.editions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.edition {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 26px 26px 30px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.edition--hl { border-color: var(--red); }
.edition .top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}
.edition .rn {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
}
.edition .yr { font-size: 13px; color: var(--muted); }
.edition .meta { font-size: 13.5px; line-height: 1.55; margin-bottom: 12px; }
.edition .desc { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.edition .tag {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.hist-note {
  margin-top: 36px;
  font-size: 13px;
  color: var(--muted);
  max-width: 780px;
}

/* ==========================================================================
   KONTAKT
   ========================================================================== */
.contact-head { max-width: 720px; margin-bottom: 50px; }
.contact-head .eyebrow { margin-bottom: 24px; }
.contact-head h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 20px; }
.contact-head p { font-size: 16px; line-height: 1.7; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 30px 30px 32px;
  margin-bottom: 26px;
}
.contact-card .eyebrow { margin-bottom: 16px; }
.contact-card h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}
.contact-card p { font-size: 13.5px; line-height: 1.6; }
.contact-card .email {
  font-size: 15px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 14px;
}
.contact-card .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.contact-card .btns .btn-solid,
.contact-card .btns .btn-ghost { padding: 12px 20px; font-size: 13px; }

.contact-card .addr { font-size: 14px; line-height: 1.7; margin: 0; }
.contact-card .addr a { color: var(--ink); }
.contact-card .addr a:hover { color: var(--red); }

.map-card {
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--cream-2);
  margin-bottom: 26px;
}
.map-card .map-img {
  height: 220px;
  background: url("../../assets/img/filharmonia.jpg") center/cover;
  filter: grayscale(1);
}
.map-card .map-info {
  background: var(--cream-2);
  padding: 28px 30px 30px;
  text-align: center;
}
.map-card .map-info h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 10px;
}
.map-card .map-info p { font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.map-card .map-info .link-arrow { margin-top: 12px; }

.support-card {
  background: var(--ink);
  color: var(--cream);
  padding: 34px 32px 34px;
}
.support-card .eyebrow { color: var(--red); }
.support-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
  color: var(--cream);
  margin-bottom: 16px;
}
.support-card p { font-size: 13.5px; line-height: 1.65; color: #cfc9bd; }
.support-card hr { border: 0; border-top: 1px solid #3a352e; margin: 24px 0; }
.support-card .acct-label { font-size: 13px; color: #b8b2a7; margin-bottom: 8px; }
.support-card .acct {
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--cream);
  margin-bottom: 8px;
  word-break: break-word;
}
.support-card .acct-note { font-size: 12px; color: #8f8a80; margin-bottom: 20px; }
.support-card .btn-ghost {
  color: var(--cream);
  border-color: #555046;
}
.support-card .btn-ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ==========================================================================
   MATERIAŁY PRASOWE
   ========================================================================== */
.press-kit .eyebrow { margin-bottom: 24px; }
.press-kit h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 20px; }
.press-kit > p { font-size: 16px; line-height: 1.7; max-width: 720px; margin-bottom: 46px; }

.kit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.kit-card {
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.kit-card .thumb {
  aspect-ratio: 253 / 160;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.kit-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.kit-card .thumb .birds { width: 60%; }
.kit-card .thumb .poster-img { object-fit: contain; background: var(--cream-2); padding: 8px; }
.kit-card .thumb .poster {
  background: var(--ink);
  color: var(--cream);
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}
.kit-card .thumb .poster .p1 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.1;
}
.kit-card .thumb .poster .p2 {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 6px;
}
.kit-card .thumb .doc {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px;
}
.kit-card .thumb .doc span { height: 6px; background: var(--border); display: block; }
.kit-card .thumb .doc span:nth-child(1) { width: 45%; background: var(--red); height: 8px; opacity: 0.7; }
.kit-card .thumb .doc span:nth-child(4) { width: 70%; }
.kit-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.kit-card h3 { font-size: 18px; margin-bottom: 10px; }
.kit-card p { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin-bottom: 20px; }
.kit-card .btn-outline { margin-top: auto; width: 100%; padding: 12px 18px; font-size: 13px; }

.kit-note { margin-top: 30px; font-size: 13px; color: var(--muted); }

/* Notatka prasowa (pełny tekst) */
.press-note-full {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 40px 44px 44px;
  max-width: 820px;
  margin-bottom: 46px;
}
.press-note-full h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  margin-bottom: 18px;
}
.press-note-full h3 span {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 12px;
}
.press-note-full p {
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 14px;
}
.press-note-full p.lead {
  font-size: 15.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 20px;
}
.press-note-full .press-meta {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.press-note-full .press-meta li {
  list-style: none;
  font-size: 13.5px;
  line-height: 1.65;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.press-note-full .press-meta li strong { color: var(--ink); }

/* ==========================================================================
   PARTNERS
   ========================================================================== */
.partners {
  padding-block: 80px;
  text-align: center;
}
.partners .eyebrow { margin-bottom: 30px; }
.partners-full {
  max-width: 900px;
  margin: 0 auto;
}
.partners-full img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: var(--cream); padding-top: 70px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer h3 {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--cream);
  margin-bottom: 18px;
}
.footer .col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8f8a80;
  margin-bottom: 18px;
}
.footer p { font-size: 13.5px; line-height: 1.7; color: #cfc9bd; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: #cfc9bd; font-size: 14px; }
.footer a:hover { color: var(--cream); }
.footer .addr { font-size: 13.5px; line-height: 1.75; color: #cfc9bd; }
.footer .addr a { color: var(--cream); }

.footer-bottom {
  border-top: 1px solid #2a2620;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #8f8a80;
}
.footer-bottom a { color: #8f8a80; }
.footer-bottom a:hover { color: var(--cream); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 380px; gap: 48px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-grid .col-org { grid-column: 1 / -1; }
}

@media (max-width: 991.98px) {
  .wrap { padding-inline: 28px; }
  .section { padding-block: 72px; }
  .hero { padding-top: 90px; padding-bottom: 64px; }

  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 520px; }
  .hero-media img { aspect-ratio: 440 / 620; }
  .hero-slides { aspect-ratio: 440 / 620; }

  .program-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .heroines { grid-template-columns: repeat(2, 1fr); }
  .editions { grid-template-columns: repeat(2, 1fr); }
  .kit-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-row figure { height: 240px; }

  /* navbar — widok mobilny */
  .site-nav .wrap { justify-content: space-between; min-height: 58px; }
  .nav-brand {
    display: block;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.05em;
    color: var(--ink);
  }
  .nav-brand:hover { color: var(--red); }
  .nav-toggle { display: flex; }
  .site-nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .site-nav.open .site-nav-links {
    max-height: 560px;
    padding: 6px 28px 14px;
    box-shadow: 0 18px 30px rgba(20, 18, 15, 0.06);
  }
  .site-nav-links li { border-bottom: 1px solid var(--border); }
  .site-nav-links li:last-child { border-bottom: 0; }
  .site-nav-links a { display: block; padding: 15px 0; font-size: 15px; }
  .site-nav-links a::after { display: none; }
  .site-nav-links a.active { color: var(--red); }
}

@media (max-width: 767.98px) {
  body { font-size: 15.5px; }
  .wrap { padding-inline: 22px; }
  .section { padding-block: 60px; }

  .hero { padding-top: 72px; }
  .hero-title { letter-spacing: 0.01em; }
  .info-cards { grid-template-columns: 1fr; }
  .info-card { border-right: 0; border-bottom: 2px solid var(--cream); min-height: 0; }
  .info-card:last-child { border-bottom: 0; }

  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); padding: 30px 24px; }
  .stat:last-child { border-bottom: 0; }
  .stat .d { max-width: none; }

  .people { grid-template-columns: 1fr; }
  .heroines { grid-template-columns: 1fr; }
  .editions { grid-template-columns: 1fr; }
  .press-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .kit-grid { grid-template-columns: 1fr; }

  .gallery-row { grid-template-columns: 1fr 1fr; }
  .gallery-row figure { height: 200px; }
  .gallery-row figure:first-child { grid-column: span 2; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid .col-org { grid-column: auto; }

  .tl-item { grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; }
  .tl-time { font-size: 15px; }
  .tl-body h4 { font-size: 17px; }
  .tl-body p { font-size: 13.5px; }
  .press-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .wrap { padding-inline: 18px; }
  .hero-actions { gap: 18px; }
  .hero-actions .btn-solid { width: 100%; }
  .gallery-row { grid-template-columns: 1fr; }
  .gallery-row figure { height: 220px; }
  .gallery-row figure:first-child { grid-column: auto; }
  .map-card .map-img { height: 170px; }
}


/* ==========================================================================
   MODAL Z WIERSZAMI (natywny <dialog>) — uniwersalny dla wszystkich bohaterek
   ========================================================================== */
.poems-templates { display: none; }

.poems-modal {
  width: min(760px, 92vw);
  max-width: 100%;
  max-height: 90vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.poems-modal::backdrop { background: rgba(22, 17, 12, 0.72); }
.poems-modal[open] { display: block; }

.pm-panel {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  background: var(--cream);
  border: 1px solid var(--border);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}
.pm-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px 18px;
  border-bottom: 1px solid var(--border);
}
.pm-eyebrow {
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.pm-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}
.pm-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s ease;
}
.pm-close:hover { background: var(--cream-2, #f0ebe1); }
.pm-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 26px 30px 34px;
}

.poem + .poem {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}
.poem-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 12px;
}
.poem-sub {
  margin: -4px 0 14px;
  font-size: 13px;
  color: var(--muted, #7a746b);
}
.poem-text {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
}
.poem-text p { margin: 0 0 1em; }
.poem-text p:last-child { margin-bottom: 0; }
.poem-text .poem-indent { padding-left: 1.6em; }
.poem-text .ind { padding-left: 1.6em; }
.poem-meta {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted, #7a746b);
}
.poem-note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  font-style: italic;
  color: var(--muted, #7a746b);
}

@media (max-width: 640px) {
  .pm-head { padding: 20px 20px 14px; }
  .pm-body { padding: 20px 20px 26px; }
  .pm-title { font-size: 20px; }
  .poem-text { font-size: 16px; }
}
