/* Reset i ogólne */
body {
margin: 0;
font-family: 'Segoe UI', sans-serif;
line-height: 1.6;
background: #fff;
color: #222;
transition: background 0.3s, color 0.3s;
}
body.dark {
background: #121212;
color: #eee;
}
header, footer {
padding: 1em;
text-align: center;
background: #444;
color: #fff;
}
main {
max-width: 1000px;
margin: auto;
padding: 2em;
}
h1, h2 {
text-align: center;
}
nav ul {
list-style: none;
padding: 0;
display: flex;
justify-content: center;
gap: 2em;
}
nav a {
text-decoration: none;
color: inherit;
}

.layout-toggle, .category-buttons {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-bottom: 1em;
  flex-wrap: wrap;
}

nav ul {
  background: #ddd;
  border-radius: 10px;
  padding: 1em;
  margin: 1em auto;
  max-width: 500px;
}
body.dark nav ul {
  background: #2a2a2a;
}


/* Galeria */
.galeria, .ulubione-lista {
display: grid;
gap: 1em;
}
.galeria.grid {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.galeria.masonry {
column-count: 3;
column-gap: 1em;
}
.galeria img, .ulubione-lista img {
width: 100%;
height: auto;
display: block;
border-radius: 8px;
}

.ulubione-lista {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.ulubione-lista img {
  max-width: 100%;
  height: auto;
}

figure {
margin: 0;
}
figcaption {
text-align: center;
font-style: italic;
padding: 0.5em;
}

.galeria.masonry img {
  width: 100%;
  max-width: 300px;
  margin-bottom: 1em;
  display: block;
}
.galeria.masonry {
  text-align: center; /* dodaj to, by zdjęcia się nie "rozlewały" */
}


/* Sekcje */
section {
margin-bottom: 3em;
}
section ul {
list-style: none;
padding-left: 0;
}
.statystyki ul {
  text-align: center;
  padding: 0;
}
.statystyki li {
  display: inline-block;
  margin: 0.5em 1em;
}



section.o-mnie,
section.jak-robie,
section.timeline,
section.fun-facts,
section.misja {
  background: #f0f0f0;
  padding: 2em;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: 0 auto 3em auto;
}
body.dark section.o-mnie,
body.dark section.jak-robie,
body.dark section.timeline,
body.dark section.fun-facts,
body.dark section.misja {
  background: #1e1e1e;
}


/* Formularze */
form {
display: flex;
flex-direction: column;
gap: 1em;
}
input, textarea, button {
padding: 0.8em;
border: 1px solid #ccc;
border-radius: 5px;
}
button {
background: #333;
color: white;
cursor: pointer;
}
body.dark button {
background: #888;
}

/* Responsive */
@media (max-width: 768px) {
.galeria.masonry {
  column-count: 1;
}
nav ul {
  flex-direction: column;
  gap: 1em;
}
}

.muzyka {
  text-align: center;
}
.muzyka audio {
  margin-top: 1em;
}

/* Tło Zdjęcie z drona */
.drone-photo {
  margin: 0;
  padding: 0;
  position: relative;
  text-align: center;
  width: 100vw; /* pełna szerokość ekranu */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw; /* usuwa margines ograniczający sekcję */
  background-color: #000; /* pasuje do zdjęcia, jakbyś chciał dodać kontrast */
}

.drone-photo h2 {
  color: white;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 8px 20px;
  border-radius: 8px;
}

.panorama {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0; /* usuwa zaokrąglenia */
  object-fit: cover; /* zapewnia rozciągnięcie na całą szerokość */
}
