/* ─────────────────────────────────────────────
   Travel Train — engraved blue on cream
   ───────────────────────────────────────────── */
:root {
  --ground: #F2EAD8;   /* page */
  --paper:  #F7F1E4;   /* panels */
  --ph:     #EDE3CC;   /* photo placeholder */
  --ink:    #1D3A9C;   /* engraving blue — accent */
  --navy:   #14204F;   /* headings */
  --text:   #4A5368;   /* body */
  --muted:  #5E5848;   /* labels */
  --line:   #D9CCB0;
  --rule:   #C9B98F;
  --skip:   #9A3412;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--navy); }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
h3, .h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
code { font-size: .9em; background: var(--paper); padding: 1px 6px; border-radius: 4px; }
.small { font-size: 15px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 600px) { .wrap { padding-left: 20px; padding-right: 20px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--paper); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 20px;
  border-radius: 999px; font: 500 16px var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; background: none;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--navy); color: var(--paper); }
.btn-outline { border-color: var(--ink); color: var(--ink); min-height: 44px; padding: 0 18px; }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover, .btn-outline-dark:hover { background: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.brand-by { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.site-nav > a:not(.btn) { color: #3F4A63; text-decoration: none; }
.site-nav > a:not(.btn):hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 20px; padding-bottom: 12px; }
.hero-text { flex: 1 1 560px; max-width: 760px; }
.hero h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -0.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); font-weight: 600; margin-bottom: 10px; display: block; }
.lede { margin-top: 14px; max-width: 580px; font-size: 16px; }
.hero-art { color: var(--ink); overflow: hidden; }
.hero-art .art { height: 150px; width: 100%; }
.art { display: block; width: 100%; height: auto; }

/* The moving train */
.tt-train { animation: tt-run 22s linear infinite; }
@keyframes tt-run { from { transform: translateX(-420px); } to { transform: translateX(1460px); } }
.tt-steam { animation: tt-puff 1.4s ease-in-out infinite alternate; }
@keyframes tt-puff { from { transform: translate(0, 0); } to { transform: translate(-6px, -4px); } }
@media (prefers-reduced-motion: reduce) {
  .tt-train, .tt-steam { animation: none; }
  html { scroll-behavior: auto; }
}

/* Sections */
.section { padding-top: 56px; }
#journeys, #states, #notes, #instagram, #expenses, #dos, #day-planner { scroll-margin-top: 16px; }
.section-tight { padding-top: 40px; }
.section-last { padding-bottom: 64px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-sub { margin-top: 12px; max-width: 620px; }

/* Trip cards */
.trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; }
.trip-card[hidden] { display: none; }
.trip-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; }
.trip-card .kicker { margin: 6px 0 0; font-size: 12px; }
.trip-card .photo { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 6px; display: block; }
.trip-card:hover .photo { outline: 2px solid var(--ink); outline-offset: 3px; }
.trip-card-title { font-family: var(--serif); font-size: 24px; line-height: 1.15; color: var(--navy); }
.trip-card .meta { font-size: 15px; }
.ph { background-color: var(--ph); background-image: repeating-linear-gradient(0deg, transparent 0 5px, rgba(29, 58, 156, .16) 5px 6px); }

/* State chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.chip { min-height: 44px; padding: 0 20px; border: 1px solid var(--rule); border-radius: 999px; background: none; font: 16px var(--sans); color: var(--navy); cursor: pointer; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--paper); }

/* What every journey covers */
.covers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--rule); margin-top: 40px; }
.covers > div { padding: 28px 24px 28px 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.covers-title { font-family: var(--serif); font-size: 26px; color: var(--navy); }

/* Instagram */
.ig-reel { overflow: hidden; margin-top: 8px; padding-bottom: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ig-track { display: flex; align-items: flex-start; gap: 18px; width: max-content; padding: 0 24px; animation: ig-slide var(--ig-dur, 240s) ease-in-out infinite alternate; }
.ig-reel:hover .ig-track, .ig-reel:focus-within .ig-track { animation-play-state: paused; }
.ig-reel .ig-card { flex: none; width: 326px; display: flex; flex-direction: column; }
.ig-reel .ig-clip { height: 560px; overflow: hidden; }
.ig-reel .ig-open { border-top: 1px solid var(--line); min-height: 44px; }
.ig-reel .instagram-media { width: 326px !important; min-width: 326px !important; max-width: 326px !important; }
@keyframes ig-slide { from { transform: translateX(0); } to { transform: translateX(calc(var(--ig-dist, 0px) * -1)); } }
@media (prefers-reduced-motion: reduce) { .ig-reel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } .ig-track { animation: none; } }
.ig-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ig-card .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.ig-card blockquote.instagram-media { padding: 48px 16px; text-align: center; background: var(--ph); }
.ig-open { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; font-weight: 600; font-size: 15px; text-decoration: none; }

/* Footer */
.site-footer { background: #1D45CB; color: #DCE6FF; margin-top: 64px; overflow: hidden; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; padding-top: 56px; padding-bottom: 56px; }
.footer-about { flex: 1 1 320px; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.footer-name { font-family: var(--serif); font-size: 36px; font-weight: 500; color: #fff; }
.footer-about p { margin: 0; color: #C9D8FF; font-size: 18px; line-height: 1.6; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 96px; }
.footer-cols nav { display: flex; flex-direction: column; gap: 6px; }
.footer-cols a { color: #C9D8FF; text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-head { font-family: var(--serif); font-size: 20px; color: #fff; margin-bottom: 8px; }
.footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(220,230,255,.28); color: #fff; font-size: 16px; }
.footer-art { display: block; width: 100%; height: auto; margin-top: -24px; }

/* Trip page */
.trip { padding-top: 40px; padding-bottom: 96px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--muted); }
.page-title { font-size: clamp(48px, 7vw, 96px); line-height: 1; letter-spacing: -0.02em; }
.trip-stats { margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.trip-stats > div { padding: 18px 16px 18px 0; }
.trip-stats dt, .details dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.trip-stats dd { margin: 4px 0 0; font-family: var(--serif); font-size: 24px; color: var(--navy); }

.gallery { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery > * { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.gallery > .gallery-hero { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
@media (max-width: 600px) { .gallery > .gallery-hero { aspect-ratio: 4 / 3; } }

.trip-body { margin-top: 72px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.trip-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 64px; }
.trip-main h2 { font-size: 38px; margin-bottom: 18px; }
.trip-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.story p + p { margin-top: 16px; }
.story ul { margin: 16px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.eat { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.eat li { display: flex; flex-direction: column; }
.eat strong { font-weight: 500; color: var(--navy); }
caption { text-align: left; padding-bottom: 8px; color: var(--muted); }
.story { max-width: 68ch; }

.table-scroll { overflow-x: auto; }
.expenses { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 16px; }
.expenses th, .expenses td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.expenses thead th { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--navy); font-weight: 500; }
.expenses td:first-child { color: var(--navy); }
.expenses .num { text-align: right; padding-right: 0; color: var(--navy); }
.expenses tfoot th, .expenses tfoot td { border-bottom: 0; font-family: var(--serif); font-size: 22px; color: var(--navy); }
.expenses tfoot .total { color: var(--ink); }

.dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.panel-outline { background: none; border: 1.5px solid var(--navy); }
.panel ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.trip-main .panel h2.h-icon { font-size: 30px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.h-icon svg { color: var(--ink); flex: none; }
.h-skip svg { color: var(--skip); }
.details { margin: 18px 0 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.details dd { margin: 2px 0 0; color: var(--navy); }

/* Day planner */
.planner { margin-top: 96px; }
.day-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; }
.day-tabs [role=tab] { min-height: 44px; padding: 0 24px; border: 1.5px solid var(--navy); border-radius: 999px; background: none; color: var(--navy); font: 500 16px var(--sans); cursor: pointer; }
.day-tabs [role=tab][aria-selected="true"] { background: var(--navy); color: var(--paper); }
.day-panel { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.day-panel[hidden] { display: none; }
.day-map { flex: 3 1 520px; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 16px; color: var(--ink); }
.day-map svg { display: block; width: 100%; height: auto; }
.live-map { display: block; width: 100%; height: 320px; border: 0; border-radius: 6px; margin-top: 12px; }
.m-label { font: 17px var(--serif); fill: var(--navy); paint-order: stroke; stroke: #F7F1E4; stroke-width: 4px; stroke-linejoin: round; }
.m-num { font: 600 13px var(--sans); fill: var(--paper); }
.m-num-hollow { fill: var(--ink); }
.m-small { font: 12px var(--sans); fill: #3F4A63; }
.m-note { font: 16px var(--sans); fill: var(--navy); }
.day-info { flex: 2 1 320px; min-width: 0; }
.day-info > p { margin: 6px 0 20px; }
.stops { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.stops li { display: flex; gap: 14px; align-items: baseline; }
.stops strong { font-weight: 500; color: var(--navy); }
.num-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.is-return .num-dot { background: none; border: 2px solid var(--ink); color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; color: #3F4A63; margin-bottom: 24px; }

.map-actions { margin-top: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.map-download { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; color: var(--ink); }
.map-download > div { flex: 1 1 220px; color: var(--text); }
.map-actions h3 { font-size: 26px; margin-bottom: 6px; }
.route-links { list-style: none; margin: 8px 0 0; padding: 0; }
.route-links li { border-bottom: 1px solid var(--line); }
.route-links li:last-child { border-bottom: 0; }
.route-links a, .route-links span { display: flex; align-items: center; min-height: 48px; color: var(--navy); text-decoration: none; }
.route-links a:hover { color: var(--ink); text-decoration: underline; }
.route-links span { color: var(--muted); }

.trip-pager { margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-weight: 500; }

/* Print: "Print or save as PDF" prints only the planner, every day */
.print-only { display: none; }
@media print {
  body { background: #fff; font-size: 12pt; }
  .tt-train, .tt-steam { animation: none; }
  .no-print, .skip { display: none !important; }
  .print-only { display: block; word-break: break-all; }
  body.print-map .site-header,
  body.print-map .site-footer,
  body.print-map .trip > *:not(#day-planner) { display: none !important; }
  body.print-map .planner { margin-top: 0; }
  body.print-map .day-panel { display: flex !important; break-inside: avoid; margin-bottom: 24px; }
  body.print-map .day-map { flex-basis: 60%; }
  .live-map { display: none; }
}

/* Article text */
.story h3 { font-size: 26px; margin: 40px 0 10px; }
.story h3:first-child { margin-top: 0; }
.story p { font-size: 16px; }
.story p + p, .story ul + p, .story ol + p { margin-top: 14px; }
.story ol { margin: 14px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.callout { margin: 20px 0; padding: 16px 20px; border-left: 3px solid var(--ink); background: var(--paper); border-radius: 0 8px 8px 0; font-size: 16px; }
.callout strong { color: var(--navy); }
.callout.warn { border-left-color: var(--skip); }
.shots { margin: 24px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.shot { margin: 24px 0; }
.shots .shot { margin: 0; }
.shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.shot.tall img { aspect-ratio: 4 / 5; object-position: center 20%; }
.shot figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.trip-main { gap: 44px; }
.trip-body { margin-top: 56px; }
.gallery { margin-top: 32px; }
.gallery > .gallery-hero { aspect-ratio: 21 / 9; }

/* Line-art banner between the article and the planner */
.mid-banner { width: 100%; height: auto; margin-top: 72px; border-radius: 8px; }

/* Stop list icons */
.stop-name { display: block; }
.stop-ico { display: inline-flex; vertical-align: -3px; margin-right: 6px; color: var(--ink); }

.credits { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--muted); }
.credits ul { margin: 12px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.credits a { color: var(--muted); }

/* Photo layouts: square and tall crops, and a figure that sits beside the text */
.shot.square img { aspect-ratio: 1; }
.shot.tall img { aspect-ratio: 4 / 5; object-position: center; }
.shot.side { float: right; width: 42%; max-width: 300px; margin: 4px 0 14px 24px; }
.story h3 { clear: both; }
@media (max-width: 600px) { .shot.side { float: none; width: 100%; max-width: none; margin: 16px 0; } }
.mid-banner { border-radius: 8px; }

/* Every photo in the article is the same size: square, two to a row */
.shots { grid-template-columns: repeat(2, 1fr); }
.shot img, .shot.tall img, .shot.square img { aspect-ratio: 1; object-fit: cover; }
.gallery > .gallery-hero { aspect-ratio: auto; height: auto; object-fit: contain; }
@media (max-width: 420px) { .shots { grid-template-columns: 1fr; } }

/* Reference material: map, key, timetable */
.shot.map { display: block; margin: 20px 0; }
.shot.map img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.ref { margin: 20px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.ref > summary { cursor: pointer; padding: 14px 18px; font-weight: 500; color: var(--navy); }
.ref > :not(summary) { margin-left: 18px; margin-right: 18px; }
.ref > :last-child { margin-bottom: 16px; }
.monument-key { columns: 2 260px; column-gap: 32px; padding-left: 22px; font-size: 15px; }
.monument-key li { break-inside: avoid; padding: 2px 0; }
.timetable { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.timetable th, .timetable td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: top; }
.timetable thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--navy); }
.asi { color: var(--muted); }

.gallery > .gallery-hero { object-fit: cover; max-height: 660px; }

/* Instagram-style 4:5 slides keep their shape */
.shot.slide img { aspect-ratio: 4 / 5; object-fit: cover; }

/* The embedded brochure */
.brochure { width: 100%; height: 640px; border: 0; border-radius: 6px; background: #fff; margin-top: 12px; }

/* Home page: auto-scrolling photo strip */
.reel { overflow: hidden; margin-top: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reel-track { display: flex; gap: 16px; width: max-content; animation: reel-scroll 70s linear infinite; }
.reel:hover .reel-track, .reel:focus-within .reel-track { animation-play-state: paused; }
.reel-frame { position: relative; flex: none; width: 240px; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--ph); display: block; }
.reel-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.reel-frame:hover img, .reel-frame:focus-visible img { transform: scale(1.05); }
.reel-cap { position: absolute; inset: auto 0 0 0; padding: 40px 14px 14px; display: flex; flex-direction: column; gap: 2px; color: #fff; background: linear-gradient(180deg, transparent, rgba(20, 32, 79, .82)); }
.reel-trip { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; opacity: .85; }
.reel-line { font-family: var(--serif); font-size: 18px; line-height: 1.25; }
@keyframes reel-scroll { to { transform: translateX(calc(-50% - 8px)); } }
@media (max-width: 600px) { .reel-frame { width: 200px; } }
@media (prefers-reduced-motion: reduce) {
  .reel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .reel-track { animation: none; }
  .reel-frame[aria-hidden="true"] { display: none; }
}

/* Photos shown whole, at their own shape (Wayanad) */
.shots .shot.full img, .shot.full img { aspect-ratio: auto !important; height: auto !important; object-fit: contain !important; }

/* Portrait covers (cover_portrait: true) show whole and centred, never cropped */
.gallery > .gallery-hero.portrait { aspect-ratio: auto; object-fit: contain; width: min(100%, 720px); height: auto; max-height: none; justify-self: center; }
.trip-card .photo.portrait { object-fit: contain; }

/* One photo per block (class="shots one"): same width every time */
.shots.one { grid-template-columns: minmax(0, 480px); }

/* 9:16 story photos (class="story") show whole in uniform tiles */
.shot.story img { aspect-ratio: 9 / 16; object-position: center; }

/* Cover strip (cover_strip: true): several photos side by side, shown whole at full width */
.gallery > .gallery-hero.strip { aspect-ratio: auto; object-fit: contain; width: 100%; height: auto; max-height: none; }
/* Portrait photo groups: three across, original proportions */
.shots.stories { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
@media (max-width: 600px) { .shots.stories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Links between the pages of one trip */
.series { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 22px; font-size: 14px; }
.series-label { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; margin-right: 4px; }
.series-item { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--paper); }
.series-item.current { background: var(--ink); border-color: var(--ink); color: #fff; }
a.series-item:hover { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Posts after the first four stay hidden until the script finds they fit beside the story */
.ig-card.ig-extra { display: none; }
.ig-card.ig-extra.fit { display: block; }

/* Planned for 2027 */
.planned { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.planned-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(280px, 48%); gap: 12px 24px; align-items: center; padding: 26px 0; border-bottom: 1px dashed var(--rule); }
.planned-num { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--ink); }
.planned-region { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.planned-title { font-family: var(--serif); font-size: 28px; line-height: 1.15; font-weight: 500; color: var(--navy); margin: 4px 0 0; }
.planned-when { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--muted); border: 1px dashed var(--rule); border-radius: 999px; padding: 3px 12px; }
.planned-note { margin-top: 24px; color: var(--text); }
.route { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; }
.route li { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.route li:only-child { flex: 0 1 auto; margin-left: auto; margin-right: auto; }
.route li + li::before { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; border-top: 2px solid var(--ink); }
.route-dot { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--ground); }
.route-name { font-size: 14px; line-height: 1.25; color: var(--navy); padding: 0 4px; }
@media (max-width: 760px) {
  .planned-item { grid-template-columns: 44px minmax(0, 1fr); }
  .route { grid-column: 1 / -1; }
  .planned-num { font-size: 26px; }
  .planned-title { font-size: 24px; }
}

/* Finder: state chips on the left (they wrap if more states are added), search on the right */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 28px 48px; align-items: start; }
.finder .chips { margin-top: 20px; }
.finder-search { display: flex; flex-direction: column; gap: 20px; }
.finder-search h2 { margin: 0; }
.finder-search label { font-family: var(--serif); font-weight: 400; color: var(--navy); }
.finder-search input { width: 100%; min-height: 48px; padding: 0 18px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); font: 16px var(--sans); color: var(--navy); }
.finder-search input:focus { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.trip-empty { margin-top: 24px; color: var(--muted); }
@media (max-width: 900px) { .finder { grid-template-columns: 1fr; } }

/* Moving postcards inside a trip page */
.postcards { margin: 28px 0; }
.postcards .reel-frame { margin: 0; width: 220px; border: 6px solid var(--paper); box-shadow: 0 2px 10px rgba(20, 32, 79, .18); border-radius: 4px; transform: rotate(-1.2deg); }
.postcards .reel-frame:nth-child(even) { transform: rotate(1.4deg); }
.postcards .reel-cap { padding: 28px 10px 10px; }
.postcards .reel-line { font-size: 15px; }
.postcards .reel-track { animation-duration: 90s; }

/* Planned trip with two route options */
.route-set { display: flex; flex-direction: column; gap: 6px; }
.route-option { display: flex; flex-direction: column; gap: 10px; }
.route-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink); text-align: left; }
.route-or { align-self: center; font-family: var(--serif); font-style: italic; color: var(--muted); padding: 6px 0; }
