:root {
  --primary: #7d9c98;
  --primary-dark: #6b8986;
  --accent: #404947;
  --highlight: #d8eeeb;
  --light-contrast: #f0e8dc;
  --cta: #007b83;
  --cta-hover: #005f63;
  --text-dark: #333333;
  --text-medium: #555555;
  --text-light: #777777;
  --white: #ffffff;
  --off-white: #f7f9f9;
  --border-light: #e0e0e0;
}

/* Layout constraint */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.filter-container {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.filter-button {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-button:hover {
  background: var(--highlight);
}

.filter-button.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* Replace existing */
  gap: 2rem;
  justify-items: start; /* Add this line */
}

.snapshot-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 300px; /* Add this line */
  width: 100%; /* Add this line */
}

.snapshot-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.snapshot-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.snapshot-image {
  width: 100%;
  height: 180px;
  object-fit: contain; /* Add this line */
  max-height: 180px; /* Add this line */
  border-bottom: 1px solid var(--border-light);
}

.snapshot-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.snapshot-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
  color: var(--accent);
}

.snapshot-subtitle {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin: 0 0 0.8rem;
}

.snapshot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.8rem;
}

.snapshot-tag {
  font-size: 0.75rem;
  background: var(--highlight);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  color: var(--primary-dark);
  cursor: pointer;
  transition: background 0.2s ease;
}

.snapshot-tag:hover {
  background: var(--primary);
  color: var(--white);
}

.snapshot-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding: 0 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.nav-button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.nav-button:hover {
  background: var(--primary-dark);
}

.navbar {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar-links li a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar-links li a:hover {
  color: var(--primary);
}
