/* The Local AI design with the existing customer application components. */
:root{--text-color:var(--ink);--accent-color:var(--accent);--border-color:#192c3330}
#gallery-hero[hidden]{display:none!important}
.brand{display:flex;align-items:center;gap:12px}.brand img{width:52px;height:52px;object-fit:contain;border-radius:8px}
.hero .complete-build-hero img{position:static;inset:auto;width:100%;height:auto;min-height:0;object-fit:contain}
.hero .complete-build-hero{max-width:390px;justify-self:center;box-shadow:none}
.hero:has(#gallery-hero[hidden]){grid-template-columns:1fr}
.gallery{padding:48px 0;border-top:1px solid #192c3330}.gallery-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.gallery-item a{display:block}.gallery-item img{display:block;width:100%;height:auto;object-fit:contain;border-radius:8px}
#gallery-status:empty{display:none}#main-nav[hidden]{display:none!important}
@media(max-width:768px){.header{flex-wrap:wrap}#menu-toggle{display:block;border:1px solid;padding:8px 13px}#main-nav{width:100%;flex-direction:column}.gallery-items{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{grid-template-columns:1fr}}
@media(max-width:480px){.gallery-items{grid-template-columns:1fr}}

#lightbox {
  border: none;
  background-color: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 20px;
  margin: auto;
  width: min(92vw, 650px);
  max-height: 92dvh;
  display: none; /* Default hidden state */
}

#lightbox[open] {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow-y: auto;
}

#lightbox h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.lightbox-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  padding: 0 10px;
  margin-bottom: 1rem;
}

.lightbox-toolbar button {
  background: none;
  border: 1px solid var(--text-color);
  padding: 8px 16px;
  font-family: inherit;
  cursor: pointer;
  min-width: 44px;
  height: 44px;
}

.lightbox-toolbar button:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

#lightbox-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(90dvh - 160px);
  object-fit: contain;
  margin: auto;
  min-height: 0;
}

