body {
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
  color: #333;
}
header {
  background: #0077b6;
  color: #fff;
  padding: 2rem;
  text-align: center;
}
header h1 {
  margin: 0;
  font-size: 2rem;
}
nav {
  background: #023e8a;
  padding: 1rem;
  text-align: center;
}
nav a {
  color: #fff;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
}
section {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}  
h1 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
}

h2 {
  color: #0077b6;
}
ul {
  list-style: none;
  padding: 0;
}
ul li::before {
  content: "✔ ";
  color: #0077b6;
  font-weight: bold;
}
footer {
  background: #023e8a;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Galeria */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.3s;
}
.gallery img:hover {
  transform: scale(1.05);
}

/* Modal - domyślnie ukryty */
.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(0,0,0,0.9);

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Modal otwarty */
.modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Obraz w modalu */
.modal-content {
  max-width: 80%;
  max-height: 80%;
  display: block;
}

/* Podpis */
#caption {
  margin-top: 10px;
  text-align: center;
  color: #ccc;
  max-width: 80%;
}

/* Przycisk zamknięcia w prawym górnym rogu */
.close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
}

/* Strzałki po bokach obrazu */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  background: rgba(0,0,0,0.3);
  border: none;
  font-size: 36px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  line-height: 60px;
  text-align: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.nav:hover { background: rgba(255,255,255,0.2); }
.nav.prev { left: 30px; }
.nav.next { right: 30px; }
