/* Romantic floral chapter backgrounds for ?chapter=0 through ?chapter=4 only */
body.chapter-scene-page{
  --scene-paper:#fff8fa;
  --scene-ink:#603646;
  --scene-soft:#896876;
  --scene-line:#efd9e2;
  --scene-card:#fffdfd;
  --scene-card-shadow:0 10px 28px rgba(110,65,82,.08);
  background:
    radial-gradient(circle at 12% 14%, rgba(255,236,242,.95) 0 12%, transparent 34%),
    radial-gradient(circle at 88% 84%, rgba(252,227,235,.95) 0 13%, transparent 32%),
    linear-gradient(180deg,var(--scene-wash-top,#fff9fb),var(--scene-wash-bottom,#fff4f7));
  min-height:100vh;
}
body.chapter-scene-page header{
  background:rgba(255,250,251,.92);
  border-color:var(--scene-line);
  backdrop-filter:blur(8px);
}
body.chapter-scene-page .brand{color:#744154}
body.chapter-scene-page .brand span{color:#d07f98}
body.chapter-scene-page .family-pages{
  position:relative;
  isolation:isolate;
  max-width:1340px;
  margin:0 auto 60px;
  padding-bottom:44px;
}
body.chapter-scene-page .family-pages::before,
body.chapter-scene-page .family-pages::after{
  content:"";
  position:absolute;
  pointer-events:none;
  z-index:-1;
  width:min(25vw,290px);
  height:min(46vw,510px);
  opacity:.78;
  background:var(--scene-art) center/contain no-repeat;
}
body.chapter-scene-page .family-pages::before{left:-36px;top:96px}
body.chapter-scene-page .family-pages::after{right:-32px;bottom:28px;transform:scaleX(-1)}
body.chapter-scene-page .timeline-heading{
  max-width:1180px;
  margin:18px auto 0;
  padding:44px 6% 18px;
  text-align:center;
}
body.chapter-scene-page .timeline-heading .eyebrow{
  color:#af7085;
  letter-spacing:2.8px;
}
body.chapter-scene-page .timeline-heading h1{
  margin:16px 0 0;
  color:var(--scene-ink);
  font-size:clamp(38px,4.6vw,62px);
}
body.chapter-scene-page .back-link{
  display:inline-block;
  margin:12px auto 0;
  color:#aa6f83;
  text-decoration:none;
}
body.chapter-scene-page .back-link:hover{text-decoration:underline}
body.chapter-scene-page .chapters{
  max-width:1180px;
  margin:0 auto 26px;
  padding:18px 6%;
  border:1px solid var(--scene-line);
  border-radius:18px;
  background:rgba(255,252,252,.75);
  box-shadow:var(--scene-card-shadow);
}
body.chapter-scene-page .chapters a{
  font-size:12px;
  color:#7f6070;
  text-decoration:none;
}
body.chapter-scene-page .chapters a[aria-current=page]{
  color:#c15f7d;
  font-weight:700;
  text-decoration:none;
  border-bottom:1px solid #d79aae;
}
body.chapter-scene-page .chapter-content{
  max-width:1180px;
  margin:0 auto;
  padding:24px 2.5% 34px;
  border:1px solid var(--scene-line);
  border-radius:28px;
  background:rgba(255,252,253,.82);
  box-shadow:var(--scene-card-shadow);
  backdrop-filter:blur(3px);
}
body.chapter-scene-page .chapter-content .pagination:first-child{margin-top:0}
body.chapter-scene-page .pagination .small{color:var(--scene-soft)}
body.chapter-scene-page .quiet,
body.chapter-scene-page .pagination .button{
  border-radius:999px;
  border-color:#e7cfd8;
}
body.chapter-scene-page .chapter-photos{
  gap:18px 16px;
}
body.chapter-scene-page .chapter-photo .photo-open img{
  background:#f6e8ed;
  border:1px solid #edd7df;
  border-radius:16px;
  box-shadow:0 8px 20px rgba(110,65,82,.06);
}
body.chapter-scene-page .thumb-caption{
  color:#603646;
  font-weight:600;
}
body.chapter-scene-page .chapter-photo .small{color:#8f6f7b}
body.chapter-scene-page footer{
  background:#fff8fa;
  border-color:var(--scene-line);
  color:#9e7784;
}
body.chapter-scene-page dialog{
  background:#1b1518;
}

body.chapter-scene-0{
  --scene-wash-top:#fff9fb;
  --scene-wash-bottom:#fff3f7;
  --scene-art:url('chapter-scene-0.svg');
}
body.chapter-scene-1{
  --scene-wash-top:#fff8fb;
  --scene-wash-bottom:#fff1f4;
  --scene-art:url('chapter-scene-1.svg');
}
body.chapter-scene-2{
  --scene-wash-top:#fffafc;
  --scene-wash-bottom:#fff2f6;
  --scene-art:url('chapter-scene-2.svg');
}
body.chapter-scene-3{
  --scene-wash-top:#fff8fa;
  --scene-wash-bottom:#fff0f5;
  --scene-art:url('chapter-scene-3.svg');
}
body.chapter-scene-4{
  --scene-wash-top:#fff9fc;
  --scene-wash-bottom:#fff2f7;
  --scene-art:url('chapter-scene-4.svg');
}

@media(max-width:900px){
  body.chapter-scene-page .family-pages::before,
  body.chapter-scene-page .family-pages::after{opacity:.38;width:190px;height:320px}
  body.chapter-scene-page .chapter-content{padding:18px 3.25% 28px}
}
@media(max-width:520px){
  body.chapter-scene-page .timeline-heading{padding-top:28px}
  body.chapter-scene-page .timeline-heading h1{font-size:36px}
  body.chapter-scene-page .family-pages::before,
  body.chapter-scene-page .family-pages::after{display:none}
  body.chapter-scene-page .chapter-content{border-radius:18px;padding:14px 4% 22px}
  body.chapter-scene-page .chapters{border-radius:12px}
}


/* Main chapter-selection screen (?gallery=1) only — soft blush with floral borders. */
body.gallery-floral-page{
 --paper:#fff6f9;--ink:#693e50;--soft:#936f80;--line:#efd8e1;--green:#b76f8a;
 background:radial-gradient(ellipse at 10% 16%,#ffe7f0 0,transparent 38%),
            radial-gradient(ellipse at 92% 78%,#fbe2eb 0,transparent 40%),
            linear-gradient(180deg,#fffafb,#fff1f6);
 min-height:100vh;
}
body.gallery-floral-page header{background:rgba(255,250,252,.94);border-bottom-color:#edd5df}
body.gallery-floral-page .brand{color:#774356}
body.gallery-floral-page .brand span{color:#ce819d}
body.gallery-floral-page .family-pages{
 position:relative; isolation:isolate; max-width:1320px; min-height:650px;
 margin:0 auto 40px; padding:12px 0 60px;
}
body.gallery-floral-page .family-pages::before,
body.gallery-floral-page .family-pages::after{
 content:"";position:absolute;z-index:-1;pointer-events:none;
 width:min(29vw,350px);height:540px;opacity:.60;
 background-position:center;background-repeat:no-repeat;background-size:contain;
}
body.gallery-floral-page .family-pages::before{
 left:-35px;top:95px;background-image:url('chapter-scene-0.svg');
}
body.gallery-floral-page .family-pages::after{
 right:-35px;bottom:10px;background-image:url('chapter-scene-3.svg');transform:scaleX(-1);
}
body.gallery-floral-page .chapter-introduction{
 border:0;max-width:850px;margin:12px auto 24px;padding:34px 5% 8px;
 text-align:center;
}
body.gallery-floral-page .chapter-introduction::after{
 content:'♡';display:block;color:#ce88a0;font:30px Georgia,serif;margin-top:13px;
}
body.gallery-floral-page .chapter-introduction .eyebrow{color:#a56b7e;letter-spacing:2.5px}
body.gallery-floral-page .chapter-introduction h2{
 color:#653548;font:normal clamp(33px,4vw,51px)/1.2 Georgia,serif;margin:12px 0;
}
body.gallery-floral-page .chapter-introduction p{color:#9a7182}
body.gallery-floral-page .chapter-overview{position:relative;z-index:1}
body.gallery-floral-page .chapter-cover{
 border-color:#eddae2;background:#fff9fb;
 box-shadow:0 9px 24px rgba(112,59,81,.10);
}
body.gallery-floral-page .chapter-cover-text{
 background:linear-gradient(180deg,#fffdfd,#fff0f5);
}
body.gallery-floral-page .chapter-cover h2{color:#68394c}
body.gallery-floral-page .chapter-cover .eyebrow{color:#b36e85}
body.gallery-floral-page footer{background:#fff8fa;border-color:#efdbe3;color:#9f7785}
@media(max-width:900px){
 body.gallery-floral-page .family-pages::before,
 body.gallery-floral-page .family-pages::after{opacity:.28;width:200px;height:340px}
}
@media(max-width:560px){
 body.gallery-floral-page .family-pages::before,
 body.gallery-floral-page .family-pages::after{width:120px;height:220px;opacity:.2}
}
