:root {
  --bg-color: #fcfcfc;
  --text-color: #1a1a1a;
  --spacing: 15px;
  --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Sticky Header */
header {
  position: sticky;
  top: 0;
  background-color: rgba(252, 252, 252, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  z-index: 100;
}

.logo {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: var(--text-color);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: #777;
  transition: color 0.3s ease;
}

nav a:hover, nav a.active {
  color: var(--text-color);
}

/* CSS Masonry Grid */
.gallery {
  column-count: 3;
  column-gap: var(--spacing);
  padding: 0 var(--spacing) var(--spacing);
  max-width: 1800px;
  margin: 0 auto;
}

figure {
  margin: 0 0 var(--spacing) 0;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  animation: fadeIn 0.8s ease-in-out;
}

figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease-in-out;
}

figure:hover img {
  opacity: 0.85;
}

/* Responsywność */
@media (max-width: 1024px) { .gallery { column-count: 2; } }
@media (max-width: 600px) {
  header { flex-direction: column; gap: 1rem; padding: 1.5rem; }
  .gallery { column-count: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}