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

/* PODSTAWY */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  padding: 2rem;
}

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

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #777;
}

/* GALERIA */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
}

figure {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

figure:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

figure:hover img {
  transform: scale(1.07);
}

figcaption {
  padding: 12px;
  font-size: 0.95rem;
  color: #444;
  background: #fff;
}

/* STOPKA */
.page-footer {
  text-align: center;
  margin-top: 3rem;
  color: #666;
  font-size: 0.9rem;
}

/* DARK MODE */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #ddd;
  }

  figure {
    background: #1e1e1e;
    box-shadow: 0 4px 10px rgba(0,0,0,0.7);
  }

  figcaption {
    background: #1e1e1e;
    color: #eee;
  }

  .page-footer {
    color: #aaa;
  }
}




	
