/*
 * Drone Recovery — refreshed design layer.
 * Loaded AFTER bootstrap.min.css and main.css so it overrides them.
 * Palette: warm off-white, deep ink, muted forest, oxidized rust.
 */

:root {
  --dr-bg:        #f4f1ea;   /* warm paper */
  --dr-bg-deep:   #ece7dc;
  --dr-ink:       #1c1c1c;   /* near-black for body */
  --dr-ink-soft:  #4a463f;   /* muted body for meta */
  --dr-rule:      #d8d2c4;
  --dr-accent:    #586456;   /* muted forest */
  --dr-accent-2:  #8b3a2b;   /* oxidized rust (used sparingly) */
  --dr-night:     #15171a;   /* hero / footer dark */
  --dr-cream:     #f4f1ea;
  --serif:        'Lora', Georgia, 'Times New Roman', serif;
  --sans:         'Inter', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ---------- base ---------- */
html, body {
  background: var(--dr-bg);
  color: var(--dr-ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.fullscreen {
  /* home page kenburns canvas — keep dark */
  background: #000;
  color: #eee;
}

p {
  line-height: 1.7;
  margin: 1.1em 0;
  color: var(--dr-ink);
}

a {
  color: var(--dr-accent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 58, 43, 0.25);
  transition: color .15s ease, border-color .15s ease;
}
a:hover, a:focus {
  color: var(--dr-accent);
  border-bottom-color: var(--dr-accent);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--dr-ink);
}
h1 { font-size: 2.4rem; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: 1.7rem; line-height: 1.25; margin: 2em 0 .5em; }
h3 { font-size: 1.25rem; margin: 1.6em 0 .4em; }

blockquote {
  font-style: italic;
  color: var(--dr-ink-soft);
  border-left: 3px solid var(--dr-accent);
  padding: .2em 1.2em;
  margin: 1.6em 0;
}

hr.small {
  max-width: 80px;
  margin: 20px auto;
  border: 0;
  border-top: 2px solid var(--dr-rule);
}

/* ---------- nav ---------- */
.dr-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 234, 0.96);
  border-bottom: 1px solid var(--dr-rule);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  font-family: var(--sans);
}
.dr-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dr-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dr-ink);
  border: 0;
}
.dr-brand:hover { color: var(--dr-accent); border: 0; }
.dr-brand img { height: 28px; width: auto; }

.dr-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dr-nav-links a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dr-ink-soft);
  border: 0;
  border-radius: 4px;
}
.dr-nav-links a:hover,
.dr-nav-links a.is-active {
  color: var(--dr-accent-2);
  background: rgba(139, 58, 43, 0.06);
}
.dr-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--dr-rule);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 18px;
  color: var(--dr-ink);
  cursor: pointer;
}

@media (max-width: 720px) {
  .dr-nav-toggle { display: inline-flex; }
  .dr-nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 8px 0 14px;
    border-top: 1px solid var(--dr-rule);
    margin-top: 10px;
  }
  .dr-nav-inner { flex-wrap: wrap; }
  .dr-nav.is-open .dr-nav-links { display: flex; }
}

/* override / hide the old bootstrap navbar when dr-nav is present */
body:has(.dr-nav) .navbar-custom { display: none !important; }

/* ---------- hero ---------- */
.dr-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.dr-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.8) 100%);
}
.dr-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 72px;
  width: 100%;
}
.dr-hero-eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #d9d5cc;
  margin-bottom: 18px;
}
.dr-hero h1 {
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 .35em;
  max-width: 14ch;
}
.dr-hero p.lede {
  color: #efece3;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  max-width: 46ch;
  margin: 0 0 1.6em;
}

/* ---------- sections ---------- */
.dr-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
}
.dr-section.narrow { max-width: 720px; }
.dr-section.tight  { padding: 40px 24px; }

.dr-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dr-accent);
  margin: 0 0 14px;
}
.dr-section h2.dr-h {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin: 0 0 18px;
}

.dr-pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.5;
  color: var(--dr-ink);
  border-left: 3px solid var(--dr-accent-2);
  padding: 4px 0 4px 24px;
  margin: 24px 0;
}
.dr-pullquote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dr-ink-soft);
}

/* ---------- doorways (3-up cards) ---------- */
.dr-doorways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
}
@media (max-width: 820px) {
  .dr-doorways { grid-template-columns: 1fr; }
}
.dr-doorway {
  display: block;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-height: 320px;
  color: #fff;
  background: #2a2a2a center/cover no-repeat;
  border: 0;
}
.dr-doorway::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 25%, rgba(0,0,0,0.78) 100%);
  transition: background .25s ease;
}
.dr-doorway:hover::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 25%, rgba(0,0,0,0.85) 100%);
}
.dr-doorway-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 22px 24px;
  z-index: 1;
  color: #fff;
}
.dr-doorway-body .label {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #e6e1d2;
  margin-bottom: 6px;
}
.dr-doorway-body h3 {
  font-family: var(--sans);
  color: #fff;
  font-size: 1.45rem;
  margin: 0 0 6px;
}
.dr-doorway-body p {
  margin: 0;
  color: #e0dccd;
  font-family: var(--serif);
  font-size: .98rem;
  line-height: 1.45;
}

/* ---------- timeline (used on /the-journey/) ---------- */
.dr-timeline {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.dr-timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--dr-rule);
}
.dr-tl-item {
  position: relative;
  padding: 0 0 36px 44px;
}
.dr-tl-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dr-accent-2);
  box-shadow: 0 0 0 4px var(--dr-bg);
}
.dr-tl-date {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dr-accent);
  margin: 0 0 4px;
}
.dr-tl-item h3 {
  font-family: var(--sans);
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.dr-tl-item p { margin: .3em 0; }

/* ---------- chapter (large block on journey page) ---------- */
.dr-chapter {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 56px 0;
}
.dr-chapter.flip { grid-template-columns: 1fr 1.1fr; }
.dr-chapter.flip .dr-chapter-text { order: 2; }
.dr-chapter.flip .dr-chapter-img  { order: 1; }
@media (max-width: 820px) {
  .dr-chapter, .dr-chapter.flip { grid-template-columns: 1fr; gap: 22px; }
  .dr-chapter.flip .dr-chapter-text { order: 1; }
  .dr-chapter.flip .dr-chapter-img  { order: 2; }
}
.dr-chapter-img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.dr-chapter-text .dr-eyebrow { margin-bottom: 6px; }
.dr-chapter-text h3 {
  font-family: var(--sans);
  font-size: 1.65rem;
  margin: 0 0 .4em;
}

/* =====================================================================
 * POST DETAIL
 * ===================================================================== */

/* Header: tall, image-led, gradient overlay, content vertically centered-ish */
.intro-header {
  position: relative;
  padding: 160px 0 110px;
  background-position: center;
  background-size: cover;
  background-color: #1d1c19;
  color: #fff;
}
.intro-header::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.78) 100%);
}
.intro-header .container { position: relative; z-index: 1; }

.intro-header .post-heading {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 8px;
}
.intro-header .post-heading > .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  border: 0;
  margin-bottom: 22px;
}
.intro-header .post-heading > .back:hover { color: #fff; }

.intro-header h1 {
  color: #fff !important;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  max-width: 22ch;
  margin: 0 0 .35em;
  letter-spacing: -0.01em;
}
.intro-header h2.subheading {
  color: #e6e1d2;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0 0 1.4em;
  max-width: 38ch;
}
.intro-header .meta {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #cfcabd;
}
.intro-header .meta a { color: inherit; border: 0; }
.intro-header .meta a:hover { color: #fff; }

/* ----- Post body: capped width for readability ----- */
article .container,
article .row,
article .col-lg-8 {
  max-width: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  width: auto !important;
  padding-left: 24px;
  padding-right: 24px;
}
article {
  padding-bottom: 0;
}
.post-body { padding-top: 12px; }

.post-body p,
article > .container p {
  font-family: var(--serif);
  font-size: 1.075rem;
  line-height: 1.75;
  color: var(--dr-ink);
  margin: 1.1em 0;
}
.post-body p:first-of-type::first-line {
  /* tiny dignified typographic touch */
  letter-spacing: 0.005em;
}

.post-body h2,
article > .container h2 {
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 2.4em 0 .5em;
  letter-spacing: -0.01em;
}
.post-body h3,
article > .container h3 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2em 0 .4em;
}

.post-body a,
article > .container a {
  color: var(--dr-accent-2);
  border-bottom: 1px solid rgba(139, 58, 43, 0.3);
}
.post-body a:hover,
article > .container a:hover {
  color: var(--dr-accent);
  border-bottom-color: var(--dr-accent);
}

.post-body blockquote,
article > .container blockquote {
  font-style: italic;
  color: var(--dr-ink-soft);
  border-left: 3px solid var(--dr-accent-2);
  padding: .2em 1.2em;
  margin: 1.6em 0;
  font-size: 1.05rem;
}

.post-body ul, .post-body ol,
article > .container ul, article > .container ol {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.7;
  padding-left: 1.4em;
}
.post-body li,
article > .container li { margin: .4em 0; }

.post-body code,
article code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: .92em;
  background: var(--dr-bg-deep);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Images inside posts break the reading column and sit edge-to-edge for impact */
.post-body img,
article > .container img,
article > .container p img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 3px;
  margin: 2em auto;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* Common pattern in posts: <p><img ...></p> — strip the paragraph chrome */
.post-body p:has(> img:only-child),
article > .container p:has(> img:only-child) {
  margin: 2em 0;
}

/* The 2020 remembrance and Strawberry Hill use width="45%" align="right" inline
 * images — keep them floating but tighten the chrome. */
.post-body p img[align="right"],
.post-body img[align="right"],
article > .container p img[align="right"],
article > .container img[align="right"] {
  float: right;
  margin: 6px 0 18px 24px;
  width: 45%;
  max-width: 360px;
}
.post-body p img[align="left"],
.post-body img[align="left"],
article > .container p img[align="left"],
article > .container img[align="left"] {
  float: left;
  margin: 6px 24px 18px 0;
  width: 45%;
  max-width: 360px;
}
@media (max-width: 640px) {
  .post-body p img[align],
  .post-body img[align] {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 2em 0 !important;
  }
}

/* Subtle rule that separates post-body from end-matter */
.post-end {
  max-width: 720px;
  margin: 60px auto 0;
  padding: 0 24px;
}
.post-end hr {
  border: 0;
  border-top: 1px solid var(--dr-rule);
  margin: 24px 0;
}

/* ----- Author block (signoff) ----- */
.dr-author {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
  padding: 28px 0 0;
}
.dr-author-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--dr-bg-deep);
}
.dr-author-meta { line-height: 1.35; }
.dr-author-meta .by {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dr-ink-soft);
}
.dr-author-meta .name {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 2px 0 4px;
}
.dr-author-meta .name a { border: 0; color: var(--dr-ink); }
.dr-author-meta .name a:hover { color: var(--dr-accent-2); }
.dr-author-meta .desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: .92rem;
  color: var(--dr-ink-soft);
}

/* ----- Share strip ----- */
.dr-share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 0;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dr-ink-soft);
}
.dr-share-icons {
  display: inline-flex;
  gap: 8px;
}
.dr-share-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dr-bg-deep);
  color: var(--dr-ink);
  border: 0;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.dr-share-icons a:hover {
  background: var(--dr-accent-2);
  color: #fff;
  transform: translateY(-1px);
}

/* ----- Prev / Next cards ----- */
.dr-postnav {
  max-width: 1100px;
  margin: 60px auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 640px) { .dr-postnav { grid-template-columns: 1fr; } }
.dr-postnav-card {
  display: block;
  position: relative;
  background: #fff;
  border: 1px solid var(--dr-rule);
  border-radius: 6px;
  overflow: hidden;
  min-height: 130px;
  transition: transform .15s ease, box-shadow .15s ease;
  color: var(--dr-ink);
  border-bottom: 1px solid var(--dr-rule);
}
.dr-postnav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  color: var(--dr-ink);
}
.dr-postnav-card.is-empty {
  background: transparent;
  border-style: dashed;
  opacity: .4;
  pointer-events: none;
}
.dr-postnav-card .thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .14;
  transition: opacity .25s ease;
}
.dr-postnav-card:hover .thumb { opacity: .28; }
.dr-postnav-card .inner {
  position: relative;
  z-index: 1;
  padding: 18px 22px;
}
.dr-postnav-card .label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dr-accent);
  margin: 0 0 6px;
}
.dr-postnav-card .title {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: var(--dr-ink);
}
.dr-postnav-card.next .inner { text-align: right; }

/* hide the old bootstrap-y pager that some older posts/pages may try to render */
.pager { display: none; }


/* =====================================================================
 * JOURNAL LISTING
 * ===================================================================== */
.dr-journal-hero {
  position: relative;
  min-height: 38vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.dr-journal-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.75) 100%);
}
.dr-journal-hero .inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 24px 48px;
  width: 100%;
}
.dr-journal-hero .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #d9d5cc;
  margin: 0 0 12px;
}
.dr-journal-hero h1 {
  font-family: var(--sans);
  color: #fff;
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin: 0 0 8px;
}
.dr-journal-hero .lede {
  color: #efece3;
  font-family: var(--serif);
  font-size: 1.05rem;
  max-width: 48ch;
  margin: 0;
}

.dr-year {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 0 24px;
}
.dr-year-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px solid var(--dr-rule);
  padding-bottom: 10px;
  margin-bottom: 22px;
}
.dr-year-head h2 {
  font-family: var(--sans);
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: -0.01em;
}
.dr-year-head .count {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dr-ink-soft);
}

.dr-journal-foot {
  max-width: 1100px;
  margin: 64px auto 60px;
  padding: 36px 24px 0;
  text-align: center;
  border-top: 1px solid var(--dr-rule);
}
.dr-journal-foot p {
  font-family: var(--serif);
  font-style: italic;
  color: var(--dr-ink-soft);
  margin: 0 0 14px;
}

/* ---------- journal index ---------- */
.dr-journal-head {
  max-width: 1100px;
  margin: 60px auto 0;
  padding: 0 24px;
}
.dr-journal-head .dr-eyebrow { margin-bottom: 8px; }
.dr-journal-head h1 {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin: 0 0 8px;
}
.dr-journal-head .meta {
  color: var(--dr-ink-soft);
  font-family: var(--sans);
  font-size: 14px;
}

.dr-posts {
  list-style: none;
  padding: 0;
  margin: 36px auto 60px;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 720px) { .dr-posts { grid-template-columns: 1fr; padding: 0 24px;} }
.dr-post-card {
  background: #fff;
  border: 1px solid var(--dr-rule);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.dr-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.dr-post-card a {
  display: block;
  color: var(--dr-ink);
  border: 0;
}
.dr-post-card a:hover { color: var(--dr-accent-2); border: 0; }
.dr-post-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--dr-bg-deep) center/cover no-repeat;
}
.dr-post-meta {
  padding: 18px 20px 6px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dr-accent);
}
.dr-post-title {
  padding: 0 20px 6px;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 4px;
}
.dr-post-sub {
  padding: 0 20px 20px;
  color: var(--dr-ink-soft);
  font-style: italic;
  font-size: .95rem;
  margin: 0;
}

/* ---------- footer ---------- */
.dr-footer {
  background: var(--dr-night);
  color: #cdcbc4;
  padding: 56px 24px 36px;
  margin-top: 80px;
}
.dr-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 720px) {
  .dr-footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
.dr-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.dr-footer p, .dr-footer a {
  color: #b9b6ad;
  font-size: .95rem;
}
.dr-footer a {
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.dr-footer a:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.5);
}
.dr-footer ul { list-style: none; padding: 0; margin: 0; }
.dr-footer ul li { margin: 6px 0; }
.dr-social {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.dr-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #e6e3d8;
  border: 0;
  font-size: 14px;
}
.dr-social a:hover {
  background: var(--dr-accent-2);
  color: #fff;
}
.dr-copy {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #807d75;
}

/* ---------- small utilities ---------- */
.dr-btn {
  display: inline-block;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 0 !important;
}
.dr-btn.primary {
  background: var(--dr-accent-2);
  color: #fff !important;
}
.dr-btn.primary:hover { background: #6a2a1f; color: #fff !important; }
.dr-btn.ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.6) !important;
}
.dr-btn.ghost:hover { background: rgba(255,255,255,0.1); }
.dr-btn.dark {
  background: var(--dr-ink);
  color: #fff !important;
}
.dr-btn.dark:hover { background: var(--dr-accent); color: #fff !important; }
.dr-btn + .dr-btn { margin-left: 10px; }

.dr-grid-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 30px 0;
}
@media (max-width: 720px) { .dr-grid-photos { grid-template-columns: repeat(2, 1fr); } }
.dr-grid-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
  border-radius: 3px;
  display: block;
}

/* keep old gallery pages working — just add a little air */
.wrapper { padding: 0 16px; }
.archive-title { font-family: var(--sans); }


/* =====================================================================
 * Gallery — overrides the old galleries.css / selena.css so that both
 * the index and the individual album pages get modern responsive grids
 * and clean captions. Targets the existing markup, no template changes
 * required.
 * ===================================================================== */

/* The album pages duplicate the album title in an inline <h2> right after
 * the proper page-level hero. Hide it so we don't show the title twice.
 * (Only inside the gallery wrapper, so journal pages aren't affected.) */
body section#content > .wrapper > h2 {
  display: none;
}

/* Container around per-album galleries */
section#content { padding: 0 0 40px; }
section#content .wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}
section#content .wrapper > h2 + p,
section#content .wrapper > p:last-child {
  font-family: var(--serif);
  color: var(--dr-ink-soft);
  text-align: center;
  margin-top: 28px;
  font-size: .95rem;
}

/* ----- the actual gallery grid (kills the old percentage masonry) ----- */
.gallery.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  width: 100% !important;   /* override the 102.2% from galleries.css */
  margin: 0 !important;
}
@media (min-width: 900px) {
  .gallery.masonry-gallery {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
  }
}

.gallery.masonry-gallery .gallery-item {
  position: relative;
  width: 100% !important;     /* override .col-* */
  margin: 0 !important;
  background: var(--dr-bg-deep);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery.masonry-gallery .gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

/* image fills the tile, cropped tastefully */
.gallery.masonry-gallery .gallery-icon { height: 100%; opacity: 1 !important; }
.gallery.masonry-gallery .gallery-icon a {
  display: block;
  width: 100%;
  height: 100%;
}
.gallery.masonry-gallery .gallery-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .5s ease;
  display: block;
  margin: 0;
  border-radius: 0;
}
.gallery.masonry-gallery .gallery-item:hover .gallery-icon img {
  transform: scale(1.04);
}

/* Caption: ribbon at the bottom, fades in on hover */
.gallery.masonry-gallery .gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.78) 100%);
  padding: 60px 16px 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery.masonry-gallery .gallery-item:hover .gallery-caption,
.gallery.masonry-gallery .gallery-item:focus-within .gallery-caption {
  opacity: 1;
}
.gallery.masonry-gallery .gallery-caption .entry-summary {
  opacity: 1 !important;
  position: static;
  color: #fff;
  text-align: left;
  padding: 0;
  display: block;
}
.gallery.masonry-gallery .gallery-caption h3 {
  font-family: var(--sans) !important;
  color: #fff !important;
  font-size: 1rem !important;
  letter-spacing: .04em !important;
  text-transform: none !important;
  font-weight: 600 !important;
  margin: 0 0 2px !important;
  transform: none !important;
}
.gallery.masonry-gallery .gallery-caption p {
  font-family: var(--sans) !important;
  font-style: normal !important;
  color: #d9d5cc !important;
  font-size: 11.5px !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  opacity: 1 !important;
}

/* Kill the old Selena hover (the red background tint) — overrides selena.css */
figure.effect-selena {
  background: transparent !important;
}
figure.effect-selena img,
figure.effect-selena:hover img {
  opacity: 1 !important;
  transform: none !important;
}

/* ----- album-page small chrome: back link auto-injected via ::before
 * on the wrapper, so we don't need to edit 48 album files. The link is
 * an actual <a> so it's clickable; we render via a real element below. */
.dr-album-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 0;
}
.dr-album-header a {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dr-ink-soft);
  border: 0;
}
.dr-album-header a:hover { color: var(--dr-accent-2); }

/* ----- index page (new chronological layout, see gallery/index.html) ----- */
.dr-gallery-head {
  max-width: 1280px;
  margin: 50px auto 0;
  padding: 0 24px;
}
.dr-gallery-head h1 {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin: 6px 0 6px;
}
.dr-gallery-head p {
  color: var(--dr-ink-soft);
  font-size: 1rem;
  max-width: 60ch;
  margin: 0;
}

.dr-month {
  max-width: 1280px;
  margin: 56px auto 0;
  padding: 0 24px;
}
.dr-month-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px solid var(--dr-rule);
  padding-bottom: 10px;
  margin-bottom: 22px;
}
.dr-month-head h2 {
  font-family: var(--sans);
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: -0.01em;
}
.dr-month-head .count {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dr-ink-soft);
}

.dr-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
@media (min-width: 900px) {
  .dr-album-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
  }
}
.dr-album-card {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #2a2a2a center/cover no-repeat;
  color: #fff;
  border: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.dr-album-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  color: #fff;
  border: 0;
}
.dr-album-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.85) 100%);
  transition: background .25s ease;
}
.dr-album-card:hover::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 25%, rgba(0,0,0,0.9) 100%);
}
.dr-album-body {
  position: absolute;
  z-index: 1;
  inset: auto 0 0 0;
  padding: 16px 18px;
  color: #fff;
}
.dr-album-body h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0 0 2px;
  color: #fff;
}
.dr-album-body .meta {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #d9d5cc;
}

.dr-gallery-foot {
  max-width: 800px;
  margin: 80px auto 60px;
  padding: 36px 24px;
  text-align: center;
  border-top: 1px solid var(--dr-rule);
}
.dr-gallery-foot p {
  font-family: var(--serif);
  font-style: italic;
  color: var(--dr-ink-soft);
  margin: 0 0 14px;
}
