/* Base Styles */
body {
  margin: 0;
  padding: 1em;
  font-family: Georgia, serif;
  background: #fffaf4;
  color: #333;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Headers */
h1 {
  font-size: 2rem;
  margin-bottom: 0.2em;
  text-align: center;
}

/* Time / Date styling */
time {
  color: #5b3c2a;
  font-style: italic;
  font-size: 0.9rem;
  display: block;
  text-align: center;
  margin-bottom: 1em;
}

/* Paragraph spacing */
p {
  margin-bottom: 1em;
}

/* Links */
a {
  color: #5b3c2a;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
  color: #a36c3a;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1em 0;
  display: block;
}

/* Navigation */
nav {
  background-color: #f9f2e7;
  border-bottom: 2px solid #5b3c2a;
  padding: 0.5em 1em;
  margin-bottom: 1.5em;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2em;
  font-family: Georgia, serif;
}

.nav-list li {
  /* No extra styles needed here */
}

.nav-list a {
  font-weight: bold;
  font-size: 1rem;
}

@media (max-width: 600px) {
  body {
    padding: 0.5em;
  }
}

@media (max-width: 400px) {
  .nav-list {
    flex-direction: column;
    gap: 1em;
    font-size: 1.1rem;
  }
}

/* Blog Page */
article {
  border-bottom: 1px solid #ccc;
  padding-bottom: 1em;
  margin-bottom: 1em;
}

article:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5em;
}

.gallery-item {
  background: #f9f2e7;
  border: 2px solid #5b3c2a;
  border-radius: 8px;
  padding: 1em;
  text-align: center;
  transition: background-color 0.3s ease;
}

.gallery-item:hover {
  background-color: #e7dbce;
}

.gallery-item a {
  text-decoration: none;
  color: #5b3c2a;
  font-weight: bold;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5em;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1em;
}

.photo-grid a {
  display: block;
  border: 2px solid #5b3c2a;
  border-radius: 6px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.photo-grid a:hover {
  background-color: #e7dbce;
}

p.back-link {
  margin-top: 2em;
  text-align: center;
}

p.back-link a {
  font-weight: bold;
}

/* Header alignment */
header {
  text-align: center;
  margin-bottom: 2em;
}
