:root {
  color-scheme: dark;
  --bg: #0c141d;
  --panel: #141f2a;
  --line: #3b3b3b;
  --surface: #14171b;
  --ink: #eef1f3;
  --muted: #afbdc8;
  --accent: #f3efe2;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 Arial, sans-serif; }
a { color: inherit; text-underline-offset: 0.22em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.frame { width: min(90%, 1240px); margin-inline: auto; }
.skip { position: absolute; left: 5%; top: 12px; z-index: 2; padding: 10px; background: var(--panel); transform: translateY(-150%); }
.skip:focus { transform: none; }

.city-header .nav-cta { border-color: var(--line); }
.gallery-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.intro { padding-block: clamp(42px, 7vw, 88px) 35px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.035em; }
h1 { max-width: 840px; margin: 0; font-size: clamp(35px, 6vw, 72px); font-weight: 500; }
.intro p { max-width: 660px; margin: 20px 0 24px; color: var(--muted); }
.gallery-nav a { border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; text-decoration: none; }
.gallery-nav a:hover { background: var(--panel); }

.collection { border-top: 1px solid var(--line); padding-block: 32px clamp(42px, 7vw, 80px); }
.collection h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 41px); font-weight: 500; }
.collection > p { margin: 0 0 22px; color: var(--muted); }
.designs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.design { display: flex; flex-direction: column; margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); scroll-margin-top: 12px; }
.design-image { display: block; overflow: hidden; border-radius: 7px 7px 0 0; }
.design-image img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; }
.design figcaption { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; }
.design h3 { margin: 0; font-size: clamp(20px, 2.3vw, 25px); }
.design p { margin: 0; color: var(--muted); font-size: 14px; }
.design .choose, .lightbox-contact, .lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.design .choose { margin-top: auto; }
.design .choose:hover, .lightbox-contact:hover { background: var(--ink); }
.design:target { border-color: var(--accent); }

.gallery-footer {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
  font-family: Arial, sans-serif;
}
.gallery-footer .local-brand {
  color: var(--ink);
  font: 800 27px Arial, Helvetica, sans-serif;
  letter-spacing: -1.6px;
}
.gallery-footer a {
  color: var(--ink);
  text-decoration: none;
}
.gallery-footer a:focus-visible { outline-color: var(--accent); }
.gallery-footer .local-footer-meta { border-color: var(--line); }

html:has(.lightbox[open]) { overflow: hidden; }
.design-image[aria-haspopup="dialog"] { cursor: zoom-in; }
.lightbox {
  --image-height: max(160px, calc(100dvh - 200px));
  width: min(calc(100% - 24px), 1226px, calc(var(--image-height) * 1.5 + 26px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  color: var(--ink);
}
.lightbox::backdrop { background: #050a10e6; }
.lightbox-details { padding: 14px 4px 4px; }
.lightbox-details h2 { margin: 0; font-size: clamp(19px, 2.5vw, 25px); }
.lightbox-details p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.lightbox-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.lightbox-close {
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--line); }
.lightbox-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lightbox-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--image-height);
  object-fit: contain;
  margin-inline: auto;
  border-radius: 4px;
}

@media (min-width: 901px) {
  #local-businesses .designs, #qr-code-banners .designs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .designs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .designs { grid-template-columns: 1fr; }
}
