:root {
  --bg-color: #f9f9f9;
  --text-color: #333;
  --accent-color: #ff6f61;
  --header-bg: #4a90e2;
  --header-text: white;
  --font-family: 'Quicksand', sans-serif;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  transition: background-color 0.3s;
}

header {
  background: var(--header-bg);
  color: var(--header-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
}

#toggle-theme {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: var(--header-text);
}

.dark-mode {
  --bg-color: #121212;
  --text-color: white;
  --accent-color: #90caf9;
  --header-bg: #1f1f1f;
  --header-text: #ffffff;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 1em 0 0;
  display: flex;
  justify-content: center;
  gap: 1.5em;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

main {
  padding: 2em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1em;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.gallery img:hover {
  transform: scale(1.05);
}

.pagination {
  text-align: center;
  margin-top: 2em;
}

.pagination a,
.pagination span {
  margin: 0 0.5em;
  text-decoration: none;
  color: #4a90e2;
  font-weight: bold;
}

.pagination .current {
  color: #333;
}
