/* Simple site: black-on-white Helvetica, Apple Pages style typography */
:root {
  --max-width: 960px;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #ffffff;
  color: #000000;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 100px;
}

/* Typography */
.title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.author {
  font-size: 18px;
  font-weight: 500;
  color: #000000;
  margin: 0 0 16px;
}

.subtitle {
  font-size: 20px;
  font-weight: 400;
  color: #444444;
  margin: 0 0 8px;
  line-height: 1.45;
}

.meta {
  font-size: 14px;
  font-style: italic;
  color: #666666;
  margin: 0 0 40px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 8px;
}

.block-main-title {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 16px;
}

.lead {
  font-size: 16px;
  line-height: 1.6;
  color: #222222;
  margin-bottom: 24px;
}

.lead-detail {
  font-size: 15px;
  line-height: 1.5;
  color: #333333;
  margin: 4px 0 20px;
}

/* Sequence Part Styling */
.part {
  margin-bottom: 24px;
}

.part-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
}

/* Toggleable Video Details */
.video-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

details.video-detail {
  background-color: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 12px 16px;
}

details.video-detail[open] {
  background-color: #ffffff;
}

details.video-detail summary {
  font-size: 15px;
  font-weight: 600;
  color: #000000;
  cursor: pointer;
  outline: none;
  user-select: none;
}

details.video-detail summary:hover {
  text-decoration: underline;
}

.video-wrap {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  margin-top: 12px;
  background-color: #000000;
}

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

/* Transcriptions Side-by-Side Story/Song Grid */
.translations-section {
  margin-top: 48px;
}

.translations-header {
  margin-bottom: 32px;
}

.text-block {
  margin-bottom: 54px;
}

.story-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-bottom: 1px solid #f5f5f5;
  padding-bottom: 16px;
  align-items: start;
}

/* Header Row of Grid */
.story-row.header-row {
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

/* Column language headers */
.story-header {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #000000;
}

.story-header.fr {
  font-style: normal;
  font-weight: 400;
}

.story-header.en {
  font-style: italic;
  font-weight: 300;
}

.story-header.nl {
  font-style: normal;
  font-weight: 700;
}

.story-row:last-child {
  border-bottom: none;
}

.story-cell {
  font-size: 14.5px;
  line-height: 1.6;
  color: #111111;
  text-align: left;
}

/* Middle column (English) is italicized */
.story-cell.en {
  font-style: italic;
  color: #333333;
}

/* Footer Styling */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid #eaeaea;
  padding-top: 20px;
  color: #888888;
  font-size: 13px;
}

/* Responsive design for tablets/phones */
@media (max-width: 800px) {
  .story-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 24px;
  }
  .story-row.header-row {
    display: none; /* Hide stacked column headers on mobile devices */
  }
  .title {
    font-size: 32px;
  }
  .subtitle {
    font-size: 18px;
  }
}

/* Slideshow Sections for Outils and Isadora */
.slideshow-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

details.slideshow-detail {
  background-color: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 16px 20px;
}

details.slideshow-detail[open] {
  background-color: #ffffff;
}

details.slideshow-detail summary {
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  cursor: pointer;
  outline: none;
  user-select: none;
}

details.slideshow-detail summary:hover {
  text-decoration: underline;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Slideshow Container */
.slideshow {
  position: relative;
  margin: 20px auto 0;
  max-width: 100%; /* Respects container width */
}

.slide {
  display: none;
  text-align: center;
}

.slide.active {
  display: block;
}

.slide img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  border: 1px solid #ddd;
}

.slide figcaption {
  font-size: 13px;
  color: #555;
  margin-top: 12px;
}

/* Prev/Next arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -30px;
  color: black;
  font-weight: bold;
  font-size: 20px;
  transition: 0.3s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(255, 255, 255, 0.7);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(255, 255, 255, 1);
}

.image-grid figure {
  margin: 0;
  text-align: center;
}

.image-grid img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  border: 1px solid #ddd;
}

.image-grid figcaption {
  font-size: 13px;
  color: #555;
  margin-top: 8px;
}

/* Crop Isadora screenshots to hide menu and dock */
.isadora-screenshot {
  clip-path: inset(4.5% 0 8% 0);
  border-radius: 0; /* Remove radius that gets clipped */
  border: 1px solid #ddd; /* Re-apply border if needed inside the clip */
}

/* Full-width Intro Video */
.video-intro-section {
  margin-top: 40px;
  margin-bottom: 20px;
}

.intro-video {
  width: 100%;
  max-width: 100%; /* Ensures it doesn't overflow the container */
  height: auto;
  display: block;
  border-radius: 4px;
}

