/* Revision 04: keep moving photographs clear of readable captions. */
.moments-bottom{isolation:isolate}
.moments-bottom .handwritten,.moments-bottom p{position:relative;z-index:1}
.label-last-year{top:4%}

@media(min-width:600px) and (max-width:1000px){
  #story .collage{height:calc(650px + 35vw)}
  #story .photo-a{top:100px}
  #story .photo-b{left:35%;top:calc(210px + 20vw);width:30%}
  #story .sticker-red{bottom:12px}
  #story .collage-caption{right:0;bottom:145px;width:30%;font-size:clamp(30px,4vw,42px)}
  #story .collage-caption span{white-space:nowrap}
  #moments{min-height:calc(1000px + 30vw)}
  #moments .moment-photo-a{top:30%;right:4%;width:30%}
  #moments .moment-photo-b{top:46%;left:auto;right:26%;width:32%}
  #moments .moments-bottom{position:absolute;left:4.2%;right:4.2%;bottom:50px;margin:0;display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:40px}
  #moments .moments-bottom .handwritten{font-size:21px;max-width:300px}
  #moments .moments-bottom p{font-size:14px;line-height:1.8;max-width:300px;margin:0;justify-self:end}
  .contour-scene .label-last-year{top:4%;left:5%}
}

@media(max-width:599px){
  #story .collage{height:calc(560px + 110vw)}
  #story .photo-b{left:4%;top:calc(220px + 65vw);width:48%}
  #story .sticker-red{bottom:12px}
  #story .collage-caption{right:0;bottom:170px;width:40%;font-size:clamp(29px,6vw,36px)}
  #story .collage-caption span{white-space:nowrap}
  #story .drawn-arrow{top:345px;right:20%}
  #moments{min-height:calc(840px + 65vw)}
  #moments .moment-photo-a{top:calc(245px + 26vw);right:-1%;width:46%}
  #moments .moment-photo-b{top:calc(345px + 25vw);left:0;right:auto;width:47%}
  #moments .moments-bottom{position:absolute;left:20px;right:20px;bottom:42px;margin:0;display:block}
  #moments .moments-bottom .handwritten{font-size:19px;max-width:285px;line-height:1.65}
  #moments .moments-bottom p{font-size:14px;line-height:1.8;margin:24px 0 0 16%;max-width:290px}
  .contour-scene h2{top:13%}
  .contour-scene .label-last-year{top:4%;left:5%}
}


/* Desktop: reserve a readable lower strip beyond the full photo travel. */
@media(min-width:1001px){
  .contour-scene .label-last-year{left:auto;right:4.2%}
  #moments{min-height:calc(800px + 42vw)}
  #moments .moment-photo{max-width:420px}
  #moments .moment-photo-b{top:40%}
  #moments .moments-bottom{position:absolute;left:4.2%;right:4.2%;bottom:60px;margin:0;display:flex;align-items:flex-end;justify-content:space-between;gap:40px}
}

/* Revision 05: two more real photographs beside the story's paper statements. */
#story .collage{--collage-height:760px;height:var(--collage-height)}
.story-extras{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:12%;max-width:1180px;margin:0 auto;padding:35px 4% 105px}
.story-extra{min-width:0;position:relative;will-change:transform}
.story-extra-rules{transform:rotate(-3deg)}
.story-extra-moments{padding-top:100px;transform:rotate(3deg)}
.story-extra figcaption{position:relative;min-height:130px;display:flex;align-items:center;margin-bottom:55px}
#story .story-extra .sticker-red{position:relative;display:inline-block;left:auto;right:auto;top:auto;bottom:auto;transform:rotate(-5deg);font-size:clamp(34px,4.1vw,62px);padding:18px 25px;line-height:1.02}
#story .story-extra .collage-caption{position:relative;display:inline-block;left:auto;right:auto;top:auto;bottom:auto;width:auto;font-size:clamp(32px,4.25vw,64px);line-height:1.12;transform:rotate(-2deg)}
.story-extra-photo{padding:9px;background:#fcfbf7;box-shadow:0 15px 35px #0002}
.story-extra-photo img{aspect-ratio:4/5;height:auto;object-fit:cover;object-position:center 72%}
.show-notes #story .collage{height:calc(var(--collage-height) + 120px)}
.show-notes #story .collage-note{left:5%;right:5%;bottom:10px;max-width:none}
@media(min-width:1600px){#story .collage{--collage-height:900px}}
@media(min-width:600px) and (max-width:1000px){
  #story .collage{--collage-height:calc(600px + 30vw)}
  .story-extras{gap:10%;padding:25px 2% 95px}
  .story-extra-moments{padding-top:85px}
  .story-extra figcaption{min-height:105px;margin-bottom:24px}
  #story .story-extra .sticker-red{font-size:clamp(32px,4.5vw,45px);padding:15px 20px}
  #story .story-extra .collage-caption{font-size:clamp(29px,4.1vw,42px)}
}
@media(max-width:599px){
  #story .collage{--collage-height:calc(300px + 140vw)}
  .story-extras{display:flex;flex-direction:column;gap:85px;padding:20px 0 80px}
  .story-extra{width:78%;align-self:flex-start}
  .story-extra-moments{align-self:flex-end;padding-top:0}
  .story-extra figcaption{min-height:0;margin-bottom:28px}
  #story .story-extra .sticker-red{font-size:36px;padding:15px 23px}
  #story .story-extra .collage-caption{font-size:36px}
  .story-extra-photo{padding:7px}
}

/* The complete paper edges and captions stay inside a narrow phone screen. */
@media(max-width:599px){
  #story .photo-a{left:7%;width:44%}
  #story .photo-c{right:5%;width:42%}
  #story .photo-b{left:6%;width:48%}
  #story .collage-photo figcaption{font-size:11px;line-height:1.4;overflow-wrap:normal}
}

/* Two larger photographs, with space reserved for the lower captions. */
@media(min-width:1001px){
 #moments .moment-photo{max-width:470px}
 #moments .moment-photo-a{width:29%;right:6%}
 #moments .moment-photo-b{width:30%;right:24%;top:38%}
}
@media(min-width:600px) and (max-width:1000px){
 #moments .moment-photo-a{width:35%;right:3%}
 #moments .moment-photo-b{width:36%;right:25%;top:41%}
}
@media(max-width:599px){
 #moments .moment-photo-a{width:51%;right:1%}
 #moments .moment-photo-b{width:52%;left:1%;right:auto}
}
