/* winstonchew.com — site stylesheet (translated from the original inline design) */
:root {
  --accent: #BC6448; --accent-deep: #9A4E37; --sage: #5E6E5A;
  --bg: #F8F3EA; --ink: #26211C; --head: #221D18; --sand: #F1E8DA;
  --line: #E7DDCC; --rule: #E3D8C5; --card: #FDFBF6; --card-line: #EADFCC;
  --body: #4f473c; --muted: #5a5245; --soft: #6d6456; --faint: #8a8072; --faint2: #9a8f7e;
  --serif: 'Newsreader', Georgia, serif; --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 40px);
  /* theme-able extras (Feel & Look overrides these) */
  --nav: #524a40; --link-hover: #7d3c28; --selection: #f0d9cf; --header-bg: rgba(248,243,234,.8);
  --on-accent: #fff; --btn-line: #D8CDB8; --btn-hover-bg: #fff; --btn-hover-line: #c9bda4;
  --img-bg: #EFE7D8; --meta: #7d7365; --prose: #2f2922; --card-hover-line: #dccdb4;
  --row-hover: rgba(255,255,255,.4); --shadow: rgba(38,33,28,.12);
  --foot-bg: #26211C; --foot-text: #c9bfae; --foot-dim: #a99f8d; --foot-head: #F4EFE6; --foot-line: #3a332c;
  --r-card: 18px; --r-lg: 22px; --r-md: 16px; --r-sm: 10px; --r-btn: 999px; --r-input: 12px; --r-photo: 20px; --r-img: 14px;
  --head-weight: 500; --head-track: -.02em; --scheme: light;
}
html { scroll-behavior: smooth; color-scheme: var(--scheme); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.62; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent-deep); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--link-hover); }
::selection { background: var(--selection); }
p { text-wrap: pretty; }
img { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 720px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px); background: var(--header-bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); flex-wrap: wrap; justify-content: flex-end; }
.nav > a, .nav-dd > a { color: var(--nav); font-weight: 500; font-size: .96rem; padding: 8px 0; }
.nav > a:hover, .nav-dd > a:hover, .nav a.is-current { color: var(--ink); }
.nav .nav-cta { display: inline-flex; align-items: center; background: var(--accent); color: var(--on-accent); padding: 9px 18px; border-radius: var(--r-btn); font-weight: 600; font-size: .92rem; }
.nav .nav-cta:hover { background: var(--accent-deep); color: var(--on-accent); }
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-dd svg { transition: transform .18s ease; }
.nav-dd-menu { position: absolute; top: 100%; left: 50%; padding-top: 10px; width: min(340px, 86vw); z-index: 40; visibility: hidden; opacity: 0; transform: translate(-50%, 6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.nav-dd:hover svg, .nav-dd:focus-within svg { transform: rotate(180deg); }
.nav-dd-panel { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-md); box-shadow: 0 18px 44px var(--shadow); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.nav-dd-panel a.dd-item { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-sm); color: inherit; }
.nav-dd-panel a.dd-item:hover { background: var(--sand); }
.dd-cat { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.dd-title { font-family: var(--serif); font-size: 1.04rem; line-height: 1.3; color: var(--head); }
.dd-all { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; padding: 12px 14px; border-top: 1px solid var(--card-line); font-weight: 600; font-size: .92rem; color: var(--accent-deep); }

.preview-banner { background: #26211C; color: #F4EFE6; text-align: center; padding: 10px var(--gutter); font-size: .9rem; }
.preview-banner a { color: #f0c9b9; font-weight: 600; }

/* ---------- type & buttons ---------- */
.kicker { margin: 0 0 12px; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); }
.h-hero { margin: 0; max-width: 16ch; font-family: var(--serif); font-weight: var(--head-weight); font-size: clamp(2.7rem, 6.4vw, 4.9rem); line-height: 1.04; letter-spacing: var(--head-track); color: var(--head); }
.h-page { margin: 0; max-width: 18ch; font-family: var(--serif); font-weight: var(--head-weight); font-size: clamp(2.4rem, 5.6vw, 3.9rem); line-height: 1.06; letter-spacing: var(--head-track); color: var(--head); }
.h-sec { margin: 0 0 12px; max-width: 22ch; font-family: var(--serif); font-weight: var(--head-weight); font-size: clamp(2rem, 3.8vw, 2.9rem); line-height: 1.12; letter-spacing: var(--head-track); color: var(--head); }
.h-sec.sm { font-size: clamp(1.9rem, 3.6vw, 2.7rem); max-width: 26ch; }
h1 em, h2 em, .h-hero em, .h-page em { font-style: italic; color: var(--accent-deep); }
.lead { margin: 30px 0 0; max-width: 56ch; font-size: clamp(1.12rem, 1.7vw, 1.3rem); color: var(--body); line-height: 1.6; }
.lead.page { margin-top: 24px; font-size: clamp(1.08rem, 1.6vw, 1.22rem); }
.sec-lead { margin: 0 0 clamp(36px, 5vw, 56px); max-width: 54ch; color: var(--muted); }
.back { display: inline-flex; gap: 8px; font-size: .9rem; font-weight: 600; margin-bottom: 36px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 15px 28px; border-radius: var(--r-btn); font-weight: 600; font-size: 1rem; cursor: pointer; border: 1px solid transparent; font-family: inherit; line-height: 1.3; }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { background: var(--accent-deep); color: var(--on-accent); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--btn-line); }
.btn-outline:hover { background: var(--btn-hover-bg); border-color: var(--btn-hover-line); color: var(--ink); }
.btn.sm { padding: 13px 24px; font-size: .96rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.small-note { margin: 38px 0 0; font-size: .92rem; color: var(--faint); max-width: 60ch; }
.label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.rule-title { margin: 0 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }

/* ---------- sections ---------- */
.hero { padding-top: clamp(72px, 12vw, 140px); padding-bottom: clamp(56px, 8vw, 96px); }
.page-head { padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(40px, 6vw, 64px); }
.sec { padding-top: clamp(72px, 10vw, 120px); padding-bottom: clamp(72px, 10vw, 120px); scroll-margin-top: 80px; }
.band { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-top .h-sec { margin: 0; }
.sec-link { font-weight: 600; white-space: nowrap; }
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-card); padding: 30px 28px; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: var(--head-weight); font-size: 1.5rem; line-height: 1.2; color: var(--head); }
.card p { margin: 0 0 18px; color: var(--muted); font-size: 1rem; flex: 1; }
.card .label { margin: 0 0 14px; flex: none; }
.card .more { font-weight: 600; font-size: .96rem; }
.card.work { padding: 34px 30px; }
.card.work h3 { font-size: 1.6rem; margin-bottom: 12px; line-height: 1.15; }
.card.work p { margin-bottom: 22px; }
.card .tag { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }
.card-photo { margin: -30px -28px 22px; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--r-card) var(--r-card) 0 0; background: var(--img-bg); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* reflections lists */
.rlist { display: flex; flex-direction: column; }
.rrow { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 40px); align-items: baseline; padding: 26px 0; border-top: 1px solid var(--rule); color: inherit; }
.rrow:last-child { border-bottom: 1px solid var(--rule); }
.rrow:hover { color: inherit; }
.rrow .no { font-family: var(--serif); font-size: 1rem; color: var(--faint2); font-style: italic; }
.rrow .t { display: block; font-family: var(--serif); font-weight: var(--head-weight); font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.22; color: var(--head); margin-bottom: 8px; }
.rrow .x { display: block; color: var(--muted); max-width: 64ch; margin-bottom: 10px; }
.rrow .m, .meta-line { display: block; font-size: .85rem; color: var(--faint2); }
.rmore { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule); color: inherit; }
.rmore:hover { color: inherit; background: var(--row-hover); }
.rmore .t { display: block; font-family: var(--serif); font-weight: var(--head-weight); font-size: clamp(1.3rem, 2.3vw, 1.7rem); line-height: 1.22; color: var(--head); margin-bottom: 8px; }
.rmore .x { display: block; color: var(--muted); max-width: 62ch; margin-bottom: 8px; }
.rmore .go { font-weight: 600; color: var(--accent-deep); white-space: nowrap; }
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-lg); padding: clamp(28px, 4.5vw, 56px); color: inherit; }
.feature:hover { border-color: var(--card-hover-line); color: inherit; }
.feature .t { display: block; font-family: var(--serif); font-weight: var(--head-weight); font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: var(--head-track); color: var(--head); }
.feature .t em { font-style: italic; color: var(--accent-deep); }
.feature .col { display: flex; flex-direction: column; gap: 14px; }
.feature .x { color: var(--body); font-size: 1.08rem; }
.feature .m { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .9rem; color: var(--meta); }
.feature .go { font-weight: 600; color: var(--accent-deep); }

/* about */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-photo { aspect-ratio: 4/5; max-width: 440px; width: 100%; }
.about-photo img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: var(--r-photo); background: var(--img-bg); }
.about-grid p { margin: 0 0 18px; color: var(--body); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { font-size: .86rem; font-weight: 500; color: var(--soft); background: var(--sand); border: 1px solid var(--line); padding: 7px 14px; border-radius: var(--r-btn); }

/* testimonials */
.tcard { margin: 0; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-card); padding: 34px 30px; display: flex; flex-direction: column; gap: 24px; }
.tcard.lg { padding: clamp(28px, 3.4vw, 40px); gap: 22px; }
.tcard blockquote { margin: 0; flex: 1; font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--head); display: flex; flex-direction: column; gap: .9em; }
.tcard.lg blockquote { font-size: 1.16rem; line-height: 1.62; color: var(--prose); }
.tcard figcaption { font-size: .92rem; line-height: 1.45; color: var(--soft); }
.tcard figcaption strong { display: block; font-weight: 600; color: var(--ink); }
.t-group { padding-bottom: clamp(56px, 8vw, 88px); }
.certs { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.cert { margin: 0; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.cert a.img { display: block; position: relative; aspect-ratio: 4/3; background: var(--img-bg); }
.cert img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cert figcaption { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.cert .iss { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.cert .ct { font-family: var(--serif); font-weight: var(--head-weight); font-size: 1.3rem; line-height: 1.25; color: var(--head); }
.cert .cx { color: var(--muted); font-size: .96rem; }
.cert .cd { font-size: .85rem; color: var(--faint2); }
.cta-box { background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-box h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: var(--head-weight); font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.2; color: var(--head); }
.cta-box p { margin: 0; color: var(--body); }
.cta-box .btn { padding: 14px 26px; }

/* contact */
.contact-form { max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.contact-form .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--soft); }
.contact-form input, .contact-form textarea { font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--card); border: 1px solid var(--btn-line); border-radius: var(--r-input); padding: 13px 16px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.contact-form .hint { font-size: .9rem; color: var(--faint); }
.contact-form .sent { margin: 6px 0 0; font-size: .9rem; color: var(--sage); min-height: 1.2em; }

/* ---------- reflection (article) ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 60; }
.post { padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(48px, 7vw, 80px); }
.post h1 { margin: 0; font-family: var(--serif); font-weight: var(--head-weight); font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.08; letter-spacing: var(--head-track); color: var(--head); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 30px 0 0; padding-bottom: 36px; border-bottom: 1px solid var(--rule); font-size: .92rem; color: var(--meta); }
.post-meta b { font-weight: 600; color: var(--nav); }
.prose { font-family: var(--serif); font-size: clamp(1.14rem, 1.6vw, 1.26rem); line-height: 1.72; color: var(--prose); }
.post .prose { padding-top: 40px; }
.prose p { margin: 0 0 1.2em; }
.prose p.lede { font-size: 1.28em; line-height: 1.5; color: var(--head); }
.prose strong { font-weight: 600; color: var(--head); }
.prose h2 { margin: 2.2em 0 .8em; font-family: var(--serif); font-weight: var(--head-weight); font-size: clamp(1.6rem, 2.8vw, 2rem); line-height: 1.2; letter-spacing: var(--head-track); color: var(--head); }
.prose h3 { margin: 1.8em 0 .5em; display: flex; gap: 14px; align-items: baseline; font-family: var(--serif); font-weight: var(--head-weight); font-size: 1.3em; line-height: 1.3; color: var(--head); }
.prose h3 .num { font-style: italic; font-size: .8em; color: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 2px solid var(--accent); font-size: 1.18em; line-height: 1.5; font-style: italic; color: var(--head); }
.prose blockquote p { margin: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { height: auto; border-radius: var(--r-img); display: block; margin: 1.6em 0; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.2em 0; }
.prose .closing { margin: 2.4em 0 0; padding-top: 2em; border-top: 1px solid var(--rule); }
.prose .closing p { margin: 0 0 .5em; font-size: 1.35em; line-height: 1.4; color: var(--head); }
.prose .closing p:last-child { margin: 0; font-size: 1em; color: var(--muted); }
.prose .closing em { color: var(--accent-deep); }
.sources { margin-top: clamp(48px, 7vw, 72px); padding-top: 28px; border-top: 1px solid var(--rule); }
.sources h2 { margin: 0 0 16px; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }
.sources ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; line-height: 1.55; color: var(--soft); }
.post-cta { padding-bottom: clamp(72px, 10vw, 120px); }
.post-cta .box { background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(28px, 4vw, 40px); }
.post-cta h2 { margin: 0 0 12px; font-family: var(--serif); font-weight: var(--head-weight); font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.2; color: var(--head); }
.post-cta p { margin: 0 0 24px; color: var(--body); max-width: 52ch; }
.post-cta .row { display: flex; flex-wrap: wrap; gap: 12px; }
.post-cta .btn { padding: 14px 26px; }

/* ---------- custom pages ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.left .photo { order: -1; }
.photo img { width: 100%; height: auto; display: block; border-radius: var(--r-photo); background: var(--img-bg); }
.photo figcaption { margin-top: 10px; font-size: .88rem; color: var(--faint); }
.photo { margin: 0; }
.page-photo-top { margin: 0 0 clamp(32px, 5vw, 56px); }
.page-photo-top img { aspect-ratio: 21/9; object-fit: cover; width: 100%; border-radius: var(--r-lg); display: block; }
.page-body { max-width: 720px; }
.page-body.prose { font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--body); }
.page-body.prose h2 { font-family: var(--serif); }
.page-body.prose h3 { display: block; font-family: var(--serif); }
.link-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--foot-bg); color: var(--foot-text); }
.site-footer .cols { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; align-items: start; }
.site-footer .fname { margin: 0 0 10px; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--foot-head); }
.site-footer .ftag { margin: 0; max-width: 34ch; font-size: .95rem; color: var(--foot-dim); }
.site-footer .fcol { display: flex; flex-direction: column; gap: 10px; }
.site-footer .fcol span { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--foot-dim); }
.site-footer a { color: var(--foot-text); }
.site-footer a:hover { color: var(--foot-head); }
.site-footer .bottom { border-top: 1px solid var(--foot-line); }
.site-footer .bottom .wrap { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .85rem; color: var(--foot-dim); }

/* ---------- gallery ---------- */
.gallery { column-count: var(--cols, 3); column-gap: clamp(14px, 2vw, 24px); }
.g-item { break-inside: avoid; margin: 0 0 clamp(14px, 2vw, 24px); }
.g-btn { display: block; width: 100%; padding: 0; border: 0; background: var(--img-bg); border-radius: var(--r-photo); overflow: hidden; cursor: zoom-in; line-height: 0; }
.g-btn img { width: 100%; height: auto; display: block; transition: transform .35s ease, opacity .2s; }
.g-btn:hover img { transform: scale(1.025); }
.g-item figcaption { margin: 10px 4px 0; font-size: .92rem; line-height: 1.45; color: var(--muted); }
.g-empty { color: var(--muted); }
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: #fff; }
.lb::backdrop { background: rgba(10,10,12,.88); }
.lb[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 20px; }
.lb img { max-width: min(94vw, 1400px); max-height: 78vh; object-fit: contain; border-radius: var(--r-img); }
.lb .lb-cap { max-width: 70ch; text-align: center; padding: 14px 0 0; font-size: 1rem; color: #e6e6e6; min-height: 2.4em; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.lb button:hover { background: rgba(255,255,255,.26); }
.lb .lb-x { top: 16px; right: 16px; } .lb .lb-p { left: 14px; top: 50%; } .lb .lb-n { right: 14px; top: 50%; }
@media (max-width: 860px) { .gallery { column-count: min(var(--cols, 3), 2); } }
@media (max-width: 480px) { .gallery { column-count: 1; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .site-footer, .progress { display: none; } body { background: #fff; color: #000; } }
