/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #222;
  background: #fff;
}

a {
  color: #222;
  text-decoration: underline;
  transition: color 0.15s ease;
}

a:hover {
  color: #666;
}

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

/* ===========================
   Layout
   =========================== */
#site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#headerWrapper {
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

#header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 80px;
}

#headerInfo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}

#pageWrapper {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  padding: 3rem 2rem 4rem;
}

#page {
  width: 100%;
}

/* ===========================
   Logo
   =========================== */
.logo {
  font-weight: normal;
  flex-shrink: 0;
}

.logo a {
  text-decoration: none;
  display: block;
}

.logo img {
  height: 36px;
  width: auto;
}

/* ===========================
   Navigation
   =========================== */
#navBlock {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.main-nav {
  position: relative;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #444;
  transition: color 0.15s;
  white-space: nowrap;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.active-link > a {
  color: #000;
}

.main-nav > ul > li.active-link > a {
  border-bottom: 1px solid #222;
}

/* Dropdown */
.main-nav .subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  min-width: 220px;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.main-nav .folder:hover .subnav,
.main-nav .folder:focus-within .subnav {
  display: block;
}

.main-nav .subnav ul {
  flex-direction: column;
  gap: 0;
}

.main-nav .subnav a {
  display: block;
  padding: 0.6rem 1rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #444;
  white-space: nowrap;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s, color 0.1s;
}

.main-nav .subnav a:hover {
  background: #f8f8f8;
  color: #000;
}

.main-nav .subnav li:last-child a {
  border-bottom: none;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #222;
  transition: transform 0.2s, opacity 0.2s;
}

/* ===========================
   Homepage
   =========================== */
.home-content {
  text-align: center;
  padding: 4rem 0 2rem;
}

.home-content img.hero-image {
  max-width: 100%;
  margin: 0 auto 3rem;
}

.home-tagline {
  font-size: 1.6rem;
  font-style: italic;
  color: #444;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.home-subtitle {
  font-size: 1.2rem;
  color: #666;
  font-style: italic;
}

/* ===========================
   Page Content
   =========================== */
.page-content h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  color: #222;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 1rem;
}

.page-content h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.page-content h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.page-content p {
  margin-bottom: 1.25rem;
  color: #333;
}

.page-content ul, .page-content ol {
  margin: 0 0 1.25rem 1.5rem;
  color: #333;
}

.page-content li {
  margin-bottom: 0.4rem;
}

.page-content a {
  color: #222;
}

.page-content a:hover {
  color: #666;
}

/* ===========================
   Book Pages
   =========================== */
.book-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

.book-header-right {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

.book-cover {
  width: 180px;
}

.book-cover img {
  width: 100%;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.15));
}

.book-cover-center {
  text-align: center;
  margin: 1.5rem 0;
}

.book-cover-center img {
  max-width: 220px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  mix-blend-mode: multiply;
}

.video-caption-text {
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.3rem;
  font-style: italic;
}

.book-meta h1 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.5rem;
}

.book-meta .book-subtitle {
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.book-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.book-links a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid #222;
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #222;
  transition: background 0.15s, color 0.15s;
}

.book-links a:hover {
  background: #222;
  color: #fff;
}

.book-description {
  margin-bottom: 2rem;
}

/* Publication List */
.pub-list {
  list-style: none;
  margin: 0 0 2rem 0;
}

.pub-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1rem;
  line-height: 1.6;
}

.pub-list li:last-child {
  border-bottom: none;
}

.pub-reviews {
  list-style: none;
  margin: 0.4rem 0 0 0;
  padding: 0;
}

.pub-reviews li {
  font-size: 0.88rem;
  color: #777;
  padding: 0.2rem 0;
  border-bottom: none;
  font-style: italic;
}

/* Reviews */
.reviews {
  margin-top: 2rem;
}

.review-list {
  list-style: none;
  margin: 0;
}

.review-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
}

.review-list li:last-child {
  border-bottom: none;
}

/* Endorsements */
.endorsement {
  border-left: 3px solid #e5e5e5;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: #555;
}

.endorsement p {
  font-style: italic;
  margin: 0 0 0.4rem 0;
}

.endorsement cite {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  color: #777;
  margin-top: 0.4rem;
}

.endorsement-sm p {
  font-size: 0.85rem;
}

.endorsement-sm cite {
  font-size: 0.8rem;
}

/* ===========================
   Media Page
   =========================== */
.media-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.media-text-col .media-item p,
.media-text-col .media-item {
  font-size: 0.95rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f5f5f5;
}

.media-text-col .media-item:last-child {
  border-bottom: none;
}

.talk-item {
  margin-bottom: 1.5rem;
}

.talk-caption {
  font-size: 0.82rem;
  color: #777;
  margin-top: 0.25rem;
  font-family: 'Raleway', sans-serif;
}

.media-section {
  margin-bottom: 2rem;
}

.media-item {
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.media-item:last-child {
  border-bottom: none;
}

.media-item h3 {
  font-style: normal;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.media-item .media-meta {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1rem 0;
  background: #f5f5f5;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===========================
   Popular Writing
   =========================== */
.writing-list {
  margin-bottom: 2rem;
}

.writing-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.writing-item:last-child {
  border-bottom: none;
}

.writing-logo {
  flex-shrink: 0;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.writing-logo img {
  max-width: 80px;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(30%);
}

.writing-body {
  flex: 1;
  min-width: 0;
}

.writing-item h3 {
  font-style: normal;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  margin-top: 0;
  line-height: 1.4;
}

.writing-item h3 a {
  text-decoration: none;
}

.writing-item h3 a:hover {
  text-decoration: underline;
}

.writing-item .writing-meta {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  color: #888;
  letter-spacing: 0.04em;
  margin: 0;
}

.translation {
  font-style: italic;
  color: #888;
  font-size: 0.9em;
}

@media (max-width: 480px) {
  .writing-logo {
    display: none;
  }
}

/* ===========================
   Contact Form
   =========================== */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: #222;
  background: #fff;
  transition: border-color 0.15s;
  outline: none;
  border-radius: 0;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #222;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  display: inline-block;
  padding: 0.6rem 2rem;
  background: none;
  border: 1px solid #222;
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  color: #222;
  transition: background 0.15s, color 0.15s;
}

.form-submit:hover {
  background: #222;
  color: #fff;
}

/* ===========================
   Policy Work
   =========================== */
.org-list {
  list-style: disc;
  margin: 1rem 0 1rem 1.5rem;
}

.org-list li {
  padding: 0.2rem 0;
  font-size: 1rem;
}

.org-list li:last-child {
  border-bottom: none;
}

/* ===========================
   Photography
   =========================== */
.photography-note {
  font-style: italic;
  color: #666;
  margin-bottom: 1.5rem;
}

.section-location {
  font-weight: 300;
  color: #888;
  font-size: 0.85em;
}

.page-content h2 + .photo-gallery {
  margin-top: 0.75rem;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin-top: 1rem;
  margin-bottom: 5rem;
}

.photo-gallery a {
  display: block;
  overflow: hidden;
  aspect-ratio: 3/2;
}

.photo-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.2s;
}

.photo-gallery a:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}

/* ===========================
   Film Page
   =========================== */
.film-trailer {
  margin: 2rem 0;
}

.film-poster {
  max-width: 300px;
  margin: 0 auto 2rem;
}

/* Streaming Films */
.streaming-films-header {
  text-align: center;
  margin-bottom: 2rem;
}

/* Subpage title (bold text inside streaming-films-header) */
.streaming-films-header p {
  margin: 0 0 1rem 0;
}

.streaming-films-header p strong {
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333;
}

/* Center the nav buttons in subpage headers */
.streaming-films-header .book-links {
  justify-content: center;
}

.streaming-nav {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  margin: 0.75rem 0;
}

.film-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1rem 0 3rem 0;
}

.film-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.film-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.film-item a:hover img {
  opacity: 0.8;
}

.film-title {
  font-size: 0.8rem;
  margin: 0.3rem 0 0;
  line-height: 1.3;
  color: #444;
}

/* ===========================
   Animated explainers
   =========================== */
.explainer-videos {
  margin: 1.5rem 0;
}

.video-embed-large {
  margin-bottom: 1rem;
}

.video-embed-large iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

.explainer-videos-small {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.video-embed iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

/* Infographics */
.infographic-figure {
  margin: 1.5rem 0;
}

.infographic-figure img {
  width: 100%;
  display: block;
}

.infographic-figure figcaption {
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ===========================
   Footer
   =========================== */
#footer {
  border-top: 1px solid #e5e5e5;
  padding: 1.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-links a {
  color: #888;
  text-decoration: none;
  transition: color 0.15s;
}

.social-links a:hover {
  color: #222;
}

.copyright {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #aaa;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
  #header {
    padding: 0 1.25rem;
    min-height: 64px;
  }

  .logo img {
    height: 28px;
  }

  .nav-toggle {
    display: flex;
  }

  #mainMenu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  #mainMenu.open {
    display: flex;
  }

  .main-nav > ul > li > a {
    padding: 0.65rem 1.25rem;
    display: block;
  }

  .main-nav .folder .subnav {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin: 0.25rem 0;
  }

  .main-nav .subnav a {
    padding-left: 2rem;
  }

  #pageWrapper {
    padding: 2rem 1.25rem 3rem;
  }

  .book-header {
    grid-template-columns: 1fr;
  }

  .book-cover {
    width: 140px;
    margin: 0 auto;
  }

  .book-meta h1 {
    text-align: center;
  }

  .book-links {
    justify-content: center;
  }

  .home-tagline {
    font-size: 1.3rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .media-two-col {
    grid-template-columns: 1fr;
  }

  .explainer-videos-small {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Cover Pages (full-screen hero)
   =========================== */
.cover-hero {
  width: 100%;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cover-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(24, 24, 24, 0.5);
  z-index: 1;
}

.cover-stack {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 3rem 2rem;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.cover-slice {
  margin-bottom: 15px;
}

.cover-slice:last-child {
  margin-bottom: 0;
}

/* Small heading: quote / descriptor */
.cover-slice-quote h1 {
  font-family: 'Jost', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1em;
  color: #fff;
  margin: 0;
  border: none;
}

/* Large heading: main title */
.cover-slice-title h1 {
  font-family: 'Jost', sans-serif;
  font-size: 68px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1em;
  color: #fff;
  margin: 0;
  border: none;
}

/* Body text */
.cover-slice-body {
  font-family: 'Jost', sans-serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4em;
  color: #fff;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
}

.cover-slice-body p {
  margin: 0;
  color: #fff;
}

.vod-top-quote {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 2rem;
  z-index: 2;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.vod-endorsement {
  font-size: 17px !important;
  margin-top: 2.5rem !important;
}

.page-visionsofdevelopment .cover-slice-body {
  margin-bottom: 2.5rem;
}

.cover-slice-body p:not(:last-child) {
  margin-bottom: 1em;
}

/* Navigation link */
.cover-slice-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cover-slice-nav ul li {
  display: inline-block;
}

.cover-slice-nav ul li a {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 0.8em 0.6em;
  transition: color 100ms ease-in-out;
}

.cover-slice-nav ul li a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* Subtle separator line above the nav link */
.cover-slice-nav {
  margin-top: 5px;
  padding-top: 10px;
}

@media (max-width: 768px) {
  .cover-slice-title h1 {
    font-size: 42px;
  }
  .cover-slice-body {
    font-size: 17px;
  }
  .cover-slice-quote h1 {
    font-size: 16px;
  }
}

/* ===========================
   Landing Pages
   =========================== */
.landing-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 60vh;
  padding: 2rem 0;
}

.landing-image img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.landing-quote {
  font-style: italic;
  color: #777;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.landing-title {
  font-size: 2rem;
  margin: 0.5rem 0;
}

.landing-subtitle {
  color: #555;
  font-size: 1rem;
  margin: 0.5rem 0;
}

.landing-byline {
  color: #777;
  margin-bottom: 1rem;
}

.landing-tagline {
  font-style: italic;
  color: #555;
  margin-bottom: 1.5rem;
}

.landing-endorsement {
  border-left: 3px solid #e5e5e5;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #555;
  font-size: 0.95rem;
}

.landing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.landing-links a {
  border: 1px solid #222;
  padding: 0.35rem 0.9rem;
  text-transform: uppercase;
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #222;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.landing-links a:hover {
  background: #222;
  color: #fff;
}

@media (max-width: 768px) {
  .landing-page {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Modal Overlays (lightbox + film player)
   =========================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-close {
  position: fixed;
  top: 1.25rem;
  right: 1.75rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.15s;
  z-index: 10;
}

.modal-close:hover {
  color: white;
}

#photo-lightbox .modal-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 95vh;
}

#photo-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  display: block;
}

#film-modal .modal-content {
  width: 90vw;
  max-width: 960px;
}

#film-modal iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

/* ===========================
   UDC Cover Page Layout
   =========================== */
.udc-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 2.5rem;
  z-index: 2;
}

.udc-tagline {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  line-height: 1.8;
}

.udc-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.2rem;
}

.udc-nav a {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.3em 0.7em;
  transition: color 0.15s;
  white-space: nowrap;
}

.udc-nav a:hover {
  color: white;
}

.udc-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  width: 100%;
  padding: 0 2rem;
  box-sizing: border-box;
}

.udc-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: white;
  margin: 0 0 0.6rem 0;
  line-height: 1.1;
  border: none;
  padding: 0;
}

.udc-play-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 72px;
  height: 72px;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}

.udc-play-btn:hover {
  opacity: 1;
  transform: scale(1.08);
}

.udc-play-btn svg {
  width: 100%;
  height: 100%;
}

/* Trailer modal — full viewport */
.trailer-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 3000;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
}

.trailer-modal.active {
  display: flex;
}

.trailer-modal iframe {
  width: 100%;
  height: 100%;
  flex: 1;
  border: none;
  display: block;
}

.trailer-close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.15s;
  line-height: 1;
  z-index: 10;
}

.trailer-close:hover {
  color: white;
}

/* UDC subtitle below title — matches title font for consistency */
.udc-subtitle {
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 2rem 0;
}

/* Summary gallery — 2-column grid within text */
.summary-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 2rem 0;
}

.summary-gallery img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Floated images within the VoD summary body text */
.summary-body { overflow: hidden; }

.summary-img {
  width: 45%;
  margin: 0 0 1.5rem 0;
}

.summary-img-right {
  float: right;
  margin-left: 2rem;
}

.summary-img-left {
  float: left;
  margin-right: 2rem;
}

.summary-img img {
  width: 100%;
  display: block;
}

/* Book illustration (larger than cover) */
.book-illustration {
  width: 260px;
}

.book-illustration img {
  width: 100%;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Lightbox prev/next arrows */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 3.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: color 0.15s;
  z-index: 10;
  user-select: none;
}

#lightbox-prev { left: 0.5rem; }
#lightbox-next { right: 0.5rem; }

.lightbox-nav:hover {
  color: white;
}

@media (max-width: 600px) {
  .udc-top-bar {
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
  }
  .udc-nav {
    flex-wrap: wrap;
  }
  .udc-title {
    font-size: 2rem;
  }
  .udc-play-btn {
    width: 56px;
    height: 56px;
  }
  .book-illustration {
    width: 100%;
  }
  .summary-gallery {
    grid-template-columns: 1fr;
  }
}
