body {
  background: #24232313;
  color: #222;
  font-family: monospace;
  margin: 0;
  padding: 0;
}

main {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center; 
  padding-left: 0;     
}

h1 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5em;
  letter-spacing: -2px;
  text-align: center;
}

.subtitle {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 2em;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav li {
  margin: 0 1.5em; 
  padding-bottom: 15px;
}

nav a {
  text-decoration: none;
  color: #ffffff4f;
  font-size: 1.5rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

nav a:hover {
  border-bottom: 2px solid #222;
}

.center-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;   
  justify-content: flex-start; 
  margin-top: 32px;      
  text-align: center;
}

#side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100%;
  background-color: #000000;
  padding: 20px;
}

.blog-list details {
  margin-bottom: 1em;
  background: #fafafa;
  border-left: 2px solid #ccc;
  padding: 0.5em 1em;
}

.blog-list summary {
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  outline: none;
}

.blog-list .date {
  color: #888;
  font-size: 0.9em;
  margin-left: 1em;
}

.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-left: 220px; 
}

.photo-gallery img {
  width: auto;           
  height: auto;         
  max-width: 100%;       
  max-height: 400px;     
  border-radius: 0;   
  box-shadow: 0 2px 8px #0001;
  object-fit: contain;   
}

#links {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

@media (max-width: 600px) {
  #side-nav {
    position: static;
    width: 100%;
    height: auto;
    background: #000;
    padding: 10px 0;
    margin-bottom: 16px;
  }
  #side-nav nav ul {
    flex-direction: row;
    flex-wrap: wrap;         /* Allow links to wrap */
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
  }
  #side-nav nav li {
    margin: 0 8px 0 0;
    padding-bottom: 0;
  }
  .photo-gallery {
    margin-left: 0;
  }
}