html {
  box-sizing: border-box;
  font-size: 16px;
  font-family: Georgia, serif;
  line-height: 1.25;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

body {
  padding: 1.0rem;
}

h2 a, h2 a:visited, h2 a:link, h2 a:hover {
  text-decoration: none;
  color: #000;
  font-weight: bolder;
}

a { color: #222; }
a:visited { color: #666; }

article, nav, footer {
  width: 80ch;
  max-width: 90%;
  margin: 0 auto;
}

footer {
  padding-top: 15px;
}

footer h3 {
  padding-bottom: 5px;
}

nav {
  overflow: auto;
}

nav .left {
    float: left;
}

nav .right {
  float: right;
}

@media only screen 
    and (device-width: 390px) 
    and (device-height: 844px) 
    and (-webkit-device-pixel-ratio: 3) {
      html { font-size: 26px; }
      article, nav {
        width: 100%;
      }
      article img {
        width: 100%;
        cursor: pointer;
      }
    }

article ul {
  margin: 0.5rem 0 1.0rem 1.2rem;
}

article ol {
  margin: 0.5rem 0 1.0rem 2.0rem;
}

article p {
  margin: 0 0 1.0rem 0;
}

article h1 {
  margin: 0rem 0 0.3rem 0;
}

article h2 {
  margin: 1rem 0 0.3rem 0;
}

article pre {
  margin: 0 0 1rem 1rem;
}

article img {
  max-width: 100%;
  height: auto;
  cursor: pointer;
}

article blockquote {
  border-left: 4px solid #888;
  padding-left: 0.5rem;
  margin-inline-start: 0;
  margin-inline-end: 0;
}

article .gallery {
  display: flex;
  gap: 10px;
  justify-content: center;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

article .gallery.wide {
  /*width: 90vw;
  margin-left: calc(-45vw + 50%);*/
}

article .gallery.wide img {
  aspect-ratio: auto;
}

article .spacious:first-child {
  margin-top: 0;
}

article .spacious {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

article .gallery img {
  flex: 1;
  width: 0;
  min-width: 0;
  aspect-ratio: 2/3;
  object-fit: cover;
}

article .gallery figure {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 0; margin: 0;
}

article .gallery figure img {
  flex: 1;
  width: 100%;
  min-width: 0;
  aspect-ratio: 2/3;
  object-fit: cover;
}

article .gallery figure small {
  margin-top: 10px;
}

#fullpage {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: white;
}

#fullpage-img {
  position: relative;
  width: 90%;
  height: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-size: contain;
  background-repeat: no-repeat no-repeat;
  background-position: center center;
  background-color: white;
}

@media (prefers-color-scheme: dark) {
  html {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }

  h2 a, h2 a:visited, h2 a:link, h2 a:hover {
    color: #e0e0e0;
  }

  a { color: #d0d0d0; }
  a:visited { color: #999; }

  #fullpage {
    background-color: #1a1a1a;
  }

  #fullpage-img {
    background-color: #1a1a1a;
  }
}
