/**
 * Simplified Kathy Andrade Carousel Styles
 * File: /wp-content/themes/media-child/includes/andrade/kathy-carousel.css
 * 
 * Matches the three mockup layouts provided
 */

/* ===============================================
   FONTS AND HEADERS
   =============================================== */

@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Special+Gothic+Condensed+One&display=swap");

#main-content {
  background-image: url("/wp-content/uploads/andrade-bg.jpg") !important;
  background-repeat: repeat !important;
  background-size: 900px 900px !important;
  background-position: left top !important;
  background-color: rgba(
    255,
    255,
    255,
    0.2
  ) !important; /* White with 60% opacity */
  background-blend-mode: lighten !important; /* Or other blend modes like multiply, overlay */
}

/* Header styles */
#header {
  z-index: 8000;
}
#header h1 {
  font-family: "Special Gothic Condensed One", sans-serif !important;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.9rem, 6.5vw, 7.3rem) !important;
  line-height: 0.9;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
}

#header h2 span {
  font-family: "Montserrat", Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  background-color: #ef0000;
  padding: 8px 26px 10px;
}

/* ===============================================
   KATHY ANDRADE NAVIGATION - Barbara Kruger Style
   =============================================== */

.kathy-exhibit-nav {
  width: 100%;
  font-family: "Special Gothic Condensed One", sans-serif !important;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 20px;
  position: relative;
  z-index: 10000;
  isolation: isolate;
}

/* Toggle button (hidden on desktop) */
.kathy-exhibit-nav .nav-toggle {
  display: none;
  background: #ef0000;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: "Special Gothic Condensed One", sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  font-size: 16px;
  min-height: 40px;
  width: auto;
  white-space: nowrap;
  align-items: center;
  gap: 8px;
}

.kathy-exhibit-nav .nav-toggle:hover {
  background: #000;
}

.kathy-exhibit-nav .dropdown-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.kathy-exhibit-nav[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

/* Desktop navigation list */
.kathy-exhibit-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap; /* Keep buttons on one line as long as possible */
  justify-content: center;
}

.kathy-exhibit-nav .nav-item {
  margin: 0;
  flex-shrink: 1; /* Allow buttons to shrink when needed */
}

.kathy-exhibit-nav .nav-link {
  display: block;
  text-decoration: none;
  padding: 4px 8px;
  transition: all 0.3s ease;
  transform: scale(1);

  /* Natural sizing with progressive wrapping */
  white-space: nowrap;
  word-wrap: break-word;
  hyphens: auto;
  line-height: 1;
  min-width: 60px;
  text-align: center;
  width: auto;
  flex-shrink: 0; /* Don't shrink initially */
}

/* Progressive shrinking - longest text gives way first */
@media (max-width: 1100px) {
  .kathy-exhibit-nav .nav-item:nth-child(3) .nav-link {
    /* Organizing Communities first to wrap */
    white-space: normal;
    max-width: 210px;
    flex-shrink: 1;
  }

  .kathy-exhibit-nav .nav-item:nth-child(5) .nav-link {
    /* Making Good Trouble also wraps to prevent 1-to-3 line jump */
    white-space: normal;
    max-width: 160px;
    flex-shrink: 1;
  }
}

@media (max-width: 850px) {
  .kathy-exhibit-nav .nav-link {
    /* All buttons can wrap to prevent single-letter lines */
    white-space: normal;
    flex-shrink: 1;
  }

  .kathy-exhibit-nav .nav-item:nth-child(1) .nav-link {
    /* Home */
    max-width: 100px;
  }

  .kathy-exhibit-nav .nav-item:nth-child(2) .nav-link {
    /* Immigrant Roots */
    max-width: 140px;
  }

  .kathy-exhibit-nav .nav-item:nth-child(3) .nav-link {
    /* Organizing Communities */
    max-width: 140px; /* Tighter to encourage better wrapping */
  }

  .kathy-exhibit-nav .nav-item:nth-child(4) .nav-link {
    /* Social Unionism */
    max-width: 140px;
  }

  .kathy-exhibit-nav .nav-item:nth-child(5) .nav-link {
    /* Making Good Trouble */
    max-width: 140px;
  }
}

  .media-attrib {
      order: 2;
      font-family: 'Alegreya', serif;
      font-style: italic;
      color: #555;
      font-size: 14px;
      line-height: 1.15;
      padding: 6px 16px;
      text-align: center;
      display: block;
  }
  
.kathy-exhibit-nav .nav-link.active {
  background-color: #ef0000;
  color: #fff;
  transform: scale(1.05);
}

.kathy-exhibit-nav .nav-link:not(.active) {
  background-color: transparent;
  color: #000;
  transform: scale(1);
}

.kathy-exhibit-nav .nav-link.active:hover {
  background-color: #000;
}

.kathy-exhibit-nav .nav-link:not(.active):hover {
  background-color: #000;
  color: #fff;
  transform: scale(1.05);
}

/* Tablet breakpoint - switch to dropdown */
@media (max-width: 768px) {
  #header h2 span {
    font-size: 20px;
    padding: 8px 16px 10px;
  }
  .kathy-exhibit-nav {
    position: relative;
    width: 90%;
    min-height: 48px;
    display: block; /* keep layout simple in dropdown mode */
    z-index: 10000;
    margin: -6px auto 0;
  }

  #kathy-name {
    margin-bottom: 24px;
  }

  /* Full‑width stacked list shell */
  .kathy-exhibit-nav .nav-list {
    display: block; /* stacked, not flex */
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border-radius: 0;
    overflow: clip; /* tidy corners */
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 999; /* overlay above surrounding content */
    box-shadow: 0 0 0 rgba(0, 0, 0, 0); /* elevates when open */
  }

  /* Force full-width dropdown rows and override earlier nth-child max-width limits */
  .kathy-exhibit-nav .nav-item {
    width: 100%;
  }
  .kathy-exhibit-nav .nav-item .nav-link {
    width: 100%;
    max-width: none !important; /* beats earlier nth-child rules */
    min-width: 0; /* cancels desktop min-width */
    box-sizing: border-box;
  }

  .kathy-exhibit-nav .nav-list {
    margin-top: 16px;
    z-index: 10001;
  }

  .kathy-exhibit-nav .nav-item {
    display: block;
    margin: 0; /* no gaps between rows */
    position: relative;
  }

  .kathy-exhibit-nav .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 0;
    padding: 4px 8px;
    line-height: 1.2;
    white-space: normal; /* allow wrapping */
    transform: none !important;
    max-width: none;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
  }

  /* Divider lines between adjacent visible rows */
  .kathy-exhibit-nav .nav-item + .nav-item .nav-link {
    border-top: 1px solid #000;
  }

  .kathy-exhibit-nav .nav-link:not(.active) {
    background-color: #333;
    color: #fff;
    transform: scale(1);
  }
 
  
  /* Chevron indicator, like a select */
  /* .kathy-exhibit-nav .nav-list::after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    pointer-events: none;
    opacity: 0.85;
    font-size: 0.9rem;
  } */

  /* --- Collapsed vs open states using :has() (modern) --- */
  @supports selector(:has(.active)) {
    /* Default collapsed: show only the LI that contains the active link */
    .kathy-exhibit-nav .nav-item {
      display: none;
    }
    .kathy-exhibit-nav .nav-item:has(.active) {
      display: block;
    }

    /* Open on hover OR focus-within (keyboard/touch) */
    .kathy-exhibit-nav:is(:hover, :focus-within) .nav-item {
      display: block;
    }
    .kathy-exhibit-nav:is(:hover, :focus-within) .nav-list {
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    }
    .kathy-exhibit-nav:is(:hover, :focus-within) .nav-list::after {
      transform: translateY(-50%) rotate(180deg);
    }

    /* Tap-to-open: when collapsed, ignore clicks on the active row so container gets focus/hover */
    .kathy-exhibit-nav:not(:hover):not(:focus-within) .nav-link.active {
      pointer-events: none;
    }
  }

  /* --- Fallback if :has() is unavailable: show a simple stacked list --- */
  @supports not selector(:has(.active)) {
    .kathy-exhibit-nav .nav-item {
      display: block;
    }
  }

  /* Hover/focus effects in dropdown mode */
  .kathy-exhibit-nav .nav-link:hover,
  .kathy-exhibit-nav .nav-link:focus-visible {
    background: #000 !important;
    color: #ef0000 !important;
    outline: none;
  }

  /* Active row styling */
  .kathy-exhibit-nav .nav-link.active {
    background-color: #ef0000;
    color: #fff;
  }
  /* When open, keep the active visible but neutral so all options read well */
  .kathy-exhibit-nav:is(:hover, :focus-within) .nav-link.active {
    background-color: #ef0000;
    color: #fff;
  }
}

/* Mobile refinements */
@media (max-width: 480px) {
  .kathy-exhibit-nav .nav-toggle {
    font-size: 14px;
    padding: 6px 12px;
  }

  .kathy-exhibit-nav .nav-link {
    padding: 10px 14px;
    font-size: 18px;
  }
}

/* ===============================================
   NAVIGATION
   =============================================== */

.exhibit-nav {
  width: 100%;
  font-family: "Special Gothic Condensed One", sans-serif !important;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  position: relative !important;
  z-index: 10 !important;
}

.exhibit-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.exhibit-nav a {
  display: block;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 2px;
  transition: all 0.3s ease;
  white-space: nowrap;
  transform: scale(1);
}

.exhibit-nav a.page-on {
  background-color: #ef0000;
  color: #fff;
  transform: scale(1.05);
}

.exhibit-nav a.page-off {
  background-color: transparent;
  color: #000;
  transform: scale(1);
}

.exhibit-nav a.page-on:hover {
  background-color: #000;
}

.exhibit-nav a.page-off:hover {
  background-color: #000;
  color: #fff;
  transform: scale(1.05);
}

/* Responsive Navigation */
.exhibit-nav-toggle {
  display: none;
  background: #ef0000;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: "Special Gothic Condensed One", sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  font-size: 16px;
  min-height: 40px;
  width: auto;
  white-space: nowrap;
}

.exhibit-nav-toggle:hover {
  background: #000;
}

.exhibit-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #ef0000;
  border-radius: 4px;
  z-index: 100;
  margin-top: 4px;
}

.exhibit-nav-dropdown ul {
  flex-direction: column;
  gap: 0;
}

.exhibit-nav-dropdown a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  border-radius: 0;
}

.exhibit-nav-dropdown li:last-child a {
  border-bottom: none;
}

/* Show dropdown when active */
.exhibit-nav.dropdown-active .exhibit-nav-dropdown {
  display: block;
}

/* Mobile dropdown */
@media (max-width: 768px) {
  .exhibit-nav {
    position: relative;
    min-height: 48px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .exhibit-nav ul {
    display: none;
    position: static;
  }

  .exhibit-nav-toggle {
    display: block !important;
    position: relative;
    z-index: 101;
  }

  .exhibit-nav.dropdown-active ul {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #ef0000;
    border-radius: 4px;
    z-index: 100;
    margin-top: 4px;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .exhibit-nav.dropdown-active a {
    border-bottom: 1px solid #eee;
    border-radius: 0;
    padding: 12px 16px;
    width: 100%;
    text-align: center;
    transform: none !important;
  }

  .exhibit-nav.dropdown-active li:last-child a {
    border-bottom: none;
  }
}

/* ===============================================
   EXHIBIT PREV/NEXT NAVIGATION
   =============================================== */

.exhibit-prev-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding: 18px 0;
  border-top: 1px solid #ddd;
  font-family: "Special Gothic Condensed One", sans-serif;
  text-transform: uppercase;
  font-size: 18px;
}

.exhibit-prev-next a {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
}

.exhibit-prev-next a:hover {
  background-color: #ef0000;
  color: white;
  border-color: #ef0000;
  transform: scale(1.05);
}

.exhibit-prev-next .prev-link {
  margin-right: auto;
}

.exhibit-prev-next .next-link {
  margin-left: auto;
}

@media (max-width: 768px) {
  .exhibit-prev-next .desktop-text {
    display: none;
  }
  .exhibit-prev-next .mobile-text {
    display: inline;
  }
}

@media (min-width: 769px) {
  .exhibit-prev-next .desktop-text {
    display: inline;
  }
  .exhibit-prev-next .mobile-text {
    display: none;
  }
}

/* ===============================================
   NEW BUTTON SYSTEM - Simplified, No SVGs
   =============================================== */

/* Media display spacing when button is present */
.media-display.has-button:has(.carousel-video-player) {
  padding-bottom: 60px;
}

.media-display:has(.carousel-video-player) {
  background-color: #000;
}

/* Universal button styling */
.transcript-btn {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 8px 16px;
  font-family: "Special Gothic Condensed One", sans-serif;
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.transcript-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%) scale(1.1);
}

.transcript-btn:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Audio transcript button integrated in controls */
.audio-transcript-btn {
  background: #000;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 6px 12px;
  font-family: "Special Gothic Condensed One", sans-serif;
  font-size: 12px;
  font-weight: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.audio-transcript-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Image modal styles */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 32px;
  color: #ffcc66;
  cursor: pointer;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.modal-image {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.modal-caption {
  padding: 20px;
  background: white;
}

.modal-caption h3 {
  margin: 0 0 10px 0;
  color: #d4291a;
  font-size: 1.3em;
}

.modal-caption p {
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.modal-caption .attribution {
  font-style: italic;
  color: #666;
  font-size: 0.9em;
  margin: 0;
}

/* Hide sidebar when transcript is closed */
.content-sidebar.transcript-hidden {
  display: none;
}

/* Adjust grid when sidebar is hidden */
.carousel-content.sidebar-hidden {
  grid-template-columns: 1fr;
}

/* ===============================================
   MAIN CAROUSEL CONTAINER
   =============================================== */

.kathy-carousel {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  font-family: Georgia, serif;
}

/* Error messages */
.kathy-carousel-error {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 20px;
  margin: 20px 0;
  color: #856404;
  text-align: center;
}

.kathy-carousel-error p {
  margin: 0;
  font-size: 16px;
}

.kathy-carousel-error small {
  color: #6c757d;
  font-style: italic;
}

.carousel-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-title {
  color: #d4291a;
  font-size: 1.6em;
  margin-bottom: 10px;
  font-weight: bold;
}

.section-subtitle {
  color: #666;
  font-size: 1em;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
}

/* ===============================================
   MAIN CONTENT LAYOUT (Desktop)
   =============================================== */

.carousel-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  min-height: auto;
  margin-bottom: 20px;
  max-width: 100%;
}

/* ===============================================
   MEDIA DISPLAY AREA
   =============================================== */

.media-display {
  background: none;
  flex-direction: column;
  gap: 10px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* min-height: 300px; */
  order: 1;
}

/* Video content */
.media-display .andrade-video-container {
  width: 100%;
  height: 100%;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
}

.media-display .video-transcript-layout {
  grid-template-columns: 1fr;
  height: 100%;
  padding: 0;
}

.media-display .video-player {
  position: static;
  height: 100%;
}

.media-display .video-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Photo content */
.photo-display {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-photo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Audio content */
.audio-display {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audio-controls {
  position: absolute;
  width: 100%;
  bottom: 0px;
  background-color: #000;
  border-radius: 0 0 8px 8px;
  padding: 10px 16px 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
  min-height: 50px; /* Ensure adequate space */
  z-index: 1000;
}

.audio-time {
  font-family: monospace;
  color: #ccc;
  font-size: 14px;
  min-width: 40px;
  flex-shrink: 0;
}

.play-button {
  background: #ffcc66;
  color: white;
  border: none;
  border-radius: 50%;
  text-indent: 4px;
  width: 35px;
  height: 35px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-image: url('data:image/svg+xml,<svg viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M30 20.5L15 29.1603L15 11.8397L30 20.5Z" fill="black"/></svg>');
  background-size: cover;
  transition: background 0.3s;
  flex-shrink: 0;
}

.play-button:hover {
  background-color: #fcb021;
}

.audio-title {
  font-family: "Alegreya", Georgia, serif;
  flex-grow: 1;
  font-weight: bold;
  font-style: italic;
  font-size: 16px;
  line-height: 1.2;
}

/* Loading placeholder */
.loading-placeholder {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 40px 20px;
}

.error-placeholder {
  color: #d4291a;
  font-weight: bold;
  text-align: center;
  padding: 40px 20px;
  background: #fff3cd;
  border: 1px solid #d4291a;
  border-radius: 4px;
  margin: 20px;
}
.carousel-audio-player {
  position: relative;
  display: block;
  height: 300px;
  width: 100%;
  overflow: hidden;
  z-index: 100;
}
.carousel-audio-player::before {
  content: "";
  inset: 0;
  position: absolute;
  z-index: 300;
  mix-blend-mode: multiply;
  box-shadow: inset 0px 0px 250px rgba(0, 0, 0, 0.65);
}
.carousel-audio-player::after {
  height: 400%;
  width: 400%;
  bottom: -50%;
  right: -50%;
  content: "";
  position: absolute;
  inset: -70%;
  background: radial-gradient(circle, #131321, #c0c1dc) 0 0/4px 4px space;
  opacity: 0.65;
  mix-blend-mode: screen; /* combine dots with image */
  transform: rotate(45deg); /* rotate dots */
  transform-origin: center center;
  pointer-events: none;
  filter: contrast(5);
  z-index: 200;
}

.carousel-audio-player img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  display: block;
  opacity: 1;
  z-index: 100;
}
/* ===============================================
   CONTENT SIDEBAR
   =============================================== */

.content-sidebar {
  /* background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px; */
  overflow-y: auto;
  z-index: 1;
  order: 2;
  min-height: 200px;
}
/* Start with the most likely culprit */
.content-sidebar {
  overflow: visible;
}

.sidebar-title {
  color: #d4291a;
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 15px;
  border-bottom: 2px solid #d4291a;
  padding-bottom: 8px;
}

/* Transcript in sidebar - reuse existing styles but adapt */
.content-sidebar .transcript-panel {
  background: transparent;
  border: none;
  padding: 0;
}

.content-sidebar .scrolling-transcript {
  max-height: 400px;
}

/* ===============================================
   TRANSCRIPT STYLES (extracted from exhibit-video.css)
   =============================================== */

.transcript-controls {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ddd;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  bottom: 25px;
  overflow: visible;
  z-index: 200;
}

/* Style the transcript toggle button when it's in the sidebar */
.transcript-controls .transcript-btn {
  position: static;
  transform: none;
  background: #555;
  border: 1px solid #777;
  margin: 0;
  flex-shrink: 0;
  color: white;
  transform: scale(1) !important;
}

.transcript-controls .transcript-btn:hover,
.transcript-controls .photo-enlarge-bt {
  background: #333;
  border-color: #555;
  transform: scale(1.1) !important;
}

.transcript-toggle-btn,
.transcript-controls button {
  font-family: "Special Gothic Condensed One", sans-serif !important;
  border-radius: 4px;
  padding: 6px 12px 8px;
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  transition: all 0.3s ease;
}

.transcript-controls button {
  padding: 8px 12px;
  border: 1px solid #ccc;
  background: white;
  transform: scale(1);
}

.transcript-controls button:hover {
  background: #f0f0f0;
  border-color: #999;
  transform: scale(1.05);
}

.transcript-controls button.active {
  background: #555;
  color: white;
  border-color: #444;
}

.scrolling-transcript {
  max-height: 500px;
  overflow-y: auto;
  line-height: 1.6;
  font-size: 16px;
  padding-right: 10px;
}

.transcript-segment {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  background: white;
}

.transcript-segment:hover {
  background-color: #f5f5f5;
  border-left-color: #ccc;
}

.transcript-segment.active {
  background-color: #fff3cd;
  border-left-color: #d4291a;
  box-shadow: 0 2px 4px rgba(212, 41, 26, 0.1);
}

.transcript-segment .timestamp {
  color: #666;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.transcript-segment .text {
  color: #333;
  line-height: 1.5;
}

.loading-transcript {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 40px 20px;
}

/* Stage directions styling */
.stage-direction {
  font-style: italic;
  color: #666;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  margin: 0 2px;
}

/* Transcript scrollbar */
.scrolling-transcript::-webkit-scrollbar {
  width: 8px;
}

.scrolling-transcript::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.scrolling-transcript::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.scrolling-transcript::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Photo captions */
.photo-caption {
  line-height: 1.6;
  height: 86.5%;
  overflow-y: auto;
  padding-top: 16px;
}

.caption-content {
  font-family: "Fira Sans", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 8px;
  color: #252525;
}

.caption-attribution {
  font-family: "Alegreya", Georgia, serif;
  font-style: italic;
  color: #444;
  font-size: 15px;
  line-height: 1.25;
  border-top: 1px solid #ddd;
  padding: 10px 0;
}

h3.caption-title {
  font-family: "Fira Sans", sans-serif;
  letter-spacing: normal;
  font-weight: 600;
  font-size: 0.85em;
  line-height: 1.2;
}

/* ===============================================
   THUMBNAIL NAVIGATION
   =============================================== */

.thumbnail-nav {
  max-width: 100%;
  display: flex;
  order: 3;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  /* background: #f8f8f8; */
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  scrollbar-width: thin;
}

/* Hide thumbnail navigation when there's only one item */
.thumbnail-nav.single-item {
  display: none;
}

.thumbnail {
  flex-shrink: 0;
  width: 90px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transform: scale(1);
  transition: all 0.3s;
  border: 3px solid transparent;
  position: relative;
  background: #000;
}

.thumbnail img {
  transition: opacity 0.3s;
  opacity: 0.7;
}

.thumbnail:hover {
  transform: scale(1.05);
  border-color: #333;
}

.thumbnail img:hover {
  opacity: 1;
}

.thumbnail.active {
  border-color: #000;
  transform: scale(1.07);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.thumbnail.active img {
  opacity: 1;
}

/* Video thumbnails */
.thumb-video {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-icon {
  position: absolute !important;
  bottom: 4px !important;
  right: 4px !important;
  color: white !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='48' height='48' rx='24' fill='black' fill-opacity='0.7'/%3E%3Cpath d='M19 15L33 24L19 33V15Z' stroke='%23FFCC66' stroke-width='2' fill='%23FFCC66'/%3E%3C/svg%3E%0A") !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: bold !important;
  opacity: 1 !important;
  background-size: cover !important;
  text-indent: -9999px !important;
}

/* Photo thumbnails */
.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Audio thumbnails */

.thumb-audio {
  width: 100%;
  height: 100%;
  position: relative;
  display: inline-block;
  z-index: 1;
}

.thumb-audio::before {
  content: "";
  inset: 0;
  position: absolute;
  z-index: 3;
  mix-blend-mode: multiply;
  box-shadow: inset 0px 0px 50px rgba(0, 0, 0, 0.65);
}

.thumb-audio::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, #171841, #b4b6e9) 0 0/3px 3px space;
  mix-blend-mode: screen; /* combine dots with image */
  pointer-events: none;
  filter: contrast(1.5);
  z-index: 2;
}

.thumb-audio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(2) brightness(0.8);
  opacity: 1;
}

.audio-icon {
  position: absolute;
  bottom: 4px;
  right: 4px;
  color: white;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='48' height='48' rx='24' fill='black' fill-opacity='.7'/%3E%3Cpath d='M9 20V28' stroke='%23FFCC66' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M14 12L14 36' stroke='%23FFCC66' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M19 16L19 32' stroke='%23FFCC66' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M24 13L24 35' stroke='%23FFCC66' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M29 8L29 40' stroke='%23FFCC66' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M34 16L34 32' stroke='%23FFCC66' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M39 20L39 28' stroke='%23FFCC66' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E%0A");
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  z-index: 100;
}
.audio-icon {
  opacity: 1;
}

/* ===============================================
   TEXT COLUMNS
   =============================================== */

.column-head {
  font-family: "Alegreya", Georgia, serif;
  color: #252525;
  font-weight: 400;
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  padding: 0 16px;
}

.column-container {
  font-family: "Fira Sans", sans-serif;
  color: #252525;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 1.6;
  padding: 0 16px;
}

/* Two-column layout for desktop */
/*
#exhibit-bg {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 20px;
}

#exhibit-bg #header {
  flex: 0 0 100%;
  order: 1;
  width: 100%;
  margin-bottom: 20px;
}

#exhibit-bg .et_pb_row_1,
#exhibit-bg .et_pb_row_2 {
  flex: 0 0 calc(50% - 15px);
  order: 2;
  align-self: flex-start;
}


#exhibit-bg .et_pb_column {
  align-self: flex-start !important;
  justify-self: start !important;
}

#exhibit-bg .et_pb_row_1,
#exhibit-bg .et_pb_row_2 {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important; 
}

#exhibit-bg .et_pb_column {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  align-content: flex-start !important;
  padding: 0 !important; 
}

#exhibit-bg .et_pb_module {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 !important; 
}


#exhibit-bg .column-container {
  margin-top: 0 !important;
  align-self: flex-start !important;
}

#exhibit-bg .et_pb_code_inner {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  height: 100% !important;
}

#exhibit-bg .et_pb_row_1 {
  margin-right: 30px;
}

#exhibit-bg .et_pb_row_2 {
  margin-left: 0;
}
*/
.column-container p:not(:first-of-type) {
  text-indent: 2em; /* Adjust the indentation value as needed */
}
/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

/* Tablet (769px - 1139px) */
@media (max-width: 1139px) {
  /*.kathy-carousel {
    padding: 15px;
  } */

  .carousel-content {
    gap: 15px;
    grid-template-columns: 3fr 2fr;
   /* min-height: 400px; */
  }

  .content-sidebar {
    padding: 0 15px 15px;
    height: 100%;
  }

  .content-sidebar .scrolling-transcript {
    max-height: 300px;
  }
  .transcript-interface {
    padding-top: 15px;
    border-top: 1px solid #ddd;
  }

  .thumbnail {
    width: 105px;
    height: 78px;
  }

  .section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 900px) {
  .column-container {
    columns: 1; /* Creates two columns */
    column-gap: 0px; /* Sets the space between columns */
  }
  .carousel-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile (≤768px) - Stacked Layout */
@media (max-width: 768px) {
    #header {
        padding-bottom: 0;
    }
  #exhibit-bg {
    padding-top: 32px !important;
    flex-direction: column;
    flex-wrap: nowrap;
  }

  #exhibit-bg .et_pb_row_1,
  #exhibit-bg .et_pb_row_2 {
    flex: 0 0 100%;
    margin-left: 0;
    margin-right: 0;
  }

  #exhibit-bg .et_pb_row_1 {
    order: 2;
  }

  #exhibit-bg .et_pb_row_2 {
    order: 3;
  }

  .audio-title {
    font-size: 12px;
  }
  .carousel-content {
    grid-template-columns: 1fr;
    gap: 15px;
    min-height: auto;
  }

  .media-display {
    min-height: 300px;
    order: 1;
  }

  .content-sidebar {
    order: 2;
    min-height: 200px;
  }

  .thumbnail-nav {
    order: 3;
    padding: 10px;
    gap: 8px;
  }

  .thumbnail {
    width: 90px;
    height: 68px;
  }

  .section-title {
    font-size: 1.6em;
  }

  .section-subtitle {
    font-size: 1em;
  }

  .audio-controls {
    padding: 6px 16px 16px;
    bottom: 0px;
  }

  .play-button {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  #header {
    width: 90% !important;
  }
  #exhibit-bg {
    padding-top: 24px !important;

  }
  .kathy-carousel {
    padding: 0;
    margin: 0;
  }

  .media-display {
    min-height: 250px;
  }
  .audio-title {
    font-size: 0.01em;
    visibility: hidden;
  }

  .thumbnail {
    width: 75px;
    height: 57px;
  }

  .audio-icon {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .section-title {
    font-size: 1.4em;
  }
  .column-head,
  .column-container {
    font-size: 14px;
    padding: 0 10px;
  }
}

/* ===============================================
   CUSTOM SCROLLBAR
   =============================================== */

.thumbnail-nav::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-nav::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.thumbnail-nav::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.thumbnail-nav::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.content-sidebar::-webkit-scrollbar {
  width: 6px;
}

.content-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.content-sidebar::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.content-sidebar::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ===============================================
   ACCESSIBILITY & REDUCED MOTION
   =============================================== */

.thumbnail:focus {
  outline: 2px solid #d4291a;
  outline-offset: 2px;
}

.play-button:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .thumbnail,
  .play-button {
    transition: none;
  }

  .thumbnail:hover {
    transform: none;
  }
}

/* ===============================================
   PRINT STYLES
   =============================================== */

@media print {
  .kathy-carousel {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .audio-controls,
  .thumbnail-nav {
    display: none;
  }

  .carousel-content {
    grid-template-columns: 1fr;
  }

  .media-display {
    background: white;
    border: 1px solid #ccc;
  }

  .photo-display img {
    max-height: 400px;
  }
}

/* --- Width fix: make carousel use full media column width --- */
.kathy-content-container .media-column { min-width: 0 !important; }

.kathy-content-container .media-column .kathy-carousel,
.kathy-content-container .media-column .carousel-content,
.kathy-content-container .media-column .media-display {
  width: 100% !important;
  max-width: 100% !important;
}

/* Kill leftover two-track grid that creates the ~700px cap */
.kathy-content-container .media-column .carousel-content {
  grid-template-columns: 1fr !important;
}

/* Thumbnails can overflow-x without influencing parent width */
.kathy-content-container .media-column .thumbnail-nav {
  overflow-x: auto !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
}