/* Individual story page */

.story-page {
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* Article */

.story-article {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.story-article-header {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.story-article-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
}

.story-article-byline {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.3;
}

.story-article-body {
  max-width: 36rem;
  margin: 0 auto;
}

.story-article-body p {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.65;
}

.story-article-body p:last-child {
  margin-bottom: 0;
}

/* Quote */

.story-quote {
  position: relative;
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.story-quote-mark {
  position: absolute;
  font-family: var(--font-serif);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-black);
}

.story-quote-mark--open {
  top: clamp(0.5rem, 2vw, 1rem);
  left: 0;
}

.story-quote-mark--close {
  bottom: clamp(0.5rem, 2vw, 1rem);
  right: 0;
}

.story-quote-text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.55;
}

/* Story hero — fits in one screen with header */

.hero--story {
  padding-bottom: 0;
}

.hero--story .hero-media {
  position: relative;
  width: min(100%, calc((100svh - 7rem) * 16 / 9));
  max-height: calc(100svh - 7rem);
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  background: #111;
}

.hero--story .hero-video {
  object-fit: contain;
  background: #111;
}

.hero--story .hero-video--vimeo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Photo story */

.story-photos {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.story-photos-carousel {
  width: 100%;
}

.story-photos-viewport {
  overflow: hidden;
  width: 100%;
}

.story-photos-track {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  transition: transform 0.45s ease;
  will-change: transform;
}

.story-photo-slide {
  flex: 0 0 72%;
  margin: 0;
  cursor: default;
  transition: opacity 0.3s ease;
}

.story-photo-slide.is-next,
.story-photo-slide.is-prev {
  cursor: pointer;
}

.story-photo-slide.is-next:hover .story-photo-image,
.story-photo-slide.is-prev:hover .story-photo-image {
  opacity: 0.85;
}

.story-photo-slide:not(.is-active):not(.is-next):not(.is-prev) {
  opacity: 0;
  pointer-events: none;
}

.story-photo-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: var(--color-placeholder);
  transition: opacity 0.3s ease;
}

.story-photos-caption {
  margin: clamp(1.25rem, 3vw, 2rem) auto 0;
  max-width: 40rem;
  padding: 0 clamp(1.5rem, 6vw, 3.5rem);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 400;
  text-align: center;
  color: var(--color-black);
}

/* Author */

.story-author {
  padding: clamp(2.5rem, 6vw, 4rem) var(--page-inset);
}

.story-author-card {
  max-width: 14rem;
  margin: 0 auto;
}

/* See more grid */

.story-more {
  padding-top: var(--page-inset);
}

.story-more-heading {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  text-align: center;
  line-height: 1.1;
}

.story-more .story-card {
  text-decoration: none;
  color: inherit;
}

/* Return home */

.story-return {
  padding: clamp(2.5rem, 6vw, 4rem) var(--page-inset) 0;
  text-align: center;
}

.story-return-btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  border: 2px solid var(--color-black);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 400;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease;
}

.story-return-btn:hover,
.story-return-btn:focus-visible {
  background: var(--color-black);
  color: var(--color-white);
}
