*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: #000000;
  background-image: url('https://www.transparenttextures.com/patterns/dark-mosaic.png');
  color: #00FFCC;
  font-family: "Courier New", Courier, monospace;
  margin: 0;
  padding: 0 0 0 200px;
  display: flex;
  min-height: 100vh;
}

.nav-toggle {
  display: none;
  width: 100%;
  background: #111;
  color: #00FFCC;
  border: none;
  border-bottom: 3px groove #444;
  padding: 14px 16px;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px dashed #00FFCC;
  outline-offset: 3px;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 200px;
  background-color: #111;
  border-right: 3px groove #444;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}

.nav-button {
  background: linear-gradient(to bottom, #444, #222);
  color: #00FFCC;
  padding: 12px 20px;
  margin: 10px 0;
  text-decoration: none;
  font-weight: bold;
  border: 2px outset #888;
  width: 160px;
  text-align: center;
  box-shadow: 2px 2px 5px #000;
  transition: all 0.2s ease;
}

.nav-button:hover {
  background: linear-gradient(to bottom, #222, #444);
  color: #FF00FF;
  border: 2px inset #888;
}

.main-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 40px 120px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.gallery-empty {
  grid-column: 1 / -1;
  color: #CCCCCC;
  font-size: 16px;
}

.photo-card {
  margin: 0;
  padding: 12px;
  background: #0c0c0c;
  border: 2px ridge #333;
  box-shadow: 3px 3px 0 #000;
  text-align: center;
  cursor: pointer;
}

.photo-card:focus-visible {
  outline: 2px dashed #00FFCC;
  outline-offset: 4px;
}

.photo-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border: 2px inset #444;
  background: #000;
}

.photo-card figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: #9ee7dc;
  letter-spacing: 0.5px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border: 3px ridge #444;
  background: #000;
}

.lightbox-content p {
  margin-top: 12px;
  color: #9ee7dc;
  font-size: 16px;
}

h1 {
  color: #FF00FF;
  font-size: 48px;
  text-shadow: 2px 2px #000;
  margin-bottom: 20px;
}

p {
  font-size: 18px;
  color: #CCCCCC;
  line-height: 1.6;
}

footer {
  position: fixed;
  bottom: 0;
  left: 200px;
  right: 0;
  padding: 10px;
  background-color: #222;
  border-top: 3px groove #444;
  color: #888;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 768px) {
  body {
    display: block;
    padding: 0;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar {
    display: none;
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 12px;
    border-right: none;
    border-bottom: 3px groove #444;
  }

  .sidebar.is-open {
    display: flex;
  }

  .nav-button {
    width: auto;
    flex: 1 1 140px;
    margin: 6px;
    font-size: 14px;
  }

  .main-content {
    padding: 24px 16px 60px;
  }

  h1 {
    font-size: 34px;
  }

  p {
    font-size: 16px;
  }

  .photo-card img {
    height: 120px;
  }

  footer {
    position: static;
    margin-top: 24px;
  }
}
