.upperchurch-stories {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto clamp(3.5rem, 9vw, 7rem);
  border-top: 1px solid #c8ad86;
  padding-top: clamp(1.6rem, 4vw, 3.2rem);
}
.story-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  margin-bottom: 1.25rem;
}
.story-heading p { color: var(--muted); max-width: 26rem }
.story-track {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: .65rem;
  background: var(--mahogany);
  color: #fff5e4;
  box-shadow: 0 12px 28px #38201133;
}
.story-track::-webkit-scrollbar { display: none }
.story-card {
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  outline: 1px solid #c99b5b66;
  outline-offset: -.5rem;
  padding: clamp(1.35rem, 4vw, 3rem);
  display: grid;
  align-content: center;
  align-items: center;
  min-height: 17.5rem;
  min-width: 0;
  gap: 1.15rem;
}
.story-card .eyebrow { color: #edc88f; margin-bottom: .65rem }
.story-card h3 {
  color: #fff5e4;
  font-size: clamp(1.85rem, 4.3vw, 3.25rem);
  text-wrap: balance;
}
.story-text { margin-top: .8rem; max-width: 58ch; color: #f4e6d2 }
.story-sources { display: flex; flex-wrap: wrap; gap: .05rem 1.3rem; margin-top: .65rem }
.story-source {
  border: 0;
  padding: .25rem 0;
  min-height: 2.75rem;
  text-align: left;
  background: transparent;
  color: #f5d39f;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.story-source:hover { color: #fff5e4 }
.story-source:focus-visible { outline-color: #f5d39f }
.story-ranking {
  margin: 1rem 0 0;
  padding-inline-start: 1.5rem;
  max-width: 44rem;
  list-style: decimal outside;
}
.story-rank {
  padding: .5rem 0 0;
  border-top: 1px solid #d5a86a55;
}
.story-rank::marker { color: #edc88f; font-variant-numeric: tabular-nums }
.story-rank-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0 .75rem;
}
.story-rank-name { display: block; font-weight: 650; line-height: 1.25 }
.story-rank-value {
  color: #f5d39f;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.story-rank-sources { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 .75rem }
.story-rank-sources .story-source { font-size: .8rem; min-height: 2.25rem }
.story-photo { min-width: 0; background: #2b1712; border: 1px solid #bc905c; padding: .3rem; border-radius: .25rem }
.story-photo img { width: 100%; height: 9.5rem; object-fit: contain }
.story-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .9rem;
}
.story-navigation { display: flex; align-items: center; gap: .55rem }
.story-navigation button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  background: #fff4e3;
  border: 1px solid #b89a74;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
}
.story-navigation button:hover, .story-controls > button:hover { background: #ead6b7 }
.story-position { min-width: 4.5rem; text-align: center; font-size: .9rem; font-variant-numeric: tabular-nums }
.story-controls > button { border-color: #b89a74; background: #fff4e3; min-height: 2.75rem; padding: .45rem .75rem }
@media (min-width: 46rem) {
  .story-card:has(.story-photo) { grid-template-columns: minmax(0, 1fr) minmax(12rem, .48fr) }
  .story-photo img { height: 12rem }
}
