html {
  background-color: #f2f2f2;
}

body {
  font-family: system-ui, sans-serif;
  margin: 2rem;
  color: #1a1a1a;
  background-color: #f2f2f2;
}

header a {
  text-decoration: none;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.4rem 0.6rem;
  text-align: left;
  font-size: 0.9rem;
  vertical-align: top;
}

th {
  background: #f2f2f2;
}

pre {
  white-space: pre-wrap;
  word-break: break-all;
  max-width: 40rem;
  margin: 0.3rem 0 0;
}

a {
  color: #0a5;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.errors {
  color: #b00020;
}

.home {
  min-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
}

.home h1 {
  font-size: 3rem;
  letter-spacing: 0.08em;
  margin: 0;
}

.home .tagline {
  color: #666;
  margin: 0 0 1.5rem;
}

.home .button {
  display: inline-block;
  padding: 0.6rem 1.75rem;
  background: #0a5;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}

.home .button:hover {
  background: #084;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  touch-action: pan-y;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.75rem 1rem;
}

.lightbox-close {
  top: 0.5rem;
  right: 0.5rem;
  font-size: 2rem;
}

.lightbox-prev {
  left: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
}
