[hidden] { display: none !important; }
button:focus-visible, input:focus-visible + .outfit-tile { outline: 3px solid var(--burgundy); outline-offset: 4px; }
button:disabled { cursor: default; opacity: .48; }
body.panel-open { overflow: hidden; }
.train { width: 84px; height: 84px; transform: translate(-50%, -77%); }
.train::before, .train::after { content: none; }
.train img { display: block; width: 100%; height: 100%; object-fit: contain; }
.stop-dialog { width: min(840px, calc(100vw - 36px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #d7c9bb; border-radius: 12px; color: var(--ink); background: #fbf7ef; box-shadow: 0 24px 100px #27130e55; overscroll-behavior: contain; }
.stop-dialog::backdrop { background: #251b1766; backdrop-filter: blur(3px); }
.stop-dialog[data-stop='fit'] { width: min(650px, calc(100vw - 36px)); }
.dialog-top { position: sticky; top: 0; z-index: 12; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fbf7ef; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.dialog-top span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); }
.close-panel { background: transparent; border: 1px solid #d1bbad; border-radius: 5px; padding: 8px 12px; color: var(--burgundy); cursor: pointer; font-size: .875rem; min-height: 40px; }
.stop-dialog .panel { border: 0; border-radius: 0; box-shadow: none; padding: 24px; background: transparent; }
.stop-dialog .panel h3 { font-size: clamp(1.8rem, 4vw, 2.2rem); font-weight: 400; letter-spacing: -.025em; max-width: 620px; }
.stop-dialog .panel p { font-size: 1rem; }
.stop-dialog #fit h3 { font-size: 1.8rem; }
.stop-dialog #fit > p { font-size: .9375rem; line-height: 1.55; }
.stop-dialog .eyebrow { margin-bottom: 10px; }
.game-stats { display: flex; align-items: center; gap: 18px; margin: 18px 0 12px; font-size: .875rem; }
.coach-toggle { margin-left: auto; padding: 7px 10px; border: 1px solid #cfb6ac; border-radius: 4px; color: var(--burgundy); background: #fff9f0; font-size: .8125rem; cursor: pointer; }
.gym-scene { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid #cfb798; border-radius: 4px; isolation: isolate; background: #b98957 url('assets/workout-scenes.png') no-repeat; background-size: 200% 200%; background-position: 0 0; }
.gym-scene[data-pose='squat'] { background-position: 100% 0; }
.gym-scene[data-pose='lunge'] { background-position: 0 100%; }
.gym-scene[data-pose='dance'] { background-position: 100% 100%; }
.coach-speech { position: absolute; top: 4%; left: 3%; max-width: 45%; padding: 12px 14px; border: 1px solid #8d473c; border-radius: 4px; background: #fff9eaf2; font-size: .875rem; line-height: 1.45; box-shadow: 2px 3px 0 #3d211821; }
.coach-name { display: block; margin-bottom: 5px; color: var(--burgundy); font-size: .6875rem; letter-spacing: .14em; font-weight: 800; }
.workout-label { position: absolute; bottom: 12px; left: 12px; background: #322820bb; color: #fff7e9; padding: 6px 8px; font-size: .6875rem; letter-spacing: .12em; }
.sweat-particles { position: absolute; left: 50%; top: 66%; width: 90px; height: 60px; transform: translateX(-50%); pointer-events: none; }
.sweat-particles i { position: absolute; width: 6px; height: 11px; background: #98dbf0; border-radius: 70% 0 70% 70%; opacity: 0; transform: rotate(-40deg); }
.sweat-particles i:nth-child(1) { left: 0; top: 4px; }
.sweat-particles i:nth-child(2) { right: 0; top: 14px; }
.sweat-particles i:nth-child(3) { left: 12px; top: 28px; }
.gym-scene.correct .sweat-particles i { animation: work-sweat .65s ease-out; }
.gym-scene.correct .sweat-particles i:nth-child(2) { animation-delay: .12s; }
.gym-scene.correct .sweat-particles i:nth-child(3) { animation-delay: .24s; }
.gym-scene.missed { box-shadow: inset 0 0 0 4px #82133299; }
.move-prompt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0 12px; min-height: 66px; }
.move-prompt span { font-size: .6875rem; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); }
.move-prompt strong { font: italic 1.8rem var(--serif); color: var(--burgundy); font-weight: 400; }
.move-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.move-button { min-height: 48px; padding: 10px; border: 1px solid #cbb9a9; border-radius: 4px; color: var(--burgundy); background: #fffaf2; cursor: pointer; font-size: 1rem; font-weight: 650; }
.move-button:not(:disabled):hover { background: #f3e6d5; border-color: var(--burgundy); }
.game-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.game-actions .primary, .game-actions .secondary { border-radius: 4px; font-size: .875rem; min-height: 44px; }
.game-result { padding: 13px 16px; border: 1px solid #b3c5af; background: #edf3e8; border-radius: 5px; margin-top: 18px; line-height: 1.5; font-size: .9375rem; }
.game-result[data-result='lose'] { border-color: #d6a598; background: #fae9e1; }
.thrift-target { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; align-items: center; border: 1px solid #dac9b5; background: #f4eadc; border-radius: 6px; padding: 16px 20px; margin: 20px 0; }
.thrift-target h4 { margin: 5px 0 8px; font: 1.55rem var(--serif); }
.thrift-target .eyebrow { font-size: .6875rem; }
.thrift-target p { margin: 0; font-size: .875rem !important; }
.target-pieces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.target-piece { text-align: center; font-size: .75rem; line-height: 1.35; }
.item-art { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; width: 100%; }
.item-crop { display: block; flex: none; background: url('assets/outfit-catalog.png') no-repeat; }
.wardrobe { display: grid; gap: 18px; }
.wardrobe fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.wardrobe legend { padding: 0; margin: 0 0 10px; font-size: .875rem; font-weight: 700; color: #53342b; }
.wardrobe-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.outfit-option { position: relative; cursor: pointer; min-width: 0; }
.outfit-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.outfit-tile { display: grid; grid-template-columns: 74px 1fr; gap: 6px; align-items: center; height: 100%; min-height: 88px; padding: 7px 9px; border: 1px solid #d5c7b7; background: #fffaf3; border-radius: 6px; }
.outfit-tile .item-name { font-size: .875rem; line-height: 1.3; overflow-wrap: anywhere; }
.outfit-option input:checked + .outfit-tile { background: #e9f0e3; border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.outfit-option:hover .outfit-tile { border-color: var(--green); }
.outfit-option input:disabled + .outfit-tile { cursor: default; }
.thrift-status { color: var(--muted); font-size: .875rem; }
.couple-photo { display: block; width: 100%; max-height: 70dvh; object-fit: contain; border-radius: 5px; }
.photo-figure { margin: 18px 0 0; }
.photo-figure figcaption { margin-top: 10px; color: var(--muted); font: italic 1rem var(--serif); }
.stop-dialog .hero-game { grid-template-columns: 1fr 250px; }
.lane { cursor: pointer; }
.lane-label { background: transparent; cursor: pointer; padding: 0; font: inherit; }
.falling-note { animation-name: panel-note-fall; animation-duration: 2.6s; }
@keyframes panel-note-fall { to { transform: translateY(var(--note-distance, 470px)); } }
@keyframes work-sweat { 0% { opacity: 0; translate: 0 -4px; } 20% { opacity: 1; } 100% { opacity: 0; translate: 0 28px; } }
@media (max-width: 640px) {
  .stop-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 8px; }
  .stop-dialog[data-stop='fit'] { width: calc(100vw - 16px); }
  .dialog-top { padding: 9px 14px; }
  .stop-dialog .panel { padding: 18px 14px 24px; }
  .coach-speech { padding: 8px; max-width: 48%; font-size: .75rem; }
  .coach-name { font-size: .625rem; margin-bottom: 3px; }
  .gym-scene { aspect-ratio: 3 / 2; }
  .game-stats { gap: 12px; }
  .thrift-target { grid-template-columns: 1fr; padding: 14px; gap: 8px; }
  .target-pieces { max-width: 300px; justify-self: center; width: 100%; }
  .target-piece .item-art { max-height: 76px; max-width: 76px; margin: 0 auto; }
  .outfit-tile { grid-template-columns: 1fr; padding: 6px; gap: 0; text-align: center; align-content: start; }
  .outfit-tile .item-art { max-width: 80px; margin: auto; }
  .outfit-tile .item-name { font-size: .8125rem; padding-bottom: 5px; }
  .stop-dialog .hero-game { grid-template-columns: 1fr; }
  .train { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .train { transition: none; }
  .sweat-particles i { animation: none !important; }
  .stop-button, .marker-pin { transition: none; }
}

/* Preserve the supplied map's proportions and exact grid intersections. */
.map-scroll { overflow: auto; aspect-ratio: 1904 / 1218; overscroll-behavior-x: contain; scroll-margin-top: 80px; }
.map-wrap { width: calc(100% * var(--map-zoom, 1)); min-width: 0; min-height: 0; aspect-ratio: 1904 / 1218; background: #397a8e; }
.map-svg { width: 100%; height: 100%; }
.map-top { height: auto; min-height: 48px; padding: 10px 16px; flex-wrap: wrap; }
.map-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.map-tools a { color: var(--burgundy); font-size: .8125rem; letter-spacing: 0; text-transform: none; }
.marker-pin { width: 32px; height: 32px; border-radius: 50%; transform: none; background: var(--burgundy); border: 2px solid #fff9ef; box-shadow: 0 2px 9px #21141088; }
.marker-pin span { transform: none; font-size: .875rem; }
.marker.active .marker-pin { transform: scale(1.1); outline: 3px solid #fff8eacc; }
.marker-label { top: 37px; padding: 5px 8px; color: #64172d; border-color: #82133280; font-size: .8125rem; border-radius: 3px; }
.legend { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px; background: #faf4e9; letter-spacing: 0; font-size: .75rem; }
.route-key { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 4px 8px; min-width: 24px; font-size: .6875rem; font-weight: 800; letter-spacing: .02em; }
.legend > span:last-child { flex-basis: 100%; margin-top: 3px; text-align: center; }
.map-credit { padding: 9px 15px; margin: 0; border-top: 1px solid var(--line); color: #766257; font-size: .75rem; line-height: 1.5; }
.map-credit a { color: #821332; }
.train { transform: translate(-50%, -92%); transition: none; will-change: left, top; }
.player-field { display: grid; gap: 7px; max-width: 360px; margin: 18px 0; color: #5a342d; font-size: .875rem; font-weight: 650; }
.player-field input { width: 100%; padding: 12px 13px; border: 1px solid #cbb9a9; border-radius: 4px; background: #fffdf6; color: #37221d; font: 1rem var(--sans); }
.player-field input:focus { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.stop-dialog .voice-status { color: var(--muted); font-size: .8125rem; margin: -4px 0 12px; }
.stop-dialog .prize-note { border-left: 3px solid var(--burgundy); padding: 11px 14px; background: #f3e6d5; color: var(--burgundy); font-weight: 650; }
.leaderboard { border-top: 1px solid #cfb9a8; margin-top: 28px; padding-top: 20px; }
.leaderboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.leaderboard h4 { margin: 0; color: #5a1326; font: 1.5rem var(--serif); }
.text-button { border: 0; padding: 10px 0 10px 12px; background: transparent; color: var(--burgundy); text-decoration: underline; font-size: .875rem; cursor: pointer; }
.stop-dialog .leaderboard-status, .stop-dialog .save-status { font-size: .875rem; line-height: 1.5; color: var(--muted); }
.save-status:empty { display: none; }
.leaderboard-list { list-style: none; margin: 12px 0 0; padding: 0; }
.leaderboard-list li { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px solid #e4d8c8; font-size: .9375rem; }
.leaderboard-list li:first-child:not(.leader-empty) { background: #f3e6d5; border-radius: 4px; }
.leader-name { overflow-wrap: anywhere; }
.leader-rank { color: #907567; font-size: .8125rem; }
.leaderboard-list strong { color: var(--burgundy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.leaderboard-list .leader-empty { display: block; padding: 20px 0; color: var(--muted); }
.stop-dialog .hero-game { grid-template-columns: minmax(0,1fr) 260px; }
.music-scorebar { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; margin: 0 0 12px; color: var(--burgundy); font-size: .875rem; font-variant-numeric: tabular-nums; }
.note-highway { height: 310px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg,#391e29,#1a1015); }
.note-highway .lane { cursor: default; }
.note-highway .hit-zone { bottom: 24px; height: 2px; background: #e9c6a0; box-shadow: 0 0 12px #e9c6a055; }
.piano-note { position: absolute; left: 16%; width: 68%; height: 32px; transform: translateY(-50%); display: grid; place-items: center; border: 1px solid #ffeed6; border-radius: 4px; background: #f7dbb1; color: #53162c; font-weight: 800; font-size: .875rem; }
.piano-keyboard { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; padding: 0 4px 5px; background: #25141b; border-radius: 0 0 6px 6px; }
.piano-key { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; height: 100px; padding: 14px 6px; background: linear-gradient(#fffdf5,#ebdfce); border: 1px solid #e6d7be; border-bottom: 5px solid #baa28a; border-radius: 0 0 4px 4px; color: #6a213a; touch-action: manipulation; user-select: none; cursor: pointer; }
.piano-key:active,.piano-key.pressed { background: #d8b881; border-bottom-width: 2px; padding-bottom: 17px; }
.piano-key:focus-visible { outline: 3px solid #cd7691; outline-offset: -5px; }
.key-note { font: 1.5rem var(--serif); font-weight: 700; }
.piano-key kbd { font: .8125rem var(--sans); color: #806659; }
.video-frame { min-width: 200px; min-height: 210px; }
.video-frame iframe { display: block; width: 100%; min-height: 210px; border: 0; border-radius: 4px; }
.stop-dialog .music-status, .stop-dialog .game-fineprint { margin: 0; font-size: .875rem; line-height: 1.5; }
.stop-dialog .game-fineprint { color: var(--muted); }
@media(max-width:760px) { .stop-dialog .hero-game { grid-template-columns: 1fr; } .guitar-controls { grid-template-columns: 1fr; } .video-frame { width: 100%; max-width: 420px; } .note-highway { height: 280px; } }
.map-mobile-toolbar, .map-hint, .stop-number { display: none; }
@media (max-width: 980px) {
  .station-board { display: flex; flex-direction: column; }
  .map-area { order: -1; }
  .sidebar { border: 0; border-top: 1px solid var(--line); padding: 18px; }
  .sidebar h2 { margin-top: 0; }
  .sidebar > .eyebrow, .sidebar-footer { display: none; }
  .map-mobile-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: #faf4e9; border-bottom: 1px solid var(--line); }
  .map-zoom-buttons { display: flex; gap: 6px; align-items: center; }
  .map-mobile-toolbar button { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid #cdb3a3; border-radius: 5px; background: #fffaf2; color: var(--burgundy); padding: 8px 12px; cursor: pointer; touch-action: manipulation; }
  .map-mobile-toolbar .zoom-step { padding: 4px; font-size: 1.6rem; line-height: 1; }
  #mapZoomLevel { min-width: 46px; text-align: center; font-size: .875rem; color: #6e5246; font-variant-numeric: tabular-nums; }
  #mapReset { font-size: .875rem; }
  .map-hint { display: block; margin: 0; padding: 10px 12px; font-size: .875rem; line-height: 1.45; color: #6e5246; background: #fffaf2; border-top: 1px solid var(--line); }
  .map-wrap { min-width: 0; min-height: 0; aspect-ratio: 1904 / 1218; }
  .marker { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; touch-action: manipulation; }
  .marker-pin { width: 32px; height: 32px; }
  .marker-label { display: none; }
  .train { width: 52px; height: 52px; z-index: 5; transform: translate(-50%, -112%); }
  .stop-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding-top: 12px; }
  .stop-list li { min-width: 0; }
  .stop-button { height: 100%; min-height: 64px; padding: 10px 8px; gap: 8px; grid-template-columns: 26px minmax(0,1fr); border: 1px solid #dfcbbb; border-radius: 6px; background: #fffaf2; touch-action: manipulation; }
  .stop-button .jump, .stop-copy > span, .route-number { display: none; }
  .stop-number { display: inline; }
  .stop-copy strong { font-size: .875rem; line-height: 1.35; overflow-wrap: anywhere; }
  .stop-button .badge { width: 26px; height: 26px; background: var(--burgundy) !important; font-size: .875rem; }
  .map-top { padding: 8px 12px; gap: 0; }
  .map-top > span { width: 100%; margin-bottom: 2px; font-size: .75rem; }
  .map-tools { width: 100%; justify-content: space-between; gap: 8px; }
  .map-tools > * { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; padding: 0; }
  .map-status { gap: 12px; height: auto; min-height: 48px; padding: 10px 12px; font-size: .875rem; line-height: 1.4; }
  #stopCounter { flex-shrink: 0; font-size: .8125rem; }
  .legend { gap: 6px; padding: 9px 12px; }
  .route-key { font-size: .8125rem; padding: 4px 8px; }
  .legend > span:last-child { display: none; }
  .map-credit { font-size: .8125rem; line-height: 1.45; }
}
@media (max-width: 640px) {
  main { margin-top: 18px; }
  .hero { gap: 12px; margin-bottom: 18px; }
  .hero h1 { font-size: clamp(2.7rem,13vw,4rem); line-height: .98; }
  .hero .eyebrow { font-size: .75rem; letter-spacing: .15em; }
  .hero-note { font-size: .9375rem; line-height: 1.45; }
  .hero-meta { margin-top: 8px; gap: 16px; font-size: .75rem; letter-spacing: .12em; }
  .topbar { position: relative; padding-inline: 14px; min-height: 48px; }
  .topbar .date { font-size: .6875rem; letter-spacing: .12em; }
  .sidebar { padding: 14px 12px; }
  .sidebar h2 { font-size: 1.35rem; }
  .close-panel { min-height: 44px; }
}

/* The couple's names lead the page, with the wedding details above the map. */
.topbar { position: relative; display: flex; justify-content: center; height: auto; padding: 32px 18px 28px; text-transform: none; background: transparent; backdrop-filter: none; }
.topbar h1 { margin: 0; font: clamp(3.2rem, 7.5vw, 6rem)/1.04 var(--serif); letter-spacing: -.05em; color: var(--burgundy); text-align: center; }
main { margin-top: 26px; }
.hero { display: block; text-align: center; margin-bottom: 30px; }
.hero h2 { font: 1.35rem/1.5 var(--serif); margin: 0; font-weight: 400; color: #3e2a22; }
.hero h2 strong { font-weight: 400; color: var(--burgundy); }
.hero > p { font-size: 1rem; line-height: 1.6; margin: 8px 0 0; color: #5e463c; }
.hero-meta { justify-content: center; flex-direction: column; align-items: center; gap: 7px; margin-top: 15px; }
body.welcome-open { overflow: hidden; }
.welcome-dialog { width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 1px solid #d8bea7; border-radius: 14px; background: #fbf5e9; color: var(--ink); padding: 54px 40px 42px; text-align: center; box-shadow: 0 28px 100px #28141155; }
.welcome-dialog::backdrop { background: #24171280; backdrop-filter: blur(5px); }
.welcome-dialog h2 { margin: 21px 0; color: var(--burgundy); font: 3.5rem/1 var(--serif); letter-spacing: -.04em; }
.welcome-dialog p { margin: 0 auto 28px; color: #604638; font-size: 1.0625rem; line-height: 1.75; max-width: 380px; }
.welcome-dialog .primary { min-height: 48px; padding-inline: 24px; }
.welcome-close { position: absolute; top: 8px; right: 8px; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--burgundy); font-size: 1.6rem; cursor: pointer; }
.hotel-list { display: grid; gap: 12px; margin-top: 24px; }
.hotel-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; border: 1px solid #decbb9; border-radius: 7px; padding: 20px; background: #fffaf2; text-decoration: none; }
.hotel-card:hover { background: #f4e8d8; border-color: var(--burgundy); }
.hotel-card:focus-visible, .album-image-link:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 3px; }
.hotel-area { display: block; color: var(--muted); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; }
.hotel-card h4 { margin: 8px 0; color: var(--burgundy); font: 1.5rem/1.15 var(--serif); }
.hotel-description { display: block; font-size: .875rem; line-height: 1.5; color: #604638; }
.hotel-visit { flex-shrink: 0; font-size: .8125rem; color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; }
.photo-upload { margin-top: 30px; padding: 22px; border: 1px solid #d5bdab; border-radius: 7px; background: #f5eadc; }
.photo-upload h4, .shared-album h4 { margin: 0 0 12px; color: var(--burgundy); font: 1.6rem/1.15 var(--serif); }
.photo-field { display: block; margin: 18px 0 8px; color: #593b2f; font-size: .875rem; font-weight: 650; }
.photo-field > span { color: var(--muted); font-weight: 400; }
.photo-field input, .photo-field textarea { display: block; width: 100%; min-width: 0; margin-top: 8px; color: #35221a; font: 1rem/1.5 var(--sans); }
.photo-field textarea { resize: vertical; min-height: 80px; padding: 10px 12px; border: 1px solid #cbb9a9; border-radius: 4px; background: #fffdf8; }
.photo-field input::file-selector-button { min-height: 44px; padding: 8px 12px; margin-right: 12px; border: 1px solid #bb9e8b; border-radius: 4px; background: #fffaf2; color: var(--burgundy); cursor: pointer; }
.photo-field textarea:focus-visible, .photo-field input:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
#photos .photo-hint { font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.photo-preview { display: block; width: 100%; max-height: 260px; object-fit: contain; margin: 18px 0; border-radius: 4px; }
#photos .photo-status { margin: 12px 0 0; font-size: .875rem; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
#photos .photo-status:empty { display: none; }
#photos .photo-status[data-error='true'] { color: #9d1e35; }
.photo-upload > .primary { margin-top: 8px; min-height: 46px; }
.shared-album { margin-top: 30px; }
.album-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.album-heading h4 { margin: 0; }
.album-heading .text-button { min-height: 44px; }
.photo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 16px; align-items: start; }
.album-photo { margin: 0; min-width: 0; padding: 10px; border: 1px solid #ddccbb; border-radius: 5px; background: #fffaf2; }
.album-image-link { display: block; }
.album-photo img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; }
.album-caption { margin: 12px 2px 4px; white-space: pre-wrap; overflow-wrap: anywhere; color: #604638; font-size: .9375rem; line-height: 1.5; }
.album-photo > .text-button { padding-left: 2px; min-height: 44px; }
.caption-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.caption-actions button { min-height: 44px; font-size: .875rem; padding: 9px 12px; }
#morePhotos { display: block; margin: 20px auto 0; min-height: 44px; }
@media(max-width:640px) {
  .topbar { padding: 24px 16px 20px; }
  main { margin-top: 20px; }
  .hero { margin-bottom: 24px; }
  .hero h2 { font-size: 1.25rem; }
  .hero > p { font-size: .9375rem; }
  .hero-meta { margin-top: 13px; gap: 6px; }
  .welcome-dialog { padding: 50px 24px 32px; }
  .welcome-dialog h2 { font-size: 2.9rem; }
  .welcome-dialog .eyebrow { font-size: .6875rem; letter-spacing: .14em; }
  .stop-list > li:first-child { grid-column: 1 / -1; }
  .hotel-card { display: block; padding: 17px; }
  .hotel-visit { display: block; margin-top: 14px; }
  .photo-upload { padding: 16px; }
  .photo-grid { grid-template-columns: 1fr; }
  .album-heading { align-items: start; }
}
