:root {
  --bg: #000;
  --text: #fff;
  --gap: 15px;
  --max-width: 1400px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Roboto Mono', monospace;
  background: var(--bg);
  color: var(--text);
  padding-top: 70px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #fff;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg);
}

.logo { letter-spacing: 0.5px; }

nav a {
  margin-left: 15px;
  text-decoration: none;
  color: var(--text);
  font-weight: 400;
}
nav a:hover { color: #0077cc; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px; height: 18px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.gallery {
  max-width: 90vw;
  margin: 20px auto;
  padding: 0 20px;
  column-gap: var(--gap);
}


.photo-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
}

.photo-item img {
  width: 100%;
  display: block;
  box-shadow: 0 0 3px rgba(255,255,255,0.08);
  cursor: pointer;
  object-fit: cover;
}

.caption {
  background: rgba(255,255,255,0.05);
  color: #ccc;
  font-size: 0.8rem;
  padding: 6px 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 600px) { .gallery { column-count: 2; } }
@media (min-width: 900px) { .gallery { column-count: 3; } }
@media (min-width: 1200px) { .gallery { column-count: 4; } }

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; right: 0;
    background: var(--bg);
    padding: 10px;
    border: 1px solid #fff;
    width: 180px;
    z-index: 9999;
  }
  nav a { margin: 10px 0; display: block; }
  nav.active { display: flex; }
  .menu-toggle { display: flex; }
  header { padding: 14px; }
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 0 15px rgba(0,0,0,0.7);
}
.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}
.lightbox .close { top: 20px; right: 30px; }
.lightbox .prev { top: 50%; left: 20px; transform: translateY(-50%); }
.lightbox .next { top: 50%; right: 20px; transform: translateY(-50%); }
