:root {
  --bg: #ffffff;
  --text: #000000;
  --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 20px;
  border-bottom: 1px solid #000000;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #ffffff;
}

.logo { letter-spacing: 0.5px; }

nav a {
  margin-left: 15px;
  text-decoration: none;
  color: #000000;
  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: #000000;
  border-radius: 2px;
}

.gallery {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 var(--gap);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  box-shadow: 0 0 3px rgba(255,255,255,0.08);
  cursor: pointer;
}

@media (min-width: 1200px) {
  .gallery { column-count: 4; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .gallery { column-count: 3; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .gallery { column-count: 2; }
}
@media (max-width: 599px) {
  .gallery { column-count: 1; padding: 0 12px 30px; }
  header { padding: 14px; }
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    padding: 10px;
    border: 1px solid #000000;
    width: 180px;
    z-index: 9999;
  }

  nav a {
    margin: 10px 0;
    display: block;
    color: #000000;
  }

  nav a:hover { color: #0077cc; }
  nav.active { display: flex; }
  .menu-toggle { display: flex; }
}

.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 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;
  border: 0px solid #fff;
  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%); }
