/* Curated journal additions for the Thailand exchange story. */
body[data-story="thailand"] .thailand-notebook{padding:clamp(24px,4vw,38px);background:var(--deep-teal);color:var(--ivory);margin-bottom:40px;scroll-margin-top:105px}
body[data-story="thailand"] .thailand-notebook>.eyebrow{color:var(--gold)}
.thailand-notebook h3{font:500 clamp(1.8rem,3vw,2.6rem)/1.15 var(--serif);letter-spacing:-.03em;margin:14px 0 20px}
.thailand-notebook>p{max-width:62ch;color:#e0e9e3;font-size:.92rem;line-height:1.85}
.notebook-stops{list-style:none;counter-reset:stops;display:grid;grid-template-columns:1fr 1fr;gap:0 28px;padding:0;margin:28px 0 0}
.notebook-stops li{counter-increment:stops;border-top:1px solid #789792;min-width:0}
.notebook-stops a{position:relative;display:block;padding:20px 0 22px 32px;min-height:100%;text-decoration:none}
.notebook-stops a::before{content:counter(stops,decimal-leading-zero);position:absolute;left:0;top:22px;color:var(--gold);font-size:.7rem}
.notebook-stops a:hover strong{text-decoration:underline;text-underline-offset:5px}
.notebook-date{display:block;color:var(--gold);font-size:.62rem;text-transform:uppercase;letter-spacing:.1em}
.notebook-stops strong{display:block;font:500 1.2rem/1.4 var(--serif);margin:6px 0 8px}
.notebook-stops a>span:last-child{display:block;font-size:.8rem;line-height:1.7;color:#e0e9e3}
body[data-story="thailand"] .story-gallery{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:22px}
body[data-story="thailand"] .story-gallery .journal-wide{grid-column:1/-1;aspect-ratio:16/9}
body[data-story="thailand"] .story-gallery .journal-wide img{aspect-ratio:16/9}
body[data-story="thailand"] .story-gallery figcaption{line-height:1.6;letter-spacing:.05em}
.journal-memory{padding-top:12px}.journal-farewell{padding-top:60px;scroll-margin-top:105px}
@media(max-width:620px){.notebook-stops{grid-template-columns:1fr}.notebook-stops a{padding-top:18px;padding-bottom:18px}.notebook-stops a::before{top:20px}body[data-story="thailand"] .story-gallery{gap:16px}body[data-story="thailand"] .story-gallery figure{grid-column:1/-1}body[data-story="thailand"] .story-gallery .portrait{aspect-ratio:4/5}body[data-story="thailand"] .story-gallery .portrait img{aspect-ratio:4/5;object-position:center}body[data-story="thailand"] .story-gallery figcaption{font-size:.66rem}}
@media print{body[data-story="thailand"] .thailand-notebook{background:white;color:#0c1b25;border:1px solid #526168}.thailand-notebook>p,.notebook-stops a>span:last-child,body[data-story="thailand"] .thailand-notebook>.eyebrow,.notebook-date,.notebook-stops a::before{color:#133c43}}


/* Controls sit over the image stage, leaving only the caption below it. */
body[data-story="thailand"] .story-gallery.slideshow-ready{--slide-height:clamp(280px,38vw,440px);position:relative;display:block;background:var(--navy);border:1px solid #b7c4bc}
body[data-story="thailand"] .slideshow-ready>figure{position:relative;aspect-ratio:auto!important;min-height:0;margin:0;box-shadow:none;background:var(--navy)}
body[data-story="thailand"] .slideshow-ready>figure[hidden]{display:none!important}
body[data-story="thailand"] .slideshow-ready .photo-open{position:relative;display:block;inset:auto;width:100%;height:var(--slide-height);touch-action:pan-y}
body[data-story="thailand"] .slideshow-ready .photo-open img{position:static;display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:contain;transform:none}
body[data-story="thailand"] .slideshow-ready figcaption{position:static;min-height:38px;margin:0;padding:10px 14px;background:var(--sand);color:var(--navy);font-size:.7rem;text-transform:none;letter-spacing:.02em;line-height:1.6}
.slideshow-controls{position:absolute;z-index:2;inset:0 0 auto;height:var(--slide-height);pointer-events:none}
.slideshow-controls button{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:46px;height:46px;padding:0;border:1px solid #ffffff99;border-radius:50%;background:#0c1b25e8;color:var(--ivory);font:500 1.4rem/1 var(--sans);cursor:pointer;pointer-events:auto}
.slideshow-controls button:first-child{left:12px}.slideshow-controls button:last-child{right:12px}
.slideshow-controls button:hover{background:var(--deep-teal)}
.slideshow-controls button:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.slideshow-counter{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);padding:6px 12px;border-radius:20px;background:#0c1b25e8;color:var(--ivory);font:600 .72rem/1.5 var(--sans);white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:620px){body[data-story="thailand"] .story-gallery.slideshow-ready{--slide-height:clamp(240px,78vw,340px)}body[data-story="thailand"] .slideshow-ready figcaption{min-height:42px;padding:10px 12px}.slideshow-controls button:first-child{left:8px}.slideshow-controls button:last-child{right:8px}.slideshow-counter{bottom:10px;font-size:.7rem}}
@media print{body[data-story="thailand"] .story-gallery.slideshow-ready{display:grid;background:transparent}body[data-story="thailand"] .slideshow-ready>figure[hidden]{display:block!important}body[data-story="thailand"] .slideshow-ready .photo-open{height:260px}.slideshow-controls,.slideshow-hint{display:none}}
