/*
  atlas.css — page-specific styles for the Atlas Bot showcase.
  Load AFTER style.css. Everything here reads the tokens defined in
  style.css (--bg, --panel, --ink, --line, --accent, fonts, etc.) —
  nothing here redefines them, so the page stays in sync with the
  rest of the site automatically, in light or dark mode.
*/

/* ---------- image gallery (bot screenshots + hardware photos) ---------- */

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}
.gallery-grid.two-up{
  grid-template-columns:repeat(2, 1fr);
}

.frame{
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden;
  background:var(--panel);
  aspect-ratio:4 / 3;
}
.frame.wide{ aspect-ratio:16 / 10; }
.frame img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.cap{
  margin-top:9px;
  font-family:var(--font-mono);
  font-size:11.5px;
  color:var(--ink-faint);
}

@media (max-width:720px){
  .gallery-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:480px){
  .gallery-grid, .gallery-grid.two-up{ grid-template-columns:1fr; }
}

/* ---------- install command block ---------- */
/* Reuses .prompt / .clock-block / .copy / .copy-btn from style.css —
   .tight just tightens the line spacing for a stacked multi-line block. */

.prompt.tight{ margin-bottom:6px; }
.prompt.tight:last-child{ margin-bottom:0; }

.tags.requirements{ margin-top:26px; }

/* ---------- rig photo carousel ---------- */

.carousel .frame{ position:relative; }
.carousel .frame img{ cursor:zoom-in; }

.carousel-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border-radius:50%;
  border:1px solid var(--line);
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-mono);
  font-size:17px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0.85;
}
.carousel-arrow:hover{ opacity:1; border-color:var(--accent); color:var(--accent); }
.carousel-arrow.prev{ left:10px; }
.carousel-arrow.next{ right:10px; }

.carousel-meta{
  margin-top:9px;
  display:flex;
  justify-content:space-between;
  align-items:baseline;
}
.carousel-meta .cap{ margin-top:0; }
.carousel-counter{
  font-family:var(--font-mono);
  font-size:11.5px;
  color:var(--ink-faint);
}

/* other images (screenshot grids etc.) also open the lightbox */
.gallery-grid .frame img{ cursor:zoom-in; }

/* ---------- lightbox ---------- */

.lightbox{
  position:fixed;
  inset:0;
  background:rgba(8,9,10,0.9);
  display:none;
  align-items:center;
  justify-content:center;
  padding:32px;
  z-index:1000;
}
.lightbox.is-open{ display:flex; }
.lightbox img{
  max-width:90vw;
  max-height:85vh;
  object-fit:contain;
  border-radius:4px;
}
.lightbox-close, .lightbox-arrow{
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.28);
  background:transparent;
  color:#F2F2F0;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lightbox-close:hover, .lightbox-arrow:hover{ border-color:#F2F2F0; }
.lightbox-close{
  top:22px;
  right:26px;
  width:38px;
  height:38px;
  font-size:20px;
}
.lightbox-arrow{
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  font-family:var(--font-mono);
  font-size:22px;
}
.lightbox-arrow.prev{ left:24px; }
.lightbox-arrow.next{ right:24px; }
.lightbox-counter{
  position:absolute;
  bottom:22px;
  left:50%;
  transform:translateX(-50%);
  font-family:var(--font-mono);
  font-size:12px;
  color:rgba(255,255,255,0.7);
}

@media (max-width:480px){
  .carousel-arrow{ width:28px; height:28px; font-size:15px; }
  .lightbox{ padding:16px; }
  .lightbox-arrow{ width:36px; height:36px; font-size:18px; }
  .lightbox-arrow.prev{ left:10px; }
  .lightbox-arrow.next{ right:10px; }
}

/* ---------- footer layout ---------- */
/* footer's flex rules in style.css apply to its direct children, so this
   wraps footer content in the shared .wrap (max-width:860px) while giving
   that wrap its own row layout, keeping the footer aligned with every
   other section instead of stretching edge to edge. */

.footer-row{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}