/* Original editorial composition, rebuilt as a fluid, accessible slideshow. */
.travel-stories-page {
  --stories-ink: #254535;
  --stories-paper: #f9f3e7;
  --stories-muted: #58624f;
  --stories-accent: #a15b43;
  --stories-line: #d8cbb6;
  position: relative;
  isolation: isolate;
  background: var(--stories-paper);
  color: var(--stories-ink);
  overflow: clip;
}
main > .travel-stories-page[id] { scroll-margin-top: 72px; }
.stories-shell { position: relative; width: min(100%, 1700px); height: calc(100svh - 72px); min-height: 530px; margin-inline: auto; padding: clamp(14px, 2.2vh, 30px) clamp(36px, 5vw, 90px) 18px; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(10px, 1.8vh, 22px); }
.stories-intro { text-align: center; }
.stories-kicker { margin: 0 0 4px; color: var(--stories-muted); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.stories-intro h2 { margin: 0; font: 400 clamp(42px, 4.2vw, 68px)/1 var(--font-display); letter-spacing: -.035em; }
.travel-stories-page em { color: var(--stories-accent); font-weight: 400; }
.stories-subtitle { max-width: 65ch; margin: 8px auto 0; color: var(--stories-muted); font-size: clamp(14px, 1.05vw, 17px); line-height: 1.45; }
.stories-side-note { position: absolute; top: 15%; left: 20px; margin: 0; color: var(--stories-muted); font-size: 10px; font-weight: 600; line-height: 2; letter-spacing: .15em; text-transform: uppercase; }
.stories-hand-note { position: absolute; right: 20px; top: 16%; margin: 0; color: var(--stories-muted); font: italic 18px/1.15 var(--font-display); }
.stories-side-note::after, .stories-hand-note::after { content: ''; display: block; width: 28px; height: 1px; background: var(--stories-accent); margin-top: 12px; }
.stories-carousel { position: relative; min-height: 0; min-width: 0; display: grid; grid-template-rows: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
.stories-mask-defs { position: absolute; width: 0; height: 0; pointer-events: none; }
.stories-track { display: flex; min-height: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--stories-muted) var(--stories-paper); }
.stories-enhanced .stories-track { scrollbar-width: none; }
.stories-enhanced .stories-track::-webkit-scrollbar { display: none; }
.stories-slide { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: 1.65fr 1fr; align-items: center; gap: clamp(24px, 3vw, 56px); padding: 2px 6px; scroll-snap-align: start; scroll-snap-stop: always; }
.stories-photo { position: relative; min-width: 0; height: 100%; min-height: 0; margin: 0; }
.stories-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; clip-path: url(#stories-bali-mask); }
.stories-photo-contour { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--stories-accent); stroke-width: 1.2; pointer-events: none; }
.stories-copy { min-width: 0; padding: 4px 0; }
.stories-copy h3 { margin: 0; font: 400 clamp(30px, 3.25vw, 56px)/.98 var(--font-display); letter-spacing: -.025em; text-wrap: balance; }
.stories-deck { display: none; }
.stories-excerpt { max-width: 40ch; margin: clamp(12px, 1.6vh, 22px) 0 0; padding-top: 12px; color: var(--stories-muted); font-size: clamp(14px, 1.05vw, 17px); line-height: 1.5; position: relative; }
.stories-excerpt::before { content: ''; position: absolute; top: 0; left: 0; width: 34px; height: 1px; background: var(--stories-accent); }
.stories-publication { display: inline-block; margin: clamp(12px, 2vh, 26px) 0 0; padding: 10px 24px; border-radius: 999px; background: var(--stories-muted); color: var(--stories-paper); font: 400 17px/1.2 var(--font-display); }
.stories-destinations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 0; gap: clamp(20px, 3vw, 48px); padding-top: 12px; border-top: 1px solid var(--stories-line); }
.stories-destination { position: relative; display: grid; grid-template-rows: minmax(50px, 1fr) auto auto auto; min-width: 44px; min-height: 44px; padding: 0 0 4px; gap: 5px; text-align: left; background: none; border: 0; color: var(--stories-ink); cursor: pointer; }
.stories-destination + .stories-destination::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(clamp(20px, 3vw, 48px) / -2); width: 1px; background: var(--stories-line); }
.stories-destination img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 8px; }
.stories-card-title { display: block; min-height: 2.04em; margin-top: 3px; font: 500 clamp(20px, 1.8vw, 30px)/1.02 var(--font-display); letter-spacing: -.02em; }
.stories-card-excerpt { color: var(--stories-muted); font-size: 13px; line-height: 1.4; }
.stories-card-action { width: fit-content; min-height: 21px; color: var(--stories-accent); font: italic 16px/1.3 var(--font-display); text-decoration: underline; text-underline-offset: 4px; }
.stories-destination:hover .stories-card-title, .stories-destination[aria-current="true"] .stories-card-title { color: var(--stories-accent); }
.stories-destination[aria-current="true"] img { outline: 2px solid var(--stories-accent); outline-offset: -2px; }
.stories-controls { position: absolute; right: 0; top: -3px; transform: translateY(-100%); }
.stories-controls[hidden] { display: none; }
.stories-pagination { display: flex; align-items: center; gap: 8px; }
.stories-control-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.stories-counter { padding-right: 4px; color: var(--stories-muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stories-arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--stories-line); border-radius: 50%; background: var(--stories-paper); color: var(--stories-ink); cursor: pointer; transition: color .18s ease-out, background-color .18s ease-out; }
.stories-arrow svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.stories-prev svg { transform: rotate(180deg); }
.stories-arrow:hover:not(:disabled) { color: var(--stories-paper); background: var(--stories-ink); }
.stories-arrow:disabled { color: #817e6e; cursor: default; }
.travel-stories-page :focus-visible { outline: 2px solid var(--stories-ink); outline-offset: -3px; }
.travel-stories-page .stories-arrow:focus-visible { outline-offset: 2px; }
.stories-branch { position: absolute; z-index: -1; pointer-events: none; right: -30px; top: 33%; width: clamp(100px, 11vw, 190px); height: auto; opacity: .17; }
.stories-foliage { position: absolute; z-index: -1; width: 25%; height: 65%; pointer-events: none; background: url('assets/balinese-botanical-ambient.jpg') center/cover; opacity: .11; mix-blend-mode: multiply; mask-image: radial-gradient(ellipse at top left, #000 10%, transparent 68%); }
.stories-foliage-left { left: 0; top: 0; }
.stories-foliage-right { right: 0; top: 0; transform: scaleX(-1); }
.back-to-top.is-over-blog { opacity: 0; visibility: hidden; pointer-events: none; }
@media (min-width: 901px) and (max-height: 740px) {
  .stories-shell { padding-top: 12px; padding-bottom: 12px; gap: 8px; }
  .stories-intro h2 { font-size: 42px; }
  .stories-kicker { font-size: 10px; }
  .stories-subtitle { font-size: 14px; margin-top: 5px; }
  .stories-copy h3 { font-size: 32px; }
  .stories-excerpt { font-size: 14px; margin-top: 10px; padding-top: 8px; line-height: 1.4; }
  .stories-publication { margin-top: 10px; padding: 8px 22px; }
  .stories-card-title { font-size: 21px; }
  .stories-card-excerpt { font-size: 12px; }
  .stories-side-note, .stories-hand-note { display: none; }
}
@media (max-width: 1100px) { .stories-side-note, .stories-hand-note { display: none; } .stories-controls { right: 0; top: 1px; } }
@media (max-width: 900px) {
  .stories-shell { height: auto; min-height: 0; padding: 32px 28px; gap: 20px; }
  .stories-intro h2 { font-size: 48px; }
  .stories-carousel { grid-template-rows: auto auto auto; gap: 18px; }
  .stories-track { min-height: 270px; }
  .stories-slide { grid-template-columns: 1.3fr 1fr; gap: 24px; }
  .stories-copy h3 { font-size: 34px; }
  .stories-controls { position: static; transform: none; grid-row: 2; }
  .stories-pagination { justify-content: flex-end; }
  .stories-control-label { position: static; clip-path: none; width: auto; height: auto; margin-right: auto; font-size: 13px; color: var(--stories-muted); }
  .stories-destinations { grid-row: 3; }
  .stories-destination { grid-template-rows: 110px auto auto auto; }
}
@media (max-width: 600px) {
  main > .travel-stories-page[id] { scroll-margin-top: 12px; }
  .stories-shell { padding: 30px 22px; }
  .stories-intro h2 { font-size: clamp(36px, 10vw, 48px); }
  .stories-kicker { font-size: 10px; letter-spacing: .14em; }
  .stories-subtitle { font-size: 14px; line-height: 1.5; }
  .stories-subtitle br { display: none; }
  .stories-slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 16px; padding: 2px; }
  .stories-photo { height: auto; aspect-ratio: 1.7; }
  .stories-copy { padding: 0 6px; }
  .stories-copy h3 { font-size: 38px; }
  .stories-excerpt { font-size: 15px; }
  .stories-publication { margin-top: 16px; }
  .stories-destinations { gap: 14px; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--stories-muted) var(--stories-paper); padding-bottom: 8px; }
  .stories-destination { flex: 0 0 74%; scroll-snap-align: start; grid-template-rows: 120px auto auto auto; }
  .stories-destination + .stories-destination::before { display: none; }
  .stories-card-title { font-size: 23px; }
  .stories-card-excerpt { font-size: 14px; }
  .stories-branch { top: 30%; width: 100px; right: -30px; }
}
@media (min-width: 901px) and (max-height: 601px) {
  .stories-shell { height: auto; min-height: calc(100svh - 72px); }
  .stories-carousel { grid-template-rows: 250px 190px; }
}
@media (prefers-reduced-motion: reduce) { .travel-stories-page *, .travel-stories-page *::before { transition: none; scroll-behavior: auto; } }
