/* ==========================================================
   0. GLOBAL RESET & PAGE BACKGROUND
   ========================================================== */

body,
body.works-body,
body.piece-body,
body.movement-body,
body.parentwork-body,
body.audio-visual-body,
body.learn-more,
body.home,
body.performers-body {
  background: #73779F;
  margin: 0;
  padding: 0;
  font-family: var(--font-body, system-ui, sans-serif);
}

/* Remove Congo’s default page header on list pages */
.list .page-header {
  display: none !important;
}

/* Global link styling */
a {
  color: #5F638C;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

/* Typography scale */
html {
  font-size: 16px;
  line-height: 1.45;
}

/* ==========================================================
   1. WRAPPERS & LAYOUT SYSTEM
   ========================================================== */

/* Site header */
.site-header {
  margin-bottom: 0.5rem !important;
}
.site-header .site-title {
  margin-left: 0.5rem;
}

/* Fluid page wrappers */
.work-page,
.piece-page,
.movement-page {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.work-page__inner,
.piece-page__inner,
.movement-page__inner,
.opera-act-page__inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.works-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
}

.works-page__inner,
.learn-more-page__inner,
.contact-page__inner,
.opera-page__inner,
.home-page__inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Consolidated wrapper transparency overrides */
body.performers-body .wrapper,
body.audio-visual-body .wrapper,
body.learn-more .wrapper {
  background: transparent !important;
}

/* ==========================================================
   2. LOZENGE SYSTEM (Unified Geometry)
   ========================================================== */

.parent-lozenge,
.piece-lozenge,
.movement-lozenge,
.learn-more-lozenge,
.recording-lozenge,
.lozenge {
  background: #f7f7f7;
  color: #111;
  padding: 0.75rem 1.25rem;
  margin: 0.75rem 0;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

/* Category badges (unified) */
.category-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 500;
  background-color: #5F638C !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: #666;
}
.breadcrumbs a {
  color: #5F638C;
}

/* ==========================================================
   3. UTILITY LAYOUT HELPERS
   ========================================================== */

.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.center {
  justify-content: center;
  align-items: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.grid-fluid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ==========================================================
   4. RESPONSIVE WRAPPER ADJUSTMENTS
   ========================================================== */

@media (max-width: 900px) {
  .work-page__inner,
  .piece-page__inner,
  .movement-page__inner,
  .works-page__inner,
  .home-page__inner,
  .learn-more-page__inner,
  .contact-page__inner {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
  }
}

/* ==========================================================
   2. WORKS PAGE — FILTERS, CONTROLS, TABLE, TOOLTIP
   ========================================================== */

/* ------------------------------
   FILTER BAR (Unified + Responsive)
   ------------------------------ */

.works-filters {
  background-color: #E3E6EF;
  border: 1px solid #E3E6EF;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;

  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;

  overflow-x: auto;
  white-space: nowrap;
}

.works-filters .filter-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
  position: relative;
  padding-right: 0.25rem;
  margin-right: 0.25rem;
}

.works-filters .filter-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 1px;
  background-color: #C8CDD9;
}

.works-filters input,
.works-filters select {
  background-color: #ECEEF5;
  border: 1px solid #D0D4E0;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;

  flex: 0 0 135px;
  width: 135px;
  max-width: 135px;
  box-sizing: border-box;

  box-shadow: inset 0 0 0 1px #D0D4E0,
              inset 0 1px 2px rgba(0,0,0,0.06);
}

.works-filters input:hover,
.works-filters select:hover {
  background-color: #F0F2F7;
  border-color: #A8B0C5;
  cursor: pointer;
}

.works-filters input:focus,
.works-filters select:focus {
  outline: 2px solid #A8B0C5;
  outline-offset: 1px;
  background-color: #FFFFFF;
}

#clear-instrument-search,
#clear-title-search {
  cursor: pointer;
}
#clear-instrument-search:hover,
#clear-title-search:hover {
  color: #6A6F80;
}

/* Keep Title label and input side-by-side */
.works-filters .title-search {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem; /* adjust as needed */
    white-space: nowrap;
}

.works-filters .title-search .search-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
}

/* ------------------------------
   CONTROLS BAR (Unified)
   ------------------------------ */

.controls-bar {
  margin-bottom: 10px;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

.links-legend {
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

@media (max-width: 480px) {
  .links-legend {
    display: flex;
    flex-direction: column;
    justify-content: center;  /* centers the whole block */
    align-items: center;       /* centers the items inside */
    text-align: center;        /* centers the text */
    width: 100%;               /* prevents right-shift from parent */
    gap: 0.2rem;
  }
}

/* ------------------------------
   TABLE WRAPPER (Fluid + Scrollable)
   ------------------------------ */

.table-wrapper {
  width: 100%;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.works-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 700px; /* ensures horizontal scroll on phones */
}

.works-table th,
.works-table td {
  padding: 0.4rem 0.6rem;
}

/* Sticky header */
.table-wrapper thead th {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 2;
}

/* Alternating row shading */
.works-table tr.even-row > td {
  background-color: #DDE0EB !important;
}
.works-table tr.odd-row > td {
  background-color: transparent !important;
}

/* Remove Congo’s overlay */
.grouped-table td::before,
.grouped-table tr::before {
  background: none !important;
}

/* ------------------------------
   COLUMN WIDTHS (Fluid)
   ------------------------------ */

.works-table th:nth-child(1),/* Title*/
.works-table td:nth-child(1) { width: 28%; }

.works-table th:nth-child(2),/* Year */
.works-table td:nth-child(2) { width: 10%; }

.works-table th:nth-child(3),/* Instrumentation */
.works-table td:nth-child(3) { width: 27%; }

.works-table th:nth-child(4),/* Duration */
.works-table td:nth-child(4) { width: 10%; }

.works-table th:nth-child(5),/* Categories */
.works-table td:nth-child(5) { width: 15%; }

.works-table th:nth-child(6),/* Links */
.works-table td:nth-child(6) {
  width: 10%;
  text-align: center;
}

/* ------------------------------
   TITLE + INSTRUMENTATION TRUNCATION
   ------------------------------ */

.title-cell {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Instrumentation cell: horizontal layout */
.instrumentation-cell {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

.instrumentation-cell .difficulty {
    flex: 0 0 auto;
    font-weight: 600;
    opacity: 0.85;
    cursor: default;
    margin-right: 0.25rem;
    position: relative;
}

.instrumentation-cell .instr {
    max-width: 180px;        /* CRITICAL: width belongs here */
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.instrumentation-cell[data-truncated="true"] {
    cursor: help;
}

.instrumentation-cell span {
    vertical-align: top;
}

/* ------------------------------
   TOOLTIP SYSTEM (Unified)
   ------------------------------ */

#instrumentation-tooltip {
  position: fixed;
  z-index: 1000;
  background: #333;
  color: #fff;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  max-width: 260px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  pointer-events: none;
  visibility: hidden;
}

#instrumentation-tooltip::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* ------------------------------
   NOTES ICON (Unified)
   ------------------------------ */

.notes-icon {
  width: 30px !important;
  height: 30px !important;
  flex-shrink: 0 !important;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

.notes-icon rect,
.notes-icon circle {
  all: unset;
  vector-effect: none;
}

.notes-icon .stem,
.notes-icon .beam,
.notes-icon .notehead {
  fill: currentColor;
}

/* ------------------------------
   RESPONSIVE BREAKPOINTS — WORKS PAGE
   ------------------------------ */

@media (max-width: 900px) {
  .works-filters {
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .works-filters {
    flex-wrap: wrap;
    white-space: normal;
    overflow-x: visible;
  }

  .works-filters .filter-item {
    flex: 1 1 100%;
    padding-right: 0;
    margin-right: 0;
  }

  .works-filters input,
  .works-filters select {
    width: 100% !important;
    max-width: 100% !important;
  }

  .controls-bar {
    padding: 0.5rem 0.5rem;
  }

  .table-wrapper {
    max-height: none;
  }
}

@media (max-width: 480px) {
  .title-cell {
    max-width: 180px;
  }
  .instrumentation-cell {
    max-width: 140px;
  }
}

/* ==========================================================
   3. HOMEPAGE — HERO, CTA, ACHIEVEMENTS
   ========================================================== */

/* Homepage background */
body.home {
  background: #73779F;
}

/* Hero block (fluid, unified) */
.home-hero {
  background: linear-gradient(
      rgba(115,119,159,0.06),
      rgba(115,119,159,0.06)
    ),
    #ffffff;

  border-radius: 12px;
  padding: 3rem 3rem 1.5rem 3rem;

  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;

  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 3rem;
  align-items: start;

  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* Left hero card */
.hero-left {
  background: #E3E6EF;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.hero-left h1 {
  margin-bottom: 0.3rem;
}

.tagline {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.identity {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.quotes p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  line-height: 1.25;
}

/* Right hero column */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 444px;
  width: 100%;
  padding-left: 2rem;
}

.hero-score-large {
  width: 100%;
  max-width: 384px;
  height: auto;
  margin-bottom: 1.25rem;
  border-radius: 4px;
}

.hero-piece-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.hero-piece-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.hero-piece-award {
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 1.25rem;
}

.hero-piece-desc {
  font-size: 1.05rem;
  line-height: 1.5;
  opacity: 0.9;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hero-link {
  font-size: 1rem;
  font-weight: 500;
  color: #3a3f66;
}

/* CTA card */
.cta-card {
  background: #f7f7f7;
  border: 1px solid #D0D4E0;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.cta-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cta-sub {
  margin-top: -0.5rem;
  font-size: 1.1rem;
  opacity: 0.85;
}

.cta-award {
  font-size: 0.95rem;
  margin: 0.5rem 0;
  font-weight: 600;
}

.cta-desc {
  font-size: 0.95rem;
  line-height: 1.35;
}

/* Achievements grid */
.achievements {
  background: #ffffff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;

  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;

  border: 1px solid #C8CDD9;
}

.achievements h3 {
  margin-bottom: 0.5rem;
}

.achievements ul {
  margin: 0;
  padding-left: 1.1rem;
}

.achievements li {
  margin: 0.25rem 0;
  font-size: 0.80rem;
}

/* ==========================================================
   4. FOR PERFORMERS — HERO, GRID, FEATURED WORK
   ========================================================== */

body.performers-body {
  background-color: #73779F !important;
}

.performers-hero-card {
  background: rgba(115,119,159,0.08);
  padding: 3rem;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.performers-title {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.performers-tagline {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.performers-intro {
  font-size: 1.1rem;
  line-height: 1.55;
  opacity: 0.9;
}

/* Sections */
.performers-section {
  margin-bottom: 3rem;
}

.performers-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* Featured work block */
.performers-featured {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.featured-item {
  max-width: 420px;
  width: 100%;
}

.featured-score {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.featured-award {
  font-weight: 600;
  color: #555;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  background: #5F638C;
  color: #f7f7f9 !important;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ==========================================================
   5. LEARN MORE — HERO, LOZENGE, PHOTO
   ========================================================== */

body.learn-more {
  background: #73779F;
}

.learn-more-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(255,255,255,0.15);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;

  flex-wrap: wrap;
  gap: 2rem;
}

.learn-more-hero-text h1,
.learn-more-hero-text p {
  color: black;
}

.learn-more-hero-image img {
  max-width: 260px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Learn More lozenge */
.learn-more-lozenge {
  background: rgba(255,255,255,0.18);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
  color: white;
}

.learn-more-lozenge h2 {
  color: black;
}

/* ==========================================================
   6. RESPONSIVE BREAKPOINTS — HOMEPAGE + PERFORMERS + LEARN MORE
   ========================================================== */

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .achievements {
    grid-template-columns: 1fr 1fr;
  }

  .hero-right {
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .achievements {
    grid-template-columns: 1fr;
  }

  .learn-more-hero {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-piece-title {
    font-size: 1.6rem;
  }
  .hero-piece-subtitle {
    font-size: 1rem;
  }
  .performers-title {
    font-size: 2rem;
  }
}

/* ==========================================================
   7. AUDIO‑VISUAL PAGE — VIDEO, WRAPPERS, BACKGROUND
   ========================================================== */

body.audio-visual-body {
  background: #73779F;
}

body.audio-visual-body #page,
body.audio-visual-body #main,
body.audio-visual-body .container,
body.audio-visual-body .wrapper {
  background: transparent !important;
}

/* Video wrapper (fluid 16:9) */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

/* Composer photo */
.composer-photo img {
  width: 75%;
  max-width: 250px;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

/* ==========================================================
   8. RECORDINGS PAGE — LOZENGE, GRID, BUTTONS
   ========================================================== */

.recordings {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Recording lozenge */
.recording-lozenge {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Three‑column grid → fluid */
.recording {
  display: grid;
  grid-template-columns: minmax(0, 200px) 1fr minmax(0, 140px);
  gap: 1.5rem;
  align-items: center;
}

/* CD cover */
.cd-cover {
  width: 100%;
  max-width: 200px;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Text hierarchy */
.cd-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.cd-meta {
  color: #666;
  margin: 0.3rem 0 0.8rem;
}

.cd-works .works-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.cd-works ul {
  margin-left: 1rem;
  columns: 2;
  column-gap: 2rem;
}

.cd-works ul li {
  break-inside: avoid;
  padding-bottom: 0.2rem;
}

/* Right column: center the button */
.recording-actions {
  display: flex;
  justify-content: center;
  padding-left: 1rem;
}

/* Purchase button */
.cd-button {
  display: inline-block;
  background: #5F638C;
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.cd-button:hover {
  background: #004f82;
}

/* ==========================================================
   9. GLOBAL RESPONSIVE SYSTEM — FINAL CONSOLIDATION
   ========================================================== */

/* ---------- 900px ---------- */
@media (max-width: 900px) {
  .recording {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .recording-actions {
    padding-left: 0;
  }

  .cd-cover {
    margin: 0 auto;
  }
}

/* ---------- 768px ---------- */
@media (max-width: 768px) {
  .recordings {
    padding: 1.5rem 1rem;
  }

  .cd-title {
    font-size: 1.2rem;
  }

  .cd-meta {
    font-size: 0.9rem;
  }
}

/* ---------- 600px ---------- */
@media (max-width: 600px) {
  .cd-works ul {
    columns: 1;
  }

  .recording-lozenge {
    padding: 1.25rem;
  }
}

/* ---------- 480px ---------- */
@media (max-width: 480px) {
  .cd-title {
    font-size: 1.1rem;
  }

  .cd-button {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* addenda */

.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:active,
a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active {
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
}

/* navigation */
.piece-nav {
    display: flex;
    justify-content: space-between; /* prev left, next right */
    font-size: 1.1rem;              /* optional polish */
}

.piece-nav .next-piece {
    display: block;
    margin-left:auto;
    text-align: right;
}

.piece-nav a {
    text-decoration: none;
}

.piece-nav a:hover {
    text-decoration: underline;
}

.piece-meta-inline {
    display: flex;
    align-items: center;   /* vertically align everything */
    gap: 0.75rem;          /* spacing between items */
    flex-wrap: wrap;       /* optional: prevents overflow on narrow screens */
}

.audio-item .piece-audio,
.movement-meta-inline .piece-audio,
.piece-meta-inline .piece-audio {
    border: 3px solid #ccc;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    background: #fafafa;   /* subtle, modern */
}

.bilingual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.bilingual-col p {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 700px) {
  .bilingual-grid {
    grid-template-columns: 1fr;
  }
}

.bilingual-grid {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.bilingual-grid p {
  margin-top: 0;
  margin-bottom: 0.35rem; /* small, readable line spacing */
}

.bilingual-grid p:last-child {
  margin-bottom: 0;
}

.bilingual-left,
.bilingual-right {
  padding: 0;
  margin: 0;
}

.lozenge.hero {
  display: flex;
  flex-direction: row;
  align-items: flex-start;   /* keeps top edges aligned */
  gap: 2rem;                 /* breathing room between text and video */
}

/* First column: take ~2/3 */
.hero-text {
  flex: 2 1 0;
}

/* Second column: take ~1/3 */
.hero-video {
  flex: 1 1 0;
  max-width: 100%;
  margin-top:24px;
}

@media (max-width: 700px) {
  .lozenge.hero {
    flex-direction: column;
  }
}

.librettist-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.librettist-bio {
  flex: 3;
}

.librettist-photo-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.librettist-photo {
  max-width: 210px;   /* shrink the photo */
  height: auto;
  border-radius: 6px; /* subtle rounding to match lozenge softness */
  object-fit: cover;
  margin-top: 6px;
}