/* Epoxy Top Creations — styles.css
   Mobile-first, no external fonts or frameworks. */

:root {
  --charcoal: #15181c;
  --charcoal-2: #1d2127;
  --slate: #262c34;
  --slate-2: #333b46;
  --paper: #f6f4f0;
  --paper-2: #ece8e1;
  --white: #ffffff;
  --ink: #1b1e23;
  --muted: #4a515c;          /* on light: 7.6:1 */
  --muted-dark: #b9c0ca;     /* on charcoal: 9.9:1 */
  --bronze: #d39a4f;         /* accent on dark */
  --bronze-strong: #e2ad66;
  --bronze-ink: #7d4f16;     /* bronze text on light: 6.3:1 */
  --steel: #8fb0cf;          /* accent on dark */
  --steel-ink: #2f5675;      /* steel text on light */
  --focus: #ffbf47;
  --danger: #a3261b;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mobile-bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: var(--mobile-bar-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel-ink); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.35rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.no-js .js-only { display: none !important; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--focus); color: #000; padding: .75rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--bronze-ink); margin-bottom: .75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .15em .4em;
  min-height: 48px; padding: .7rem 1.25rem; border-radius: 999px;
  font: inherit; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-lg { min-height: 54px; padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--bronze); color: #15181c; }
.btn-primary:hover { background: var(--bronze-strong); }
.btn-secondary { background: var(--slate); color: var(--white); }
.btn-secondary:hover { background: var(--slate-2); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-sub { font-weight: 500; font-size: .88em; opacity: .9; }
@media (prefers-reduced-motion: no-preference) { .btn:active { transform: translateY(1px); } }

.link-btn {
  background: none; border: 0; padding: .5rem 0; min-height: 44px; font: inherit; font-size: .95rem;
  color: var(--steel-ink); text-decoration: underline; cursor: pointer;
}

/* ---------- Header ---------- */
.site-header { background: var(--charcoal); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .25rem 1rem;
  padding-block: .65rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; font-weight: 800; min-height: 44px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: radial-gradient(circle at 30% 30%, #f3d3a1 0 12%, transparent 13%),
              linear-gradient(135deg, #d39a4f 0%, #8a5a26 45%, #5d7b97 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.brand-name { font-size: 1.05rem; letter-spacing: -.01em; }
.header-phone {
  color: var(--white); font-weight: 700; text-decoration: none; white-space: nowrap;
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 .9rem;
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
}
.header-phone { grid-row: 1; grid-column: 2; }
@media (max-width: 380px) { .brand-name { font-size: .95rem; } .header-phone { padding: 0 .6rem; font-size: .92rem; } }
.header-phone:hover { border-color: var(--bronze); color: var(--bronze-strong); }
.site-nav { grid-column: 1 / -1; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: -.5rem; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav ul { display: flex; list-style: none; gap: .1rem; white-space: nowrap; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .6rem;
  color: var(--muted-dark); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.site-nav a:hover { color: var(--white); }

@media (min-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .site-nav { grid-row: 1; grid-column: 2; justify-self: center; margin: 0; }
  .header-phone { grid-column: 3; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(143,176,207,.16), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(211,154,79,.14), transparent 60%),
    var(--charcoal);
  color: var(--white);
  padding-block: 2.25rem 3rem;
}
.hero-inner { display: grid; gap: 2rem; align-items: center; }
.hero .eyebrow { color: var(--bronze); }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero-sub { color: var(--muted-dark); font-size: 1.12rem; max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1.1rem; }
.hero-ctas .btn { flex: 1 1 210px; }
.hero-phone { color: var(--muted-dark); margin: 0; }
.hero-phone a { color: var(--white); font-weight: 800; font-size: 1.15rem; }
.hero-phone .dot { margin: 0 .35rem; }
.hero-media { margin: 0; position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,.45); background: var(--slate);
}
.hero-media figcaption {
  position: absolute; left: .9rem; bottom: .9rem; padding: .35rem .75rem; border-radius: 999px;
  background: rgba(21,24,28,.82); color: var(--white); font-size: .85rem; font-weight: 600;
}
@media (min-width: 880px) {
  .hero { padding-block: 4rem 4.5rem; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; }
  .hero-ctas .btn { flex: 0 0 auto; }
}

/* ---------- Trust strip ---------- */
.trust { background: var(--charcoal-2); color: var(--white); padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,.06); }
.trust-list {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem 1.25rem;
}
.trust-list li { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .98rem; }
.trust-list svg { width: 22px; height: 22px; fill: var(--bronze); flex: none; }
.highlight-list {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .75rem;
  margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1);
}
.highlight-list li { color: var(--muted-dark); font-size: .95rem; padding-left: .9rem; border-left: 3px solid var(--steel); }
.highlight-list strong { color: var(--white); display: block; }

/* ---------- Sections ---------- */
.section { padding-block: 3.5rem; }
@media (min-width: 880px) { .section { padding-block: 5rem; } }
.section-head { max-width: 680px; margin-bottom: 2rem; }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }

/* Services */
.service-grid { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; border-top: 4px solid var(--bronze);
}
.service-card:nth-child(2n) { border-top-color: var(--steel); }
.service-card p { color: var(--muted); }
.care-note { font-size: .92rem; background: var(--paper); border-radius: var(--radius-sm); padding: .75rem .9rem; }
.care-note strong { color: var(--ink); }
.svc-cta {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem;
  min-height: 44px; font-weight: 700; color: var(--bronze-ink); text-decoration: none;
}
.svc-cta:hover { text-decoration: underline; }

/* Gallery */
.gallery { background: var(--white); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filter-btn {
  min-height: 44px; padding: .55rem 1rem; border-radius: 999px; border: 2px solid var(--paper-2);
  background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
}
.filter-btn:hover { border-color: var(--slate-2); }
.filter-btn[aria-pressed="true"] { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }

.gallery-grid { list-style: none; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.g-link {
  display: block; height: 100%; text-decoration: none; color: var(--ink); border-radius: var(--radius);
  overflow: hidden; background: var(--paper); box-shadow: var(--shadow);
}
.g-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
@media (prefers-reduced-motion: no-preference) { .g-link:hover .g-thumb img { transform: scale(1.04); } }
.g-cap { display: block; padding: .75rem .9rem .9rem; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.g-tag { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-ink); font-weight: 700; margin-bottom: .2rem; }
.gallery-more-wrap { display: flex; justify-content: center; margin-top: 1.75rem; }

/* Process */
.process { background: var(--charcoal); color: var(--white); }
.process .eyebrow { color: var(--bronze); }
.process .section-head p:last-child { color: var(--muted-dark); }
.process-list { list-style: none; counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.process-list li {
  counter-increment: step; position: relative; background: var(--slate); border-radius: var(--radius);
  padding: 3.5rem 1.4rem 1.4rem; border: 1px solid rgba(255,255,255,.07);
}
.process-img { width: calc(100% + 2.8rem); max-width: none; height: auto; margin: -3.5rem -1.4rem 1.1rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: var(--slate-2); }
.process-list li:has(.process-img) { padding-top: 3.5rem; }
.process-list li::before {
  content: counter(step); position: absolute; top: 1.1rem; left: 1.4rem; z-index: 1; box-shadow: 0 2px 8px rgba(0,0,0,.4); width: 2rem; height: 2rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--bronze); color: var(--charcoal); font-weight: 800;
}
.process-list h3 { font-size: 1.08rem; }
.process-list p { color: var(--muted-dark); margin: 0; font-size: .98rem; }

/* About & reviews */
.about-inner { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .about-inner { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.about-copy p { color: var(--muted); }
.check-list { list-style: none; display: grid; gap: .45rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.check-list li { position: relative; padding-left: 1.75rem; font-weight: 600; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--steel-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.5 16.2L5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.reviews { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.review-list { display: grid; gap: 1rem; }
.review { margin: 0; padding-left: 1rem; border-left: 4px solid var(--bronze); }
.review blockquote { margin: 0; }
.review blockquote p { font-size: 1.25rem; font-weight: 700; line-height: 1.4; margin-bottom: .5rem; }
.review figcaption { color: var(--muted); font-size: .92rem; }
.fb-card { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--paper-2); }
.fb-card p { margin-bottom: .5rem; color: var(--muted); }
.fb-card strong { color: var(--ink); }
.fb-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* FAQ & area */
.faq { background: var(--white); }
.faq-inner { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .faq-inner { grid-template-columns: 1.4fr .9fr; align-items: start; } }
.faq-list { display: grid; gap: .6rem; }
.faq-list details { background: var(--paper); border-radius: var(--radius-sm); border: 1px solid var(--paper-2); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.1rem; font-weight: 700; position: relative; min-height: 44px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 500; color: var(--bronze-ink);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 1.1rem 1.1rem; margin: 0; color: var(--muted); }
.area-col { background: var(--charcoal); color: var(--white); border-radius: var(--radius); padding: 1.6rem; }
.area-col h2 { font-size: 1.6rem; }
.area-col h3 { font-size: 1rem; color: var(--bronze); margin-top: 1.25rem; }
.area-col p { color: var(--muted-dark); }
.area-col strong { color: var(--white); }
.area-col a { color: var(--steel); }
.town-list { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.town-list li { background: var(--slate); border-radius: 999px; padding: .25rem .75rem; font-size: .92rem; }
.area-note { margin-top: 1.25rem; margin-bottom: 0; font-size: .95rem; }

/* Quote builder */
.quote { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.quote-inner { display: grid; gap: 2rem; }
@media (min-width: 960px) { .quote-inner { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.quote-head p { color: var(--muted); }
.quote-head strong { color: var(--ink); }
.photo-note { background: var(--white); border-left: 4px solid var(--steel-ink); padding: .75rem 1rem; border-radius: var(--radius-sm); font-size: .95rem; }
.photo-note.small { font-size: .9rem; margin-top: 1rem; }
.direct-contact { list-style: none; display: grid; gap: .25rem; margin-bottom: .75rem; }
.direct-contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.hours-note { font-size: .92rem; }
.noscript-box { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }

.quote-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
@media (min-width: 600px) { .quote-card { padding: 2rem; } }
.field { margin: 0 0 1.1rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .35rem; }
.req, .opt { font-weight: 500; color: var(--muted); font-size: .88em; }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea, .quote-output textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 2px solid #8b929c; border-radius: var(--radius-sm);
}
.field textarea, .quote-output textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .quote-output textarea:focus {
  border-color: var(--steel-ink); outline: 3px solid var(--focus); outline-offset: 1px;
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-weight: 600; font-size: .92rem; margin: .35rem 0 0; }
.hint { color: var(--muted); font-size: .88rem; margin: .35rem 0 0; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.radio-group { border: 0; padding: 0; }
.radio-group label { display: inline-flex; align-items: center; gap: .45rem; margin: 0 1.25rem 0 0; font-weight: 500; min-height: 44px; cursor: pointer; }
.radio-group input { width: 1.25rem; height: 1.25rem; accent-color: var(--steel-ink); }
.form-errors {
  border: 2px solid var(--danger); background: #fdf1f0; color: var(--danger); border-radius: var(--radius-sm);
  padding: .85rem 1rem; margin-bottom: 1.25rem; font-weight: 600;
}
.form-errors ul { margin: .35rem 0 0 1.2rem; font-weight: 500; }
.form-errors a { color: var(--danger); }

.quote-output { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 2px dashed var(--paper-2); }
.quote-output h3:focus { outline: none; }
.quote-output > label { display: block; font-weight: 700; margin-bottom: .4rem; }
.quote-output textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; background: var(--paper); }
.length-note { font-size: .9rem; color: var(--muted); margin: .4rem 0 1rem; min-height: 1.4em; }
.desktop-note { background: #eef3f8; border: 1px solid #c9d7e4; border-radius: var(--radius-sm); padding: .85rem 1rem; margin-bottom: 1rem; font-size: .95rem; }
.desktop-note p { margin: 0; }
.send-actions { display: grid; gap: .65rem; }
.stale-note { border: 2px solid var(--danger); background: #fdf1f0; color: var(--danger); border-radius: var(--radius-sm); padding: .75rem 1rem; font-weight: 600; font-size: .95rem; margin: 0 0 1rem; }
.is-stale .send-actions a[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.send-status { font-weight: 600; color: var(--steel-ink); margin: .85rem 0 0; min-height: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--muted-dark); padding-top: 3rem; }
.footer-inner { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.3fr 1fr; } }
.footer-brand { color: var(--white); font-weight: 800; font-size: 1.25rem; margin-bottom: .5rem; }
.footer-area { max-width: 52ch; }
.footer-h { font-size: 1rem; color: var(--white); letter-spacing: .06em; text-transform: uppercase; }
.footer-links { list-style: none; display: grid; gap: .15rem; margin-bottom: .75rem; }
.footer-links a { color: var(--white); display: inline-flex; align-items: center; min-height: 44px; }
.pref { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bronze); margin-left: .35rem; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-block: 1.25rem; font-size: .88rem; }
.footer-base p { margin: 0; }

/* ---------- Sticky mobile bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 768px) {
  :root { --mobile-bar-h: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom, 0px));
    background: rgba(21,24,28,.97); border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 -6px 20px rgba(0,0,0,.25);
  }
  .mb-btn {
    display: flex; align-items: center; justify-content: center; gap: .45rem;
    min-height: 50px; min-width: 44px; border-radius: 999px; font-weight: 800; text-decoration: none;
  }
  .mb-btn svg { width: 20px; height: 20px; fill: currentColor; }
  .mb-text { background: var(--bronze); color: var(--charcoal); }
  .mb-call { background: var(--slate-2); color: var(--white); }
  html { scroll-padding-bottom: var(--mobile-bar-h); }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(10,12,14,.94); }
.lb-figure {
  position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: .75rem;
  max-width: calc(100vw - 2rem); padding: 4rem 0 calc(1.25rem + env(safe-area-inset-bottom, 0px));
}
.lb-figure img {
  max-width: calc(100vw - 2rem); max-height: calc(100vh - 10rem); max-height: calc(100dvh - 10rem);
  width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); background: #000;
  touch-action: pan-y pinch-zoom;
}
.lb-figure figcaption { color: var(--white); text-align: center; font-weight: 600; padding: 0 4rem; }
.lb-count { color: var(--muted-dark); font-weight: 500; white-space: nowrap; }
.lb-btn {
  position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255,255,255,.14); color: var(--white);
}
.lb-btn:hover { background: rgba(255,255,255,.26); }
.lb-btn svg { width: 28px; height: 28px; fill: currentColor; }
.lb-close { top: calc(.75rem + env(safe-area-inset-top, 0px)); right: .75rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: .5rem; }
.lb-next { right: .5rem; }
@media (max-width: 768px) {
  .lb-prev, .lb-next { top: auto; transform: none; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); }
  .lb-figure { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
  .lb-figure img { max-height: calc(100vh - 12rem); max-height: calc(100dvh - 12rem); }
  .lb-figure figcaption { padding: 0 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox:not([hidden]) .lb-figure img { animation: lb-in .2s ease-out; }
  @keyframes lb-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
}
body.is-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .btn, .filter-btn, .lb-btn { border: 2px solid ButtonText; }
  .filter-btn[aria-pressed="true"] { outline: 3px solid Highlight; }
}

@media print {
  .site-header nav, .mobile-bar, .lightbox, .filter-bar, .gallery-more-wrap, .quote-card { display: none !important; }
  body { padding: 0; background: #fff; }
}
