/*
Theme Name: Schway Stories (Cross Lutheran)
Description: Story-only site for Cross Lutheran Church and School. Hosts Schway stories on a subdomain; crossnbtx.org stays the main website.
Author: Rumscheidt
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: schway-stories
*/

/* Fonts are hosted with the theme (latin subset), so no request goes to Google. */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/lora-latin.woff2) format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/lora-italic-latin.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url(assets/fonts/nunito-sans-latin.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/playfair-display-latin.woff2) format("woff2"); }

/* Function follows Epiphany SpeakEasy, look follows crossnbtx.org.
   Type: Lora headings + Nunito Sans body; the logo wordmark alone stays Playfair Display like crossnbtx.org.
   Every story image is a 1920x1080 Schway graphic with its own headline and text to its edges:
   always show it whole at 16:9, never crop it, zoom it or put anything over it. */

:root {
  --navy-900: #22313f;   /* crossnbtx.org header + body bg */
  --navy-700: #34495e;   /* crossnbtx.org scheme-3 band, hover */
  --gold: #efcf4d;       /* crossnbtx.org links + buttons */
  --gold-ink: #22313f;   /* text that sits on gold */
  --ink: #1f2a33;
  --ink-soft: #5b6670;
  --paper: #ffffff;
  --mist: #f3f4f5;
  --rule: #dfe3e6;
  --font-head: "Lora", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --logo-h: 52px;
  --read: 680px;         /* story text column */
  --wide: 880px;         /* story graphic and gallery */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(var(--read), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

/* ---------- Header: brand + Stories, search, link to the main website ---------- */
.site-header { background: var(--navy-900); color: #fff; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.brand img { height: var(--logo-h); width: auto; }
.wordmark { display: flex; flex-direction: column; line-height: 1; text-transform: uppercase; }
.wordmark b { font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-size: 25px; letter-spacing: .01em; }
.wordmark small { font-family: var(--font-head); font-size: 11.5px; letter-spacing: .14em; margin-top: 5px; text-align: center; }
.brand .tag {
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  border-left: 1px solid rgba(255,255,255,.25); padding-left: 14px; align-self: stretch; display: flex; align-items: center;
}
.tools { display: flex; align-items: center; gap: 12px; }
/* Named site-search because WordPress puts the class "search" on the whole page for search results. */
.site-search {
  display: flex; align-items: center; gap: 8px; width: 260px; padding: 0 14px; height: 44px;
  border: 1px solid rgba(255,255,255,.3); border-radius: 4px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.75);
}
.site-search:focus-within { border-color: var(--gold); background: rgba(255,255,255,.12); }
.site-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 15px; }
.site-search input::placeholder { color: rgba(255,255,255,.6); }
.site-link { padding: 11px 16px; font-size: 12px; border-width: 1px; }
.search-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; color: #fff; cursor: pointer; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: 4px; padding: 13px 26px; border: 2px solid currentColor;
  background: transparent; transition: background .2s ease, color .2s ease;
}
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost-light { color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn-ghost-dark { color: var(--navy-900); }
.btn-ghost-dark:hover, .lead-card:hover .btn-ghost-dark { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* ---------- Small text: category and date ---------- */
.meta { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.meta a { text-decoration: none; color: var(--navy-700); }
.meta a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Lead: the newest story, the one place a summary shows ---------- */
.lead { background: linear-gradient(var(--navy-900) 0 62%, var(--mist) 62% 100%); padding-top: 40px; }
.lead-card {
  display: grid; grid-template-columns: 1.6fr 1fr; align-items: center;
  background: #fff; border-radius: 8px; padding: 14px;
  box-shadow: 0 24px 60px rgba(20,30,40,.22); text-decoration: none;
}
.lead-card img { width: 100%; aspect-ratio: 16 / 9; border-radius: 4px; }
.lead-card .txt { padding: 20px 26px 20px 38px; }
.lead-card h1 { font-size: clamp(28px, 3.1vw, 40px); margin: 10px 0 14px; color: var(--navy-900); }
.lead-card .dek { color: var(--ink-soft); margin: 0 0 24px; }

/* ---------- Story list: category chips + one grid, newest first ---------- */
.stories { background: var(--mist); padding-block: 44px 80px; }
.chips { display: flex; gap: 8px; justify-content: center; margin-bottom: 32px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--navy-700);
  padding: 8px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--rule);
}
.chips a:hover { border-color: var(--navy-700); }
.chips a[aria-current] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 14px 34px rgba(20,30,40,.13); }
.card img { width: 100%; aspect-ratio: 16 / 9; background: var(--rule); }
.card .body { display: flex; flex-direction: column; flex: 1; padding: 16px 20px 20px; }
.card h3 { font-size: 21px; line-height: 1.22; margin-bottom: 8px; }
.card p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: 12px; margin-top: auto; }
.more { text-align: center; margin-top: 44px; }
/* One line in place of a list that has nothing in it */
.empty { margin: 0; text-align: center; color: var(--ink-soft); }

/* ---------- Events calendar (after Epiphany's /calendar): month strip + agenda of expandable cards ---------- */
.cal-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: min(var(--wide), 100%); margin: 0 auto 44px; }
.cal-month { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 16px 16px 14px; }
.cal-month-name { margin: 0 0 8px; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--navy-900); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 13px; }
.cal-dow { font-size: 11px; font-weight: 700; color: var(--ink-soft); padding-bottom: 4px; }
.cal-day { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; color: var(--ink-soft); font: inherit; background: none; border: 0; padding: 0; }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--navy-700); color: var(--navy-900); font-weight: 700; }
.cal-day.has-event { color: var(--navy-900); font-weight: 700; cursor: pointer; }
.cal-day.has-event::after { content: ""; position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px rgba(34,49,63,.25); }
.cal-day.has-event:hover { background: var(--navy-900); color: #fff; }

.cal-agenda { width: min(var(--wide), 100%); margin-inline: auto; }
.cal-month-heading { font-size: 26px; color: var(--navy-900); margin: 36px 0 14px; }
.cal-month-group:first-child .cal-month-heading { margin-top: 0; }
.cal-event { background: #fff; border: 1px solid var(--rule); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.cal-event[open] { border-color: var(--navy-700); }
.cal-event summary { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; cursor: pointer; list-style: none; }
.cal-event summary::-webkit-details-marker { display: none; }
.cal-date-badge { flex: none; width: 58px; padding: 7px 0 8px; border-radius: 6px; background: var(--navy-900); color: #fff; text-align: center; line-height: 1.05; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cal-date-badge b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 24px; letter-spacing: 0; color: var(--gold); margin-top: 2px; }
.cal-event-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cal-event-title { font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--navy-900); }
.cal-event-summary { font-size: 14.5px; color: var(--ink-soft); }
.cal-chevron { flex: none; width: 10px; height: 10px; border-right: 2px solid var(--navy-700); border-bottom: 2px solid var(--navy-700); transform: rotate(45deg); margin: 0 6px 4px; transition: transform .2s ease; }
.cal-event[open] .cal-chevron { transform: rotate(-135deg); margin-bottom: -4px; }
.cal-event-detail { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; padding: 4px 16px 16px 12px; }
.cal-event-detail img { width: 100%; aspect-ratio: 16 / 9; border-radius: 4px; }
.cal-rows { list-style: none; margin: 0 0 16px; padding: 0; }
.cal-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.cal-rows li span:last-child { color: var(--ink-soft); white-space: nowrap; }
.cal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cal-actions .btn { padding: 11px 20px; }
.cal-flash { animation: cal-flash 1.4s ease; }
@keyframes cal-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--gold); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* ---------- Category header ---------- */
.cat-head { background: var(--navy-900); color: #fff; text-align: center; padding-block: 36px 44px; }
.cat-head .meta { color: var(--gold); }
.cat-head h1 { font-size: clamp(32px, 4.6vw, 48px); margin: 8px 0 10px; }
.cat-head p { margin: 0 auto; max-width: 520px; color: rgba(255,255,255,.85); }
/* The search box again, under the heading, when a search finds nothing */
.cat-head .site-search { display: flex; width: min(360px, 100%); margin: 20px auto 0; text-align: left; }

/* ---------- Single story: one column. Graphic, headline, event strip, then the story ---------- */
/* Readers arrive from a social post or an email that showed the graphic, so the graphic comes first. */
.story-hero { width: min(var(--wide), 100%); margin: 32px auto 0; }
.story-head { text-align: center; padding-block: 32px 36px; }
.story-head .meta { margin: 0; }
.story-head h1 { font-size: clamp(30px, 4.4vw, 48px); margin-top: 12px; color: var(--navy-900); }
.story-hero img, .story-hero iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; }
.story-hero iframe { height: auto; border: 0; }
/* A video story plays at the top of the page, so the same video inside the story text is hidden. */
.is-video .prose .wp-block-embed.is-provider-youtube, .is-video .prose iframe[src*="youtube"], .is-video .prose iframe[src*="youtu.be"] { display: none; }

/* Event strip: builds itself from whatever event fields a story has.
   One fact per schedule row (the row's label over its date and time) and the story's own link as a gold button.
   One date: an Add to Calendar button. Several dates: a See all dates button that opens the list,
   where each date has its own Add to calendar link. Shows nothing when a story has no dates and no link. */
.ev-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 32px; background: var(--mist); border-left: 4px solid var(--gold); border-radius: 6px; padding: 14px 18px; margin-bottom: 36px; }
.ev-fact { min-width: 0; }
.ev-fact .meta { display: block; font-size: 11.5px; }
.ev-fact .v { display: block; font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--navy-900); }
.ev-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.ev-strip .btn { padding: 10px 16px; font-size: 12px; }
.ev-dates { flex-basis: 100%; list-style: none; margin: 2px 0 0; padding: 0; }
.ev-dates li { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 20px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 15.5px; }
.ev-dates .d { color: var(--ink-soft); }
.ev-cal { font-size: 13px; font-weight: 700; color: var(--navy-700); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap; }

.prose { font-size: 19px; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { font-size: 28px; margin: 1.7em 0 .6em; color: var(--navy-900); }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--gold);
  font-family: var(--font-head); font-size: 25px; line-height: 1.38; color: var(--navy-900);
}
/* End of story: the way on to the main website */
.handoff { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; background: var(--navy-900); color: #fff; border-radius: 8px; padding: 26px 28px; margin-bottom: 72px; }
.handoff h2 { font-size: 24px; margin-bottom: 4px; }
.handoff p { margin: 0; font-size: 16px; color: rgba(255,255,255,.8); }
.story-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-block: 44px 36px; padding-top: 24px; border-top: 1px solid var(--rule); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags a, .share a, .share button { font: inherit; font-size: 14px; text-decoration: none; padding: 6px 14px; border: 1px solid var(--rule); border-radius: 99px; color: var(--navy-700); background: #fff; cursor: pointer; }
.tags a:hover, .share a:hover, .share button:hover { border-color: var(--navy-700); }
.share { display: flex; align-items: center; gap: 8px; }
.share .meta { margin-right: 4px; }

.more-stories { background: var(--mist); padding-block: 56px 80px; }
.more-stories h2 { text-align: center; font-size: 32px; margin-bottom: 32px; color: var(--navy-900); }

/* ---------- Gallery in a story (WordPress core Gallery block) ----------
   WordPress lays the block out with flex and sets a width on each photo. These selectors repeat
   core's own, :not(#individual-image) included, with .prose in front so the mosaic wins. */
.prose .wp-block-gallery.has-nested-images {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 8px;
  width: min(var(--wide), 100vw - 32px); max-width: none; margin: 2.2em 0 .6em 50%; transform: translateX(-50%); padding: 0;
}
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { display: block; width: auto; max-width: none; margin: 0; position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 4px; cursor: zoom-in; background: var(--rule); }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) > a { display: block; width: 100%; height: 100%; margin: 0; cursor: zoom-in; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):hover img { transform: scale(1.04); }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) figcaption { display: none; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image)::before { content: none; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(n+7) { display: none; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image).more-tile::after {
  content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--navy-900) 72%, transparent); color: #fff;
  font-family: var(--font-head); font-size: 34px;
}
.gallery-note { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-soft); margin-bottom: 2em; }
.gallery-note button { white-space: nowrap; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: none; border: 0; color: var(--navy-700); cursor: pointer; padding: 6px 0; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Full-size photo viewer */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; grid-template-rows: auto 1fr auto;
  background: color-mix(in srgb, var(--navy-900) 97%, black); color: #fff;
}
.lightbox.open { display: grid; }
.lightbox .lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-size: 14px; color: rgba(255,255,255,.75); letter-spacing: .08em; }
.lightbox .lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 72px; }
.lightbox .lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; user-select: none; }
.lightbox .lb-cap { text-align: center; padding: 16px 20px 26px; font-size: 15px; color: rgba(255,255,255,.88); min-height: 64px; }
.lightbox button { background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 50%; width: 48px; height: 48px; cursor: pointer; font-size: 20px; line-height: 1; }
.lightbox button:hover { border-color: var(--gold); color: var(--gold); }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: 14px; }
.lightbox .lb-next { right: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding-block: 36px 24px; }
.site-footer .wrap:first-child { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer .brand img { height: 44px; }
.site-footer .wordmark b { font-size: 21px; }
.site-footer .fine { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .site-search { width: 200px; }
}
@media (max-width: 860px) {
  .lead { background: linear-gradient(var(--navy-900) 0 40%, var(--mist) 40% 100%); padding-top: 24px; }
  .lead-card { grid-template-columns: 1fr; padding: 10px; }
  .lead-card .txt { padding: 20px 12px 14px; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  :root { --logo-h: 38px; }
  .site-header .bar { flex-wrap: wrap; gap: 0 8px; padding-block: 10px; }
  .brand { gap: 10px; margin-right: auto; }
  .wordmark b { font-size: 17px; }
  .wordmark small { font-size: 8.5px; margin-top: 4px; }
  .site-header .brand .tag { display: none; }
  .tools { display: contents; }
  .search-toggle { display: grid; place-items: center; }
  .site-link { padding: 8px 10px; font-size: 10.5px; }
  .site-search { display: none; order: 3; width: 100%; margin-top: 10px; }
  .search-open .site-search { display: flex; }
  .cal-months { grid-template-columns: 1fr; margin-bottom: 32px; }
  .cal-month-extra { display: none; }
  .cal-grid { font-size: 14px; }
  .cal-event-detail { grid-template-columns: 1fr; gap: 14px; }
  .cal-event-title { font-size: 18px; }
  .cal-actions .btn { flex: 1; text-align: center; }
  .chips { justify-content: flex-start; margin-inline: -16px; padding-inline: 16px; }
  .grid { grid-template-columns: 1fr; }
  .stories { padding-block: 32px 56px; }
  .story-head { padding-block: 22px 24px; }
  .story-hero { margin-top: 0; }
  .story-hero img, .story-hero iframe { border-radius: 0; }
  .handoff .btn { width: 100%; text-align: center; }
  .ev-strip { gap: 12px; }
  .ev-fact, .ev-actions { flex-basis: 100%; }
  .ev-actions .btn { flex: 1; text-align: center; }
  .ev-dates li { grid-template-columns: 1fr auto; }
  .ev-dates .d { grid-column: 1; grid-row: 2; }
  .ev-dates .ev-cal { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .handoff { padding: 22px 20px; margin-bottom: 52px; }
  .prose { font-size: 17.5px; }
  .prose blockquote { font-size: 22px; }
  .prose .wp-block-gallery.has-nested-images { gap: 5px; }
  .prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image).more-tile::after { font-size: 26px; }
  .lightbox .lb-stage { padding: 0 8px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: -60px; transform: none; }
  .lightbox .lb-cap { padding-inline: 72px; }
}
/* Narrow phones: keep the header on one row. */
@media (max-width: 430px) {
  :root { --logo-h: 34px; }
  .brand { gap: 8px; }
  .wordmark b { font-size: 15px; }
  .wordmark small { font-size: 7.5px; }
  .search-toggle { width: 34px; }
  .site-link { padding: 7px 8px; font-size: 9.5px; letter-spacing: .06em; }
}
@media (max-width: 380px) {
  :root { --logo-h: 30px; }
  .wordmark b { font-size: 13px; }
  .wordmark small { font-size: 6.5px; letter-spacing: .1em; }
  .site-header .bar { gap: 0 4px; }
  .site-link { padding: 6px 7px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
