body {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  background: #fff;
  color: #111;
  margin: 18px;
}

a { color: #00f; text-decoration: underline; }
a:visited { color: #551a8b; }

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.nav.bottom { margin-top: 18px; }

.spacer { flex: 1; }

.intro h1 {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 8px 0;
}

.intro p { margin: 20px 0; max-width: 720px; }

.intro .meta { color: #444; }

/* Masonry-style gallery layout */
.gallery {
  margin-top: 14px;

  /* Masonry via CSS columns */
  column-width: 450px;
  column-gap: 18px;
}

/* If your images are wrapped in links, this prevents column breaks mid-item */
.gallery a {
  display: block;
  break-inside: avoid;
  margin: 0 0 18px;
}

/*
  Images: preserve natural size if smaller than the column,
  but scale DOWN if larger than the column.
*/
.gallery img,
.image {
  display: block;

  width: auto;       /* <-- key: do not force stretching to column width */
  height: auto;
  max-width: 100%;   /* <-- still fit inside the column */
  margin: 0;
  border: 0;
}

