/* ============================================
   晟铝科技官网 · 样式表
   v1 设计预览版
   ============================================ */

:root {
  --ink: #0B1620;
  --navy: #0E2233;
  --navy-2: #12293D;
  --brand: #1565A8;
  --brand-dark: #0F4C7F;
  --brand-light: #E8F1FA;
  --steel: #8A99A8;
  --line: #E3E8EE;
  --bg: #F6F8FA;
  --white: #fff;
  --text: #1C2733;
  --muted: #5C6B7A;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(11, 22, 32, .06);
  --shadow-lg: 0 12px 32px rgba(11, 22, 32, .10);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 预览提示条 ---------- */
.preview-bar {
  background: var(--ink);
  color: #C8D4E0;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: .02em;
}
.preview-bar strong { color: #fff; font-weight: 600; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
  white-space: nowrap;
}
.logo-mark {
  height: 34px;
  width: auto;
  display: block;
  flex: none;
}
.logo small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: .16em;
  line-height: 1.3;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
  color: var(--muted);
  margin-left: auto;
}
.nav-links a { position: relative; padding: 6px 0; transition: color .18s; }
.nav-links a:hover,
.nav-links a.active { color: var(--brand); font-weight: 600; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.nav-tel {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .02em;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(21, 101, 168, .28);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-outline {
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  padding: 92px 0 76px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(21, 101, 168, .55), transparent 60%),
    radial-gradient(700px 380px at 8% 110%, rgba(62, 155, 224, .18), transparent 65%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 92px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, #6FA8DC, #1565A8, #6FA8DC);
}
.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9FC3E0;
  border: 1px solid rgba(159, 195, 224, .3);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.01em;
  max-width: 15em;
}
.hero h1 em {
  font-style: normal;
  color: #7FB8E8;
}
.hero-desc {
  margin-top: 22px;
  font-size: 16.5px;
  color: #B4C6D6;
  max-width: 34em;
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 66px;
  background: rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-stat {
  background: rgba(6, 18, 28, .45);
  padding: 22px 20px;
}
.hero-stat b {
  display: block;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.hero-stat b small { font-size: 14px; font-weight: 600; margin-left: 2px; color: #9FC3E0; }
.hero-stat span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #8FA6B8;
}

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.01em;
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15.5px;
}
.section-head.row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}
.link-arrow {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}
.link-arrow:hover { text-decoration: underline; }

/* ---------- 产品卡 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .22s;
  position: relative;
}
.card:hover {
  border-color: #C6D6E6;
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.icon-box {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--brand-light);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--brand);
}
.icon-box svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.005em;
}
.card p { font-size: 14px; color: var(--muted); line-height: 1.8; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.tag {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line);
}
.tag.brand { background: var(--brand-light); color: var(--brand); border-color: transparent; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}
.card-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- 工具条 ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all .2s;
}
.tool-card:hover { box-shadow: var(--shadow-lg); border-color: #C6D6E6; }
.tool-card .icon-box { margin-bottom: 0; flex: none; }
.tool-card h3 { font-size: 16px; margin-bottom: 6px; }
.tool-card p { font-size: 13.5px; }
.badge-soon {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #B26A00;
  background: #FFF4E0;
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: 2px;
}

/* ---------- 为什么选我们 ---------- */
.reason-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.reason { border-top: 2px solid var(--line); padding-top: 20px; }
.reason b { display: block; font-size: 15.5px; margin-bottom: 8px; }
.reason p { font-size: 13.5px; color: var(--muted); }
.reason .num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--brand);
  display: block;
  margin-bottom: 10px;
}

/* ---------- 案例 ---------- */
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .22s;
}
.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.case-thumb {
  height: 132px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, rgba(21,101,168,.85), rgba(14,34,51,.95));
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.75);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.case-body { padding: 22px; }
.case-body h3 { font-size: 16px; margin-bottom: 8px; }
.case-body p { font-size: 13.5px; color: var(--muted); }

/* ---------- 新闻 ---------- */
.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .18s;
}
.news-item:hover { background: var(--bg); }
.news-date {
  font-size: 12.5px;
  color: var(--steel);
  letter-spacing: .04em;
  line-height: 1.5;
}
.news-date b { display: block; font-size: 22px; color: var(--ink); font-weight: 800; }
.news-item h3 { font-size: 15.5px; font-weight: 600; }
.news-item p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.news-arrow { color: var(--steel); }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, #16405F 100%);
  color: #fff;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 80px);
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-inner h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; }
.cta-inner p { color: #B4C6D6; margin-top: 8px; font-size: 15px; }

/* ---------- 页头 ---------- */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(21,101,168,.45), transparent 65%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 90px);
}
.page-hero .container { position: relative; }
.crumb { font-size: 13px; color: #8FA6B8; margin-bottom: 14px; }
.crumb a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.01em; }
.page-hero p { color: #B4C6D6; margin-top: 12px; max-width: 46em; font-size: 15px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.spec { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
table.spec th, table.spec td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.spec th {
  background: var(--bg);
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .02em;
}
table.spec tr:last-child td { border-bottom: none; }
table.spec td:first-child { font-weight: 600; color: var(--ink); }

/* ---------- 筛选 tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
  background: #fff;
  transition: all .18s;
}
.tab:hover { border-color: #C6D6E6; color: var(--ink); }
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item .icon-box { margin-bottom: 0; flex: none; }
.contact-item b { display: block; font-size: 13px; color: var(--steel); font-weight: 600; margin-bottom: 2px; }
.contact-item span { font-size: 16px; font-weight: 600; color: var(--ink); word-break: break-all; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.form-row label i { color: #D64545; font-style: normal; }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
  outline: none;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(21, 101, 168, .1);
}
.textarea { min-height: 104px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12.5px; color: var(--steel); margin-top: 12px; }

.map-placeholder {
  height: 260px;
  border-radius: var(--radius);
  border: 1px dashed #C6D2DE;
  background:
    repeating-linear-gradient(0deg, #EEF3F8 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, #EEF3F8 0 1px, transparent 1px 40px),
    #F8FAFC;
  display: grid;
  place-items: center;
  color: var(--steel);
  font-size: 13.5px;
  text-align: center;
  padding: 20px;
}

/* ---------- 关于页 ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.about-split p { color: var(--muted); margin-bottom: 16px; font-size: 15px; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-ph {
  border-radius: 8px;
  background: linear-gradient(135deg, #DDE6EF, #C9D6E2);
  display: grid;
  place-items: center;
  color: #7A8B9C;
  font-size: 12px;
  letter-spacing: .08em;
  min-height: 120px;
}
.photo-ph.tall { grid-row: span 2; min-height: 252px; }

.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--line);
}
.tl-item { position: relative; padding: 0 0 30px 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -28px; top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
}
.tl-year { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: .04em; }
.tl-item b { display: block; font-size: 15.5px; margin: 3px 0 4px; }
.tl-item p { font-size: 13.5px; color: var(--muted); }

.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  transition: all .2s;
}
.cert:hover { border-color: #C6D6E6; box-shadow: var(--shadow); }
.cert b { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 4px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink);
  color: #93A5B5;
  padding: 60px 0 0;
  font-size: 13.5px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo small { color: #6F8394; }
.footer-brand p { line-height: 1.9; max-width: 26em; }
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: .02em;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 0 26px;
  font-size: 12.5px;
  color: #6F8394;
}
.footer-bottom a:hover { color: #B4C6D6; }

/* ---------- 提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all .28s;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-3, .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .reason-list, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav.open + .nav-panel { display: block; }
}

@media (max-width: 860px) {
  .hero { padding: 64px 0 56px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
  .section { padding: 60px 0; }
  .section-head.row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .grid-3, .grid-2, .grid-4, .tool-grid { grid-template-columns: 1fr; }
  .about-split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .news-item { grid-template-columns: 64px 1fr; gap: 16px; }
  .news-arrow { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-ph.tall { grid-row: auto; min-height: 140px; }
  .nav-tel { display: none; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .hero-stats { grid-template-columns: 1fr; }
  .reason-list { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .cta-band { padding: 48px 0; }
}

/* ---------- 移动端菜单 ---------- */
.nav-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}
.nav-panel.open { display: block; }
.nav-panel ul { padding: 10px 0; }
.nav-panel li { border-bottom: 1px solid #F1F4F7; }
.nav-panel li:last-child { border-bottom: none; }
.nav-panel a {
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  color: var(--text);
}
.nav-panel a:active { background: var(--bg); }

/* ---------- 产品卡片实拍图 ---------- */
.card-media {
  display: block;
  margin: -6px -6px 16px;
  border-radius: 10px;
  overflow: hidden;
  background: #EEF3F8;
  aspect-ratio: 16 / 10;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.card-media:hover img { transform: scale(1.04); }

/* ---------- 实拍图块 ---------- */
.img-frame {
  border-radius: 10px;
  overflow: hidden;
  background: #EEF3F8;
  border: 1px solid var(--line);
}
.img-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }

figure.photo { margin: 0; }
figure.photo figcaption {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}

.gallery-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 860px) {
  .gallery-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .gallery-3, .gallery-2 { grid-template-columns: 1fr; }
}
