
body {
  background-color: black;
  color: gray;
  font-family: 'VCR OSD Mono', Verdana, sans-serif;
  margin: auto;
  max-width: 85em;
}

footer {
  text-align: center;
  padding-bottom: 2rem;
}

h2 {
  text-align: center;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-around;
  padding-bottom: 2rem;
}

.gallery > div {
  display:flex;
  justify-content: center;
  align-items: center;
}

.gallery > div > img {
  height: auto;
  width: 100%;
  max-height: 90vh;
  max-width: 90vw;
}

img.gbcam {
  min-width: 20em;
  height: auto;
  image-rendering: pixelated;
}

img.badge {
  width: 88px;
  margin-bottom: 0px;
  image-rendering: pixelated;
}

@supports (image-rendering: crisp-edges) {
  img.gbcam, img.badge {
    image-rendering: crisp-edges;
  }
}

a {
  color: white;
}

a:visited {
  color: gray;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.grid .box {
  width: calc(100%/var(--columns) - 10px);
  margin: 0px;
  padding: 5px;
}

.box p {
  text-align: center;
  margin-top: 5px;
  margin-bottom: 0px;
}

.box img {
  width: 100%;
  min-width: auto;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1/1;
  margin-bottom: 0px;
}

.border {
  border: thin solid gray;
}

h2.border {
  padding-left: 5px;
  margin-bottom: 0px;
}

.photo {
  position: relative;
}

.photo-title {
  visibility: hidden;
  font-size: xx-large;
  color: white;
  position: absolute;
  top: 1em;
  left: 1em;
  -webkit-text-stroke: 1.5px black;
}

.photo:hover > .photo-title {
  visibility: visible;
}

#controls {
  visibility: hidden;
  font-size: xx-large;
  text-align: center;
  padding: 0.5rem;
  color: white;
  background-color: #333;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1;
}

@supports(-webkit-text-stroke: 1px black) {
  #controls {
    background-color: transparent;
    -webkit-text-stroke: 1.5px black;
  }
}

#controls.show {
  visibility: visible;
}