html {
  min-height: 100%;
  box-sizing: border-box;
  background-color: #f155a1;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font-family: 'Verdana';
  font-weight: normal;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  background-color: #ffb7c5;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  border-left: 2px solid black;
  border-right: 2px solid black;
}

main {
  flex: 1;
}

body#home nav a[href="index.html"] {
  display: none;
}

a {
  color: #7b3fa0;
  text-decoration: underline;
}

img {
  width: 100%;
  display: block;
  margin: 0 auto;
}

header img {
  width: 300px;
  max-width: 100%;
}

/* Gallery grid */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.gallery-grid img {
  width: calc(33.333% - 0.5rem);
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  margin: 0;
  border: 2px solid #f155a1;
  border-radius: 4px;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

#lightbox.open {
  display: flex;
}

#lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
}

#lightbox img {
  max-width: 90vw;
  max-height: 75vh;
  width: auto;
  object-fit: contain;
  cursor: default;
}

#lightbox-info {
  color: white;
  text-align: center;
  margin-top: 0.75rem;
}

#lightbox-info p,
#lightbox-info time {
  margin: 0.2rem 0;
  display: block;
}

h2 {
  line-height: 1.2;
}

td, th {
  text-align: left;
}

table {
  margin: 0 auto;
}

time {
  display: block;
}

footer {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  body {
    border-left: none;
    border-right: none;
  }
}
