/* ============================================
   Kaare Øster — Editorial Nordic Design
   Playfair Display + Source Serif 4 + DM Sans
   ============================================ */

:root {
  --cream:       #faf8f3;
  --white:       #ffffff;
  --sand:        #f0ebe0;
  --sand-dark:   #e2d9c8;
  --navy:        #1a3a5c;
  --navy-light:  #2a5298;
  --teal:        #2d7a6e;
  --teal-light:  #e0f0ee;
  --warm:        #c8773a;
  --warm-light:  #fdf3eb;
  --text:        #1e1c18;
  --text-mid:    #4a4640;
  --muted:       #8a857c;
  --border:      #e2ddd4;
  --shadow-sm:   0 2px 8px rgba(26,20,10,0.07);
  --shadow-md:   0 6px 24px rgba(26,20,10,0.10);
  --shadow-lg:   0 16px 48px rgba(26,20,10,0.14);
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-body:   'Source Serif 4', Georgia, serif;
  --font-sans:   'DM Sans', 'Helvetica Neue', sans-serif;
  --max-width:   1080px;
  --nav-height:  68px;
  --radius:      10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); line-height: 1.2; font-weight: 700; }
h1 { font-size: 2.4rem; margin-bottom: 0.6rem; }
h2 { font-size: 1.7rem; margin: 2.5rem 0 0.8rem; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }
p { margin-bottom: 1.3rem; color: var(--text-mid); }
a { color: var(--navy-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal); }
strong { font-weight: 700; color: var(--text); }
em { font-style: italic; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.3rem; }
li { margin-bottom: 0.4rem; color: var(--text-mid); }
blockquote {
  border-left: 3px solid var(--teal);
  padding: 0.75rem 1.5rem;
  margin: 2rem 0;
  background: var(--teal-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-mid);
}
hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* ============================================ NAVIGATION */
.site-nav {
  background: rgba(250,248,243,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: var(--shadow-sm); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.site-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy) !important;
  text-decoration: none !important;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.site-title-sub {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 0.2rem; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  transition: all 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 1.7rem);
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-links a:hover { color: var(--navy); background: var(--sand); }
.nav-links a:hover::after, .nav-links a.active::after { transform: translateX(-50%) scaleX(1); }
.nav-links a.active { color: var(--navy); font-weight: 600; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; flex-direction: column; gap: 5px; border-radius: 6px; transition: background 0.2s; }
.nav-toggle:hover { background: var(--sand); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ============================================ HERO */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 50%, rgba(45,122,110,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(42,82,152,0.38) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 55% 85%, rgba(200,119,58,0.18) 0%, transparent 50%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.3);
}
.hero h1 {
  font-family: var(--font-serif);
  color: white;
  font-size: 3.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 1.1rem;
}
.hero h1 em { font-style: italic; color: rgba(255,255,255,0.72); font-weight: 400; }
.hero-desc {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.52);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-inner > * { animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) both; }
.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.17s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.28s; }

/* ============================================ HOME INTRO */
.home-intro { background: var(--white); border-bottom: 1px solid var(--border); }
.home-intro-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.intro-block {
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--border);
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.intro-block:last-child { border-right: none; }
.intro-block::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  border-radius: 2px 2px 0 0;
}
.intro-block:nth-child(1)::before { background: var(--teal); }
.intro-block:nth-child(2)::before { background: var(--warm); }
.intro-block:nth-child(3)::before { background: var(--navy-light); }
.intro-block:hover { background: var(--cream); }
.intro-block:hover::before { transform: scaleX(1); }
.intro-icon { font-size: 1.75rem; margin-bottom: 0.75rem; display: block; }
.intro-block h3 { font-family: var(--font-sans); font-size: 0.77rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--navy); margin: 0 0 0.4rem; }
.intro-block p { font-family: var(--font-sans); font-size: 0.85rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* ============================================ SECTION HEADERS */
.section-header {
  padding: 3.5rem 0 2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-header h2 { font-size: 1.5rem; margin: 0; }
.section-header-link {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s, gap 0.2s;
}
.section-header-link:hover { color: var(--teal); gap: 0.55rem; text-decoration: none; }

.page-header { padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 3rem; }
.page-header h1 { font-size: 2rem; margin-bottom: 0.4rem; }
.page-header .lead { font-family: var(--font-sans); color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ============================================ CATEGORY PILLS */
.category-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.5rem 0 2.5rem; }
.category-pill {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  background: var(--white);
  transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.category-pill:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-light); transform: translateY(-1px); text-decoration: none; }
.category-pill.active { border-color: var(--navy); color: white; background: var(--navy); transform: translateY(-1px); }

/* ============================================ POST CARDS */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.75rem; margin-bottom: 3rem; }

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }

.post-card-image-wrap { overflow: hidden; height: 190px; flex-shrink: 0; }
.post-card-image { width: 100%; height: 190px; object-fit: cover; border-radius: 0; transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94); }
.post-card:hover .post-card-image { transform: scale(1.05); }

.post-card-placeholder {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}
.ph-teal   { background: linear-gradient(135deg, #d8eeeb 0%, #a8d8d0 100%); }
.ph-blue   { background: linear-gradient(135deg, #dce8f8 0%, #b0c8f0 100%); }
.ph-green  { background: linear-gradient(135deg, #e4f0dc 0%, #bcd8a8 100%); }
.ph-arctic { background: linear-gradient(135deg, #dceef8 0%, #a8ccec 100%); }
.ph-warm   { background: linear-gradient(135deg, #faeee0 0%, #f0d0a8 100%); }
.ph-sand   { background: linear-gradient(135deg, var(--sand) 0%, var(--sand-dark) 100%); }

.post-card-body { padding: 1.35rem 1.4rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.post-card-meta { font-family: var(--font-sans); font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }

.cat-badge { padding: 0.15rem 0.55rem; border-radius: 4px; font-weight: 600; font-size: 0.68rem; }
.cat-rejser    { background: #d8eeeb; color: #1a5048; }
.cat-projekt   { background: #e4f0dc; color: #2d5018; }
.cat-bog       { background: #dce8f8; color: #1a3068; }
.cat-udgivelse { background: #dce8f8; color: #1a3068; }
.cat-arktis    { background: #dceef8; color: #123858; }
.cat-verden    { background: #faeee0; color: #6a2e08; }
.cat-default   { background: var(--sand); color: var(--navy); }

.post-card h3 { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: 0 0 0.5rem; color: var(--navy); }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card:hover h3 a { color: var(--teal); }
.post-card-excerpt { font-family: var(--font-sans); font-size: 0.83rem; color: var(--muted); line-height: 1.6; margin: 0; flex: 1; }
.post-card-footer { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--border); }
.read-more { font-family: var(--font-sans); font-size: 0.76rem; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: 0.07em; display: inline-flex; align-items: center; gap: 0.3rem; transition: gap 0.2s; }
.read-more:hover { gap: 0.55rem; color: var(--teal); text-decoration: none; }

/* ============================================ POST LIST */
.post-list { list-style: none; padding: 0; }
.post-list-item { display: flex; gap: 1.75rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border); transition: background 0.2s; }
.post-list-item:last-child { border-bottom: none; }
.post-list-date { font-family: var(--font-sans); font-size: 0.74rem; color: var(--muted); white-space: nowrap; padding-top: 0.2rem; min-width: 85px; }
.post-list-content h3 { font-size: 1rem; margin: 0 0 0.3rem; }
.post-list-content h3 a { color: var(--navy); text-decoration: none; }
.post-list-content h3 a:hover { color: var(--teal); }
.post-list-content p { font-family: var(--font-sans); font-size: 0.84rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ============================================ SINGLE POST */
.post-header { padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; max-width: 720px; }
.post-meta { font-family: var(--font-sans); font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.post-meta .cat-link { color: var(--teal); font-weight: 600; }
.post-featured-image { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin-bottom: 2.5rem; box-shadow: var(--shadow-md); }
.post-content { max-width: 680px; }
.post-content img { margin: 2rem 0; box-shadow: var(--shadow-md); }

/* ============================================ BUTTONS */
.btn {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
}
.btn-primary { background: var(--navy); color: white; box-shadow: 0 2px 10px rgba(26,58,92,0.25); }
.btn-primary:hover { background: var(--teal); color: white; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,122,110,0.38); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); background: var(--teal-light); text-decoration: none; }

/* ============================================ BACK LINK */
.back-link { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 0.35rem; margin-bottom: 2.5rem; text-decoration: none; text-transform: uppercase; letter-spacing: 0.06em; transition: color 0.2s, gap 0.2s; }
.back-link:hover { color: var(--navy); gap: 0.55rem; text-decoration: none; }

/* ============================================ TAGS */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.tag { font-family: var(--font-sans); font-size: 0.74rem; font-weight: 500; padding: 0.3rem 0.75rem; background: var(--sand); color: var(--text-mid); border-radius: 5px; text-decoration: none; transition: all 0.2s; border: 1px solid transparent; }
.tag:hover { background: var(--teal-light); color: var(--teal); border-color: var(--teal); text-decoration: none; transform: translateY(-1px); }

/* ============================================ BIO */
.bio-grid { display: grid; grid-template-columns: 220px 1fr; gap: 3.5rem; align-items: start; margin-top: 2rem; }
.bio-placeholder { width: 100%; aspect-ratio: 3/4; background: linear-gradient(160deg, var(--sand) 0%, var(--sand-dark) 100%); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 4rem; box-shadow: var(--shadow-md); }
.bio-photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: center top; border-radius: var(--radius); box-shadow: var(--shadow-md); display: block; }

/* ============================================ CONTACT */
.contact-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 2.5rem; max-width: 440px; margin: 2rem 0; box-shadow: var(--shadow-sm); }
.contact-card h3 { font-size: 1.1rem; margin: 0 0 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.contact-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; font-family: var(--font-sans); font-size: 0.92rem; color: var(--text-mid); }
.contact-row:last-child { margin-bottom: 0; }
.contact-icon { width: 34px; height: 34px; background: var(--sand); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }

/* ============================================ FOOTER */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.58); padding: 3.5rem 0 2.5rem; margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-name { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: white; margin-bottom: 0.35rem; }
.footer-tagline { font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.38); }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; text-align: right; }
.footer-nav a { font-family: var(--font-sans); font-size: 0.82rem; color: rgba(255,255,255,0.52); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: white; }
.footer-bottom { font-family: var(--font-sans); font-size: 0.74rem; color: rgba(255,255,255,0.28); }

/* ============================================ PAGINATION */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin: 3.5rem 0; }
.pagination a, .pagination span { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500; padding: 0.55rem 1.1rem; border: 1.5px solid var(--border); border-radius: 7px; text-decoration: none; color: var(--text-mid); transition: all 0.2s; background: var(--white); }
.pagination a:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }
.pagination .current { background: var(--navy); color: white; border-color: var(--navy); }

.page-content { padding: 2rem 0 5rem; }

/* ============================================ LIGHTBOX */
.post-featured-image,
.post-content img {
  cursor: zoom-in;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.post-featured-image:hover,
.post-content img:hover { opacity: 0.92; }

.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 8, 6, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  cursor: zoom-out;
}
.lb-overlay.lb-open {
  opacity: 1;
  visibility: visible;
}
.lb-img-wrap {
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lb-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  transform: scale(0.94);
  transition: transform 0.32s cubic-bezier(0.34, 1.3, 0.64, 1);
  cursor: default;
  display: block;
}
.lb-overlay.lb-open .lb-img { transform: scale(1); }
.lb-caption {
  color: rgba(255,255,255,0.55);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-align: center;
  max-width: 560px;
  line-height: 1.5;
  min-height: 1.2em;
}
.lb-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  z-index: 9001;
  backdrop-filter: blur(6px);
}
.lb-close:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); }
.lb-hint {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.3);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ============================================ POST GALLERY */
.post-gallery {
  margin: 2.5rem 0;
  cursor: pointer;
  outline: none;
}

.gallery-grid {
  display: grid;
  gap: 3px;
  border-radius: 10px;
  overflow: hidden;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 210px 210px;
}

.gallery-grid-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 360px;
}

.gallery-grid-2 {
  grid-template-rows: 300px;
}

.gallery-grid-3 .gallery-cell:first-child {
  grid-row: span 2;
}

.gallery-cell {
  position: relative;
  overflow: hidden;
  background: #e0ddd8;
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.38s ease;
  cursor: zoom-in;
}

.post-gallery:hover .gallery-cell img { transform: scale(1.025); }

.gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 4, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 600;
  font-family: var(--font-sans);
  pointer-events: none;
}

.gallery-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-muted, #888);
  margin-top: 0.65rem;
  font-family: var(--font-sans);
}

/* Lightbox navigation arrows */
.lb-prev,
.lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  z-index: 9001;
  backdrop-filter: blur(6px);
  line-height: 1;
  padding: 0;
}
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }
.lb-prev:hover { background: rgba(255,255,255,0.22); transform: translateY(-50%) scale(1.08); }
.lb-next:hover { background: rgba(255,255,255,0.22); transform: translateY(-50%) scale(1.08); }

.lb-counter {
  position: fixed;
  top: 1.35rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  pointer-events: none;
  z-index: 9001;
}

@media (max-width: 600px) {
  .lb-prev { left: 0.4rem; width: 40px; height: 40px; font-size: 1.5rem; }
  .lb-next { right: 0.4rem; width: 40px; height: 40px; font-size: 1.5rem; }
  .gallery-grid { grid-template-rows: 150px 150px; }
  .gallery-grid-1 { grid-template-rows: 240px; }
  .gallery-grid-2 { grid-template-rows: 200px; }
  .gallery-grid-3 .gallery-cell:first-child { grid-row: span 2; }
}

/* ============================================ RESPONSIVE */
@media (max-width: 900px) {
  .home-intro-grid { grid-template-columns: 1fr; }
  .intro-block { border-right: none; border-bottom: 1px solid var(--border); }
  .intro-block:last-child { border-bottom: none; }
  .bio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  html { font-size: 16px; }
  .hero h1 { font-size: 2.4rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem 1.5rem; gap: 0.25rem; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { text-align: left; }
  .container { padding: 0 1.25rem; }
  .post-list-item { flex-direction: column; gap: 0.35rem; }
  .post-list-date { min-width: unset; }
}
