/* Light Writerz (LWZ) shared stylesheet
   Palette: black, white, and PVHS teal #007474.
   Layout inspired by a college home page: utility bar, logo row,
   colored nav bar, full-bleed hero, quick-link tiles, feature bands. */

:root {
  --teal: #007474;
  --teal-dark: #005656;
  --teal-light: #e6f2f2;
  --teal-light-accent: #80e0e0;   /* curriculum Light Teal */
  --orange: #FF6B1A;              /* curriculum Orange: Cameras 4 Kids / donate */
  --gold: #f5b301;                /* curriculum Gold: earned, honors */
  --purple: #8b5cf6;              /* curriculum Purple: reserved for resources */
  --black: #070a0a;
  --ink: #e6ecec;
  --gray: #93a3a3;
  --line: rgba(255,255,255,0.08);
  --paper: #0c1111;           /* page base: near black with a teal hint */
  --paper-2: #101717;
  --surface: linear-gradient(160deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.015) 100%);
  --surface-border: rgba(255,255,255,0.08);
  --glow: 0 18px 50px rgba(0,0,0,0.45);
  --max: 1200px;
  --font-head: "Oswald", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(0,116,116,0.22), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(0,116,116,0.12), transparent 60%),
    radial-gradient(900px 700px at 110% 90%, rgba(128,224,224,0.07), transparent 60%);
  background-attachment: fixed;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-light-accent); }
a:hover { color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--teal); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Utility bar ---------- */
.utility { background: #040606; color: #cfcfcf; font-size: 13px; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.utility a { color: #e8e8e8; text-decoration: none; }
.utility a:hover { color: #fff; text-decoration: underline; }
.utility ul { list-style: none; display: flex; gap: 0; }
.utility li + li::before { content: "|"; margin: 0 12px; color: #555; }
.utility .tag { letter-spacing: 0.04em; }

/* ---------- Logo row ---------- */
.masthead { background: linear-gradient(180deg, #0a0f0f 0%, #0f1818 100%); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 104px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: #fff; }
.brand img { width: 76px; height: 76px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.brand-sub { font-size: 13px; color: var(--gray); margin-top: 6px; letter-spacing: 0.03em; }
.masthead .cta { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Main nav (teal bar) ---------- */
.mainnav { background: linear-gradient(180deg, #008080 0%, #006565 100%); position: sticky; top: 0; z-index: 50; box-shadow: 0 6px 24px rgba(0,0,0,0.45); }
.mainnav .wrap { display: flex; align-items: center; justify-content: center; }
.mainnav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; }
.mainnav a {
  display: block; padding: 15px 22px; color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 3px solid transparent;
}
.mainnav a:hover { background: var(--teal-dark); color: #fff; }
.mainnav a[aria-current="page"] { border-bottom-color: #fff; }
.navtoggle { display: none; }
.mainnav .nav-donate { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border-radius: 6px; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 16px; padding: 13px 26px; border: 2px solid var(--teal); background: var(--teal); color: #fff; text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--black); }
.btn.dark { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.28); color: #fff; }
.orange .btn.dark { background: #0a0d0d; border-color: #0a0d0d; }
.btn.dark:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--black) center / cover no-repeat; min-height: 620px; display: flex; align-items: flex-end; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 45%, rgba(12,17,17,1) 100%); }
.hero .wrap { position: relative; width: 100%; padding-bottom: 150px; }
.hero h1 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; line-height: 0.98; font-size: clamp(44px, 8vw, 104px); letter-spacing: 0.01em; }
.hero h1 .accent { color: var(--teal-light-accent); }
.hero p { font-size: clamp(17px, 2vw, 21px); max-width: 640px; margin-top: 18px; color: #eaeaea; }
.hero .actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero.page { min-height: 380px; }
.hero.page .wrap { padding-bottom: 56px; }
.hero.page h1 { font-size: clamp(40px, 6vw, 76px); }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.18em; font-size: 14px; color: var(--teal-light-accent); margin-bottom: 10px; }

/* ---------- Quick tiles (overlap hero) ---------- */
.tiles { position: relative; z-index: 2; margin-top: -90px; }
.tiles ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
.tiles a {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; padding: 26px 24px;
  background: linear-gradient(160deg, #1a2222 0%, #0d1212 100%); color: #fff; text-decoration: none; border-right: 1px solid rgba(255,255,255,0.06); transition: background 0.2s;
}
.tiles li:nth-child(2) a { background: linear-gradient(160deg, #1d2727 0%, #101616 100%); }
.tiles li:nth-child(3) a { background: linear-gradient(160deg, #213030 0%, #121a1a 100%); }
.tiles li:nth-child(4) a { background: var(--teal); }
.tiles a:hover { background: linear-gradient(160deg, #008080 0%, #005252 100%); }
.tiles .num { font-family: var(--font-head); font-size: 14px; letter-spacing: 0.16em; color: var(--teal-light-accent); }
.tiles li:nth-child(4) .num { color: #d7f1f1; }
.tiles h2 { font-family: var(--font-head); text-transform: uppercase; font-size: 26px; letter-spacing: 0.04em; line-height: 1.1; }
.tiles span.more { font-size: 14px; color: #cfcfcf; }
.tiles span.more::after { content: "\00a0\2192"; }

/* ---------- Sections ---------- */
section.band { padding: 96px 0; }
section.band.tight { padding: 64px 0; }
section.band.gray { background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(0,116,116,0.06) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.band.dark { background: radial-gradient(900px 500px at 20% 0%, rgba(0,116,116,0.18), transparent 65%), #060909; color: #eee; }
section.band.teal { background: radial-gradient(800px 300px at 50% 0%, rgba(128,224,224,0.25), transparent 70%), linear-gradient(180deg, #007a7a 0%, #004f4f 100%); color: #fff; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,0.14); padding-bottom: 14px; position: relative; }
.section-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 84px; height: 3px; background: var(--teal-light-accent); }
.dark .section-head, .teal .section-head { border-bottom-color: #fff; }
.section-head h2, h2.title { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(30px, 4vw, 44px); letter-spacing: 0.03em; line-height: 1.05; }
.section-head .sub { color: var(--gray); font-size: 15px; }
.dark .section-head .sub, .teal .section-head .sub { color: #cfe; }
h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; font-size: 24px; line-height: 1.15; margin-bottom: 10px; }
.lead { font-size: 20px; line-height: 1.6; }
p + p { margin-top: 1em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; border-radius: 8px; box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06); }

/* Etymology band */
.etym { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; text-align: center; margin: 30px 0 10px; }
.etym .word { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(48px, 7vw, 88px); line-height: 1; }
.etym .gloss { font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; margin-top: 8px; }
.etym .plus { font-family: var(--font-head); font-size: 56px; opacity: 0.6; }

/* Pull quote */
blockquote.pull {
  font-family: var(--font-head); text-transform: uppercase; font-size: clamp(30px, 4.6vw, 56px); line-height: 1.08; letter-spacing: 0.01em;
  border-left: 8px solid var(--teal); padding-left: 28px;
}
blockquote.pull cite { display: block; font-family: var(--font-body); text-transform: none; font-style: normal; font-size: 16px; letter-spacing: 0; margin-top: 16px; color: var(--gray); }
.dark blockquote.pull cite { color: #aaa; }

/* Stats row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 24px; }
.stats .n { font-family: var(--font-head); font-size: clamp(48px, 6vw, 76px); line-height: 1; color: #fff; }
.stats .l { text-transform: uppercase; letter-spacing: 0.12em; font-size: 14px; margin-top: 10px; color: #d6f0f0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--surface); border: 1px solid var(--surface-border); border-top: 4px solid var(--teal); padding: 28px; border-radius: 6px; box-shadow: var(--glow); }
.card .date { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; color: var(--teal-light-accent); margin-bottom: 8px; }
.card p { color: #c3cfcf; font-size: 16px; }

/* Pic vs Photograph */
.versus { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--surface-border); border-radius: 8px; overflow: hidden; box-shadow: var(--glow); }
.versus > div { padding: 36px; }
.versus .pic { background: linear-gradient(160deg, #1a1f1f 0%, #121616 100%); color: #7f8c8c; }
.versus .photo { background: radial-gradient(500px 300px at 100% 0%, rgba(0,116,116,0.35), transparent 70%), #070a0a; color: #fff; }
.versus h3 { font-size: 30px; }
.versus ul { list-style: none; margin-top: 14px; }
.versus li { padding: 10px 0; border-bottom: 1px solid rgba(128,128,128,0.25); }
.versus .photo li::before { content: "\25CF"; color: var(--teal-light-accent); margin-right: 10px; font-size: 11px; vertical-align: 2px; }
.versus .pic li::before { content: "\25CB"; margin-right: 10px; font-size: 11px; vertical-align: 2px; }

/* Quotes grid */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.quote { background: var(--surface); padding: 34px; border: 1px solid var(--surface-border); border-left: 4px solid var(--teal-light-accent); border-radius: 6px; box-shadow: var(--glow); }
.quote p { font-size: 19px; line-height: 1.55; }
.quote .who { margin-top: 16px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 15px; color: var(--teal-light-accent); }
.quote.pending p { color: #6f7d7d; font-style: italic; }

/* Principles list */
.principles { counter-reset: p; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.principles li { counter-increment: p; padding: 22px 0 22px 64px; position: relative; border-bottom: 1px solid var(--line); }
.principles li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-family: var(--font-head); font-size: 34px; color: var(--teal-light-accent); line-height: 1; }
.principles strong { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.05em; font-size: 19px; font-weight: 600; }

/* People */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.person { display: grid; grid-template-columns: 180px 1fr; gap: 26px; background: var(--surface); border: 1px solid var(--surface-border); padding: 26px; border-radius: 8px; box-shadow: var(--glow); }
.person .ph { width: 180px; height: 220px; object-fit: cover; background: radial-gradient(circle at 50% 35%, #163030, #050808); border-radius: 4px; }
.person .ph.empty { display: flex; align-items: center; justify-content: center; }
.person .ph.empty img { width: 110px; opacity: 0.9; }
.person .role { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; color: var(--teal-light-accent); }
.person h3 { margin: 4px 0 10px; font-size: 28px; }
.person p { font-size: 15.5px; color: #c3cfcf; }

.officers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.officer { background: var(--surface); border: 1px solid var(--surface-border); text-align: center; border-radius: 8px; overflow: hidden; box-shadow: var(--glow); }
.officer .ph { aspect-ratio: 4 / 5; background: radial-gradient(circle at 50% 40%, #173333 0%, #070b0b 75%); display: flex; align-items: center; justify-content: center; }
.officer .ph img { width: 45%; opacity: 0.85; }
.officer .ph img.photo { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.officer .body { padding: 18px 14px 22px; }
.officer .role { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; color: var(--teal-light-accent); }
.officer h3 { font-size: 21px; margin: 6px 0 0; }
.officer .tba { color: #7f8c8c; font-size: 15px; }

.founders-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.founders-mini .card h3 { font-size: 22px; }
.card.founder { display: flex; align-items: center; gap: 22px; }
.card.founder .head { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; filter: grayscale(1); box-shadow: 0 0 0 2px rgba(128,224,224,0.55), 0 0 0 6px rgba(0,116,116,0.18), 0 10px 24px rgba(0,0,0,0.5); }
.card.founder .head.empty { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 35%, #1b3535, #070b0b); }
.card.founder .head.empty img { width: 58%; opacity: 0.75; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filters button { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; padding: 9px 18px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); color: #dfe8e8; cursor: pointer; border-radius: 999px; }
.filters button[aria-pressed="true"], .filters button:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.grid { columns: 3 320px; column-gap: 18px; }
.grid figure { break-inside: avoid; margin-bottom: 18px; background: #080b0b; border-radius: 6px; overflow: hidden; box-shadow: var(--glow); cursor: zoom-in; position: relative; }
.grid figure img { width: 100%; }
.grid figcaption { padding: 12px 14px; color: #eee; font-size: 14px; }
.grid figcaption b { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; font-size: 17px; color: #fff; }
.empty-gallery { text-align: center; border: 1px dashed rgba(255,255,255,0.2); border-radius: 10px; padding: 70px 24px; background: var(--surface); }
.empty-gallery img { width: 120px; margin: 0 auto 18px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.94); display: none; align-items: center; justify-content: center; z-index: 200; padding: 30px; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 100%; }
.lightbox p { color: #ddd; margin-top: 14px; text-align: center; }
.lightbox button { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; line-height: 1; }

/* Forms */
.form { display: grid; gap: 18px; }
.form label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); color: #fff; border-radius: 6px; }
.form select option { background: #101717; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal-light-accent); background: rgba(0,116,116,0.08); }
.form textarea { min-height: 160px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.note { font-size: 14px; color: var(--gray); }

.contact-list { list-style: none; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list .k { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; color: var(--teal-light-accent); }
.contact-list .v { font-size: 20px; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--teal-light-accent); }

.checklist { list-style: none; columns: 2; column-gap: 32px; margin-top: 16px; }
.checklist li { padding: 8px 0 8px 30px; position: relative; break-inside: avoid; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal-light-accent); font-weight: 700; }
.teal .checklist li::before { color: #fff; }

/* ---------- Footer ---------- */
footer.site { background: radial-gradient(900px 400px at 80% 0%, rgba(0,116,116,0.16), transparent 70%), #040606; border-top: 1px solid var(--line); color: #bdbdbd; padding: 70px 0 30px; font-size: 15px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
footer.site img { width: 96px; margin-bottom: 16px; }
footer.site h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; color: #fff; font-size: 15px; margin-bottom: 14px; font-weight: 500; }
footer.site ul { list-style: none; }
footer.site li { padding: 4px 0; }
footer.site a { color: #bdbdbd; text-decoration: none; }
footer.site a:hover { color: var(--teal-light-accent); }
footer.site .motto { font-family: var(--font-head); text-transform: uppercase; color: #fff; font-size: 20px; line-height: 1.2; letter-spacing: 0.03em; margin-bottom: 10px; }
footer.site .legal { border-top: 1px solid #2a2a2a; margin-top: 50px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #8a8a8a; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .tiles ul { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .officers { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .utility .tag { display: none; }
  .utility .wrap { justify-content: center; }
  .masthead .cta { display: none; }
  .hero { min-height: 540px; }
  .hero .wrap { padding-bottom: 120px; }
  .hero.page { min-height: 300px; }
  .hero.page .wrap { padding-bottom: 36px; }
  section.band { padding: 64px 0; }
  .split, .versus, .quotes, .principles, .form .row, .founders-mini { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .principles { gap: 0; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 36px 16px; }
  .etym { grid-template-columns: 1fr; gap: 8px; }
  .person { grid-template-columns: 1fr; }
  .person .ph { width: 100%; height: 320px; }
  .checklist { columns: 1; }
  footer.site .cols { grid-template-columns: 1fr; }
  blockquote.pull { padding-left: 18px; border-left-width: 6px; }
}

/* ---------- Curriculum accents ---------- */
.btn.orange { background: var(--orange); border-color: var(--orange); color: #111; }
.btn.orange:hover { background: #e85a0c; border-color: #e85a0c; color: #111; }
.tiles li:nth-child(4) a { background: linear-gradient(160deg, #ff7f3a 0%, #e0560b 100%); color: #111; }
.tiles li:nth-child(4) a:hover { background: linear-gradient(160deg, #ff8f52 0%, #ef6315 100%); }
.tiles li:nth-child(4) .num, .tiles li:nth-child(4) span.more { color: #2a1204; }
.stats .n { color: var(--gold); }
.gold-rule { width: 72px; height: 6px; background: var(--gold); margin-bottom: 22px; }
.shirt-badge { display: inline-block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; color: #111; background: var(--gold); padding: 5px 12px; margin-bottom: 14px; }
section.band.orange { background: radial-gradient(700px 300px at 85% 0%, rgba(255,255,255,0.22), transparent 70%), linear-gradient(160deg, #ff7a33 0%, #d94f06 100%); color: #111; }
.orange .section-head { border-bottom-color: #111; }
.orange .section-head .sub { color: #2a1204; }
.orange .checklist li::before { color: #111; }
.card.orange-top { border-top-color: var(--orange); }
.card.gold-top { border-top-color: var(--gold); }
.card.orange-top .date { color: var(--orange); }
.card.gold-top .date { color: var(--gold); }

/* ---------- Docking logo (all sizes) ----------
   The teal bar is sticky on every page. Once the header scrolls away the bar
   "docks" (main.js adds .docked) and a white LW logo slides in on the left. */
.mainnav .wrap { position: relative; }
.dock-logo { position: absolute; left: 24px; top: 50%; display: block; width: 40px; height: 40px; opacity: 0; pointer-events: none;
  transform: translate(-10px, -50%) scale(0.8); transition: opacity 0.25s ease, transform 0.25s ease; }
.dock-logo img { width: 40px; height: 40px; }
.mainnav a.dock-logo, .mainnav a.dock-logo:hover { padding: 0; border: 0; background: none; }
.mainnav.docked .dock-logo { opacity: 1; pointer-events: auto; transform: translate(0, -50%) scale(1); }
[id] { scroll-margin-top: 76px; }
@media (max-width: 760px) { [id] { scroll-margin-top: 86px; } }

/* ---------- Phones (iPhone first) ---------- */
html { -webkit-text-size-adjust: 100%; }
/* Lock sideways movement: vertical scrolling only. clip (not hidden) keeps the sticky bar working. */
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
a, button { -webkit-tap-highlight-color: rgba(128,224,224,0.15); }
.quick { display: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

@media (max-width: 760px) {
  /* iOS Safari ignores fixed backgrounds and repaints them on scroll; keep the glow but let it scroll. */
  body { background-attachment: scroll; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  h1, h2, h3 { overflow-wrap: anywhere; }

  /* Phone header: one dark row (logo left, name centered, hamburger right) that stays
     at the top, with the teal bar reduced to a thin decorative line under it. */
  .utility { display: none; }
  .masthead { position: sticky; top: 0; z-index: 60; padding-top: env(safe-area-inset-top); border-bottom: 0;
    background: linear-gradient(180deg, #0a0f0f 0%, #0f1818 100%); }
  .masthead .wrap { position: relative; display: block; min-height: 64px; }
  .brand { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 64px; gap: 0; }
  .brand img { width: 40px; height: 40px; }
  .brand > div { text-align: center; }
  .brand-name { font-size: 22px; letter-spacing: 0.04em; }
  .brand-sub { font-size: 11px; margin-top: 3px; }
  .brand-sub .est { display: none; }

  .mainnav { position: sticky; top: calc(64px + env(safe-area-inset-top)); z-index: 59; box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    background: linear-gradient(90deg, #005f5f 0%, #009090 50%, #005f5f 100%); }
  .mainnav .wrap { min-height: 10px; padding-top: 0; padding-bottom: 0; }
  .dock-logo { display: none; }

  /* Plain hamburger lines, top right of the dark row. */
  .navtoggle {
    display: inline-flex; align-items: center; justify-content: center;
    position: absolute; top: 50%; right: max(4px, calc(env(safe-area-inset-right) - 12px)); transform: translateY(-50%);
    width: 48px; height: 48px; padding: 0; cursor: pointer; background: none; border: 0; color: #fff;
  }
  .navtoggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .navtoggle .bars, .navtoggle .bars::before, .navtoggle .bars::after { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform 0.2s ease, background 0.2s ease; }
  .navtoggle .bars::before, .navtoggle .bars::after { content: ""; position: absolute; left: 0; }
  .navtoggle .bars::before { top: -7px; }
  .navtoggle .bars::after { top: 7px; }
  .navtoggle[aria-expanded="true"] .bars { background: transparent; }
  .navtoggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .navtoggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

  /* Full screen menu panel directly under the bar (main.js sets --menu-top). */
  .mainnav ul { display: none; }
  .mainnav.open ul {
    display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start;
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--menu-top, 56px); z-index: 55; overflow-y: auto; overscroll-behavior: contain;
    padding: 8px max(16px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: radial-gradient(600px 400px at 100% 0%, rgba(0,116,116,0.3), transparent 70%), #060a0a;
  }
  .mainnav a { font-size: 25px; letter-spacing: 0.05em; padding: 17px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .mainnav a:hover { background: none; }
  .mainnav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,0.08); color: var(--teal-light-accent); }
  .mainnav .nav-donate { display: block; margin-top: 22px; }
  .mainnav .nav-donate a { text-align: center; font-size: 18px; letter-spacing: 0.1em; padding: 16px; border: 0; border-radius: 8px; color: #111; background: linear-gradient(160deg, #ff7f3a, #e0560b); }
  html.menu-open { overflow: hidden; }

  /* Hero: text scales with the screen, full width tap targets. */
  .hero { min-height: 540px; }
  .hero h1 { font-size: clamp(36px, 11.2vw, 56px); }
  .hero.page h1 { font-size: clamp(32px, 10vw, 48px); }
  .hero .wrap { padding-bottom: 104px; }
  .hero.page { min-height: 250px; }
  .hero.page .wrap { padding-bottom: 30px; }
  .hero .actions { flex-direction: column; }
  .hero .actions .btn { text-align: center; padding: 15px 20px; }
  .btn { min-height: 44px; }

  /* Quick tiles: four equal squares-ish, text sized to fit two columns. */
  .tiles { margin-top: -64px; }
  .tiles ul { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
  .tiles li { display: flex; min-width: 0; }
  .tiles a { flex: 1; min-width: 0; min-height: 148px; padding: 18px 14px 16px; justify-content: flex-start; gap: 6px; border-right: 0; }
  .tiles li:nth-child(odd) a { border-right: 1px solid rgba(255,255,255,0.06); }
  .tiles li:nth-child(-n+2) a { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .tiles .num { font-size: 12px; }
  .tiles h2 { font-size: clamp(16px, 5.1vw, 22px); letter-spacing: 0.02em; line-height: 1.08; }
  .tiles span.more { margin-top: auto; font-size: 13px; line-height: 1.3; }

  section.band { padding: 56px 0; }
  section.band.tight { padding: 44px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head h2, h2.title { font-size: clamp(26px, 8vw, 34px); }
  .section-head .sub { font-size: 14px; }
  blockquote.pull { font-size: clamp(26px, 8.2vw, 36px); }

  /* Photo + Graphy stays side by side. */
  .etym { grid-template-columns: 1fr auto 1fr; gap: 8px; margin: 22px 0 6px; }
  .etym .word { font-size: clamp(30px, 10vw, 40px); }
  .etym .gloss { font-size: 11px; letter-spacing: 0.06em; }
  .etym .plus { font-size: 28px; }

  .stats .n { font-size: clamp(40px, 13vw, 56px); }
  .stats .l { font-size: 12px; letter-spacing: 0.08em; }

  .split img { max-height: 420px; }
  .person .ph { height: 300px; object-position: 50% 25%; }
  .officers { gap: 14px; }
  .officer .body { padding: 14px 10px 18px; }
  .officer h3 { font-size: clamp(15px, 4.6vw, 18px); }
  .card { padding: 22px 18px; }
  .card.founder { gap: 16px; }
  .card.founder .head { width: 72px; height: 72px; }
  .quote { padding: 24px 20px; }
  .quote p { font-size: 17px; }
  .versus > div { padding: 26px 20px; }
  .principles li { padding-left: 54px; }

  /* Contact: one tap Call, Text, Email; full width send. */
  .quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: -8px 0 28px; }
  .quick .btn { text-align: center; padding: 13px 6px; border-radius: 8px; }
  .form button.btn { width: 100%; }
  .form label { font-size: 13px; }
  .contact-list .v { font-size: 18px; overflow-wrap: anywhere; }

  /* Footer: shorter on phones. */
  footer.site { padding: 52px 0 calc(24px + env(safe-area-inset-bottom)); }
  footer.site .cols { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  footer.site .cols > div:first-child, footer.site .cols > div:last-child { grid-column: 1 / -1; }
  footer.site img { width: 72px; }
  footer.site .legal { margin-top: 34px; flex-direction: column; }
}

/* Hero photos (phone sized versions below 761px) */
.hero-city-1 { background-image: url("../images/City-1.jpg"); }
.hero-city-3 { background-image: url("../images/City-3.jpg"); }
.hero-landscapes-1 { background-image: url("../images/Landscapes-1.jpg"); }
.hero-silva-45 { background-image: url("../images/SILVA-45.jpg"); }
.hero-the-spirit-box { background-image: url("../images/The_Spirit_Box.jpg"); background-position: center 40%; }
@media (max-width: 760px) {
  .hero-city-1 { background-image: url("../images/City-1-m.jpg"); }
  .hero-city-3 { background-image: url("../images/City-3-m.jpg"); }
  .hero-landscapes-1 { background-image: url("../images/Landscapes-1-m.jpg"); }
  .hero-silva-45 { background-image: url("../images/SILVA-45-m.jpg"); }
  .hero-the-spirit-box { background-image: url("../images/The_Spirit_Box-m.jpg"); }
}

/* Cameras 4 Kids band: donated cameras photo as a soft texture over the orange. */
section.band.orange { position: relative; overflow: hidden; isolation: isolate; }
section.band.orange::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../images/Donated_Cameras.jpg") center / cover no-repeat;
  opacity: 0.16; mix-blend-mode: multiply;
}
@media (max-width: 760px) {
  section.band.orange::before { background-image: url("../images/Donated_Cameras-m.jpg"); opacity: 0.15; }
}

/* "We write with light" band: text only, centered. */
.etym-block { max-width: 820px; margin: 0 auto; text-align: center; }
.etym-block .etym { margin: 34px 0 18px; }
.etym-block p { max-width: 640px; margin-left: auto; margin-right: auto; font-size: 18px; }

/* ---------- Mobile polish pass ---------- */
.hero h1, .hero .eyebrow, .hero p { text-shadow: 0 2px 18px rgba(0,0,0,0.55); }
@media (max-width: 760px) {
  /* Page banners: darker base so eyebrow and title read cleanly over busy photos. */
  .hero.page::before { background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 55%, rgba(12,17,17,1) 100%); }
  .hero .eyebrow { font-size: 12px; letter-spacing: 0.16em; }

  /* Every call to action is a full width, thumb friendly button. */
  .band .btn { display: block; width: 100%; text-align: center; padding: 15px 20px; }

  /* Officers: compact placeholders until names are announced. */
  .officer .ph { aspect-ratio: 1 / 1; }
  .officer .ph img { width: 38%; }
  .officer .role { font-size: 11px; }
  .officer .tba { font-size: 13px; }

  /* Pending quotes shrink to a single tidy line. */
  .quote.pending { padding: 16px 20px; }
  .quote.pending p { font-size: 15px; }
  .quote.pending .who { margin-top: 6px; font-size: 13px; }
  .quotes { gap: 14px; }

  /* Contact: Call/Text/Email buttons already cover these two rows. */
  .contact-list li:nth-child(-n+2) { display: none; }
  .note.ok { color: var(--teal-light-accent); }

  footer.site img { width: 64px; }
}

/* Founding Four: profession line under the name. */
.card.founder .founder-title { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; color: #e6ecec; margin: -4px 0 4px; }
.card.founder p + p { margin-top: 0; }
@media (max-width: 760px) {
  .card.founder p:last-child { font-size: 14.5px; line-height: 1.5; }
  .founders-mini { gap: 16px; }
}

/* Officer placeholders use the minimal LW mark, a little smaller and softer. */
.officer .ph img { width: 30%; opacity: 0.8; }
@media (max-width: 760px) { .officer .ph img { width: 32%; } }

.note.ok { color: var(--teal-light-accent); }
.note.err { color: #ffb38a; }
@media (max-width: 760px) {
  footer.site .legal { align-items: center; text-align: center; gap: 6px; }
  footer.site .legal-dot { display: none; }
  footer.site .legal-club { display: block; }
}

/* Desktop: when the teal bar docks at the top it fades to a dark gray/black gradient,
   keeping a thin teal line along the bottom edge. */
@media (min-width: 761px) {
  .mainnav::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s ease;
    background: linear-gradient(180deg, #1c2323 0%, #0b0f0f 100%); box-shadow: inset 0 -2px 0 #007474; }
  .mainnav.docked::before { opacity: 1; }
  .mainnav > .wrap { position: relative; z-index: 1; }
  .mainnav.docked a:hover { background: rgba(0,116,116,0.35); }
  .mainnav.docked a[aria-current="page"] { border-bottom-color: var(--teal-light-accent); }
}

/* Advisor website link */
.person .person-link { margin-top: 16px; }
.person .person-link a { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; text-decoration: none;
  color: var(--teal-light-accent); border-bottom: 1px solid rgba(128,224,224,0.4); padding-bottom: 2px; }
.person .person-link a::after { content: "\00a0\2197"; }
.person .person-link a:hover { color: #fff; border-bottom-color: #fff; }

/* Photo + Graphy: size columns to the words so the pair sits closer together. */
.etym-block .etym { grid-template-columns: auto auto auto; justify-content: center; column-gap: 44px; }
@media (max-width: 760px) { .etym-block .etym { column-gap: 14px; } }

/* ---------- LWZ shirt button + shadow box ---------- */
button.shirt-badge { border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 4px;
  box-shadow: 0 6px 18px rgba(245,179,1,0.25); transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
button.shirt-badge:hover { background: #ffc42b; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(245,179,1,0.35); }
button.shirt-badge:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.shirt-badge-icon { font-size: 11px; }
.shirt-badge-hint { font-size: 11px; letter-spacing: 0.12em; padding-left: 8px; border-left: 1px solid rgba(0,0,0,0.25); }

.shirt-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.shirt-modal[hidden] { display: none; }
.shirt-modal-backdrop { position: absolute; inset: 0; background: rgba(3,6,6,0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: shirtFade 0.2s ease; }
.shirt-modal-panel { position: relative; width: min(560px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(170deg, #161d1d 0%, #0a0e0e 100%); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6); padding: 22px 22px 18px; animation: shirtPop 0.22s ease; }
.shirt-modal-title { align-self: flex-start; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.1em; font-size: 18px; color: #fff; margin: 0 48px 14px 2px; }
.shirt-modal-title span { display: block; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--gold); margin-top: 2px; }
.shirt-modal-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.shirt-modal-close:hover { background: rgba(255,255,255,0.14); }
.shirt-track { width: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: 10px; outline: none; }
.shirt-track::-webkit-scrollbar { display: none; }
.shirt-slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; background: #fff; border-radius: 10px; position: relative; }
.shirt-slide img { width: 100%; height: auto; max-height: min(64vh, 620px); object-fit: contain; margin: 0 auto; user-select: none; -webkit-user-drag: none; }
.shirt-slide figcaption { position: absolute; left: 12px; bottom: 12px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 12px; color: #fff; background: rgba(0,0,0,0.75); padding: 5px 10px; border-radius: 4px; }
.shirt-nav { position: absolute; top: 50%; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); cursor: pointer;
  background: rgba(10,14,14,0.85); color: #fff; font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center; transform: translateY(-50%); }
.shirt-nav.prev { left: -23px; }
.shirt-nav.next { right: -23px; }
.shirt-nav:hover { background: var(--teal); }
.shirt-nav[disabled] { opacity: 0.25; cursor: default; }
.shirt-dots { display: flex; gap: 10px; margin-top: 14px; }
.shirt-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,0.3); cursor: pointer; }
.shirt-dots button[aria-selected="true"] { background: var(--gold); width: 26px; border-radius: 5px; }
html.modal-open { overflow: hidden; }
@keyframes shirtFade { from { opacity: 0; } }
@keyframes shirtPop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@media (max-width: 760px) {
  .shirt-modal { padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom)); }
  .shirt-modal-panel { padding: 16px 14px 14px; }
  .shirt-nav { display: none; }
  .shirt-slide img { max-height: 66vh; }
}
@media (prefers-reduced-motion: reduce) { .shirt-track { scroll-behavior: auto; } }

/* Photo with caption inside a split layout */
.photo-fig { margin: 0; }
.photo-fig figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--gray); padding-left: 12px; border-left: 2px solid var(--gold); }

/* ---------- Student gallery: exhibition layout ---------- */
.gal-intro { padding: 72px 0 24px; text-align: center; }
.gal-kicker { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.32em; font-size: 12px; color: var(--teal-light-accent); }
.gal-statement { font-family: var(--font-head); font-weight: 400; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.25; max-width: 820px; margin: 18px auto 0; color: #f2f5f5; letter-spacing: 0.01em; }
.gal-meta { margin-top: 18px; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); }
.gal-index { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.gal-index a { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; color: #e6ecec; text-decoration: none;
  padding: 9px 18px; border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; transition: border-color 0.2s, background 0.2s; }
.gal-index a:hover { border-color: var(--teal-light-accent); background: rgba(0,116,116,0.18); color: #fff; }

.gal-col { padding: 64px 0 40px; }
.gal-col + .gal-col { border-top: 1px solid var(--line); }
.gal-head { max-width: 1200px; margin-bottom: 36px; display: grid; grid-template-columns: 1fr 1.2fr; column-gap: 60px; align-items: end; }
.gal-col-kicker { grid-column: 1 / -1; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.24em; font-size: 12px; color: var(--gold); margin-bottom: 10px; }
.gal-col-title { font-family: var(--font-head); text-transform: uppercase; font-weight: 600; font-size: clamp(38px, 5.4vw, 68px); line-height: 0.98; letter-spacing: 0.01em; }
.gal-col-note { color: #b8c4c4; font-size: 16px; line-height: 1.7; max-width: 520px; }

.gal-rows { display: flex; flex-direction: column; gap: 14px; }
.gal-row { display: flex; gap: 14px; }
.gal-item { position: relative; flex-basis: 0; min-width: 0; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; border-radius: 3px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transform: scale(1.015);
  transition: opacity 0.7s ease, transform 1.2s cubic-bezier(.2,.7,.2,1), filter 0.5s ease; }
.gal-item.is-loaded img { opacity: 1; transform: scale(1); }
.gal-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.55)); opacity: 0; transition: opacity 0.35s ease; }
.gal-num { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-family: var(--font-head); letter-spacing: 0.2em; font-size: 12px; color: #fff; opacity: 0; transform: translateY(6px); transition: opacity 0.35s ease, transform 0.35s ease; }
@media (hover: hover) {
  .gal-item:hover img { transform: scale(1.035); }
  .gal-item:hover::after, .gal-item:hover .gal-num { opacity: 1; transform: none; }
}
.gal-item:focus-visible { outline: 2px solid var(--teal-light-accent); outline-offset: 3px; }
.gal-row, .gal-head { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); }
.gal-row.in, .gal-head.in { opacity: 1; transform: none; }

/* Viewer */
.viewer { position: fixed; inset: 0; z-index: 320; display: grid; grid-template-rows: auto 1fr auto; background: rgba(3,5,5,0.97);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: shirtFade 0.25s ease; }
.viewer[hidden] { display: none; }
.viewer-top { display: flex; align-items: center; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) 20px 8px; }
.viewer-count { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.2em; font-size: 12px; color: #aeb9b9; white-space: pre; }
.viewer-close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.05); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.viewer-close:hover { background: rgba(255,255,255,0.14); }
.viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 76px; }
.viewer-fig { margin: 0; height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; pointer-events: none; }
.viewer-fig img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 90px rgba(0,0,0,0.7); transition: opacity 0.3s ease; pointer-events: auto; }
.viewer.is-changing .viewer-fig img { opacity: 0.25; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.viewer-nav:hover { background: var(--teal); border-color: var(--teal); }
.viewer-nav.prev { left: 14px; }
.viewer-nav.next { right: 14px; }
.viewer-cap { text-align: center; padding: 14px 20px max(18px, env(safe-area-inset-bottom)); }
.viewer-title { color: #e8eeee; font-size: 15px; max-width: 700px; margin: 0 auto; }
.viewer-credit { margin-top: 4px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; color: var(--teal-light-accent); }

@media (max-width: 760px) {
  .gal-intro { padding: 48px 0 8px; }
  .gal-col { padding: 44px 0 24px; }
  .gal-head { grid-template-columns: 1fr; row-gap: 14px; margin-bottom: 24px; }
  .gal-rows { gap: 10px; }
  .gal-row { flex-wrap: wrap; gap: 10px; }
  .gal-item { flex-basis: 100%; }
  .gal-item.is-tall { flex-basis: calc(50% - 5px); }
  .gal-num { opacity: 1; transform: none; }
  .viewer-stage { padding: 0 8px; }
  .viewer-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gal-row, .gal-head { opacity: 1; transform: none; }
  .gal-item img { transition: none; }
}
.gal-row.is-solo { justify-content: center; }
@media (max-width: 760px) { .gal-row.is-solo .gal-item { max-width: none !important; } }
