/* =========================================================
   EMBS — Emergency Maintenance Building Services
   Design tokens + components. Mobile-first.
   ========================================================= */
:root {
  --red: #9B1B2A;          /* primary brand red, matched to the EMBS logo — 8.6:1 on white */
  --red-dark: #74121E;     /* hover / pressed */
  --red-tint: #F9ECEE;     /* soft backgrounds */
  --ink: #141B24;          /* headings, dark sections */
  --slate: #2B3644;        /* dark surfaces */
  --text: #3A4553;         /* body copy — 9.6:1 on white */
  --muted: #5E6A79;        /* secondary copy — 5.4:1 on white */
  --line: #DDE2E8;
  --bg-soft: #F4F6F8;
  --white: #FFFFFF;
  --focus: #1B6EF3;
  --ph-bg: #FFF4C2;        /* placeholder highlight (remove before launch) */
  --ph-line: #E3B400;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(20,27,36,.06), 0 8px 24px rgba(20,27,36,.08);
  --wrap: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.lead { font-size: 1.2rem; color: var(--text); max-width: 62ch; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: .75rem;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Placeholder marker — every missing business fact uses this. Remove the
   highlight (or the .ph spans themselves) once real details are filled in. */
.ph {
  background: var(--ph-bg); border-bottom: 2px dashed var(--ph-line);
  color: #5A4300; padding: 0 .25em; border-radius: 3px; font-weight: 600;
}
.ph-box {
  border: 2px dashed var(--ph-line); background: #FFFBEA; border-radius: var(--radius);
  padding: 1.25rem 1.5rem; color: #5A4300;
}
.ph-box strong { color: #3D2E00; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.4rem; min-height: 48px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: var(--red-tint); color: var(--red-dark); }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #D5DBE3; font-size: .875rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .45rem; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.topbar .ph { color: #5A4300; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 48px; height: 48px; border-radius: 6px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: .02em; }
.brand-text span { font-size: .72rem; color: var(--muted); font-weight: 600; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .4rem; background: none; border: 2px solid var(--line);
  border-radius: 8px; padding: .5rem .7rem; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.primary-nav { display: none; }
.primary-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 1rem 1.25rem 1.5rem;
}
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav li { margin: 0; }
.primary-nav a.nav-link {
  display: block; padding: .8rem .25rem; color: var(--ink); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.primary-nav a.nav-link[aria-current="page"] { color: var(--red); }
.primary-nav .nav-cta { display: grid; gap: .6rem; margin-top: 1rem; }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .primary-nav, .primary-nav.open { display: flex; align-items: center; gap: 1.5rem; position: static; box-shadow: none; padding: 0; border: 0; background: none; }
  .primary-nav ul { display: flex; gap: 1.4rem; }
  .primary-nav a.nav-link { border: 0; padding: .4rem 0; font-size: .97rem; position: relative; white-space: nowrap; }
  .primary-nav a.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .15s; }
  .primary-nav a.nav-link:hover::after, .primary-nav a.nav-link[aria-current="page"]::after { transform: scaleX(1); }
  .primary-nav .nav-cta { display: flex; margin: 0; }
  .primary-nav .nav-cta .btn { padding: .65rem 1.1rem; min-height: 44px; font-size: .95rem; white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(160deg, var(--ink) 0%, var(--slate) 100%); color: #E7EBF0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(170,30,48,.55) 0%, rgba(170,30,48,0) 65%); pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 2.5rem; padding-block: 3.5rem 4rem; }
.hero h1 { color: #fff; }
.hero .lead { color: #D5DBE3; }
.hero .eyebrow { color: #FF8A9B; }
.hero-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .55rem; }
.hero-points li { display: flex; gap: .6rem; align-items: flex-start; margin: 0; }
.hero-points svg { width: 20px; height: 20px; color: #FF8A9B; flex: none; margin-top: .2rem; }
.hero-card {
  background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow);
  border-top: 6px solid var(--red); align-self: start;
}
.hero-card h2 { font-size: 1.35rem; }
.hero-card .divider { height: 1px; background: var(--line); margin: 1.25rem 0; }
.hero-card .btn { width: 100%; }
.hero.compact .wrap { padding-block: 2.75rem 3rem; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.35fr .9fr; align-items: center; padding-block: 5rem 5.5rem; }
  .hero.compact .wrap { padding-block: 3.75rem 4rem; }
  .hero.single .wrap { grid-template-columns: 1fr; }
}

.breadcrumbs { font-size: .875rem; margin-bottom: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; color: #AEB8C4; }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: #7D8896; }
.breadcrumbs a { color: #fff; }

/* ---------- Sections ---------- */
.section { padding-block: 4rem; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #D5DBE3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 2.25rem; }
.section-head.center { text-align: center; }
@media (min-width: 900px) { .section { padding-block: 5.5rem; } }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } .split.wide-left { grid-template-columns: 1.4fr 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem;
  display: flex; flex-direction: column; gap: .25rem; transition: box-shadow .15s, transform .15s, border-color .15s;
}
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #C9D0D9; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--red-tint); color: var(--red);
  display: grid; place-items: center; margin-bottom: .75rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card .more { margin-top: auto; padding-top: .75rem; font-weight: 700; color: var(--red); }
.card-urgent, a.card-urgent { background: var(--red); border-color: var(--red); color: #fff; }
.card-urgent h3 { color: #fff; }
.card-urgent .icon { background: rgba(255,255,255,.18); color: #fff; }
.card-urgent .more { color: #fff; }

.tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .35rem; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/70% no-repeat;
}

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; margin: 0; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 800; margin-bottom: .9rem;
}
.steps h3 { font-size: 1.12rem; }
.steps p { margin: 0; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ink); color: #fff; font-size: .9rem; letter-spacing: .03em; }
tbody th { color: var(--ink); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:nth-child(even) { background: #FAFBFC; }

/* Service detail blocks */
.service-block { display: grid; gap: 1.5rem; padding-block: 2.75rem; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service-block:first-of-type { border-top: 0; }
@media (min-width: 900px) { .service-block { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.service-block .aside { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 1.5rem; }
.service-block .aside h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* City chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; }
.chips a {
  display: inline-block; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font-weight: 600; text-decoration: none; font-size: .95rem;
}
.chips a:hover { border-color: var(--red); color: var(--red); }
.chips.primary a { border-color: var(--red); color: var(--red); background: var(--red-tint); }
.chips.primary a:hover { background: var(--red); color: #fff; }

/* Image slot (swap for real photography) */
.img-slot {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background:
  repeating-linear-gradient(135deg, #EEF1F4 0 14px, #E6EAEE 14px 28px);
  display: grid; place-items: center; text-align: center; padding: 1.5rem; color: var(--muted); font-size: .9rem;
  border: 1px dashed #C3CBD4;
}
.img-slot strong { display: block; color: var(--ink); margin-bottom: .25rem; }

/* Reviews */
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; margin: 0; }
.review-card blockquote { margin: 0 0 1rem; font-size: 1.08rem; color: var(--ink); }
.review-card figcaption { font-weight: 700; color: var(--ink); }
.review-card figcaption span { display: block; font-weight: 500; color: var(--muted); font-size: .9rem; }
.stars { color: var(--red); letter-spacing: .1em; margin-bottom: .5rem; }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.25rem; font-weight: 700; color: var(--ink); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--red);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.25rem 1.1rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Callout / CTA band */
.callout {
  display: grid; gap: 1rem; background: var(--red-tint); border-left: 6px solid var(--red);
  border-radius: var(--radius); padding: 1.5rem 1.75rem;
}
.callout h3 { margin: 0; }
.callout p { margin: 0; }
@media (min-width: 800px) { .callout { grid-template-columns: 1fr auto; align-items: center; } }

.cta-band { background: var(--red); color: #FFE3E8; }
.cta-band .wrap { display: grid; gap: 1.5rem; padding-block: 3.5rem; }
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { margin: 0; max-width: 58ch; }
.cta-band .btn-row { margin-top: 0; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1.4fr auto; align-items: center; } }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: .35rem; font-size: .95rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.req { color: var(--red); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); padding: .8rem .9rem; border: 1.5px solid #C3CBD4; border-radius: 8px; background: #fff; min-height: 48px;
}
textarea { min-height: 130px; resize: vertical; }
input[type="file"] {
  width: 100%; font: inherit; color: var(--text); padding: .6rem .7rem; border: 1.5px dashed #C3CBD4; border-radius: 8px; background: #fff; min-height: 48px;
}
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; color: var(--ink); background: #F1F3F6; border: 1.5px solid #C3CBD4; border-radius: 6px;
  padding: .35rem .8rem; margin-right: .75rem; cursor: pointer;
}
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 3px solid rgba(27,110,243,.2); outline-offset: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
.radio-grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.radio-grid label {
  display: flex; align-items: center; gap: .5rem; font-weight: 600; border: 1.5px solid #C3CBD4; border-radius: 8px;
  padding: .7rem .8rem; cursor: pointer; margin: 0; font-size: .95rem; color: var(--text);
}
.radio-grid input { accent-color: var(--red); width: 18px; height: 18px; }
.radio-grid label:has(input:checked) { border-color: var(--red); background: var(--red-tint); color: var(--ink); }
.form-note { font-size: .875rem; color: var(--muted); }
.form-status { margin-top: 1rem; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .85rem; margin: 0; }
.contact-list .icon { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--red-tint); color: var(--red); display: grid; place-items: center; }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #AEB8C4; font-size: .95rem; padding-top: 3.5rem; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer a { color: #E7EBF0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid .brand { color: #fff; margin-bottom: 1rem; }
.footer-grid .brand-text span { color: #AEB8C4; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.25rem 6rem; font-size: .85rem; }
@media (min-width: 1100px) { .footer-bottom { padding-bottom: 1.5rem; } }

/* ---------- Mobile sticky action bar ---------- */
.mobile-bar {
  position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(20,27,36,.08);
}
.mobile-bar .btn { padding: .75rem .5rem; font-size: .95rem; }
@media (min-width: 1100px) { .mobile-bar { display: none; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

@media (max-width: 640px) {
  .topbar > .wrap > span:first-child { display: none; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar { font-size: .8rem; }
}

.contact-list div { min-width: 0; overflow-wrap: anywhere; }
.contact-list a { font-size: .95rem; }

/* Photos with credit lines */
.photo { margin: 0; }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); background: var(--bg-soft); }
.photo figcaption { margin-top: .5rem; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.photo figcaption a { color: var(--muted); }

/* Desktop header: six menu links plus two buttons is a tight fit inside the page
   width, so keep the spacing compact and never let a button or the name wrap. */
@media (min-width: 1100px) {
  .primary-nav, .primary-nav.open { gap: 1rem; }
  .primary-nav ul { gap: 1.05rem; }
  .primary-nav a.nav-link { font-size: .92rem; }
  .primary-nav .nav-cta .btn { padding: .6rem .9rem; font-size: .9rem; }
  .site-header .brand-text span { white-space: nowrap; }
  .site-header .brand { flex: none; }
}
/* Below 1240px there is no room for the full company name beside the menu. */
@media (min-width: 1100px) and (max-width: 1239px) {
  .site-header .brand-text span { display: none; }
}

/* ---------- Scrolling photo gallery (home + city pages) ----------
   A normal horizontal scroller, so swiping, trackpads and arrow keys work natively.
   main.js adds the slow automatic drift, the endless loop and mouse dragging. */
.gallery-section { padding-bottom: 4rem; overflow: hidden; }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.gallery-head h2 { margin-bottom: .35rem; }
.gallery-head .lead { margin: 0; font-size: 1.05rem; }
.gallery-link { flex: none; white-space: nowrap; padding: .6rem 1.1rem; min-height: 44px; font-size: .95rem; }
@media (max-width: 560px) { .gallery-head { flex-direction: column; align-items: flex-start; } }
.gallery {
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-dragging { cursor: grabbing; }
.gallery-track { display: flex; gap: 12px; width: max-content; list-style: none; margin: 0; padding: 0; }
.gallery-track li { margin: 0; flex: none; }
/* The duplicate set only exists to make the loop seamless, so hide it until the script is running. */
.gallery:not(.is-live) .gallery-track li[aria-hidden="true"] { display: none; }
.gallery-track img {
  height: 220px; width: auto; border-radius: var(--radius); background: var(--bg-soft);
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none; pointer-events: none;
}
@media (min-width: 900px) { .gallery-track img { height: 280px; } }

/* ---------- Masonry photo grid (Reviews page) ---------- */
.masonry { columns: 2; column-gap: 12px; }
@media (min-width: 900px) { .masonry { columns: 3; } }
.masonry-item { margin: 0 0 12px; break-inside: avoid; }
.masonry-item img { width: 100%; height: auto; border-radius: var(--radius); background: var(--bg-soft); }
/* With scripts: real columns, each new photo goes into the shortest one, so nothing jumps around. */
.masonry.is-js { columns: auto; display: flex; gap: 12px; align-items: flex-start; }
.masonry-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.masonry.is-js .masonry-item { margin: 0; }
.masonry-item.is-new { animation: masonry-in .35s ease both; }
@keyframes masonry-in { from { opacity: 0; transform: translateY(10px); } }
.masonry-more { display: flex; justify-content: center; margin-top: 1.75rem; }
.masonry-more[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .masonry-item.is-new { animation: none; } }
