/* --------------------------------------------------------
   RESET & BASE
-------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #FAF8F5;
  --bg-alt:     #F0EDE8;
  --text:       #2C2C2C;
  --text-muted: #6B6560;
  --accent:     #A0782C;
  --accent-light:#D4B872;
  --choir-blue: #3D7A99;
  --dark:       #1C1C28;
  --dark-warm:  #2A2520;
  --white:      #FFFFFF;

  --serif: Georgia, 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --space-xs:  0.35rem;
  --space-sm:  0.75rem;
  --space-md:  1.25rem;
  --space-lg:  2rem;
  --space-xl:  3rem;

  --max-width: 72rem;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

body > .footer { margin-top: auto; }

img { display: block; max-width: 100%; height: auto; }
a   { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--space-md); }
}

/* --------------------------------------------------------
   TYPOGRAPHY
-------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

.label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --------------------------------------------------------
   NAVIGATION
-------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgb(16, 24, 40);
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}
html { scroll-padding-top: 4rem; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 3.5rem;
}
.nav__brand {
  font-family: var(--serif); font-size: 1rem;
  color: var(--white); white-space: nowrap;
  display: flex; align-items: center; gap: 0.5rem;
}
.nav__logo { height: 1.6rem; width: auto; }
.nav__links { display: none; list-style: none; gap: var(--space-md); }
.nav__links a {
  font-size: 0.85rem; color: rgba(255,255,255,0.8);
  letter-spacing: 0.03em;
}
.nav__links a:hover { color: var(--white); text-decoration: none; }
.nav__toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 1px;
}
.nav.open .nav__links {
  display: flex; flex-direction: column;
  position: absolute; top: 3.5rem; left: 0; right: 0;
  background: rgba(16, 24, 40, 0.97);
  padding: var(--space-md); gap: var(--space-sm);
}
@media (min-width: 900px) {
  .nav__links  { display: flex; }
  .nav__toggle { display: none; }
  .nav__inner  { height: 4rem; }
  .nav__brand  { font-size: 1.1rem; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .nav__links  { gap: var(--space-sm); }
  .nav__links a { font-size: 0.8rem; }
}

/* --------------------------------------------------------
   HERO
-------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__img {
  display: block;
  width: 100%;
  object-fit: cover;
}
/* Mobile: use hero block's mobile_crop (CSS custom props) — falls back to a
   square crop centred on the subject if block didn't set them. */
@media (max-width: 767px) {
  .hero__img {
    aspect-ratio: var(--hero-mobile-aspect, 1/1);
    object-position: var(--hero-mobile-pos, center 30%);
  }
}
/* Desktop: image shows native aspect — UNLESS the image widget set an aspect
   or position via inline style, which wins at all breakpoints. */
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(28,28,40,0.05) 0%, rgba(28,28,40,0.25) 40%, rgba(28,28,40,0.85) 100%);
}
.hero__content {
  position: absolute; top: 4.5rem; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: var(--space-md) var(--space-sm) var(--space-md);
  max-width: var(--max-width); margin: 0 auto;
  display: flex; flex-direction: column; justify-content: flex-end;
  pointer-events: none;
}
.hero__content > * { pointer-events: auto; }
@media (min-width: 768px) {
  .hero__content { padding: var(--space-lg) var(--space-md) var(--space-md); }
}
.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-xs);
  font-size: clamp(1.3rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  overflow-wrap: break-word;
  hyphens: auto;
}
.hero .label { color: var(--accent-light); text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin-bottom: var(--space-md);
}

/* --------------------------------------------------------
   SECTIONS
-------------------------------------------------------- */
.section { padding: var(--space-xl) 0; }
/* Pages without a hero start directly below the fixed nav — offset the first
   section so its content doesn't slip under the nav bar. */
body > section.section:first-of-type { padding-top: calc(3.5rem + var(--space-xl)); }
@media (min-width: 768px) {
  body > section.section:first-of-type { padding-top: calc(4rem + var(--space-xl)); }
}
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark-warm); color: rgba(255,255,255,0.9); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .label { color: var(--accent-light); }
.section--dark a { color: var(--accent-light); }
.section__header { margin-bottom: 0; }
.section__header .label { margin-bottom: var(--space-xs); display: block; }
.section__header .engagement__intro { max-width: 52rem; margin-top: var(--space-xs); line-height: 1.6; }

/* Consistent vertical rhythm between sibling blocks inside a section */
.section .container > .block + .block { margin-top: var(--space-md); }

/* --------------------------------------------------------
   FEATURED CARD
-------------------------------------------------------- */
.concert-featured {
  display: grid; grid-template-columns: 1fr;
  background: var(--white); border: 1px solid rgba(0,0,0,0.08);
  border-radius: 2px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.concert-featured__img { width: 100%; aspect-ratio: 2/1; object-fit: cover; }
.concert-featured__body { padding: var(--space-sm) var(--space-md); }
.concert-card__date {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-xs);
}
.concert-featured h3 { margin-bottom: 0.15rem; }
.concert-card__venue { font-size: 0.9rem; color: var(--text-muted); margin-bottom: var(--space-xs); }
.concert-card__desc { font-size: 0.9rem; line-height: 1.5; margin-bottom: var(--space-sm); }
@media (min-width: 768px) {
  .concert-featured { grid-template-columns: 1fr 1fr; }
  /* .concert-featured__img aspect-ratio/height set by widget inline styles */
}

/* --------------------------------------------------------
   CHIP ROW
-------------------------------------------------------- */
.concerts-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-sm); }
.concert-chip {
  flex: 1 1 14rem; display: flex; align-items: center;
  gap: var(--space-sm); padding: var(--space-sm);
  background: var(--bg-alt); border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.06);
  text-decoration: none; color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}
.concert-chip:hover { background: var(--white); border-color: var(--accent); text-decoration: none; }
.concert-chip__date { display: flex; flex-direction: column; align-items: center; min-width: 2.8rem; line-height: 1; }
.concert-chip__day { font-family: var(--serif); font-size: 1.5rem; color: var(--text); }
.concert-chip__month { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.concert-chip__info { display: flex; flex-direction: column; }
.concert-chip__title { font-family: var(--serif); font-size: 0.95rem; line-height: 1.2; }
.concert-chip__venue { font-size: 0.8rem; color: var(--text-muted); }
.concert-chip__img { width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: 2px; flex-shrink: 0; }

/* --------------------------------------------------------
   TWO-COLUMN
-------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); align-items: center; }
.about-grid__text p { margin-bottom: var(--space-sm); }
.about-grid__img { border-radius: 2px; aspect-ratio: 3/2; object-fit: cover; }
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-grid--flip .about-grid__img { order: -1; }
}

/* --------------------------------------------------------
   VOICES
-------------------------------------------------------- */
.voices { display: grid; grid-template-columns: 1fr; gap: var(--space-xs); }
.voices__cell { position: relative; overflow: hidden; border-radius: 2px; background: var(--dark-warm); }
.voices__img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.voices__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    transparent 35%, rgba(42,37,32,0.4) 60%, rgba(42,37,32,0.95) 100%);
}
.voices__text { position: absolute; bottom: 0; left: 0; right: 0; padding: var(--space-sm) var(--space-md); }
.voices__text blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem); line-height: 1.5;
  color: rgba(255,255,255,0.92);
}
.voices__text cite {
  display: block; font-family: var(--sans); font-style: normal;
  font-size: 0.75rem; color: var(--accent-light); margin-top: var(--space-xs);
}
@media (min-width: 768px) {
  .voices { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------
   DUAL CARD
-------------------------------------------------------- */
.dual-cta { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.dual-cta__card { padding: var(--space-md); background: var(--bg-alt); border-radius: 2px; }
.dual-cta__card p { margin-bottom: var(--space-xs); }
.dual-cta__card--dark {
  background: var(--dark-warm); color: rgba(255,255,255,0.9);
}
.dual-cta__card--dark .label { color: var(--accent-light); }
.dual-cta__card--dark .btn--outline { color: var(--accent-light); border-color: var(--accent-light); }
.dual-cta__card--dark .btn--outline:hover { background: var(--accent-light); color: var(--dark-warm); }
.dual-cta__card .inline-quote {
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; line-height: 1.5;
  margin: var(--space-sm) 0 var(--space-xs);
}
.dual-cta__card .inline-cite {
  font-family: var(--sans); font-style: normal;
  font-size: 0.8rem; color: rgba(255,255,255,0.5); display: block;
}
@media (min-width: 768px) {
  .dual-cta { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------
   STATS ROW
-------------------------------------------------------- */
.archive-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); margin-bottom: var(--space-md); }
.archive-stat__number {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1; color: var(--accent); margin-bottom: 0.25rem;
}
.archive-stat__label { font-size: 0.85rem; color: var(--text-muted); }
@media (min-width: 600px) {
  .archive-stats { grid-template-columns: repeat(4, 1fr); }
}

.archive-year + .archive-year { margin-top: 25px; }

.rb-subnav {
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  color: var(--text-muted, #666);
}
.rb-subnav__link { color: inherit; text-decoration: none; }
.rb-subnav__link:hover { text-decoration: underline; }
.rb-subnav__link--active { color: var(--text); font-weight: 600; }
.rb-subnav__sep { margin: 0 0.5rem; opacity: 0.4; }
.rb-list { line-height: 2; }
.rb-list a { text-decoration: none; }
.rb-list a:hover { text-decoration: underline; }
.rb-list .rb-count { color: var(--text-muted, #888); font-size: 0.85em; }
.rb-note { color: var(--text-muted, #666); font-size: 0.9rem; margin-top: var(--space-md); }

.concerts-listing > * + * { margin-top: 25px; }

/* --------------------------------------------------------
   TABLE LIST
-------------------------------------------------------- */
.archive-highlight {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid rgba(0,0,0,0.08); border-radius: 2px;
  background: var(--white); overflow: hidden;
}
.archive-item { display: flex; gap: var(--space-md); padding: var(--space-sm) var(--space-md); border-bottom: 1px solid rgba(0,0,0,0.06); }
.archive-item--link { text-decoration: none; color: inherit; }
.archive-item--link:hover { background: rgba(160,120,44,0.06); }
.archive-item:last-child { border-bottom: none; }
.archive-item:nth-child(even) { background: rgba(0,0,0,0.02); }
.archive-item__key { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--accent); min-width: 2.8rem; flex-shrink: 0; }
.archive-item__value { font-size: 0.9rem; flex: 1; color: var(--text); }

/* Compact variant keeps tighter padding for year/count pairs */
.archive-highlight--compact .archive-item { padding: var(--space-xs) var(--space-sm); gap: var(--space-sm); }
.archive-highlight--compact .archive-item:nth-child(even) { background: transparent; }
.archive-highlight--compact .archive-item__key { font-weight: 400; font-size: 0.95rem; }
/* Short-key tables (years, counts) get a 2-column grid on wider screens;
   long-key tables (e.g. "Konzertpartner · ab CHF 500") stay single-column. */
@media (min-width: 600px) {
  .archive-highlight--compact { grid-template-columns: 1fr 1fr; }
  .archive-highlight--compact .archive-item:nth-last-child(2) { border-bottom: none; }
  .archive-highlight--compact .archive-item:nth-child(odd) { border-right: 1px solid rgba(0,0,0,0.06); }
}

/* --------------------------------------------------------
   RICH TEXT
-------------------------------------------------------- */
.rich-text p { margin-bottom: var(--space-sm); }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text h2, .rich-text h3, .rich-text h4 {
  font-family: var(--serif);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}
.rich-text h2:first-child, .rich-text h3:first-child, .rich-text h4:first-child { margin-top: 0; }
.rich-text ul, .rich-text ol { margin: 0 0 var(--space-sm) 1.25rem; }
.rich-text ul:last-child, .rich-text ol:last-child { margin-bottom: 0; }

/* --------------------------------------------------------
   BUTTONS
-------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.65rem 1.4rem; border: none; border-radius: 2px;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: #8B6914; }
.btn--outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--white); }
.btn--light { background: rgba(255,255,255,0.15); color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn--light:hover { background: rgba(255,255,255,0.25); }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-sm); }

/* --------------------------------------------------------
   SEPARATOR
-------------------------------------------------------- */
.sep { width: 3rem; height: 1px; background: var(--accent); border: none; margin: var(--space-sm) 0; }
.sep--center { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------
   MAP BLOCK (public)
-------------------------------------------------------- */
.map-block {
  background: var(--bg-alt);
  border-radius: 2px;
  overflow: hidden;
  margin-top: var(--space-sm);
}
.map-block__placeholder { padding: 0; }
.map-block__canvas[hidden] ~ .map-block__list { display: none; }
.map-block__address { font-size: 1rem; line-height: 1.5; }
.map-block__load {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.5rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
  vertical-align: baseline;
}
.map-block__load:hover { background: var(--accent); color: #fff; }
.map-block__canvas { width: 100%; height: 24rem; }
.map-block {
  position: relative;
}
.map-block__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1000;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(28, 28, 40, 0.85);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.map-block__close:hover { background: #1c1c28; }
.map-block__close[hidden] { display: none; }
.map-block__list {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 0.9rem;
}
.map-block__list strong { display: block; margin-bottom: var(--space-xs); color: var(--accent); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; }
.map-block__list ul { list-style: none; padding: 0; margin: 0; }
.map-block__list li { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.15rem 0; }
.map-block__list strong { display: inline; margin: 0; color: var(--text); text-transform: none; font-size: inherit; letter-spacing: 0; }
.map-block__list__type { font-weight: 600; color: var(--accent); display: none; }
.map-block__links { margin-top: var(--space-xs); font-size: 0.82rem; color: var(--text-muted); }

/* Pin styles live in /components/map-widget/map-pin.css, linked
   conditionally by render.ts when a page uses a map block. */

.map-list__type { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; margin-right: 0.25rem; }
.map-list__type--venue    { background: #A0782C; }
.map-list__type--parking  { background: #2c5e8a; }
.map-list__type--transit  { background: #3a7a50; }
.map-list__type--entrance { background: #e07b20; }
.map-list__type--info     { background: #6b7280; }

/* --------------------------------------------------------
   CONTACTS GRID (contacts block)
-------------------------------------------------------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.contact-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 2px;
  padding: var(--space-md);
}
.contact-card h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}
.image-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-sm);
}
.image-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: var(--text);
  padding: var(--space-xs);
  border-radius: 2px;
  transition: background 0.15s;
  height: 7rem;
}
a.image-link:hover { background: rgba(0,0,0,0.04); text-decoration: none; }
.image-link__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.image-link__caption {
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-muted, #555);
  flex-shrink: 0;
}
.image-link:has(.image-link__caption) { height: auto; min-height: 7rem; }
.image-link:has(.image-link__caption) .image-link__img { height: 5rem; flex: 1; }

/* Wider logos (ratio ≥ 1.7, tagged by /js/image-links.js) span 2 grid columns */
.image-link--wide { grid-column: span 2; }
@media (max-width: 500px) {
  .image-link--wide { grid-column: span 1; }
}

.contact-card__photo {
  display: block;
  width: 5rem; height: 5rem;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: var(--space-sm);
}
.contact-card__name { font-weight: 600; margin-bottom: var(--space-xs); }
.contact-card p { font-size: 0.9rem; line-height: 1.5; margin-bottom: 0.15rem; }
.contact-card a { color: var(--text); }
.contact-card a:hover { color: var(--accent); }
@media (min-width: 768px) {
  .contacts-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------
   FOOTER
-------------------------------------------------------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: var(--space-sm) 0;
  font-size: 0.8rem;
}
.footer a { color: rgba(255,255,255,0.5); }
.footer a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
}

/* Prev/next concert navigation — below hero on concert detail pages */
.concert-nav {
  border-bottom: 1px solid var(--color-border, #e5e5e5);
}
.concert-nav__row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
}
.concert-nav__cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1 1 0;
  padding: 0.4rem 0.25rem;
}
.concert-nav__cell--right {
  text-align: right;
  align-items: flex-end;
}
.concert-nav__cell--empty { visibility: hidden; }
.concert-nav__cell:hover .concert-nav__title { text-decoration: underline; }
.concert-nav__label {
  font-size: 0.85rem;
  opacity: 0.7;
  letter-spacing: 0.02em;
}
.concert-nav__title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
  display: block;
}
.concert-nav__cell--right .concert-nav__title { text-align: right; }
.concert-nav__date {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Concert photo gallery — uniform height, wrapping row, click to open lightbox */
.concert-photos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-sm) 0;
}
.concert-photos__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.concert-photos__link {
  display: block;
  cursor: zoom-in;
  line-height: 0;
}
.concert-photos__item img {
  height: 150px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 2px;
  transition: transform 0.15s ease;
}
.concert-photos__link:hover img { transform: translateY(-2px); }
.concert-photos__item figcaption {
  font-size: 0.85rem;
  color: var(--color-muted, #666);
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.lightbox__caption {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  font-size: 0.9rem;
  max-width: 80vw;
  text-align: center;
}
.lightbox__btn {
  position: absolute;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: 0;
  font-size: 1.8rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__btn:hover { background: rgba(0,0,0,0.75); }
.lightbox__btn--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__btn--close { right: 1rem; top: 1rem; font-size: 1.4rem; }

/* Composer info — eye icon button + modal */
.composer-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: baseline;
  background: transparent;
  border: 0;
  padding: 0 0.15rem;
  margin-left: 0.15rem;
  color: var(--text-muted, #888);
  cursor: pointer;
  line-height: 1;
  border-radius: 2px;
  transition: color 0.15s;
}
.composer-info:hover,
.composer-info:focus-visible {
  color: var(--accent, #b48a4a);
  outline: none;
}
.composer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}
.composer-modal.open { display: flex; }
.composer-modal__box {
  position: relative;
  background: var(--bg, #fff);
  color: var(--text, #222);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-md, 1.5rem);
  border-radius: 3px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.composer-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  color: var(--text-muted, #666);
}
.composer-modal__close:hover { color: var(--text, #222); }
.composer-modal__content h2 { margin-top: 0; }
.composer-modal__content p { margin: 0 0 0.75rem; }
.composer-modal__content ul { margin: 0 0 0.75rem 1.25rem; }

/* PDF thumbnails — displayed inline with program/Textheft links and press items */
.pdf-cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-sm) 0;
}
.pdf-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  width: 140px;
  font-size: 0.9rem;
  text-align: center;
}
.pdf-card__thumb {
  width: 140px;
  height: 180px;
  object-fit: cover;
  object-position: top center;
  background: #f5f5f5;
  border: 1px solid var(--color-border, #e5e5e5);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pdf-card:hover .pdf-card__thumb {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.pdf-card__thumb--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.pdf-card__label { font-weight: 500; }

.press-list .press-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border, #e5e5e5);
  list-style: none;
}
.press-list .press-item:last-child { border-bottom: 0; }
.press-item__thumb {
  flex: 0 0 auto;
  display: block;
}
.press-item__thumb img {
  width: 110px;
  height: 140px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--color-border, #e5e5e5);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.15s ease;
}
.press-item__thumb:hover img { transform: translateY(-2px); }
.press-item__body { flex: 1 1 auto; min-width: 0; }
.press-item__meta { opacity: 0.75; font-size: 0.9rem; }
.press-item__title { font-weight: 600; margin: 0.15rem 0 0.4rem; }
.press-item__excerpt { margin: 0; font-style: italic; opacity: 0.9; }

/* Wide variants for landscape/two-page-spread PDFs */
.pdf-card--wide { width: 260px; }
.pdf-card--wide .pdf-card__thumb {
  width: 260px;
  height: 180px;
  object-position: center;
}
.press-item__thumb--wide img {
  width: 200px;
  height: 140px;
  object-position: center;
}

/* Performances list on production detail page */
.perf-list {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
}
.perf-list__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border, #e5e5e5);
}
.perf-list__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  align-items: center;
}
.map-block--inline .map-block__placeholder {
  padding: 0;
  background: transparent;
  border: 0;
  min-height: 0;
}
.map-block--inline .map-block__load {
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
}
/* When the canvas is revealed, break the inline map-block onto its own row
   inside the parent flex row (.perf-list__row). Otherwise the flex item keeps
   its button-sized width and Leaflet renders into a narrow strip. */
.map-block--inline:has(.map-block__canvas:not([hidden])) {
  flex-basis: 100%;
  width: 100%;
  margin-top: var(--space-xs);
}
.perf-list__item:last-child { border-bottom: 0; }
.perf-list__date { font-weight: 600; }
.perf-list__venue { color: var(--text-muted, #555); }
.perf-list__badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.perf-list__badge--cancelled { background: #fdecea; color: #b71c1c; }
.perf-list__badge--postponed { background: #fff4e5; color: #8a5a00; }
