/* Shared editorial styling for Seaham's Stories */

.story-page {
  background: var(--cream);
}

.story-page .site-header {
  background: var(--cream);
}

.story-hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--deep);
  color: white;
}

.story-hero-copy {
  width: min(590px, calc(100% - 80px));
  margin: auto;
  padding: 120px 0 100px;
}

.story-back {
  display: inline-block;
  margin-bottom: 85px;
  color: #b8c8cc;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-hero h1 {
  max-width: 650px;
  margin: 16px 0 32px;
  font-family: var(--font-display), serif;
  font-size: clamp(78px, 8vw, 126px);
  font-weight: 400;
  line-height: 0.82;
}

.story-standfirst {
  max-width: 510px;
  color: #d1dcde;
  font-size: 18px;
  line-height: 1.8;
}

.story-hero-image {
  position: relative;
  min-height: 720px;
  overflow: hidden;
}

.story-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 24, 46, 0.35), transparent 45%);
}

.story-hero-image img {
  object-fit: cover;
}

.story-introduction {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 90px;
  padding-top: 140px;
  padding-bottom: 140px;
}

.story-introduction .eyebrow {
  padding-top: 10px;
}

.story-introduction > p:not(.eyebrow) {
  grid-column: 2;
  max-width: 720px;
  margin: 0;
  color: #64717a;
  font-size: 17px;
  line-height: 1.9;
}

.story-introduction .story-lead {
  color: var(--navy) !important;
  font-family: var(--font-display), serif;
  font-size: clamp(34px, 3.4vw, 51px) !important;
  line-height: 1.12 !important;
  margin-bottom: 34px !important;
}

.story-band {
  background: var(--deep);
  color: white;
}

.story-band-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  padding-top: 130px;
  padding-bottom: 130px;
}

.story-band h2,
.story-colours h2,
.story-tips h2 {
  margin: 14px 0 0;
  font-family: var(--font-display), serif;
  font-size: clamp(49px, 5.2vw, 76px);
  font-weight: 400;
  line-height: 0.98;
}

.story-prose p,
.story-colours-copy > p:not(.eyebrow) {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.9;
}

.light-copy {
  color: #c7d3d5;
}

.story-colours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  padding-top: 145px;
  padding-bottom: 145px;
}

.story-image-panel {
  height: 650px;
  position: relative;
}

.story-image-panel img {
  object-fit: cover;
}

.story-colours-copy h2 {
  color: var(--navy);
  margin-bottom: 36px;
}

.story-colours-copy > p:not(.eyebrow) {
  max-width: 510px;
  color: #64717a;
}

.story-tips {
  padding: 130px 0;
  background: #edf3f1;
}

.story-tips-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: end;
}

.story-tips-heading h2 {
  color: var(--navy);
}

.story-tips-heading > p {
  max-width: 470px;
  margin: 0 0 6px;
  color: #64717a;
  font-size: 16px;
  line-height: 1.8;
}

.story-tip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 75px;
  border-top: 1px solid #c9d2cf;
  border-bottom: 1px solid #c9d2cf;
}

.story-tip-grid article {
  min-height: 270px;
  padding: 30px 27px;
  border-right: 1px solid #c9d2cf;
}

.story-tip-grid article:first-child {
  padding-left: 0;
}

.story-tip-grid article:last-child {
  padding-right: 0;
  border-right: 0;
}

.story-tip-grid span {
  color: #78908c;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.story-tip-grid h3 {
  margin: 35px 0 15px;
  color: var(--navy);
  font-family: var(--font-display), serif;
  font-size: 25px;
  font-weight: 400;
}

.story-tip-grid p {
  margin: 0;
  color: #65747a;
  font-size: 14px;
  line-height: 1.8;
}

.story-closing {
  max-width: 880px;
  padding-top: 140px;
  padding-bottom: 140px;
  text-align: center;
}

.story-closing blockquote {
  margin: 28px auto 38px;
  color: var(--navy);
  font-family: var(--font-display), serif;
  font-size: clamp(42px, 4.8vw, 66px);
  line-height: 1.08;
}

.story-closing > p:not(.eyebrow):not(.story-source) {
  max-width: 680px;
  margin: 0 auto;
  color: #64717a;
  font-size: 16px;
  line-height: 1.9;
}

.story-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  margin-top: 45px;
}

.text-link {
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-source {
  margin-top: 65px !important;
  color: #8b9599;
  font-size: 11px;
  line-height: 1.7;
}

/* Tommy story */

.tommy-page .story-hero-image img {
  object-position: center;
}

.story-wide-image {
  height: min(760px, 64vw);
  min-height: 520px;
  position: relative;
  overflow: hidden;
}

.story-wide-image img {
  object-fit: cover;
}

.story-wide-image figcaption {
  position: absolute;
  right: 26px;
  bottom: 22px;
  padding: 9px 12px;
  background: rgba(5, 24, 46, 0.78);
  color: white;
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.story-fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 70px;
  border-top: 1px solid #c9d2cf;
  border-bottom: 1px solid #c9d2cf;
}

.story-fact-grid article {
  padding: 34px 30px;
  border-right: 1px solid #c9d2cf;
}

.story-fact-grid article:first-child {
  padding-left: 0;
}

.story-fact-grid article:last-child {
  padding-right: 0;
  border-right: 0;
}

.story-fact-grid strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-display), serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 400;
  line-height: 1;
}

.story-fact-grid span {
  display: block;
  margin-top: 12px;
  color: #78898e;
  font-size: 9px;
  letter-spacing: 0.13em;
  line-height: 1.6;
  text-transform: uppercase;
}

.story-quote-band {
  padding: 130px 0;
  background: #edf3f1;
  text-align: center;
}

.story-quote-band blockquote {
  max-width: 930px;
  margin: 20px auto 0;
  color: var(--navy);
  font-family: var(--font-display), serif;
  font-size: clamp(46px, 5.5vw, 78px);
  line-height: 1.06;
}

.story-quote-band cite {
  display: block;
  margin-top: 30px;
  color: #718089;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 14px;
  padding-top: 14px;
  padding-bottom: 14px;
  background: var(--deep);
}

.story-gallery figure {
  height: 570px;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.story-gallery img {
  object-fit: cover;
  transition: transform 0.5s ease;
}

.story-gallery figure:hover img {
  transform: scale(1.025);
}

@media (max-width: 900px) {
  .story-fact-grid {
    grid-template-columns: 1fr;
  }

  .story-fact-grid article,
  .story-fact-grid article:first-child,
  .story-fact-grid article:last-child {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid #c9d2cf;
  }

  .story-fact-grid article:last-child {
    border-bottom: 0;
  }

  .story-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .story-gallery figure:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .story-wide-image {
    height: 520px;
    min-height: 0;
  }

  .story-quote-band {
    padding: 95px 0;
  }

  .story-gallery {
    grid-template-columns: 1fr;
  }

  .story-gallery figure,
  .story-gallery figure:first-child {
    height: 470px;
    grid-column: auto;
  }
}

/* George Elmy story */

.elmy-page .story-hero-image img {
  object-position: center;
  filter: grayscale(1);
}

.story-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.story-timeline article {
  padding: 30px 25px;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.story-timeline article:first-child {
  padding-left: 0;
}

.story-timeline article:last-child {
  padding-right: 0;
  border-right: 0;
}

.story-timeline strong {
  display: block;
  color: white;
  font-family: var(--font-display), serif;
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 400;
  line-height: 1;
}

.story-timeline span {
  display: block;
  margin-top: 12px;
  color: #aebfc3;
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.memorial-section {
  padding: 130px 0;
  background: #edf3f1;
}

.memorial-heading {
  max-width: 820px;
}

.memorial-heading h2,
.museum-copy h2 {
  margin: 14px 0 30px;
  color: var(--navy);
  font-family: var(--font-display), serif;
  font-size: clamp(50px, 5.4vw, 78px);
  font-weight: 400;
  line-height: 0.98;
}

.memorial-heading > p:not(.eyebrow),
.museum-copy > p:not(.eyebrow) {
  max-width: 720px;
  color: #64717a;
  font-size: 16px;
  line-height: 1.85;
}

.memorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 70px;
}

.memorial-list {
  border-top: 1px solid #c9d2cf;
}

.memorial-list h3 {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid #c9d2cf;
  color: #78908c;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.memorial-list p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 15px 0;
  border-bottom: 1px solid #c9d2cf;
  color: var(--navy);
  font-family: var(--font-display), serif;
  font-size: 20px;
}

.memorial-list small {
  align-self: center;
  color: #879398;
  font-family: var(--font-body), sans-serif;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.survivor-note {
  margin-top: 50px;
  padding: 30px;
  border-left: 3px solid var(--navy);
  background: var(--cream);
}

.survivor-note strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-family: var(--font-display), serif;
  font-size: 26px;
  font-weight: 400;
}

.survivor-note p {
  margin: 0;
  color: #64717a;
  font-size: 14px;
  line-height: 1.8;
}

.restoration-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  padding-top: 145px;
  padding-bottom: 145px;
}

.restoration-image {
  height: 580px;
  position: relative;
  overflow: hidden;
}

.restoration-image img {
  object-fit: cover;
}

.restoration-copy h2 {
  margin: 14px 0 34px;
  color: var(--navy);
  font-family: var(--font-display), serif;
  font-size: clamp(50px, 5.3vw, 76px);
  font-weight: 400;
  line-height: 0.98;
}

.restoration-copy > p:not(.eyebrow) {
  color: #64717a;
  font-size: 16px;
  line-height: 1.85;
}

.museum-section {
  padding: 130px 0;
  background: var(--deep);
  color: white;
}

.museum-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 85px;
  align-items: start;
}

.museum-copy h2 {
  color: white;
}

.museum-copy > p:not(.eyebrow) {
  color: #c2d0d3;
}

.museum-gallery {
  display: grid;
  gap: 14px;
}

.museum-gallery figure {
  height: 340px;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.museum-gallery img {
  object-fit: cover;
}

.museum-visit {
  margin-top: 55px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.museum-visit h3 {
  margin: 0 0 20px;
  font-family: var(--font-display), serif;
  font-size: 27px;
  font-weight: 400;
}

.museum-visit dl {
  margin: 0;
}

.museum-visit div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 18px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.museum-visit dt {
  color: #8fa5aa;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.museum-visit dd {
  margin: 0;
  color: #dbe4e5;
  font-size: 13px;
  line-height: 1.6;
}

.museum-visit .text-link {
  display: inline-block;
  margin-top: 25px;
  color: white;
}

.museum-caution {
  margin-top: 20px;
  color: #91a5aa;
  font-size: 10px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .story-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .story-timeline article:nth-child(2) {
    border-right: 0;
  }

  .story-timeline article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  }

  .memorial-grid,
  .restoration-section,
  .museum-layout {
    grid-template-columns: 1fr;
  }

  .restoration-section,
  .museum-layout {
    gap: 50px;
  }
}

@media (max-width: 640px) {
  .story-timeline {
    grid-template-columns: 1fr;
  }

  .story-timeline article,
  .story-timeline article:first-child,
  .story-timeline article:last-child {
    padding: 23px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  }

  .story-timeline article:last-child {
    border-bottom: 0;
  }

  .memorial-section,
  .museum-section {
    padding: 95px 0;
  }

  .memorial-grid {
    gap: 35px;
  }

  .memorial-list p {
    font-size: 18px;
  }

  .restoration-section {
    padding-top: 95px;
    padding-bottom: 95px;
  }

  .restoration-image {
    height: 430px;
  }

  .museum-gallery figure {
    height: 270px;
  }
}

.story-source a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .story-hero,
  .story-introduction,
  .story-band-inner,
  .story-colours,
  .story-tips-heading {
    grid-template-columns: 1fr;
  }

  .story-hero-copy {
    width: calc(100% - 48px);
    padding: 90px 0 80px;
  }

  .story-back {
    margin-bottom: 55px;
  }

  .story-hero-image {
    min-height: 600px;
  }

  .story-introduction,
  .story-band-inner,
  .story-colours {
    gap: 42px;
  }

  .story-introduction > p:not(.eyebrow) {
    grid-column: auto;
  }

  .story-tip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-tip-grid article:nth-child(2) {
    border-right: 0;
  }

  .story-tip-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid #c9d2cf;
  }
}

@media (max-width: 640px) {
  .story-hero {
    min-height: 0;
  }

  .story-hero-copy {
    padding: 75px 0 65px;
  }

  .story-hero h1 {
    font-size: 72px;
  }

  .story-hero-image {
    min-height: 480px;
  }

  .story-introduction,
  .story-band-inner,
  .story-colours {
    padding-top: 95px;
    padding-bottom: 95px;
  }

  .story-image-panel {
    height: 430px;
  }

  .story-tips {
    padding: 95px 0;
  }

  .story-tip-grid {
    grid-template-columns: 1fr;
  }

  .story-tip-grid article,
  .story-tip-grid article:first-child,
  .story-tip-grid article:last-child {
    min-height: 0;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid #c9d2cf;
  }

  .story-tip-grid article:last-child {
    border-bottom: 0;
  }

  .story-tip-grid h3 {
    margin-top: 18px;
  }

  .story-closing {
    padding-top: 100px;
    padding-bottom: 100px;
  }
.story-actions {
  flex-direction: column;
}

}

/* George Elmy page */

.elmy-page .story-hero {
  grid-template-columns: 1.3fr 0.7fr;
}

.elmy-page .story-hero-copy {
  width: min(680px, calc(100% - 60px));
}

.elmy-page .story-hero h1 {
  line-height: 0.82;
}

.elmy-page .story-hero h1 span {
  display: inline-block;
  margin-top: 18px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .elmy-page .story-hero {
    grid-template-columns: 1fr;
  }

  .elmy-page .story-hero-copy {
    width: min(100% - 40px, 680px);
  }

  .elmy-page .story-hero h1 {
    font-size: 58px;
  }

  .elmy-page .story-hero h1 span {
    white-space: normal;
  }
}

/* Seaham coal-mining history page */

.mining-page .story-hero-image img {
  object-position: 46% center;
  filter: grayscale(1);
}

.mining-page .story-prose strong {
  color: white;
}

.mining-page .story-image-panel img {
  object-position: center;
}

.mining-page .pit-pond-section .story-image-panel img {
  object-fit: cover;
  image-rendering: auto;
}

.mining-page .mining-now-image img {
  object-position: center 48%;
}

.mining-page .story-gallery figure:nth-child(2) img,
.mining-page .story-gallery figure:nth-child(3) img {
  object-position: center;
}

@media (max-width: 900px) {
  .mining-page .pit-pond-section .story-colours-copy {
    order: 2;
  }

  .mining-page .pit-pond-section .story-image-panel {
    order: 1;
  }
}

/* Keep “3 months” on one line */

.tommy-page .story-fact-grid article:last-child strong {
  font-size: clamp(38px, 3.5vw, 54px);
  white-space: nowrap;
}