:root{
  --bg:#0b0c10;
  --panel:#12141a;
  --text:#f3f4f6;
  --muted:#aab0bb;
  --line:#2a2f3a;
}

*{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
  height:100%;
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration:none; }

/* Layout container */
.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px;
}

/* Top bar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 22px;

  background: rgba(11,12,16,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand{
  font-weight: 650;
  letter-spacing: .2px;
}

.nav a{
  color: var(--muted);
  margin-left: 14px;
}

.nav a:hover{
  color: var(--text);
}

/* Hero */
.hero{
  padding: 28px 0 16px;
}

.hero h1{
  font-size: 44px;
  margin: 0 0 10px;
}

.hero--small h1{
  font-size: 30px;
}

.sub{
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.4;
}

.cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Buttons */
.btn{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #111;
  font-weight: 650;
}

.btn:hover{
  filter: brightness(.95);
}

.btn--ghost{
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

/* Cards (home page) */
.cardgrid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.card{
  grid-column: span 6;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  transition: transform .12s ease, border-color .12s ease;
}

.card:hover{
  transform: translateY(-2px);
  border-color: rgba(243,244,246,.35);
}

.card-title{
  font-weight: 650;
  margin-bottom: 6px;
}

.card-desc{
  color: var(--muted);
}

/* Footer */
.footer{
  margin-top: 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* Responsive */
@media (max-width: 800px){
  .card{ grid-column: span 12; }
  .hero h1{ font-size: 36px; }
}

/* -------------------------------------------------
   Gallery (album page)
   Uses CSS columns for a masonry-ish layout
-------------------------------------------------- */
.gallery{
  column-count: 4;
  column-gap: 12px;
  margin-top: 14px;
}

.tile{
  display:block;
  break-inside: avoid;
  margin: 0 0 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f1117;
  cursor: zoom-in;
}

.tile img{
  width:100%;
  height:auto;
  display:block;
}

@media (max-width: 1000px){ .gallery{ column-count: 3; } }
@media (max-width: 700px){  .gallery{ column-count: 2; } }
@media (max-width: 420px){  .gallery{ column-count: 1; } }

/* -------------------------------------------------
   Lightbox
-------------------------------------------------- */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  padding: 16px;
}

.lb-figure{
  margin: 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
}

.lb-img{
  max-width: min(1100px, 92vw);
  max-height: 80vh;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #111;
}

.lb-cap{
  color: var(--muted);
  font-size: 14px;
}

/* Lightbox buttons */
.lb-btn{
  appearance:none;
  border: 1px solid var(--line);
  background: rgba(18,20,26,.7);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
}

.lb-btn:hover{
  border-color: rgba(243,244,246,.35);
}

.lb-close{
  position: absolute;
  top: 14px;
  right: 14px;
}

.lb-open{
  position: absolute;
  bottom: 14px;
  right: 14px;
  text-align: center;
}

.lb-prev, .lb-next{
  height: 44px;
  width: 44px;
  display: grid;
  place-items: center;
  font-size: 22px;
}

/* If you ever want the lightbox to close by clicking outside,
   the JS can use the overlay as a target. */
