/* The wedding stories share paper, heading styles and gutters with editorial.css. */
.wedding-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(70px, 10vw, 120px);
}
.wedding-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
.wedding-story.klang { padding-top: 0; }
.wedding-story .wedding-media { display: contents; }
.wedding-story .story-caption { padding-top: 0; }
.story-caption h3 {
  margin: 0;
  font: 300 clamp(26px, 3.4vw, 40px)/1.2 var(--serif);
  letter-spacing: .1em;
  color: #6e2639;
}
.story-caption p {
  max-width: 34em;
  margin-top: 12px;
  font: 400 14px/1.85 var(--body);
  color: #2c2a28;
}
.wedding-story .film, .wedding-story .wedding-still, .timeline-film .film {
  border-radius: 0;
  outline: 1px solid #b08d5773;
  outline-offset: -1px;
}
.ipoh .film { aspect-ratio: 16 / 9; }
.klang .wedding-still {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.klang .film {
  position: relative;
  width: 62%;
  aspect-ratio: 3 / 4;
  justify-self: end;
  margin-top: -18%;
}
@media (min-width: 860px) {
  .wedding-story {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 24px;
  }
  .ipoh .film { grid-column: 1 / 8; }
  .ipoh .story-caption { grid-column: 8 / 13; }
  .klang .wedding-still { grid-column: 6 / 13; grid-row: 1 / 3; }
  .klang .film {
    grid-column: 2 / 6;
    grid-row: 1;
    width: 100%;
    margin-top: 0;
  }
  .klang .story-caption { grid-column: 1 / 6; grid-row: 2; align-self: start; }
}

.behind {
  background: #f4efe6;
  color: #2c2a28;
  --timeline-gold: #87683f;
}
.behind .section-heading { margin-bottom: 16px; }
.behind .timeline-intro {
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
  color: #685c52;
  font: 400 14px/1.85 var(--body);
}
.timeline-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-items: start;
  gap: clamp(40px, 6vw, 88px);
}
.timeline-film {
  width: 100%;
  max-width: 440px;
  position: static;
  justify-self: start;
  margin: 0;
}
.timeline-list {
  width: 100%;
  padding: 0;
}
.timeline-list::before,
.timeline-list::after { left: 7px; top: 15px; }
.timeline-list::before { background: #b8a693; bottom: 10px; }
.timeline-list::after {
  background: var(--timeline-gold);
  height: var(--progress, 0px);
  transition: height .5s ease;
}
.timeline-list li {
  display: grid;
  align-content: start;
  justify-content: start;
  gap: 4px;
  min-height: 0;
  border: 0;
  padding: 0 0 38px 44px;
}
.timeline-list li::before {
  left: 0;
  top: 8px;
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  background: #f4efe6;
  border: 1px solid var(--timeline-gold);
  transition: background .4s, border-color .4s;
}
.timeline-list li.is-active::before {
  transform: none;
  background: #6e2639;
  border-color: #6e2639;
}
.step-time {
  font: 400 clamp(26px,2.3vw,34px)/1.2 var(--serif);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  color: #795f3f;
}
.timeline-list .is-active .step-time { color: #6e2639; }
.step-description { margin: 0; color: #2c2a28; font: 400 14px/1.85 var(--body); }
@media (min-width: 900px) {
  .timeline-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
  .timeline-film {
    position: sticky;
    top: max(100px, calc(var(--nav) + 12px));
  }
}

.quote { background: #f6e7e4; text-align: start; }
.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  justify-items: start;
}
.quote-layout .section-heading,
.quote-layout > p { margin: 0; }
.quote-layout .section-heading::after { max-width: 180px; margin-inline: 0; }
.quote-layout > p { font: 400 14px/1.85 var(--body); color: #2c2a28; }
@media (min-width: 900px) {
  .quote-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(40px, 6vw, 80px);
    align-items: start;
  }
  .quote-layout > p {
    grid-column: 2;
    grid-row: 1 / 3;
    padding-block: 20px;
    border-block: 1px solid #b8a693;
  }
  .quote-link { grid-column: 1; grid-row: 2; }
}

.floating-wa {
  gap: 10px;
  padding: 12px 18px;
  min-height: 46px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  border: 1px solid #87683f;
  border-radius: 0;
  color: #6e2639;
  background: #faf7f2;
  box-shadow: 0 4px 18px #2a121824;
  font: 500 11px/1.5 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .35s, opacity .35s, color .3s, background-color .3s;
}
.floating-wa:is(:hover,:focus-visible) {
  background: #6e2639;
  color: #faf7f2;
}
.floating-wa span {
  width: 7px;
  height: 7px;
  font-size: 0;
  border-radius: 50%;
  background: currentColor;
}
.floating-wa.is-away { transform: translateY(140%); }

@media (prefers-reduced-motion: no-preference) {
  .made-rise { transition: translate .7s cubic-bezier(.25,.1,.25,1), opacity .7s; }
  .made-rise.is-prepared { translate: 0 24px; opacity: 0; }
  .made-rise:focus-within { translate: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-list::after, .timeline-list li::before, .floating-wa { transition: none; }
}
