/* Reset */
body, h1, h2, h3, p, ul, li {
  margin: 0;
  padding: 0;
}

/* Body */
body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #000;
  line-height: 1.6;
}

/* ── Top navigation section ── */
section:first-of-type {
  background: #ffffff;
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 0;
  padding: 2.5rem 1rem 1.5rem;
  text-align: center;
}

/* Nav links */
section:first-of-type a {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: #000;
  text-decoration: none;
  border-bottom: 0.5px solid #000;
  padding-bottom: 1px;
  margin: 0.4rem 0;
}

section:first-of-type a:hover {
  opacity: 0.5;
  text-decoration: none;
}

/* ── Gallery section ── */
.interview-gallery {
  border-top: 0.5px solid #ccc;
  padding: 0;
  background-color: #fff;
  margin-bottom: 0;
  box-shadow: none;
  border-radius: 0;
}

/* ── Gallery grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

/* Gallery item — golden ratio portrait rectangle (1 : 1.618) */
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.618;
  background: #000;
  cursor: pointer;
}

/* Images fill cell, cropped to rectangle */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: opacity 0.35s ease;
}

/* Pull-quote overlay */
.gallery-item .quote {
  position: absolute;
  inset: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.72rem;
  line-height: 1.45;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* Attribution name — always on its own line */
.gallery-item .quote .attribution {
  display: block;
  margin-top: 0.5rem;
}

/* Desktop hover */
.gallery-item:hover img {
  opacity: 0.3;
}

.gallery-item:hover .quote {
  opacity: 1;
}

/* Safari/iOS touch — applied via JS */
.gallery-item.is-active img {
  opacity: 0.3;
}

.gallery-item.is-active .quote {
  opacity: 1;
}

/* ── Responsive ── */

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-item .quote {
    font-size: 0.8rem;
    padding: 0.75rem 1.25rem;
  }
}

@media (min-width: 1024px) {
  section:first-of-type {
    padding: 3rem 1rem 2rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 3px;
  }
  .gallery-item .quote {
    font-size: 0.68rem;
    line-height: 1.4;
    padding: 0.5rem 0.85rem;
  }
}

@media (max-width: 414px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }
  .gallery-item .quote {
    font-size: 0.7rem;
    padding: 0.75rem 1.25rem;
  }
}
