/* Jean's Chapel story page: scoped so other project pages retain their layout. */
.jean-chapel-page {
  background: #f7fafb;
  color: #24323a;
}

.jean-chapel-page .chapel-hero {
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  padding-top: 9rem;
  padding-bottom: 5.5rem;
  margin-bottom: 0;
}

.jean-chapel-page .chapel-hero:before {
  opacity: .68;
  background: linear-gradient(120deg, rgba(0, 63, 77, .88), rgba(0, 133, 161, .42));
}

.jean-chapel-page .post-heading { max-width: 720px; }
.story-kicker, .eyebrow {
  display: inline-block;
  color: #fff;
  font: 700 .72rem/1 "Open Sans", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.story-kicker { margin-bottom: 1.1rem; }
.jean-chapel-page .post-heading h1 { letter-spacing: -.045em; margin-bottom: .65rem; }
.jean-chapel-page .post-heading .subheading { margin: 0; max-width: 580px; font-weight: 400; }
.story-hero-line { color: #fff; font: 600 .9rem/1.4 "Open Sans", sans-serif; margin-top: 2rem; }
.story-hero-line i { margin-right: .5rem; color: #85a7c1; }

.chapel-story { padding: 0 0 2.5rem; }
.chapel-story .col-md-10 { background: #fff; margin-top: -2.75rem; padding: 3.2rem clamp(1.4rem, 5vw, 4rem) 1rem; box-shadow: 0 18px 45px rgba(0, 70, 85, .09); border-radius: 18px; z-index: 1; }
.chapel-story p { font-size: 1.08rem; line-height: 1.85; margin: 1.65rem 0; }
.story-intro { align-items: flex-start; border-bottom: 1px solid rgba(0, 133, 161, .15); display: flex; gap: 1rem; padding-bottom: 1.9rem; }
.story-intro p { margin: 0; }
.story-intro .eyebrow { color: #0085A1; margin-bottom: .4rem; }
.intro-icon { align-items: center; background: rgba(0, 133, 161, .1); border-radius: 50%; color: #0085A1; display: inline-flex; flex: 0 0 43px; height: 43px; justify-content: center; }
.story-jump-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.65rem 0 .5rem; }
.story-jump-nav a { background: rgba(0, 133, 161, .08); border-radius: 99px; color: #0085A1; font: 700 .72rem/1 "Open Sans", sans-serif; letter-spacing: .02em; padding: .7rem .85rem; transition: background .2s ease, color .2s ease; }
.story-jump-nav a:hover { background: #0085A1; color: #fff; }
.story-anchor { display: block; height: 1px; scroll-margin-top: 6rem; }
.chapel-story .section-heading { color: #0085A1; font-size: clamp(1.7rem, 3.5vw, 2.3rem); letter-spacing: -.035em; line-height: 1.15; margin: 4rem 0 1.1rem; padding-top: .3rem; scroll-margin-top: 6rem; }
.chapel-story .section-heading:after { background: #85a7c1; content: ""; display: block; height: 3px; margin-top: 1rem; width: 3.2rem; }

.story-gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); margin: 2rem 0 2.5rem; text-align: left !important; }
.story-gallery .story-photo { margin: 0; min-width: 0; }
.story-gallery img { border-radius: 10px; box-shadow: 0 8px 22px rgba(0, 56, 68, .12); display: block; height: 100%; object-fit: cover; transition: transform .25s ease, box-shadow .25s ease; width: 100%; }
.story-gallery .story-photo:hover img { box-shadow: 0 14px 30px rgba(0, 56, 68, .18); transform: translateY(-3px); }
.story-gallery .caption { color: #5d6b72; font: italic .8rem/1.45 Lora, serif; padding: .65rem .25rem 0; text-align: left; }
.chapel-story > .container img.img-fluid:not(.story-gallery img) { border-radius: 10px; }
.chapel-story .btn-outline-dark { border-color: #0085A1; border-radius: 99px; color: #0085A1; font: 700 .8rem "Open Sans", sans-serif; margin-top: 1rem; padding: .75rem 1.15rem; }
.chapel-story .btn-outline-dark:hover { background: #0085A1; border-color: #0085A1; color: #fff; }

.story-closing { padding: 0 1rem 2.5rem; }
.story-back-link a { color: #0085A1; font: 700 .85rem "Open Sans", sans-serif; }
.story-back-link i { margin-right: .35rem; }
.story-closing .container { background: linear-gradient(135deg, rgba(0, 133, 161, .12), rgba(133, 167, 193, .25)); border-radius: 16px; max-width: 720px; }
.story-closing .dbox-donation-button { border-radius: 99px !important; box-shadow: 0 6px 18px rgba(0, 93, 113, .25) !important; font-family: "Open Sans", sans-serif !important; font-weight: 700; }
.story-footer { border-top: 3px solid #0085A1; }

@media (max-width: 767.98px) {
  .jean-chapel-page .chapel-hero { min-height: 470px; padding-bottom: 3.5rem; }
  .chapel-story .col-md-10 { border-radius: 14px; margin-top: -1.5rem; padding-top: 2.2rem; }
  .chapel-story p { font-size: 1rem; line-height: 1.75; }
  .story-gallery { grid-template-columns: 1fr 1fr; gap: .7rem; }
}

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