body {
  max-width: 680px;
  margin: 2rem auto;
  padding: 0 1.25rem;
  background: #fdf6ee;
  color: #2e2a25;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.75;
}
 
h2 {
  font-size: 1.7rem;
  margin-bottom: 0.25rem;
}
 
p {
  margin: 1rem 0 2rem;
}

nav {
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #c8a97a;
}

nav a {
  color: #5c4a32;
  text-decoration: none;
  font-style: italic;
}

nav a:hover {
  text-decoration: underline;
}

/*
 * Index Page Styles
 */


div.posts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

div.posts a {
  color: #5c4a32;
  text-decoration: none;
  padding: 0.6rem 0.8rem;
  border-left: 3px solid #c8a97a;
  transition: background 0.15s;
}

div.posts a:hover {
  background: #f0e6d6;
}


/*
 * Post Page Styles
 */

/* image grid */
div.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
 
figure {
  margin: 0;
}
 
img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
 
figcaption {
  font-size: 0.85rem;
  color: #7a6f63;
  margin-top: 0.4rem;
  font-style: italic;
}

.slideshow {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}


.slideshow button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow button:first-child { left: 1.5rem; }
.slideshow button:last-child { right: 1.5rem; }

#slide {
  max-width: 80vw;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#slide img {
  max-height: 80vh;
  max-width: 100%;
  height: auto;      /* overrides the gallery's fixed height */
  object-fit: contain;
}

#slide figcaption {
  color: #ccc;
  margin-top: 0.75rem;
}

.hidden {
  display: none;
}
