details {
  margin-bottom: 1.2em;
  background: #16181a;
  padding: 0.5em 1em;
  border-radius: 4px;
}

summary {
  cursor: pointer;
  list-style: none;
  display: list-item;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: '▶';
  display: inline-block;
  width: 1.2em;
  text-align: center;
}

details[open] > summary::before {
  content: '▼';
}

section img {
  max-width: 400px;
  height: auto;
}

.popup {
  display: inline-block;
  margin: 2px;
  text-decoration: none;
}

.popup img {
  max-width: 350px;
  max-height: 300px;
  height: auto;
  vertical-align: middle;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 2rem;
}

.lightbox figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 88vh;
}

.lightbox img {
  width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.lightbox figcaption {
  margin-top: 0.5rem;
  font-size: 0.8em;
  text-align: center;
  color: #c9d1d9;
  max-width: 80vw;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: #eee;
  background: #1e2124;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
}

.lightbox-close:hover {
  background: #2a2d31;
}

.version {
  font-size: 0.8em;
  color: #8b949e;
}

