body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
  background: #000;
  color: #f1f1f1;
  font-weight: 300;
}

h1, h2 {
  font-family: 'Raleway', sans-serif;
}

header {
  text-align: center;
  padding: 2rem;
  background: #111;
  color: #fff;
}

#logo {
  max-height: 100px;
  display: block;
  margin: 0 auto 20px;
}

header nav a {
  font-family: 'Raleway', sans-serif;
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  font-weight: 400;
}

header nav a:hover {
  color: #006400;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  padding: 20px;
}

/* New style for centering homepage previews */
.gallery-preview {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
}

.gallery img, .gallery-preview img {
  width: 100%;
  height: auto; /* This is crucial for maintaining aspect ratio */
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
  border: 1px solid #fff;
  max-width: 400px; /* Prevents preview images from becoming too large */
}

.gallery img:hover, .gallery-preview img:hover {
  transform: scale(1.05);
}

section {
  margin-bottom: 40px;
}

section h2 {
  text-align: center;
  margin: 20px 0;
  font-size: 2rem;
  color: #f1f1f1;
  font-weight: 400;
}

.view-all-link {
  text-align: center;
  margin-top: 20px;
}

.view-all-link a {
  color: #f1f1f1;
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  padding: 10px 20px;
  border: 1px solid #f1f1f1;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.view-all-link a:hover {
  background-color: #f1f1f1;
  color: #000;
}

footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  background: #111;
  color: #aaa;
}