/* Nunito Sans, served from this site (SIL Open Font License, /fonts/OFL-nunito-sans.txt),
   so no page waits on Google Fonts and no visitor's address goes to Google for it. */
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("/fonts/nunito-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Crocker Refrigeration, Heating & Air — site styles.
   Colors come from the Crocker logo (#0088cf blue, #6dcef5 ice) with a deeper
   blue for text and buttons so everything passes contrast checks. */
:root {
  --blue: #0088cf;          /* logo blue: decoration, large text only */
  --blue-ink: #00609a;      /* buttons/links: 6.4:1 on white */
  --blue-deep: #0b2f4f;     /* headings, footer background */
  --ice: #6dcef5;
  --ice-soft: #e8f6fd;
  --ink: #1b2733;
  --muted: #4d5b69;
  --line: #d7e3ec;
  --bg: #ffffff;
  --bg-alt: #f4f9fc;
  --warm: #c2410c;          /* call button accent: 5.2:1 on white */
  --radius: 14px;
  --max: 1240px;
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: 2px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--blue-deep); line-height: 1.2; margin: 0 0 .6em; text-wrap: balance; }
p, li { max-width: 75ch; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Top bar */
.topbar { background: var(--blue-deep); color: #fff; font-size: .9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand img { width: 260px; height: auto; }
.brand { flex: 0 0 auto; }
.nav-toggle { display: none; background: none; border: 2px solid var(--blue-ink); color: var(--blue-ink); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav li { margin: 0; }
.nav a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 700; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue-ink); background: var(--ice-soft); }
.nav .btn { margin-left: 6px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid transparent; line-height: 1.2; cursor: pointer; font: inherit; font-weight: 800; }
.btn-primary { background: var(--blue-ink); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-call { background: var(--warm); color: #fff; }
.btn-call:hover { background: #9a3412; color: #fff; }
.btn-ghost { background: #fff; color: var(--blue-ink); border-color: var(--blue-ink); }
.btn-ghost:hover { background: var(--ice-soft); }
.nav .btn-call { color: #fff; }
.nav .btn-call:hover { color: #fff; background: #9a3412; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--ice-soft) 0%, #fff 55%, #fff7ed 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 56px; align-items: center; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 38em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.eyebrow { display: inline-block; font-weight: 800; color: var(--blue-ink); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: 10px; }
.facts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 30px rgba(11, 47, 79, .08); }
.facts ul { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts li:last-child { border-bottom: 0; }
.facts svg { flex: 0 0 24px; color: var(--blue); margin-top: 2px; }
.facts strong { display: block; color: var(--blue-deep); }

/* Page header (inner pages) */
.page-head { background: var(--ice-soft); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 40px; padding-bottom: 32px; }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 46em; margin: 0; }
.crumbs { font-size: .9rem; margin-bottom: 10px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose { max-width: 46em; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.two-col > *, .hero .wrap > *, .product-head > * { min-width: 0; } /* grid children would otherwise widen the page to fit a table */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.cards li { margin: 0; }
.card { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--blue); box-shadow: 0 8px 24px rgba(11, 47, 79, .10); transform: translateY(-2px); color: var(--ink); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ice-soft); color: var(--blue-ink); display: grid; place-items: center; margin-bottom: 12px; }
.card .more { display: inline-block; margin-top: 10px; font-weight: 800; color: var(--blue-ink); }
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.badges li { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.badges strong { display: block; font-size: 1.35rem; color: var(--blue-deep); line-height: 1.2; }
.badges span { color: var(--muted); font-size: .95rem; }
.towns { columns: 2; list-style: none; padding: 0; }
.towns li { break-inside: avoid; padding-left: 1.3em; position: relative; }
.towns li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55em; height: .55em; border-radius: 50%; background: var(--blue); }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.8em; }
.checklist li::before { content: ""; position: absolute; left: .2em; top: .45em; width: .45em; height: .8em; border: solid var(--blue-ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.callout { background: var(--blue-deep); color: #fff; border-radius: var(--radius); padding: 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.callout h2 { color: #fff; margin: 0 0 .25em; }
.callout p { margin: 0; color: #d6e8f5; }
.callout .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.callout .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.callout .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
details { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; background: #fff; }
summary { font-weight: 800; cursor: pointer; color: var(--blue-deep); }
details[open] summary { margin-bottom: 8px; }
.note { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 12px 16px; }

/* Form */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form h2 { font-size: 1.4rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid #9fb3c4; border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-ink); outline: 3px solid rgba(0, 96, 154, .25); outline-offset: 0; }
.field textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: .95rem; }
.check input { margin-top: .3em; width: 18px; height: 18px; flex: 0 0 18px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 12px; font-weight: 700; }
.form-status.ok { color: #166534; }
.form-status.err { color: #b91c1c; }

/* Carrier */
.carrier-strip { background: #fff; border-bottom: 1px solid var(--line); }
.carrier-strip .wrap { display: flex; align-items: center; gap: 28px; padding-top: 22px; padding-bottom: 22px; }
.carrier-strip p { margin: 0; flex: 1; font-size: 1.05rem; max-width: none; }
.carrier-logo { width: 170px; height: auto; flex: 0 0 auto; padding: 12px; } /* clear space: Carrier brand guide, width of the "C" */
.cfad-sm { width: 96px; height: auto; flex: 0 0 auto; }
.carrier-logo-lg { width: 200px; height: auto; padding: 14px 14px 14px 0; margin-bottom: 8px; }
.carrier-band { display: flex; gap: 20px; align-items: center; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.carrier-band .cfad { width: 120px; height: auto; flex: 0 0 auto; }
.carrier-band h2 { margin-top: 0; font-size: 1.3rem; }
.carrier-band p { margin: 0; }
.product-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.product-head-img img { width: 100%; max-height: 340px; object-fit: contain; background: #fff; border-radius: var(--radius); }
.product-cards .card { padding-top: 14px; }
.card-img { display: block; aspect-ratio: 4 / 3; margin-bottom: 12px; background: #fff; border-radius: 10px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.tiers { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tiers li { margin: 0; background: #fff; border: 1px solid var(--line); border-top: 4px solid #1b2c6b; border-radius: var(--radius); padding: 18px; }
.tiers strong { display: block; font-size: 1.25rem; color: #1b2c6b; margin-bottom: 4px; }
.tiers span { color: var(--muted); }
.table-wrap { overflow-x: auto; margin-bottom: 1em; }
table.spec { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.spec th, table.spec td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec thead th { background: var(--ice-soft); color: var(--blue-deep); }
table.spec tbody th { font-weight: 700; }
.split-img { float: right; width: 140px; margin: 0 0 10px 16px; }
.fine { font-size: .9rem; color: var(--muted); }

.dc-lockup { width: 100%; max-width: 520px; height: auto; background: #fff; padding: 14px 16px; border-radius: 10px; margin-bottom: 14px; }

.m-feature { display: flex; gap: 18px; align-items: flex-start; margin: 18px 0; }
.m-feature picture { flex: 0 0 120px; }
.m-feature img { width: 120px; height: auto; background: #fff; }
.m-feature h3 { margin-top: 0; }
.m-photo { margin: 18px 0; }
.m-photo img { width: 100%; height: auto; border-radius: var(--radius); }
@media (max-width: 600px) { .m-feature { flex-direction: column; } .m-feature picture { flex-basis: auto; } }

/* Footer */
.site-footer { background: var(--blue-deep); color: #d6e8f5; margin-top: 0; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.site-footer h2 { color: #fff; font-size: 1.1rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer address { font-style: normal; }
.footer-logo { background: #fff; border-radius: 12px; padding: 8px 10px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { width: 180px; }
.legal { border-top: 1px solid rgba(255, 255, 255, .15); font-size: .9rem; }
.legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 16px; padding-bottom: 16px; grid-template-columns: none; }

/* Sticky mobile call bar */
.mobile-call { display: none; }

@media (max-width: 900px) {
  .hero .wrap, .two-col { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(11, 47, 79, .1); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 900px) {
  .product-head { grid-template-columns: 1fr; }
  .product-head-img img { max-height: 240px; }
}
@media (max-width: 600px) {
  .carrier-strip .wrap { flex-wrap: wrap; gap: 12px; }
  .carrier-logo { width: 140px; }
  .cfad-sm { width: 72px; }
  .carrier-band { flex-direction: column; align-items: flex-start; }
  .split-img { width: 100px; }
  body { font-size: 1rem; padding-bottom: 64px; }
  .brand img { width: 200px; }
  .topbar .hours { display: none; }
  .section { padding: 40px 0; }
  .hero .wrap { padding-top: 32px; padding-bottom: 32px; gap: 24px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .towns { columns: 1; }
  .callout { padding: 24px; }
  .mobile-call { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 8px; padding: 8px 12px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(11, 47, 79, .1); }
  .mobile-call .btn { flex: 1; text-align: center; padding: 12px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Mitsubishi Electric guides (src/mitsubishi.mjs) */
.explore-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.explore-tabs a { padding: 8px 16px; border-radius: 999px; border: 2px solid var(--blue-ink); color: var(--blue-ink); font-weight: 700; text-decoration: none; }
.explore-tabs a[aria-selected="true"] { background: var(--blue-ink); color: #fff; }
.explore-frame { position: relative; height: 1060px; overflow: hidden; border-radius: 12px; background: #0b1a33; }
.explore-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.explore-after { margin-top: 16px; }
#explore { scroll-margin-top: 80px; }

/* Brands page (src/brands.mjs) */
.brand-card { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.brand-card:hover { border-color: var(--blue-ink); box-shadow: 0 6px 18px rgba(11,47,79,.08); }
.brand-card img { max-width: 100%; height: auto; }
.brand-card .carrier-logo-lg { width: 280px; }
.brand-card p { color: var(--muted); }
.brand-card .more { font-weight: 800; color: var(--blue-ink); }
@media (max-width: 700px) { .brand-card { grid-template-columns: minmax(0, 1fr); padding: 20px; } .brand-card .carrier-logo-lg { width: 200px; } }
picture:has(> img.carrier-logo, > img.carrier-logo-lg, > img.cfad, > img.cfad-sm) { display: contents; }
picture > source { display: none; } /* with the picture above "contents", its <source> would take a grid cell of its own */
.explore-load { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.explore-note { position: absolute; top: calc(50% + 40px); left: 0; right: 0; text-align: center; color: #cfe3f5; font-size: .9rem; margin: 0; }
.explore-frame:has(.explore-load) { height: 220px; }

/* Google reviews (src/reviews.mjs), styled to Google's attribution rules */
@font-face { font-family: "Roboto GM"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/roboto-latin-400.woff2") format("woff2"); }
.gm-box { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 22px; }
.gm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.gm-attr { font-family: "Roboto GM", Roboto, Arial, sans-serif; font-weight: 400; font-style: normal; font-size: 14px; letter-spacing: normal; color: #5E5E5E; white-space: nowrap; padding: 0 0 0 10px; }
.reviews { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0; display: flex; flex-direction: column; }
.review blockquote { margin: 8px 0; color: var(--ink); flex: 1; }
.review-author { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.review-author img { border-radius: 50%; width: 40px; height: 40px; }
.review-author div { display: flex; flex-direction: column; line-height: 1.3; }
.review-author a, .review-author span:first-child { font-weight: 700; }
.review-when, .review-note, .review-links { color: var(--muted); font-size: .9rem; }
.stars { color: #f5a623; letter-spacing: 2px; }
.review-summary { font-size: 1.1rem; margin: 0; }
.review-actions { margin: 18px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }

/* Header: Call and Schedule online side by side (Bryant, 7 Nov 2026: "i dont see a Book
   online button by phone number"). "My account" is in the top bar on a computer and in
   the menu on a phone, so the header row has room for both buttons. */
.nav .menu-only { display: none; }
.nav .btn-primary { color: #fff; }
.nav .btn-primary:hover { color: #fff; background: var(--blue-deep); }
@media (max-width: 900px) { .nav .menu-only { display: list-item; } }
@media (min-width: 901px) and (max-width: 1180px) { .nav a { padding: 10px 8px; } .nav .btn { padding: 10px 14px; margin-left: 4px; } }
.nav .btn { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1080px) { .nav .call-word { display: none; } .brand img { width: 190px; } .nav a { padding: 10px 6px; } }
/* My account back in the header row (Bryant, 7 Nov 2026: "your acount too small, no
   one will see that"): nothing in the row may wrap, so the spacing tightens as the
   window narrows, until the menu folds away at 900px. */
.nav a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1320px) { .nav ul { gap: 2px; } .nav a { padding: 10px 7px; } .nav .btn { padding: 12px 14px; margin-left: 4px; } .brand img { width: 240px; } }
@media (min-width: 901px) and (max-width: 1120px) { .nav a { padding: 10px 5px; font-size: .95rem; } .nav .btn { padding: 11px 12px; } .brand img { width: 210px; } }
@media (min-width: 901px) and (max-width: 1000px) { .nav a { font-size: .9rem; padding: 8px 4px; } .nav .btn { padding: 10px 10px; } .brand img { width: 170px; } }
/* Contact form (8 Nov 2026). The old quote form's .field rules stay above for its inputs. */
.contact-form { display: grid; gap: 14px; margin-top: 18px; }
.contact-form label { display: grid; gap: 6px; align-content: start; font-weight: 700; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; font: inherit; font-weight: 400; padding: 10px 12px; border: 1.5px solid #9fb3c4; border-radius: 10px; background: #fff; color: var(--ink); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue-ink); outline: 3px solid rgba(0, 96, 154, .25); outline-offset: 0; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .req { color: #b42318; }
.contact-form .hint { margin: 0; font-size: .92rem; color: var(--muted); }
.contact-form button { justify-self: start; }
.contact-form .form-status { margin: 0; font-weight: 700; }
.contact-form .form-status.ok { color: #116329; }
.contact-form .form-status.bad { color: #b42318; }
/* The field only machines fill in: off screen, not display:none (some skip hidden fields). */
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .contact-form .field-row { grid-template-columns: 1fr; } }

/* Tips & Answers: a draft is only ever seen in a preview build (src/tips.mjs). */
.draft-banner { display: inline-block; background: #fff4e5; color: #8a4b00; border: 1px solid #f5c27a; border-radius: 8px; padding: 6px 10px; font-weight: 800; }
.after-hours { margin: 14px 0 0; font-size: 1.02rem; }

/* Our work (src/work.mjs): the before-and-after pair, then a grid of photos. */
.work-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; margin: 0 auto 40px; }
.work-pair__caption { grid-column: 1 / -1; text-align: center; color: var(--muted); margin: 0 auto; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.work-photo { position: relative; margin: 0; }
.work-photo a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--ice-soft); }
.work-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .2s; }
.work-photo a:hover img { transform: scale(1.02); }
.work-photo figcaption { font-size: .92rem; color: var(--muted); margin-top: 8px; max-width: none; }
.work-tag { position: absolute; top: 10px; left: 10px; z-index: 1; background: rgba(11, 47, 79, .85); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.work-tag--after { background: var(--blue-ink); }
@media (max-width: 520px) { .work-pair { gap: 8px; } .work-tag { font-size: .7rem; padding: 3px 8px; } }

/* The Our work photo viewer (static/js/site.js). */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: rgba(6, 22, 38, .94); color: #fff; display: none; }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: rgba(6, 22, 38, .6); }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; max-height: 100vh; padding: 56px 0 20px; }
.lightbox__fig img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 10px; object-fit: contain; }
.lightbox__fig figcaption { color: #fff; text-align: center; max-width: 60ch; font-size: 1rem; }
.lightbox__count { color: rgba(255,255,255,.65); font-size: .85rem; }
.lightbox button { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 2rem; line-height: 1; cursor: pointer; justify-self: center; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255,255,255,.25); outline: 2px solid #fff; outline-offset: 2px; }
.lightbox__close { position: absolute; top: 12px; right: 12px; font-size: 1.8rem !important; }
html.lightbox-open { overflow: hidden; }
@media (max-width: 640px) {
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: 16px; }
  .lightbox__prev { left: 16px; } .lightbox__next { right: 16px; }
  .lightbox__fig { padding: 64px 12px 84px; }
  .lightbox__fig img { max-height: calc(100vh - 220px); }
}
