@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500..700&family=Inter:wght@400;500;600;700&display=swap');

/* Light-only on purpose: the site should look the same warm way for everyone,
   regardless of the visitor's system dark-mode setting. */
:root {
  color-scheme: light;
  --bg: #fffaf5;
  --surface: #ffffff;
  --text: #2b2018;
  --text-soft: #7c6b5c;
  --accent: #f2603c;
  --accent-2: #ffb020;
  --accent-soft: #fff0e9;
  --line: #f3e4d6;
  --hot: linear-gradient(95deg, #f2603c 0%, #ff8a3d 55%, #ffb020 100%);
  --shadow-soft: 0 2px 8px rgba(120, 66, 36, 0.06), 0 14px 30px rgba(120, 66, 36, 0.09);
  --shadow-lift: 0 8px 20px rgba(120, 66, 36, 0.12), 0 26px 54px rgba(120, 66, 36, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(980px 420px at 8% 4%, #ffe6d2 0%, transparent 62%),
    radial-gradient(880px 400px at 94% 12%, #ffe2ec 0%, transparent 58%),
    radial-gradient(760px 380px at 50% 100%, #fff2d6 0%, transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

a { color: inherit; text-decoration: none; }

h1, h2, .brand, .album-title, .card-title, .hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  letter-spacing: -0.018em;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(86vh, 780px);
  display: flex;
  background-color: #ffc9a8;
  isolation: isolate;
}

/* One to three chosen photos share the space; the count picks the arrangement. */
.hero-canvas,
.card-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  gap: 3px;
}

.cover-pane {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-width: 0;
  min-height: 0;
}

.hero-canvas.covers-1 { grid-template-columns: 1fr; }
.hero-canvas.covers-2 { grid-template-columns: 1fr 1fr; }
.hero-canvas.covers-3 { grid-template-columns: 1.45fr 1fr; grid-template-rows: 1fr 1fr; }
.hero-canvas.covers-3 .cover-pane:first-child { grid-row: 1 / span 2; }

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(30, 18, 10, 0.46) 0%, rgba(30, 18, 10, 0.06) 34%,
                    rgba(30, 18, 10, 0.44) 74%, rgba(30, 18, 10, 0.76) 100%);
}

.hero:not(.has-image) {
  background-image: linear-gradient(140deg, #ffd8a8, #ff9d7a 48%, #ff7a9c);
}

.hero:not(.has-image)::after { background: rgba(30, 18, 10, 0.12); }

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 3.2rem 1.5rem 3.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  color: #fff;
}

.hero-top { text-align: center; }

.brand {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.02;
  color: #fff;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.42);
}

.tagline {
  margin: 0.8rem auto 0;
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.93);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}

.hero-feature {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  align-self: flex-start;
  max-width: 36rem;
}

.hero-feature[hidden] { display: none; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: var(--hot);
  color: #fff;
  box-shadow: 0 4px 14px rgba(190, 70, 30, 0.4);
}

.hero-title {
  font-size: clamp(2.3rem, 6.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.04;
  margin-top: 0.5rem;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.48);
}

.hero-meta {
  font-size: 0.98rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.hero-cta {
  margin-top: 1.1rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--hot);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(190, 70, 30, 0.42);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hero-feature:hover .hero-cta {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(190, 70, 30, 0.5);
}

/* ---------- layout ---------- */

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 3.4rem 1.5rem 5rem;
}

.section-title {
  position: relative;
  display: inline-block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 1.7rem;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--hot);
}

/* ---------- album grid ---------- */

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.6rem;
}

.album-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.35s ease;
}

.album-card:not(.coming-soon):hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lift);
}

.card-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* stacked for two, one large plus two small for three - reads well in a tall card */
.card-canvas.covers-1 { grid-template-rows: 1fr; }
.card-canvas.covers-2 { grid-template-rows: 1fr 1fr; }
.card-canvas.covers-3 { grid-template-rows: 1.35fr 1fr; grid-template-columns: 1fr 1fr; }
.card-canvas.covers-3 .cover-pane:first-child { grid-column: 1 / span 2; }

.card-canvas .cover-pane { transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1); }
.album-card:not(.coming-soon):hover .cover-pane { transform: scale(1.06); }

.card-label {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 3.6rem 1.25rem 1.2rem;
  background: linear-gradient(to top, rgba(28, 16, 9, 0.86) 12%, rgba(28, 16, 9, 0.36) 56%, transparent);
  color: #fff;
}

.card-year {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffc98d;
  margin-bottom: 0.22rem;
}

.card-title {
  display: block;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.14;
}

.card-meta {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.85);
}

/* empty albums keep the grid colourful */
.placeholder-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-cover svg {
  width: 54px;
  height: 54px;
  opacity: 0.5;
  color: rgba(80, 45, 25, 0.75);
}

.ph-0 { background: linear-gradient(150deg, #ffd9c2, #ffab8c); }
.ph-1 { background: linear-gradient(150deg, #d6efd9, #a2d2ae); }
.ph-2 { background: linear-gradient(150deg, #d2e7fa, #a3c9ea); }
.ph-3 { background: linear-gradient(150deg, #e6daf7, #c1aee6); }
.ph-4 { background: linear-gradient(150deg, #ffeac4, #f6cd8d); }
.ph-5 { background: linear-gradient(150deg, #ffdae3, #f7aec0); }
.ph-6 { background: linear-gradient(150deg, #cff2ea, #9adcd0); }
.ph-7 { background: linear-gradient(150deg, #fdf0bd, #f3dc8d); }

.album-card.coming-soon { cursor: default; }

.album-card.coming-soon .card-label {
  background: none;
  color: #4a3524;
  padding-top: 1.2rem;
}

.album-card.coming-soon .card-year { color: #b6552f; }
.album-card.coming-soon .card-meta { color: rgba(74, 53, 36, 0.75); }

.soon-badge {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  background: rgba(255, 255, 255, 0.94);
  color: #a8492a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(120, 66, 36, 0.16);
}

/* ---------- album page ---------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin: 2rem 0 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-link:hover { color: var(--accent); transform: translateX(-3px); }

.album-title {
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  font-weight: 700;
  margin: 0.2rem 0 0.7rem;
}

.album-dates {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.36rem 0.85rem;
  border-radius: 999px;
  background: var(--hot);
  color: #fff;
  margin: 0 0.5rem 0.6rem 0;
  box-shadow: 0 5px 16px rgba(190, 70, 30, 0.3);
}

.album-dates:empty { display: none; }

.album-count {
  display: inline-block;
  color: #a8492a;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 2rem;
  padding: 0.36rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
}

/* Justified rows: every row is the same height, each photo keeps its own
   proportions, so portrait and landscape shots no longer look identical. */
.thumb-grid {
  --row-height: 240px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.thumb {
  position: relative;
  height: var(--row-height);
  flex-grow: var(--ar, 1);
  flex-shrink: 1;
  flex-basis: calc(var(--ar, 1) * var(--row-height));
  /* never stretch so far that a portrait shot ends up looking landscape */
  max-width: calc(var(--ar, 1) * var(--row-height) * 1.4);
  min-width: 96px;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.3s ease;
}

/* a written section: full width, so the photos below start on a fresh row */
.group-head {
  flex: 0 0 100%;
  margin: 2.2rem 0 0.4rem;
  padding-left: 1rem;
  border-left: 4px solid transparent;
  border-image: var(--hot) 1;
}

.group-head:first-child { margin-top: 0.2rem; }

.group-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.group-text {
  margin: 0;
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

/* soaks up the leftover width so a short last row isn't stretched wide */
.grid-spacer {
  flex-grow: 1000000;
  flex-basis: 0;
  height: 0;
}

.thumb:hover,
.thumb:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.thumb:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.thumb:hover img { transform: scale(1.08); }

.thumb .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.thumb .play-badge svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.45));
}

.empty-state {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.map-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.3rem;
  margin-bottom: 2.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.map-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.map-link-icon { font-size: 1.9rem; line-height: 1; }
.map-link strong { display: block; font-size: 1.05rem; }
.map-link small { display: block; color: var(--text-soft); font-size: 0.88rem; margin-top: 0.15rem; }
.map-link-arrow { margin-left: auto; color: var(--accent); font-size: 1.3rem; font-weight: 700; }

/* ---------- map page ---------- */

.page-sub {
  color: var(--text-soft);
  margin: 0 0 1.8rem;
  font-size: 1.02rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  background: var(--hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
}

.year-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.chip {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.chip:hover { color: var(--accent); border-color: var(--accent); }

.chip.active {
  background: var(--hot);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 5px 16px rgba(190, 70, 30, 0.3);
}

.map-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0.6rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 2.4rem;
}

#map { height: min(62vh, 540px); }

.map-fallback {
  text-align: center;
  color: var(--text-soft);
  padding: 2rem 1rem;
  margin: 0;
}

.country-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.country-head .section-title { margin-bottom: 0; }

.country-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.1rem;
  align-items: start;
}

.country-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.2rem 0.9rem;
  box-shadow: var(--shadow-soft);
}

.country-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.7rem;
}

.trip-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  transition: transform 0.18s ease;
}

.trip-row:hover { transform: translateX(3px); }

.trip-row img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  flex: none;
}

.trip-name { display: block; font-weight: 600; }

.trip-when {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.trip-meta { display: block; font-size: 0.8rem; color: var(--text-soft); }

.muted-note { color: var(--text-soft); }

.trip-follow {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
  flex: none;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.trip-follow:hover { border-color: var(--accent); transform: translateY(-1px); }

.chip.primary {
  background: var(--hot);
  border-color: transparent;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(190, 70, 30, 0.3);
}

.chip.primary:hover { color: #fff; }

/* ---------- one trip, day by day ---------- */

.trip-panel { margin-bottom: 2.4rem; }

.trip-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.trip-head-text { flex: 1 1 12rem; }
.trip-head .section-title { margin-bottom: 0.1rem; }
.trip-head .page-sub { margin: 0; }

/* a filmstrip of days: one card per day, scrolled sideways */
.day-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.3rem 0.3rem 1rem;
  margin: 0 -0.3rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.day-card {
  flex: 0 0 216px;
  scroll-snap-align: start;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.25s ease, border-color 0.2s ease;
}

.day-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.day-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-lift);
}

.day-shot {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--accent-soft);
}

.day-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.day-number {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  background: var(--hot);
  color: #fff;
}

.day-body { display: block; padding: 0.75rem 0.85rem 0.9rem; }

.day-place {
  display: block;
  font-weight: 600;
  line-height: 1.3;
}

.day-when {
  display: block;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.1rem;
}

.day-count {
  display: block;
  font-size: 0.76rem;
  color: var(--text-soft);
  margin-top: 0.2rem;
}

.day-note {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.4rem;
}

/* ---------- days inside an album ---------- */

.day-jump {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0 0 1.6rem;
}

.day-jump-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-right: 0.25rem;
}

.day-chip {
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-soft);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.day-chip:hover { color: var(--accent); border-color: var(--accent); }

/* full width, so the photos of a new day start on a fresh row */
.day-head {
  flex: 0 0 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 2.6rem 0 0.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1.5rem;
}

.day-head:first-child { margin-top: 0.2rem; padding-top: 0; border-top: none; }

.day-badge {
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-top: 0.25rem;
}

.day-head-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  margin: 0;
}

.day-head-sub {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.day-head-text {
  margin: 0.5rem 0 0;
  max-width: 62ch;
  line-height: 1.6;
  color: var(--text-soft);
}

/* the map library paints its own tooltip, so match it to the site */
.jvm-tooltip {
  background: #2b2018 !important;
  font-family: 'Inter', sans-serif !important;
  border-radius: 8px !important;
  padding: 0.35rem 0.6rem !important;
}

/* a pin for one day carries the picture that stands for it */
.jvm-tooltip .pin-card { display: block; width: 150px; }

.jvm-tooltip .pin-card img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 0.35rem;
}

.jvm-tooltip .pin-card small {
  display: block;
  opacity: 0.75;
  font-size: 0.72rem;
  margin-top: 0.1rem;
}

/* ---------- password gate ---------- */

.gate-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate { width: 100%; padding: 1.5rem; }

.gate-card {
  max-width: 400px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lift);
  padding: 2.4rem 2rem;
  text-align: center;
}

.gate-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.gate-sub { color: var(--text-soft); margin: 0 0 1.7rem; font-size: 0.97rem; }

.gate-card label {
  display: block;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.gate-card input {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
}

.gate-card button {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 999px;
  background: var(--hot);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(190, 70, 30, 0.35);
}

.gate-error { color: #c0392b; font-size: 0.9rem; margin: 1rem 0 0; }
.gate-note { color: var(--text-soft); font-size: 0.82rem; margin: 1.4rem 0 0; }

.logout-row { margin-top: 3rem; text-align: center; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(34, 20, 12, 0.93);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox.open { display: flex; animation: fade-in 0.22s ease; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox-content {
  max-width: 92vw;
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: pop-in 0.26s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes pop-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.07); }

.lightbox button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.lightbox-close { top: 1.3rem; right: 1.3rem; width: 46px; height: 46px; font-size: 1.5rem; }
.lightbox-nav { top: 50%; margin-top: -28px; width: 56px; height: 56px; font-size: 1.5rem; }
.lightbox-nav.prev { left: 1.4rem; }
.lightbox-nav.next { right: 1.4rem; }

.lightbox-bar {
  position: absolute;
  bottom: 1.3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.lightbox-counter,
.lightbox-share {
  color: #fff;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.lightbox-share { cursor: pointer; transition: background 0.2s ease; }
.lightbox-share:hover { background: rgba(255, 255, 255, 0.28); }

@media (max-width: 760px) {
  .hero { min-height: min(80vh, 620px); }
  .hero-inner { padding: 2.4rem 1.2rem 2.4rem; gap: 2rem; }
  /* side by side gets too narrow on a phone, so stack the covers instead */
  .hero-canvas.covers-2 { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .hero-canvas.covers-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1.35fr 1fr; }
  .hero-canvas.covers-3 .cover-pane:first-child { grid-row: auto; grid-column: 1 / span 2; }
  .container { padding: 2.6rem 1rem 3.5rem; }
  .section-title { font-size: 1.3rem; }
  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .album-card { border-radius: 18px; }
  .card-title { font-size: 1.05rem; }
  .card-year { font-size: 0.64rem; }
  .card-meta { font-size: 0.72rem; }
  .card-label { padding: 2.6rem 0.8rem 0.85rem; }
  /* the world map is roughly 2:1, so a tall box would just add empty space */
  #map { height: 230px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .stat { padding: 0.8rem 0.9rem; border-radius: 14px; }
  .stat-value { font-size: 1.6rem; }
  .country-list { grid-template-columns: 1fr; }
  .day-card { flex-basis: 178px; }
  .trip-follow { margin-left: 0; }
  .day-head { gap: 0.7rem; margin-top: 2rem; }
  .thumb-grid { --row-height: 128px; gap: 0.4rem; }
  .thumb { border-radius: 12px; min-width: 68px; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 1.2rem; margin-top: -22px; }
  .lightbox-nav.prev { left: 0.6rem; }
  .lightbox-nav.next { right: 0.6rem; }
  .lightbox-close { width: 40px; height: 40px; top: 0.8rem; right: 0.8rem; }
}

/* a day of the trip we have nothing from: still shown, but quietly */
.day-card.blank {
  flex-basis: 132px;
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  cursor: default;
}
.day-card.blank:hover { transform: none; box-shadow: none; }
.day-card.blank .day-shot { background: #fbf1e7; aspect-ratio: 4 / 2.2; }
.day-card.blank .day-number { background: #e4d5c5; color: var(--text-soft); }
.day-card.blank .day-place { font-size: 0.85rem; color: var(--text-soft); font-weight: 500; }

/* ---------- the wall of chosen pictures behind the login ---------- */

.gate-wall {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 3px;
  overflow: hidden;
}

.gate-wall.single { grid-template-columns: 1fr; grid-auto-rows: 1fr; }

@media (max-width: 1100px) and (min-width: 761px) {
  .gate-wall { grid-template-columns: repeat(3, 1fr); }
}

.gate-tile {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-width: 0;
  min-height: 0;
  /* the pictures are the mood, the card is the message */
  animation: gate-fade 1.1s ease both;
}

@keyframes gate-fade {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: none; }
}

.gate-body.has-teaser::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(60vw 60vh at 50% 50%, rgba(28, 16, 9, 0.28) 0%, rgba(28, 16, 9, 0.62) 100%);
}

.gate-body.has-teaser .gate { position: relative; z-index: 2; }

.gate-body.has-teaser .gate-card {
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(14px) saturate(1.1);
  border-color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 760px) {
  .gate-wall { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .gate-tile { animation: none; }
}
