/* Regnar — travel journal */

:root {
  --color-primary: #5b89b0;
  --color-primary-light: #839ad1;
  --color-primary-muted: #647d89;
  --color-sand: #d8d4cc;
  --color-stone: #b9b7b8;
  --color-warm: #c5a48f;
  --color-bg: #f7f6f3;
  --color-surface: #ffffff;
  --color-text: #2a3238;
  --color-text-muted: #647d89;
  --color-accent: var(--color-primary);
  --color-accent-dark: var(--color-primary-muted);
  --color-nav-bg: rgba(247, 246, 243, 0.94);
  --color-nav-text: var(--color-primary-muted);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 8px 32px rgba(42, 50, 56, 0.05);
  --shadow-md: 0 16px 48px rgba(42, 50, 56, 0.08);
  --radius: 12px;
  --max-width: 1240px;
  --blog-hero-aspect: 16 / 9;
  --section-gap: clamp(3.5rem, 8vw, 6rem);
  /* Hero Banner Standard v1.0 (non-homepage) */
  --site-hero-artwork-ratio: 3.2;
  --site-hero-artwork-width: 2560px;
  --site-hero-artwork-height: 800px;
  --site-hero-cinematic-ratio: 2.56;
  --site-hero-cinematic-width: 2560px;
  --site-hero-cinematic-height: 1000px;
  --site-hero-cinematic-max-height: 1000px;
  --site-hero-safe-inline: 220px;
  --site-hero-safe-block: 120px;
  --site-hero-height: min(calc(100vw / var(--site-hero-cinematic-ratio)), var(--site-hero-cinematic-max-height));
  --site-hero-position: center center;
  --site-hero-shadow: 0 16px 40px rgba(42, 50, 56, 0.06), 0 6px 18px rgba(42, 50, 56, 0.04);
  /* Responsive hero breakpoint — keep media queries in sync (768px) */
  --site-hero-breakpoint: 768px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent-dark);
}

code {
  font-size: 0.9em;
  background: var(--color-sand);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* ---- Scroll reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Shared site hero — Banner Standard v1.0 + responsive variants ---- */

/*
 * Artwork Hero   → desktop/tablet (min-width: 768px) — 2560×800, contain, no crop
 * Cinematic Hero → mobile (max-width: 767px) — 2560×1000, cover, crop allowed
 * Responsive     → .site-hero--responsive with __variant--artwork + __variant--cinematic
 * Overlay text   → .site-hero--overlay (optional; blog)
 * Cinematic-only → .site-hero--cinematic-only when no artwork image exists yet
 *
 * Breakpoint: --site-hero-breakpoint (768px) — search "767px" / "768px" to change
 */

.site-hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  overflow: hidden;
  border-radius: 0;
  box-shadow: var(--site-hero-shadow);
}

.site-hero__image {
  display: block;
  border-radius: 0;
}

/* Artwork Hero — full artwork visible, natural width, no object-fit */
.site-hero--contain .site-hero__image {
  width: 100%;
  height: auto;
}

/* Cinematic Hero — landscape photography, cover crop, fixed height */
.site-hero--cover {
  height: var(--site-hero-height);
}

.site-hero--cover .site-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--site-hero-position);
}

/* Responsive dual-variant hero (artwork desktop / cinematic mobile) */
.site-hero--responsive {
  position: relative;
}

.site-hero--responsive .site-hero__variant {
  width: 100%;
}

.site-hero--responsive .site-hero__variant--artwork {
  display: block;
}

.site-hero--responsive .site-hero__variant--cinematic {
  display: none;
  height: var(--site-hero-height);
  overflow: hidden;
}

.site-hero--responsive .site-hero__variant--artwork .site-hero__image {
  width: 100%;
  height: auto;
}

.site-hero--responsive .site-hero__variant--cinematic .site-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--site-hero-position);
}

/* Per-device mode overrides (set by js/site-banners.js from Studio config) */
.site-hero--responsive[data-desktop-mode="cinematic"] .site-hero__variant--artwork {
  height: var(--site-hero-height);
  overflow: hidden;
}

.site-hero--responsive[data-desktop-mode="cinematic"] .site-hero__variant--artwork .site-hero__image {
  height: 100%;
  object-fit: cover;
  object-position: var(--site-hero-position);
}

.site-hero--responsive[data-desktop-mode="custom"] .site-hero__variant--artwork .site-hero__image {
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .site-hero--responsive[data-mobile-mode="artwork"] .site-hero__variant--cinematic {
    height: auto;
    overflow: visible;
  }

  .site-hero--responsive[data-mobile-mode="artwork"] .site-hero__variant--cinematic .site-hero__image,
  .site-hero--responsive[data-mobile-mode="custom"] .site-hero__variant--cinematic .site-hero__image {
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .site-hero--responsive[data-mobile-mode="artwork"]:not(.site-hero--overlay) {
    height: auto;
  }
}

.site-hero--cinematic-only .site-hero__variant--artwork {
  display: none !important;
}

.site-hero--cinematic-only .site-hero__variant--cinematic {
  display: block !important;
  height: var(--site-hero-height);
}

.site-hero--cinematic-only.site-hero--responsive {
  height: var(--site-hero-height);
}

@media (max-width: 767px) {
  .site-hero--responsive:not(.site-hero--cinematic-only) {
    height: var(--site-hero-height);
  }

  .site-hero--responsive:not(.site-hero--cinematic-only) .site-hero__variant--artwork {
    display: none;
  }

  .site-hero--responsive .site-hero__variant--cinematic {
    display: block;
  }
}

@media (min-width: 768px) {
  .site-hero--responsive:not(.site-hero--cinematic-only):not(.site-hero--overlay) {
    height: auto;
  }
}

.site-hero-intro {
  max-width: var(--site-hero-intro-max-width, 700px);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 2.5rem) 0;
  text-align: center;
}

.site-hero-intro__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.site-hero-intro__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.site-hero-intro__lead {
  margin: 1.1rem auto 0;
  max-width: 38ch;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.75;
  color: var(--color-text-muted);
}

/* Overlay modifier — text over image (blog exception) */
.site-hero--overlay {
  background: #101418;
}

.site-hero--overlay.site-hero--cover .site-hero__image,
.site-hero--overlay .site-hero__variant--cinematic .site-hero__image {
  position: absolute;
  inset: 0;
}

.site-hero--overlay.site-hero--responsive {
  height: var(--site-hero-height);
}

.site-hero--overlay.site-hero--responsive .site-hero__variant--cinematic {
  position: absolute;
  inset: 0;
}

.site-hero--overlay .site-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(8, 12, 16, 0.78) 0%,
    rgba(8, 12, 16, 0.52) 42%,
    rgba(8, 12, 16, 0.18) 100%
  );
}

.site-hero--overlay .site-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 2.5rem);
  opacity: 0;
  transform: translateY(18px);
  animation: site-hero-content-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.14s forwards;
}

.site-hero--overlay .site-hero__eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.78);
}

.site-hero--overlay .site-hero__title {
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6.5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #f7f4ef;
}

.site-hero--overlay .site-hero__lead {
  margin: 1.15rem 0 0;
  max-width: 34ch;
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  line-height: 1.75;
  color: rgba(247, 244, 239, 0.82);
}

.site-hero--overlay .site-hero__image {
  opacity: 0;
  animation: site-hero-image-in 0.95s ease forwards;
}

@keyframes site-hero-image-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes site-hero-content-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Blog — responsive hero + overlay */
.blog-archive-page .site-hero--responsive.site-hero--overlay {
  --site-hero-height: min(max(280px, calc(100vw / var(--site-hero-cinematic-ratio))), var(--site-hero-cinematic-max-height));
  --site-hero-position: 55% center;
}

.blog-archive-page .site-hero--overlay .site-hero__lead {
  max-width: 38ch;
}

/* Blog — artwork/custom: clean banner, no dark fade (mirrors country pages) */
.blog-archive-page .site-hero--overlay.site-hero--active-artwork,
.blog-archive-page .site-hero--overlay.site-hero--active-custom {
  display: flex;
  flex-direction: column;
  height: auto;
  background: var(--color-bg);
}

.blog-archive-page .site-hero--overlay.site-hero--active-artwork .site-hero__overlay,
.blog-archive-page .site-hero--overlay.site-hero--active-custom .site-hero__overlay {
  display: none;
}

.blog-archive-page .site-hero--overlay.site-hero--active-artwork .site-hero__variant--artwork .site-hero__image,
.blog-archive-page .site-hero--overlay.site-hero--active-custom .site-hero__variant--artwork .site-hero__image,
.blog-archive-page .site-hero--overlay.site-hero--active-artwork .site-hero__variant--cinematic .site-hero__image,
.blog-archive-page .site-hero--overlay.site-hero--active-custom .site-hero__variant--cinematic .site-hero__image {
  position: static;
  opacity: 1;
  animation: none;
}

.blog-archive-page .site-hero--overlay.site-hero--active-artwork .site-hero__content,
.blog-archive-page .site-hero--overlay.site-hero--active-custom .site-hero__content {
  position: static;
  inset: auto;
  opacity: 1;
  transform: none;
  animation: none;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem) clamp(0.5rem, 2vw, 1rem);
}

.blog-archive-page .site-hero--overlay.site-hero--active-artwork .site-hero__eyebrow,
.blog-archive-page .site-hero--overlay.site-hero--active-custom .site-hero__eyebrow {
  color: var(--color-warm);
}

.blog-archive-page .site-hero--overlay.site-hero--active-artwork .site-hero__title,
.blog-archive-page .site-hero--overlay.site-hero--active-custom .site-hero__title {
  max-width: none;
  color: var(--color-text);
}

.blog-archive-page .site-hero--overlay.site-hero--active-artwork .site-hero__lead,
.blog-archive-page .site-hero--overlay.site-hero--active-custom .site-hero__lead {
  color: var(--color-text-muted);
}

.blog-archive-page .blog-section {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}

@media (prefers-reduced-motion: reduce) {
  .site-hero--overlay .site-hero__image,
  .site-hero--overlay .site-hero__content {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---- Homepage hero (light, image-first) ---- */

/*
 * Homepage responsive hero (default).
 * Fallback: add home-hero--classic to <header> to restore legacy classic hero.
 */

.home-hero--classic .site-hero--responsive {
  display: none !important;
}

.home-hero:not(.home-hero--classic) .home-hero__classic-panel {
  display: none !important;
}

.home-hero .site-hero--responsive {
  box-shadow: none;
}

/* BEGIN classic homepage hero */

.home-hero {
  width: 100%;
  background: var(--color-bg);
}

.home-hero-media {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.home-hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  will-change: transform;
}

@media (min-width: 1024px) {
  .home-hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .home-hero-image {
    width: 64%;
    object-fit: contain;
  }
}

/* END classic homepage hero */

.home-hero-intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
}

.page-eyebrow,
.header-tagline {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-warm);
}

.home-hero-title,
.header-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.header-subtitle {
  margin: 1.25rem 0 0;
  max-width: 42ch;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.75;
  color: var(--color-text-muted);
}

/* ---- Homepage layout (index only) ---- */

.home-page .home-hero-intro {
  text-align: center;
  padding: clamp(3.5rem, 9vw, 5.5rem) clamp(1.5rem, 4vw, 2.5rem) clamp(3rem, 7vw, 4.5rem);
}

.home-tagline {
  margin: 0 auto;
  max-width: 36ch;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 500;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

.home-main {
  padding-top: clamp(1rem, 3vw, 2rem);
}

.home-features {
  margin-bottom: clamp(4.5rem, 11vw, 7rem);
}

.home-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

@media (min-width: 640px) {
  .home-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.home-feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.home-feature-card__icon {
  display: flex;
  align-items: center;
  margin-bottom: 1.15rem;
  color: var(--color-text);
}

.home-feature-card__icon-svg {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
}

.home-feature-card__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.55rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
  transition: color 0.3s var(--ease-out);
}

.home-feature-card:hover .home-feature-card__title {
  color: var(--color-accent);
}

.home-feature-card__text {
  flex: 1;
  margin: 0 0 1.35rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.home-feature-card__cta {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  transition: color 0.3s var(--ease-out);
}

.home-feature-card:hover .home-feature-card__cta {
  color: var(--color-accent-dark);
}

.home-feature-card--food {
  position: relative;
  overflow: hidden;
  --home-food-panda-scale: 0.9;
}

.home-feature-card--food .home-feature-card__icon,
.home-feature-card--food .home-feature-card__title,
.home-feature-card--food .home-feature-card__text,
.home-feature-card--food .home-feature-card__cta {
  position: relative;
  z-index: 2;
}

.home-food-panda {
  position: absolute;
  right: 0;
  bottom: 0;
  height: calc(100% - 24px);
  max-height: 100%;
  max-width: 42%;
  overflow: visible;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.home-food-panda__img {
  display: block;
  height: 100%;
  width: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: right bottom;
  transform-origin: right bottom;
  transform: translateX(85%) scale(var(--home-food-panda-scale));
  opacity: 0;
}

.home-food-panda.is-active .home-food-panda__img {
  animation: home-food-panda-active 6.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes home-food-panda-active {
  0% {
    transform: translateX(85%) scale(var(--home-food-panda-scale));
    opacity: 0;
  }

  22.1% {
    transform: translateX(0) scale(var(--home-food-panda-scale));
    opacity: 1;
  }

  80.9% {
    transform: translateX(0) scale(var(--home-food-panda-scale));
    opacity: 1;
  }

  100% {
    transform: translateX(85%) scale(var(--home-food-panda-scale));
    opacity: 0;
  }
}

html.home-food-panda-debug .home-food-panda,
html.home-feature-pandas-debug .home-food-panda {
  outline: 2px dashed #e11d48;
  outline-offset: -1px;
}

html.home-food-panda-debug .home-food-panda__img,
html.home-feature-pandas-debug .home-food-panda__img {
  outline: 2px dashed #2563eb;
  outline-offset: -1px;
}

html.home-feature-pandas-debug .home-photos-panda {
  outline: 2px dashed #059669;
  outline-offset: -1px;
}

html.home-feature-pandas-debug .home-photos-panda__img {
  outline: 2px dashed #0d9488;
  outline-offset: -1px;
}

html.home-feature-pandas-debug .home-blog-panda {
  outline: 2px dashed #9333ea;
  outline-offset: -1px;
}

html.home-feature-pandas-debug .home-blog-panda__img {
  outline: 2px dashed #7c3aed;
  outline-offset: -1px;
}

html.home-feature-pandas-debug .home-food-panda,
html.home-feature-pandas-debug .home-photos-panda,
html.home-feature-pandas-debug .home-blog-panda {
  visibility: visible !important;
}

html.home-feature-pandas-debug .home-food-panda,
html.home-feature-pandas-debug .home-photos-panda,
html.home-feature-pandas-debug .home-blog-panda {
  display: block !important;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .home-feature-card--food {
    --home-food-panda-scale: 0.88;
  }

  .home-food-panda {
    max-width: 40%;
    height: calc(100% - 20px);
  }
}

@media (max-width: 639px) {
  .home-feature-card--food {
    --home-food-panda-scale: 0.85;
  }

  .home-food-panda {
    max-width: 38%;
    height: calc(100% - 16px);
  }
}

@media (max-width: 480px) {
  .home-feature-card--food {
    --home-food-panda-scale: 0.78;
  }

  .home-feature-card--food .home-feature-card__title,
  .home-feature-card--food .home-feature-card__text,
  .home-feature-card--food .home-feature-card__cta {
    max-width: 62%;
  }

  .home-food-panda {
    right: 0;
    bottom: 0;
    height: 70%;
    max-width: 34%;
  }
}

@media (max-width: 360px) {
  .home-feature-card--food {
    --home-food-panda-scale: 0.72;
  }

  .home-feature-card--food .home-feature-card__title,
  .home-feature-card--food .home-feature-card__text,
  .home-feature-card--food .home-feature-card__cta {
    max-width: 66%;
  }

  .home-food-panda {
    height: 60%;
    max-width: 30%;
  }
}

.home-feature-card--photos {
  position: relative;
  overflow: hidden;
  --home-photos-panda-scale: 1;
}

.home-feature-card--photos .home-feature-card__icon,
.home-feature-card--photos .home-feature-card__title,
.home-feature-card--photos .home-feature-card__text,
.home-feature-card--photos .home-feature-card__cta {
  position: relative;
  z-index: 1;
}

.home-photos-panda {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 83%;
  width: auto;
  max-height: none;
  max-width: none;
  overflow: visible;
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

.home-photos-panda__img {
  display: block;
  height: 100%;
  width: auto;
  max-height: none;
  object-fit: contain;
  object-position: right bottom;
  transform-origin: right bottom;
  transform: translateY(85%) scale(var(--home-photos-panda-scale));
  opacity: 0;
}

.home-photos-panda.is-active .home-photos-panda__img {
  animation: home-photos-panda-active 6.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes home-photos-panda-active {
  0% {
    transform: translateY(85%) scale(var(--home-photos-panda-scale));
    opacity: 0;
  }

  20.9% {
    transform: translateY(0) scale(var(--home-photos-panda-scale));
    opacity: 1;
  }

  80.6% {
    transform: translateY(0) scale(var(--home-photos-panda-scale));
    opacity: 1;
  }

  100% {
    transform: translateY(85%) scale(var(--home-photos-panda-scale));
    opacity: 0;
  }
}

.home-feature-card--blog {
  position: relative;
  overflow: hidden;
  --home-blog-panda-scale: 1;
}

.home-feature-card--blog .home-feature-card__icon,
.home-feature-card--blog .home-feature-card__title,
.home-feature-card--blog .home-feature-card__text,
.home-feature-card--blog .home-feature-card__cta {
  position: relative;
  z-index: 1;
}

.home-blog-panda {
  position: absolute;
  right: 4%;
  top: 50%;
  bottom: auto;
  height: 80%;
  width: auto;
  max-height: none;
  max-width: none;
  overflow: visible;
  pointer-events: none;
  user-select: none;
  z-index: 3;
  transform: translateY(-50%) translateX(15%);
}

.home-blog-panda__img {
  display: block;
  height: 100%;
  width: auto;
  max-height: none;
  object-fit: contain;
  object-position: right center;
  transform-origin: right center;
  transform: scale(var(--home-blog-panda-scale));
  opacity: 0;
  filter: blur(12px) contrast(1.8) brightness(1.2);
}

.home-blog-panda.is-active .home-blog-panda__img {
  animation: home-blog-panda-active 6.7s steps(8, end) forwards;
}

@keyframes home-blog-panda-active {
  0% {
    opacity: 0;
    filter: blur(14px) contrast(2.2) brightness(1.35);
    transform: scale(calc(var(--home-blog-panda-scale) * 1.06));
  }

  2.4% {
    opacity: 0.35;
    filter: blur(9px) contrast(1.9) brightness(1.2);
  }

  4.9% {
    opacity: 0.65;
    filter: blur(5px) contrast(1.5) brightness(1.08);
  }

  7.3% {
    opacity: 0.88;
    filter: blur(2px) contrast(1.15) brightness(1.02);
  }

  9.7% {
    opacity: 1;
    filter: none;
    transform: scale(var(--home-blog-panda-scale));
  }

  80.6% {
    opacity: 1;
    filter: none;
    transform: scale(var(--home-blog-panda-scale));
  }

  85.5% {
    opacity: 0.88;
    filter: blur(2px) contrast(1.15) brightness(1.02);
  }

  90.3% {
    opacity: 0.65;
    filter: blur(5px) contrast(1.5) brightness(1.08);
  }

  95.2% {
    opacity: 0.35;
    filter: blur(9px) contrast(1.9) brightness(1.2);
  }

  100% {
    opacity: 0;
    filter: blur(14px) contrast(2.2) brightness(1.35);
    transform: scale(calc(var(--home-blog-panda-scale) * 1.06));
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .home-feature-card--photos {
    --home-photos-panda-scale: 1;
  }

  .home-photos-panda {
    height: 82%;
  }

  .home-feature-card--blog {
    --home-blog-panda-scale: 1;
  }

  .home-blog-panda {
    height: 79%;
  }
}

@media (max-width: 639px) {
  .home-feature-card--photos {
    --home-photos-panda-scale: 1;
  }

  .home-photos-panda {
    height: 81%;
  }

  .home-feature-card--blog {
    --home-blog-panda-scale: 1;
  }

  .home-blog-panda {
    height: 78%;
  }
}

@media (max-width: 480px) {
  .home-feature-card--photos {
    --home-photos-panda-scale: 1;
  }

  .home-photos-panda {
    right: 0;
    bottom: 0;
    height: 80%;
  }

  .home-feature-card--blog {
    --home-blog-panda-scale: 1;
  }

  .home-blog-panda {
    right: 4%;
    top: 50%;
    bottom: auto;
    height: 76%;
  }
}

@media (max-width: 360px) {
  .home-feature-card--photos {
    --home-photos-panda-scale: 1;
  }

  .home-photos-panda {
    height: 78%;
  }

  .home-feature-card--blog {
    --home-blog-panda-scale: 1;
  }

  .home-blog-panda {
    height: 74%;
  }
}

@media (max-width: 320px) {
  .home-blog-panda {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-food-panda,
  .home-photos-panda,
  .home-blog-panda,
  .home-footer-panda {
    display: none !important;
  }
}

.blog-card-link--footer-panda {
  position: relative;
  overflow: visible;
}

.blog-card-link--footer-panda .blog-card,
.last-blog-card {
  position: relative;
  overflow: visible;
}

.home-page .blog-section {
  overflow: visible;
}

.home-footer-panda {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  z-index: 5;
  width: clamp(90px, 24vw, 110px);
  pointer-events: none;
  user-select: none;
}

.home-footer-panda__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: center bottom;
  opacity: 0;
}

@media (min-width: 640px) {
  .home-footer-panda {
    width: clamp(120px, 16vw, 140px);
  }
}

@media (min-width: 1024px) {
  .home-footer-panda {
    width: clamp(140px, 11vw, 180px);
  }
}

.home-footer-panda.is-active {
  animation: home-footer-panda-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.home-footer-panda.is-active .home-footer-panda__img {
  opacity: 1;
  animation: home-footer-panda-exit 0.9s steps(8, end) 4.6s forwards;
}

@keyframes home-footer-panda-enter {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes home-footer-panda-exit {
  0% {
    opacity: 1;
    filter: none;
    transform: scale(1);
  }

  25.2% {
    opacity: 0.88;
    filter: blur(2px) contrast(1.15) brightness(1.02);
    transform: scale(1);
  }

  50.3% {
    opacity: 0.65;
    filter: blur(5px) contrast(1.5) brightness(1.08);
    transform: scale(1);
  }

  75.5% {
    opacity: 0.35;
    filter: blur(9px) contrast(1.9) brightness(1.2);
    transform: scale(1);
  }

  100% {
    opacity: 0;
    filter: blur(14px) contrast(2.2) brightness(1.35);
    transform: scale(1.06);
  }
}

html.home-feature-pandas-debug .home-footer-panda {
  outline: 1px dashed rgba(255, 120, 0, 0.75);
}

html.home-feature-pandas-debug .home-footer-panda__img {
  opacity: 0.35 !important;
  filter: none !important;
}

.home-blog {
  margin-bottom: var(--section-gap);
}

.home-blog-header {
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.home-blog-title {
  position: relative;
  display: inline-block;
  margin: 0 0 0.65rem;
  padding-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.home-blog-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.75rem;
  height: 3px;
  border-radius: 2px;
  background: var(--color-warm);
}

.home-blog-subtitle {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.home-page .blog-section {
  margin-top: 0;
}

.blog-archive-page .home-blog-header {
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

/* ---- Contact page (travel journal) ---- */

.contact-main {
  --contact-content-width: min(1360px, calc(100% - clamp(2rem, 5vw, 4rem)));
  max-width: var(--contact-content-width);
  padding-top: 0;
  padding-bottom: clamp(3rem, 6vw, 4rem);
}

.contact-page .site-hero-intro {
  padding-bottom: clamp(0.5rem, 1vw, 0.75rem);
}

.contact-page .site-hero-intro::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  margin: clamp(1.5rem, 3vw, 2rem) auto 0;
  background: rgba(42, 50, 56, 0.12);
}

.contact-section {
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.contact-cards .contact-card:nth-child(1) {
  grid-column: 1 / 3;
}

.contact-cards .contact-card:nth-child(2) {
  grid-column: 3 / 5;
}

.contact-cards .contact-card:nth-child(3) {
  grid-column: 5 / 7;
}

.contact-cards .contact-card:nth-child(4) {
  grid-column: 2 / 4;
}

.contact-cards .contact-card:nth-child(5) {
  grid-column: 4 / 6;
}

.contact-page .contact-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid rgba(42, 50, 56, 0.07);
  border-radius: 16px;
  padding: clamp(1.5rem, 2.5vw, 1.85rem) clamp(1.65rem, 2.8vw, 2rem);
  box-shadow: 0 8px 28px rgba(42, 50, 56, 0.04);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 250ms var(--ease-out),
    transform 250ms var(--ease-out),
    box-shadow 250ms var(--ease-out);
}

.contact-section.is-visible .contact-card {
  opacity: 1;
  transform: translateY(0);
}

.contact-section.is-visible .contact-card:nth-child(1) { transition-delay: 0ms; }
.contact-section.is-visible .contact-card:nth-child(2) { transition-delay: 50ms; }
.contact-section.is-visible .contact-card:nth-child(3) { transition-delay: 100ms; }
.contact-section.is-visible .contact-card:nth-child(4) { transition-delay: 150ms; }
.contact-section.is-visible .contact-card:nth-child(5) { transition-delay: 200ms; }

.contact-page .contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(42, 50, 56, 0.07);
}

.contact-social-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.contact-social-heading h3 {
  margin: 0;
}

.contact-page .contact-social-icon {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  object-fit: contain;
}

.contact-page .contact-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2.2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.contact-page .contact-card p {
  margin: 0 0 0.45rem;
  line-height: 1.6;
}

.contact-page .contact-card p:last-child {
  margin-bottom: 0;
}

.contact-page .contact-card a {
  font-weight: 500;
}

.contact-qr {
  display: block;
  width: min(100%, 10rem);
  height: auto;
  aspect-ratio: 1;
  margin: 0.25rem 0 0.65rem;
  border-radius: 8px;
}

.contact-card--whatsapp {
  text-align: left;
}

.contact-page #current-location {
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.45;
}

.contact-page .contact-note {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.contact-page .guestbook {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 0;
  border-top: none;
}

.guestbook-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--color-surface);
  border: 1px solid rgba(42, 50, 56, 0.07);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(42, 50, 56, 0.06);
}

.guestbook-panel__left {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--color-bg);
}

.guestbook-header {
  flex-shrink: 0;
  padding: clamp(1.75rem, 3vw, 2.25rem) clamp(1.75rem, 3vw, 2.25rem) 1.25rem;
  margin-bottom: 0;
}

.guestbook-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.guestbook-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  font-weight: 500;
  margin: 0 0 0.65rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.guestbook-lead {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 34ch;
  line-height: 1.65;
  font-size: 0.98rem;
}

.guestbook-panel__art {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.guestbook-panel__artwork {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.guestbook-panel__form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 3.5vw, 2.75rem) clamp(2rem, 3.5vw, 2.75rem);
}

.guestbook-form {
  max-width: none;
  margin-bottom: 0;
  width: 100%;
}

.guestbook-fields {
  display: grid;
  gap: 1.15rem;
}

.guestbook-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.guestbook-input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(42, 50, 56, 0.1);
  border-radius: 8px;
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guestbook-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91, 137, 176, 0.12);
}

.guestbook-textarea {
  resize: vertical;
  min-height: 8.5rem;
  line-height: 1.65;
}

.guestbook-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-page .guestbook-submit.btn {
  width: 100%;
  margin-top: 1.35rem;
  border: 1px solid rgba(36, 58, 52, 0.18);
  cursor: pointer;
  border-radius: 10px;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #f7f4ef;
  background: linear-gradient(180deg, #3a5a50 0%, #2f4a42 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 8px 20px rgba(36, 58, 52, 0.16);
  transition:
    background 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    transform 220ms var(--ease-out),
    border-color 220ms var(--ease-out);
}

.contact-page .guestbook-submit.btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #45685c 0%, #36554c 100%);
  border-color: rgba(36, 58, 52, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 10px 24px rgba(36, 58, 52, 0.2);
  transform: translateY(-1px);
  color: #fbf8f2;
}

.contact-page .guestbook-submit.btn:focus-visible {
  outline: 2px solid rgba(58, 90, 80, 0.55);
  outline-offset: 3px;
}

.guestbook-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.guestbook-status {
  margin: 0.85rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.guestbook-status--error {
  color: #9a5c4a;
}

.guestbook-notes {
  margin-top: clamp(2.75rem, 5.5vw, 4rem);
  padding: clamp(2.25rem, 4.5vw, 3.25rem) clamp(1rem, 3.5vw, 2rem) clamp(2.75rem, 5.5vw, 4.25rem);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 78% 46% at 50% 0%, rgba(212, 184, 122, 0.16), transparent 68%),
    linear-gradient(
      180deg,
      rgba(250, 244, 234, 0.96) 0%,
      rgba(246, 239, 228, 0.72) 42%,
      rgba(247, 246, 243, 0.2) 100%
    );
  border: 1px solid rgba(120, 96, 68, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.contact-page .guestbook-entries-head {
  position: relative;
  margin: 0 auto clamp(1.85rem, 3.5vw, 2.5rem);
  max-width: 34rem;
  text-align: center;
}

.guestbook-notes__ornament {
  display: block;
  width: 3.25rem;
  height: 1px;
  margin: 0 auto 1.15rem;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(168, 137, 79, 0.55) 35%,
    rgba(120, 96, 68, 0.45) 65%,
    transparent 100%
  );
}

.guestbook-notes__ornament::after {
  content: "";
  display: block;
  width: 0.28rem;
  height: 0.28rem;
  margin: -0.14rem auto 0;
  border-radius: 50%;
  background: rgba(168, 137, 79, 0.55);
  box-shadow: 0 0 0 3px rgba(250, 244, 234, 0.9);
}

.guestbook-entries-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(74, 64, 52, 0.55);
}

.guestbook-entries-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.45rem);
  font-weight: 500;
  margin: 0 0 0.65rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #2f291f;
}

.guestbook-entries-lead {
  margin: 0 auto;
  max-width: 38ch;
  color: rgba(74, 64, 52, 0.72);
  line-height: 1.7;
  font-size: 1rem;
}

.guestbook-notes__list,
.contact-page .guestbook-entries,
.contact-page .guestbook-entries-list {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: clamp(1.15rem, 2.4vw, 1.6rem);
  width: min(100%, 40rem);
  margin: 0 auto;
  padding: 0;
}

@media (min-width: 900px) {
  .guestbook-notes__list:not(:has(.guestbook-empty)):not(:has(.guestbook-loading)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 52rem);
    gap: 1.35rem 1.5rem;
  }

  .guestbook-notes__list .guestbook-note:first-child:last-child {
    grid-column: 1 / -1;
    max-width: 32rem;
    justify-self: center;
    width: 100%;
  }
}

.guestbook-note {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 11.5rem;
  background:
    linear-gradient(175deg, #fffcf7 0%, #faf4ea 48%, #f3eadc 100%);
  border: 1px solid rgba(120, 96, 68, 0.14);
  border-radius: 14px;
  padding: clamp(1.5rem, 2.8vw, 1.95rem) clamp(1.35rem, 2.6vw, 1.85rem) clamp(1.55rem, 2.8vw, 2rem);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 10px 28px rgba(61, 52, 40, 0.05);
  transition: box-shadow 280ms var(--ease-out), transform 280ms var(--ease-out), border-color 280ms var(--ease-out);
  overflow: hidden;
}

.guestbook-note::after {
  content: "";
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 1.1rem;
  height: 1.1rem;
  border-top: 1px solid rgba(168, 137, 79, 0.28);
  border-right: 1px solid rgba(168, 137, 79, 0.28);
  opacity: 0.7;
  pointer-events: none;
}

.guestbook-note__accent {
  position: absolute;
  top: 0;
  left: 1.4rem;
  right: 1.4rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(168, 137, 79, 0.45) 20%,
    rgba(148, 122, 72, 0.55) 50%,
    rgba(168, 137, 79, 0.35) 80%,
    transparent 100%
  );
}

.guestbook-note__label {
  margin: 0.15rem 0 0.95rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(120, 96, 68, 0.62);
}

.guestbook-note:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 96, 68, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 34px rgba(61, 52, 40, 0.07);
}

.guestbook-note__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(120, 96, 68, 0.1);
}

.guestbook-note__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.42rem);
  font-weight: 600;
  line-height: 1.2;
  color: #2f291f;
  letter-spacing: 0.01em;
}

.guestbook-note__date {
  display: block;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: rgba(74, 64, 52, 0.58);
}

.guestbook-note__message {
  flex: 1 1 auto;
  margin: 0;
  max-width: 38ch;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.1vw, 1.32rem);
  line-height: 1.78;
  color: #3a3228;
  font-weight: 400;
  font-style: italic;
}

.guestbook-note__replies {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.35rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(120, 96, 68, 0.1);
}

.guestbook-note__host-reply {
  padding: 0.95rem 1.05rem 1.05rem;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(236, 243, 239, 0.78));
  border: 1px solid rgba(58, 90, 80, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.guestbook-note__host-reply-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.7rem;
  margin-bottom: 0.55rem;
}

.guestbook-note__host-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(58, 90, 80, 0.08);
  color: #2f4a42;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid rgba(58, 90, 80, 0.14);
}

.guestbook-note__host-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #2f291f;
}

.guestbook-note__host-date {
  margin-left: auto;
  font-size: 0.74rem;
  color: rgba(74, 64, 52, 0.55);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.guestbook-note__host-body {
  margin: 0;
  max-width: 42ch;
  line-height: 1.7;
  color: #3f3830;
  font-size: 0.96rem;
}

.guestbook-empty,
.guestbook-loading {
  grid-column: 1 / -1;
  width: min(100%, 28rem);
  margin: 0.35rem auto 0;
  padding: clamp(2.25rem, 4vw, 2.85rem) clamp(1.4rem, 3vw, 2rem);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-style: italic;
  line-height: 1.7;
  color: rgba(74, 64, 52, 0.72);
  border-radius: 14px;
  background: linear-gradient(175deg, rgba(255, 252, 247, 0.9), rgba(246, 239, 228, 0.85));
  border: 1px solid rgba(120, 96, 68, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

@media (min-width: 1024px) {
  .contact-cards .contact-card:nth-child(-n+3) {
    min-height: 100%;
  }
}

@media (max-width: 1024px) {
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-cards .contact-card:nth-child(n) {
    grid-column: auto;
  }

  .contact-cards .contact-card:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .guestbook-panel {
    grid-template-columns: 1fr;
  }

  .guestbook-panel__left {
    order: 1;
  }

  .guestbook-panel__form {
    order: 2;
  }

  .guestbook-panel__artwork {
    min-height: 12rem;
    max-height: 18rem;
  }
}

@media (max-width: 640px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-cards .contact-card:nth-child(3) {
    grid-column: auto;
  }

  .guestbook-notes {
    margin-top: clamp(2.25rem, 6vw, 3rem);
    padding: 1.75rem 0.65rem 2.5rem;
    border-radius: 16px;
  }

  .guestbook-note {
    min-height: 0;
    padding: 1.4rem 1.25rem 1.5rem;
  }

  .guestbook-note::after {
    top: 0.7rem;
    right: 0.7rem;
    width: 0.85rem;
    height: 0.85rem;
  }

  .guestbook-note__message {
    max-width: none;
  }

  .guestbook-note__host-date {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page .contact-card {
    opacity: 1;
    transform: none;
    transition: box-shadow 250ms var(--ease-out);
  }

  .contact-page .contact-card:hover {
    transform: none;
  }

  .guestbook-note:hover {
    transform: none;
  }
}

.blog-archive-more {
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.blog-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--color-accent);
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.blog-more-link:hover {
  color: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ---- Inner page hero (light) ---- */

.page-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2rem);
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.page-lead {
  margin: 1rem 0 0;
  max-width: 48ch;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

/* ---- Legacy header (unused; kept for reference) ---- */

.site-header {
  display: none;
}

.site-header--compact {
  display: none;
}

/* ---- Navigation ---- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216, 212, 204, 0.65);
  box-shadow: none;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0 1.25rem;
}

.site-nav-brand {
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
}

.site-nav-brand:hover {
  color: var(--color-primary);
}

.nav-link {
  color: var(--color-nav-text);
  text-decoration: none;
  padding: 1rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.25s var(--ease-out);
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  background: transparent;
  color: var(--color-text);
}

.nav-link.active {
  border-bottom-color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s, opacity 0.2s;
}

/* ---- Main content ---- */

.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem) var(--section-gap);
}

.intro {
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.intro p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 52ch;
  font-size: 1.1rem;
  line-height: 1.75;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 clamp(2rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.blog-section {
  margin-top: clamp(1rem, 3vw, 2rem);
}

/* ---- Blog entries ---- */

.blog-grid {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.blog-card {
  background: var(--color-surface);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  height: 100%;
}

.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card-link:hover .blog-card {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.blog-card-link:hover .blog-card h3 {
  color: var(--color-accent);
}

.blog-card-link:hover .read-more {
  color: var(--color-accent-dark);
}

.blog-card:hover {
  box-shadow: var(--shadow-sm);
  transform: none;
}

.blog-card-image,
.card-image {
  width: 100%;
  aspect-ratio: var(--blog-hero-aspect);
  max-height: 620px;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transition: transform 0.6s var(--ease-out);
}

.blog-card-link:hover .blog-card-image {
  transform: scale(1.02);
}

.blog-card-inner {
  padding: 1.75rem 2rem;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.blog-location {
  color: var(--color-accent);
  font-weight: 600;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.blog-card p {
  margin: 0;
  color: var(--color-text-muted);
}

.blog-card .read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-accent);
}

.blog-empty {
  padding: 2rem;
  text-align: center;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 2px dashed #d4cfc7;
}

/* ---- Full blog post ---- */

.blog-post {
  width: 100%;
}

.blog-post-header {
  margin-bottom: 2rem;
  width: 100%;
  max-width: 40rem;
}

.blog-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text-muted);
}

.blog-back:hover {
  color: var(--color-accent);
}

.blog-post-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 500;
  margin: 0.5rem 0 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.blog-post-hero-frame {
  width: 100%;
  margin-bottom: 2.5rem;
  border-radius: var(--photo-radius, 10px);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-bg);
}

.blog-post-hero {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.blog-post-content {
  width: 100%;
  max-width: 100%;
}

.blog-post-content > p {
  margin: 0 0 1.35rem;
  color: var(--color-text);
  line-height: 1.8;
}

.blog-post-photos {
  width: 100%;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.blog-post-photo {
  margin: 0;
  width: 100%;
}

.blog-post-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.blog-post-photo figcaption {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.blog-post-photo figcaption strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-text);
}

.blog-post-photo figcaption span {
  color: var(--color-text-muted);
}

.blog-post-video {
  width: 100%;
  max-width: 100%;
  margin: clamp(2rem, 5vw, 3rem) 0;
}

.photo-article .blog-post-video {
  margin: 0;
}

.blog-video-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: var(--photo-radius);
  overflow: hidden;
  background: transparent;
}

.blog-video-card__frame {
  width: 100%;
  border-radius: var(--photo-radius);
  overflow: hidden;
  background: #0f0f0f;
}

.blog-video-card__frame video {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border: 0;
  object-fit: contain;
}

.blog-video-card__frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  border: 0;
}

.blog-video-card__caption {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  text-align: center;
}

.blog-post-video iframe,
.blog-post-video video {
  background: #0f0f0f;
}

.blog-post-video figcaption {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.88rem;
  padding: 0 0.15rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ---- Countries ---- */

.current-location-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 2rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-accent);
  font-size: 1rem;
  color: var(--color-text-muted);
}

.current-location-banner strong {
  color: var(--color-text);
}

.current-location-dot,
.country-status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  animation: location-pulse 2s ease-in-out infinite;
}

@keyframes location-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(196, 92, 62, 0.5);
  }
  50% {
    opacity: 0.85;
    box-shadow: 0 0 0 6px rgba(196, 92, 62, 0);
  }
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* ---- Journey path ---- */

.journey-path {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
}

.journey-stop {
  position: relative;
}

.journey-stop-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.journey-stop-link:hover .journey-node {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.journey-stop-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.journey-node {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.journey-stop--current .journey-node {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.journey-flag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  flex-shrink: 0;
  width: 2.25rem;
  text-align: center;
  color: var(--color-text-muted);
}

.journey-stop-text h3 {
  font-family: var(--font-display);
  margin: 0 0 0.15rem;
  font-size: 1.35rem;
}

.journey-region {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.journey-badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.journey-badge--here {
  background: var(--color-accent);
  color: #fff;
}

.journey-leg {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 4.5rem;
  padding: 0.5rem 0 0.5rem 2.6rem;
}

.journey-leg-line {
  position: absolute;
  left: 1.15rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-nav-bg);
  border-radius: 2px;
}

.journey-leg--unknown .journey-leg-line {
  background: repeating-linear-gradient(
    to bottom,
    #b8b2aa 0,
    #b8b2aa 6px,
    transparent 6px,
    transparent 12px
  );
}

.journey-leg-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1rem;
  margin: auto 0;
  background: var(--color-bg);
  border-radius: 8px;
  border: 1px solid #d4cfc7;
  width: 100%;
}

.journey-leg--flight .journey-leg-card {
  border-color: #7eb8c9;
  background: #eef6f8;
}

.journey-leg--train .journey-leg-card {
  border-color: #8fad7a;
  background: #f0f4ec;
}

.journey-leg--unknown .journey-leg-card {
  border-style: dashed;
  background: transparent;
  color: var(--color-text-muted);
}

.journey-leg-icon {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  flex-shrink: 0;
  width: 1.75rem;
  text-align: center;
  color: var(--color-text-muted);
}

.journey-leg--unknown .journey-leg-icon {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.journey-leg-method {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.journey-leg-date {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
}

.journey-leg--unknown .journey-leg-method {
  font-weight: 500;
  color: var(--color-text-muted);
}

.country-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.country-card--current {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.country-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.country-card--placeholder {
  border: 2px dashed #d4cfc7;
  background: transparent;
  box-shadow: none;
}

.country-flag {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.country-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}

.country-region {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.country-dates {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 600;
}

.country-card p:last-child {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* ---- Videos ---- */

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.media-card {
  background: var(--color-surface);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.media-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.media-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.media-card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.media-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.media-source {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.media-source--youtube {
  background: #ff0000;
  color: #fff;
}

.media-source--nas {
  background: var(--color-nav-bg);
  color: var(--color-nav-text);
}

.media-date {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
}

.media-card-body p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.video-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
}

.video-thumb:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: -3px;
}

.video-thumb-image,
.video-thumb-poster,
.thumbnail-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
}

.video-thumb-poster--local {
  background: var(--color-primary-muted);
}

.video-thumb-poster--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.35rem;
  line-height: 4rem;
  text-align: center;
  padding-left: 0.2rem;
  pointer-events: none;
}

.video-lightbox-player {
  width: min(90vw, 1100px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.video-lightbox-player iframe,
.video-lightbox-player video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-lightbox-player video {
  object-fit: contain;
  background: #000;
}

.lightbox--video .lightbox-content {
  width: 100%;
  max-width: 1100px;
}

.media-card--placeholder {
  border: 2px dashed #d4cfc7;
  background: transparent;
  box-shadow: none;
}

/* ---- Pictures ---- */

.pictures-page {
  width: 100%;
}

.pictures-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.pictures-row--duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: start;
}

.pictures-row--solo {
  width: 100%;
}

.pictures-figure {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--color-bg);
}

.pictures-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.55s var(--ease-out), opacity 0.35s var(--ease-out);
}

.pictures-figure:hover img {
  opacity: 0.94;
}

.pictures-row--solo .pictures-figure--portrait {
  display: flex;
  justify-content: center;
  background: var(--color-bg);
}

.pictures-row--solo .pictures-figure--portrait img {
  width: auto;
  max-width: 100%;
  max-height: min(92vh, 980px);
}

.pictures-row--duo .pictures-figure {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pictures-row--duo .pictures-figure--portrait img,
.pictures-row--duo .pictures-figure--landscape img {
  width: 100%;
  height: auto;
  max-height: min(72vh, 820px);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.photo-item {
  margin: 0;
  background: var(--color-surface);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.photo-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.photo-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.photo-item:not(.photo-item--placeholder) img {
  cursor: pointer;
}

.photo-placeholder {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-sand);
  color: var(--color-text-muted);
  font-weight: 500;
}

.photo-item figcaption {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.photo-item figcaption strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-text);
}

.photo-item figcaption span {
  color: var(--color-text-muted);
}

.photo-item--placeholder {
  border: 2px dashed #d4cfc7;
  background: transparent;
  box-shadow: none;
}

/* ---- Lightbox ---- */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(6, 8, 10, 0.94);
  padding: clamp(2rem, 5vh, 3.5rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vh, 3rem);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  width: 100%;
  max-width: none;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.lightbox:not(.lightbox--video) .lightbox-content {
  width: auto;
}

.lightbox:not(.lightbox--video) .lightbox-stage {
  position: relative;
  display: inline-block;
  max-width: 90vw;
  max-height: 90vh;
  flex-shrink: 0;
  line-height: 0;
}

.lightbox:not(.lightbox--video) .lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .lightbox:not(.lightbox--video) .lightbox-stage:not(.lightbox-stage--show-caption)::after {
    content: "Click image for details";
    position: absolute;
    bottom: 0.65rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    color: rgba(240, 235, 227, 0.42);
    background: rgba(0, 0, 0, 0.22);
    pointer-events: none;
    line-height: 1.4;
    white-space: nowrap;
  }

  .lightbox:not(.lightbox--video) .lightbox-stage.lightbox-stage--show-caption::after {
    display: none;
  }
}

.lightbox--video .lightbox-caption,
.lightbox-content > .lightbox-caption {
  width: min(36rem, 90vw);
  text-align: center;
  color: rgba(240, 235, 227, 0.92);
  padding: clamp(1.75rem, 4vh, 2.75rem) clamp(0.5rem, 2vw, 1rem) clamp(1rem, 3vh, 2rem);
  flex-shrink: 0;
}

.lightbox:not(.lightbox--video) .lightbox-stage .lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  padding: clamp(2.5rem, 9vh, 4rem) clamp(1rem, 3vw, 1.5rem) clamp(1rem, 2.5vh, 1.5rem);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: rgba(240, 235, 227, 0.92);
  text-align: center;
  pointer-events: none;
  box-sizing: border-box;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.lightbox:not(.lightbox--video) .lightbox-stage.lightbox-stage--show-caption .lightbox-caption {
  opacity: 1;
  visibility: visible;
}

.lightbox:not(.lightbox--video) .lightbox-stage .lightbox-title,
.lightbox:not(.lightbox--video) .lightbox-stage .lightbox-location,
.lightbox:not(.lightbox--video) .lightbox-stage .lightbox-date,
.lightbox:not(.lightbox--video) .lightbox-stage .lightbox-meta {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.lightbox-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
}

.lightbox-location,
.lightbox-date {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(240, 235, 227, 0.72);
}

.lightbox-location[hidden],
.lightbox-date[hidden] {
  display: none;
}

.lightbox-meta {
  width: 100%;
  margin: clamp(1.75rem, 4vh, 2.5rem) 0 0;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(240, 235, 227, 0.78);
  text-align: center;
  flex-shrink: 0;
}

.lightbox:not(.lightbox--video) .lightbox-stage .lightbox-meta {
  margin-top: 0.85rem;
}

.lightbox-meta::before,
.lightbox-meta__section + .lightbox-meta__section::before {
  content: "━━━━━━━━━━━━━━━━━━━━━━";
  display: block;
  margin: 0 auto 1.35rem;
  max-width: 14rem;
  font-size: 0.5rem;
  line-height: 1;
  letter-spacing: 0.06em;
  color: rgba(240, 235, 227, 0.32);
  overflow: hidden;
  white-space: nowrap;
}

.lightbox:not(.lightbox--video) .lightbox-stage .lightbox-meta::before {
  margin-bottom: 0.85rem;
}

.lightbox:not(.lightbox--video) .lightbox-stage .lightbox-meta__section + .lightbox-meta__section::before {
  margin-bottom: 0.75rem;
}

.lightbox-meta::before {
  margin-bottom: clamp(1.35rem, 3vh, 1.75rem);
}

.lightbox-meta[hidden] {
  display: none;
}

.lightbox-meta__section + .lightbox-meta__section {
  margin-top: 1.35rem;
}

.lightbox:not(.lightbox--video) .lightbox-stage .lightbox-meta__section + .lightbox-meta__section {
  margin-top: 0.75rem;
}

.lightbox-meta__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 235, 227, 0.48);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1;
}

.lightbox-close:hover {
  color: #fff;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.1rem;
  z-index: 1;
}

.lightbox-nav:hover:not(:disabled) {
  color: #fff;
}

.lightbox-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* ---- Location updater ---- */

.location-update {
  max-width: 32rem;
}

.location-update-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.location-update-input {
  width: 100%;
  max-width: 16rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid #d4cfc7;
  border-radius: 8px;
  font: inherit;
}

.location-update-btn {
  border: none;
  cursor: pointer;
  font: inherit;
}

.location-update-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.location-update-status {
  margin: 1rem 0 0;
  color: var(--color-text-muted);
}

.location-update-status--error {
  color: #9a5c4a;
}

.location-update-preview {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.location-update-preview h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.location-update-note {
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

/* ---- Footer ---- */

.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem);
  background: var(--color-text);
  color: rgba(247, 246, 243, 0.75);
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer-brand {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--color-sand);
  margin: 0 0 0.5rem;
}

.site-footer-tagline {
  margin: 0;
  max-width: 30ch;
  line-height: 1.65;
  font-size: 0.95rem;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
}

.site-footer-links a {
  color: rgba(247, 246, 243, 0.7);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.25s var(--ease-out);
}

.site-footer-links a:hover {
  color: var(--color-sand);
}

.site-footer-bottom {
  max-width: var(--max-width);
  margin: 2.25rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(247, 246, 243, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(247, 246, 243, 0.45);
}

.site-footer-bottom p {
  margin: 0;
}

.site-footer p {
  margin: 0;
}

/* ---- Country pages ---- */

.countries-page .main-content {
  max-width: min(1680px, 98vw);
}

.countries-collection {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.countries-directory {
  display: grid;
  grid-template-columns: repeat(3, 420px);
  column-gap: 40px;
  row-gap: 28px;
  margin-bottom: 32px;
  justify-content: center;
}

@media (max-width: 1024px) {
  .countries-directory {
    grid-template-columns: repeat(2, minmax(0, 420px));
  }
}

@media (max-width: 560px) {
  .countries-directory {
    grid-template-columns: minmax(0, 1fr);
  }
}

.countries-collection .current-location-banner {
  margin: 0;
}

.countries-directory .country-card {
  position: relative;
  display: inline-block;
  width: 420px;
  max-width: 100%;
  aspect-ratio: 420 / 340;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  vertical-align: top;
  transition:
    transform 250ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

.countries-directory .country-card:hover,
.countries-directory .country-card:focus-visible {
  transform: translateY(-10px) scale(1.025);
}

.countries-directory .country-card:focus-visible {
  outline: 2px solid rgba(42, 50, 56, 0.28);
  outline-offset: 4px;
}

.countries-directory .country-card__art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 10px 24px rgba(42, 50, 56, 0.1));
  transition: filter 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

.countries-directory .country-card:hover .country-card__art,
.countries-directory .country-card:focus-visible .country-card__art {
  filter: drop-shadow(0 22px 44px rgba(42, 50, 56, 0.18));
}

.countries-directory .country-card__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding-top: 72px;
  padding-left: 52px;
  padding-right: 1rem;
  pointer-events: none;
}

.countries-directory .country-card-flag {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 20px;
  color: rgba(42, 50, 56, 0.62);
}

.countries-directory .country-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.48rem, 2.65vw, 1.82rem);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 16px;
  color: var(--color-text);
}

.countries-directory .country-card-region {
  margin: 0 0 22px;
  font-size: 0.924rem;
  line-height: 1.45;
  color: rgba(42, 50, 56, 0.68);
}

.countries-directory .country-card-count {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--color-primary);
}

@media (max-width: 560px) {
  .countries-directory .country-card {
    width: min(100%, 420px);
  }

  .countries-directory .country-card__content {
    padding-top: clamp(56px, 13vw, 68px);
    padding-left: clamp(36px, 10vw, 48px);
  }
}

/* Country pages — shared responsive hero + overlay */
.country-page .site-hero--responsive.site-hero--overlay {
  --site-hero-height: min(max(280px, calc(100vw / var(--site-hero-cinematic-ratio))), var(--site-hero-cinematic-max-height));
  --site-hero-position: center center;
}

/* Country pages — artwork/custom: clean banner, no dark fade */
.country-page .site-hero--overlay.site-hero--active-artwork,
.country-page .site-hero--overlay.site-hero--active-custom {
  display: flex;
  flex-direction: column;
  height: auto;
  background: var(--color-bg);
}

.country-page .site-hero--overlay.site-hero--active-artwork .site-hero__overlay,
.country-page .site-hero--overlay.site-hero--active-custom .site-hero__overlay {
  display: none;
}

.country-page .site-hero--overlay.site-hero--active-artwork .site-hero__variant--artwork .site-hero__image,
.country-page .site-hero--overlay.site-hero--active-custom .site-hero__variant--artwork .site-hero__image,
.country-page .site-hero--overlay.site-hero--active-artwork .site-hero__variant--cinematic .site-hero__image,
.country-page .site-hero--overlay.site-hero--active-custom .site-hero__variant--cinematic .site-hero__image {
  position: static;
  opacity: 1;
  animation: none;
}

.country-page .site-hero--overlay.site-hero--active-artwork .site-hero__content,
.country-page .site-hero--overlay.site-hero--active-custom .site-hero__content {
  position: static;
  inset: auto;
  opacity: 1;
  transform: none;
  animation: none;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem) clamp(0.5rem, 2vw, 1rem);
}

.country-page .site-hero--overlay.site-hero--active-artwork .site-hero__eyebrow,
.country-page .site-hero--overlay.site-hero--active-custom .site-hero__eyebrow {
  color: var(--color-warm);
}

.country-page .site-hero--overlay.site-hero--active-artwork .site-hero__title,
.country-page .site-hero--overlay.site-hero--active-custom .site-hero__title {
  max-width: none;
  color: var(--color-text);
}

.country-page .site-hero--overlay.site-hero--active-artwork .site-hero__lead,
.country-page .site-hero--overlay.site-hero--active-custom .site-hero__lead {
  color: var(--color-text-muted);
}

.country-page .site-hero--overlay .site-hero__lead {
  max-width: 38ch;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.country-page #country-site-hero,
.country-page #country-header-fallback {
  position: relative;
}

.country-page #country-site-hero[hidden] .country-hero-nav,
.country-page #country-header-fallback[hidden] .country-hero-nav {
  display: none;
}

.country-hero-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: var(--country-hero-nav-height, var(--site-hero-height));
  padding: 0 clamp(0.65rem, 2.2vw, 1.65rem);
  pointer-events: none;
}

.country-page .site-hero--overlay.site-hero--active-artwork .country-hero-nav,
.country-page .site-hero--overlay.site-hero--active-custom .country-hero-nav {
  height: min(calc(100vw / var(--site-hero-artwork-ratio, 3.2)), 800px);
}

.country-page #country-header-fallback .country-hero-nav {
  height: 100%;
  min-height: 7rem;
}

.country-hero-nav__btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.55rem 1rem 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(42, 50, 56, 0.08);
  color: var(--color-text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.country-hero-nav__btn--next {
  padding: 0.55rem 0.85rem 0.55rem 1rem;
}

.country-hero-nav__btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(42, 50, 56, 0.12);
}

.country-hero-nav__btn:focus-visible {
  outline: 2px solid rgba(42, 50, 56, 0.35);
  outline-offset: 2px;
}

.country-hero-nav__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .country-hero-nav {
    padding: 0 0.45rem;
  }

  .country-hero-nav__btn {
    min-height: 2.35rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
  }

  .country-hero-nav__btn--next {
    padding: 0.5rem 0.65rem;
  }
}

@media (max-width: 480px) {
  .country-hero-nav__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .country-hero-nav__btn {
    width: 2.35rem;
    height: 2.35rem;
    min-height: 0;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .country-hero-nav__btn--prev {
    padding-left: 0;
  }

  .country-hero-nav__btn--next {
    padding-right: 0;
  }
}

.country-page .country-back-wrap {
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.country-back-wrap {
  margin: 0 0 2rem;
}

.country-page .page-hero {
  padding-top: clamp(2rem, 4vw, 3rem);
}

/* ---- Editorial gallery (blog) ---- */

.blog-post-content {
  --prose-width: 40rem;
}

.blog-post-content > p,
.blog-post-content > h2,
.blog-post-content > .blog-post-lead,
.blog-post-header {
  max-width: var(--prose-width);
}

.blog-post-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 500;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 1rem;
  padding-bottom: 0;
  border-bottom: none;
  color: var(--color-text);
}

.blog-post-lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* ---- Photo article (blog galleries) ---- */

/* Uncropped images inside blog posts */
.blog-post-content img:not(.card-image):not(.thumbnail-image):not(.post-image-cropped),
.article-content img:not(.card-image):not(.thumbnail-image):not(.post-image-cropped) {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.blog-post-content > .photo-article {
  max-width: none;
  width: 100%;
}

.photo-article .blog-video-card,
.photo-article .blog-post-video {
  width: 100%;
  max-width: 100%;
}

.photo-article {
  --photo-gap: clamp(1.15rem, 2.8vw, 1.75rem);
  --photo-radius: 10px;
  --photo-text-inset: 10px;
  width: 100%;
  margin: clamp(2.5rem, 6vw, 4rem) 0;
  display: flex;
  flex-direction: column;
  gap: var(--photo-gap);
}

.photo-article__text {
  margin: clamp(2rem, 5vw, 3.25rem) 0 0;
  width: 100%;
  max-width: 100%;
  padding-left: var(--photo-text-inset);
  padding-right: var(--photo-text-inset);
  box-sizing: border-box;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.photo-article__text:first-child {
  margin-top: 0;
}

.photo-layout {
  display: grid;
  gap: var(--photo-gap);
  width: 100%;
  align-items: start;
}

.photo-layout--landscape {
  grid-template-columns: minmax(0, 1fr);
}

.photo-layout--duo-landscape,
.photo-layout--two-portraits {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-layout--trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-layout--portrait {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.photo-layout--landscape-plus-two-portraits {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-layout--landscape-plus-two-portraits .photo-frame:first-child {
  grid-column: 1 / -1;
}

.photo-frame {
  margin: 0;
  border-radius: var(--photo-radius);
  background: var(--color-bg);
  overflow: hidden;
}

.photo-frame--centered {
  display: flex;
  justify-content: center;
  width: 100%;
}

.post-image-full,
.post-image-landscape {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  cursor: pointer;
  transition: opacity 0.35s var(--ease-out);
}

.post-image-portrait {
  width: 100%;
  max-width: min(100%, 22rem);
  height: auto;
  display: block;
  object-fit: contain;
  margin-inline: auto;
  cursor: pointer;
  transition: opacity 0.35s var(--ease-out);
}

.post-image-cropped {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame:hover .post-image-full,
.photo-frame:hover .post-image-landscape,
.photo-frame:hover .post-image-portrait {
  opacity: 0.94;
}

.photo-frame__caption {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  display: none;
}

.photo-article--show-captions .photo-frame__caption {
  display: block;
}

.photo-frame--video,
.blog-post-video.photo-frame {
  width: 100%;
  max-width: 100%;
  background: transparent;
}

.photo-frame--video iframe,
.photo-frame--video video,
.blog-post-video.photo-frame iframe,
.blog-post-video.photo-frame video {
  border: 0;
}

/* Legacy editorial aliases (older posts / examples) */
.editorial-gallery {
  width: 100%;
  max-width: 100%;
  margin: clamp(2.5rem, 6vw, 4rem) 0;
  display: flex;
  flex-direction: column;
  gap: var(--photo-gap, clamp(1.15rem, 2.8vw, 1.75rem));
}

.editorial-row {
  display: grid;
  gap: var(--photo-gap, clamp(1.15rem, 2.8vw, 1.75rem));
  align-items: start;
}

.editorial-row--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editorial-row--trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editorial-figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--photo-radius, 10px);
  background: var(--color-bg);
}

.editorial-figure--portrait {
  display: flex;
  justify-content: center;
}

.editorial-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center center;
  cursor: pointer;
  transition: opacity 0.35s var(--ease-out);
}

.editorial-figure--portrait img {
  max-width: min(100%, 22rem);
}

.editorial-figure:hover img {
  opacity: 0.94;
}

.editorial-gallery .editorial-figure figcaption,
.blog-post-video figcaption {
  display: none;
}

.editorial-cluster {
  display: flex;
  flex-direction: column;
  gap: var(--photo-gap, clamp(1.15rem, 2.8vw, 1.75rem));
}

.editorial-cluster-text,
.photo-article__text {
  margin: clamp(2rem, 5vw, 3.25rem) 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.photo-article__text {
  width: 100%;
  max-width: 100%;
  padding-left: var(--photo-text-inset, 10px);
  padding-right: var(--photo-text-inset, 10px);
  box-sizing: border-box;
}

.editorial-cluster-text {
  max-width: 36em;
}

.editorial-cluster-text:first-child {
  margin-top: 0;
}

.editorial-figure figcaption {
  margin-top: 0.75rem;
  display: none;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .nav-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-nav-brand {
    margin-right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-inner:not(.nav-open) .nav-link:not(.active) {
    display: none;
  }

  .nav-inner.nav-open {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.5rem;
  }

  .nav-inner.nav-open .nav-link {
    display: block;
    border-bottom: none;
    border-left: 3px solid transparent;
    padding: 0.85rem 1.25rem;
  }

  .nav-inner.nav-open .nav-link.active {
    border-left-color: var(--color-primary);
  }

  .blog-card-inner {
    padding: 1.25rem 1.5rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-cards .contact-card:nth-child(3) {
    grid-column: auto;
  }

  .media-grid,
  .photo-gallery,
  .countries-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .lightbox {
    padding: clamp(1.5rem, 4vh, 2.5rem) clamp(0.75rem, 3vw, 1.25rem) clamp(1.5rem, 4vh, 2rem);
  }

  .lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.75rem;
  }

  .lightbox-prev {
    left: 0.35rem;
  }

  .lightbox-next {
    right: 0.35rem;
  }

  .lightbox:not(.lightbox--video) .lightbox-stage .lightbox-caption {
    padding: clamp(2rem, 8vh, 3rem) clamp(0.75rem, 3vw, 1.25rem) clamp(0.85rem, 2vh, 1.25rem);
  }

  .photo-layout--duo-landscape,
  .photo-layout--two-portraits,
  .photo-layout--trio,
  .photo-layout--landscape-plus-two-portraits,
  .editorial-row--duo,
  .editorial-row--trio,
  .pictures-row--duo {
    grid-template-columns: 1fr;
  }

  .photo-layout--landscape-plus-two-portraits .photo-frame:first-child {
    grid-column: auto;
  }

  .photo-frame--solo-portrait,
  .post-image-portrait {
    max-width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-hero-image {
    transform: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
