* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 60px 20px;
  background: #0a0a0a;
  color: #eae7e0;
  font-family: Georgia, "Times New Roman", serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.frame {
  max-width: 640px;
  width: 100%;
}

.film {
  width: 100%;
  object-fit: contain;
  display: block;
  margin-bottom: 18px;
  filter: grayscale(1) contrast(1.05);
  background: #1a1a1a; /* shows while image loads / as placeholder */
  transition: filter 0.4s ease;
  cursor: pointer;
}

.film:hover {
  filter: none;
}

.film.negative {
  filter: invert(1) contrast(1.05);
}

.gallery {
  column-count: 2;
  column-gap: 12px;
}

.gallery .film-item {
  margin: 0 0 18px 0;
  break-inside: avoid;
}

.gallery .film {
  margin-bottom: 4px;
}

.gallery .film-caption {
  font-size: 11px;
  color: #888;
  font-family: "Courier New", monospace;
  margin: 0;
}

@media (max-width: 480px) {
  .gallery {
    column-count: 1;
  }
}

h1 {
  font-size: 15px;
  font-weight: normal;
  letter-spacing: 0.5px;
  margin: 0 0 6px 0;
  font-style: italic;
  color: #eae7e0;
}

.caption {
  font-size: 11px;
  color: #888;
  margin: 0 0 22px 0;
  font-family: "Courier New", monospace;
}

nav {
  font-size: 13px;
  letter-spacing: 0.5px;
}

nav a {
  color: #eae7e0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

nav a:hover {
  border-bottom: 1px solid #eae7e0;
}

nav a.active {
  border-bottom: 1px solid #eae7e0;
}

nav .sep {
  color: #555;
  margin: 0 10px;
}

/* subpages: body text under the nav, e.g. diary entries */
main {
  max-width: 640px;
  width: 100%;
  margin-top: 30px;
  font-size: 14px;
  line-height: 1.6;
  color: #cfcac0;
}

main p {
  margin: 0 0 16px 0;
}

footer {
  margin-top: 40px;
  font-size: 10px;
  color: #555;
  font-family: "Courier New", monospace;
}
