/* Garamond font */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond&display=swap');

body {
  font-family: 'EB Garamond', serif;
  margin: 0;
  padding: 2rem;
  background-color: #fff;
  color: #111;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 3 columns */
  grid-auto-rows: auto;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 0;
  border: 1px solid #ccc;
  object-fit: cover;
}

.gallery figcaption {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #555;
  text-align: center;
}

nav.pagination {
  margin-top: 2rem;
  text-align: center;
}

nav.pagination a {
  font-size: 1.2rem;
  margin: 0 1rem;
  text-decoration: none;
  color: #333;
}

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

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ccc;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  max-width: 1200px;
  margin: 0 auto;
}

.topnav a {
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem;
  color: #111;
  text-decoration: none;
  padding: 0 0.5rem;
}

.topnav a:hover {
  text-decoration: none;
}


/* Responsive tweaks */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);  /* 2 columns on tablets */
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;  /* Stack images vertically on phones */
  }
}
