/* Sekcja Wprowadzenia do najnowszych informacji */
/* Stylizacja nagłówków */
.latest-info h1 {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  color: black; /* Głęboki granat */
  margin-bottom: 10px;
}

.latest-info p {
  font-size: 18px;
  text-align: center;
  color: #555; /* Przyjemny szary */
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Stylizacja nagłówka galerii */
.photo-gallery h2 {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  color: black; /* Elegancki ciemny granat */
  margin-bottom: 20px;
  position: relative;
}

/* Pasek pod nagłówkiem galerii */
.photo-gallery h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #c0b39a; /* Nieco jaśniejszy niebieski */
  margin: 8px auto 0;
  border-radius: 5px;
}

.linia {
  width: 50%; /* Ustawienie szerokości linii */
  height: 2px; /* Ustawienie grubości linii */
  background-color: #c0b39a; /* Kolor jasnoszary */
  border: none; /* Usunięcie domyślnej ramki */
  margin: 40px auto; /* Wyśrodkowanie i dodanie odstępu */
  opacity: 0.7; /* Delikatna przejrzystość dla lepszego efektu */
}

/* Dodanie tła do sekcji */
.latest-info {
  padding: 40px 20px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}
.modal-content-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.modal-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1001;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.close:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.modal-navigation {
  margin-top: 20px;
  text-align: center;
}

.modal-navigation button {
  background: #c0b39a;
  border: 2px solid #c0b39a; /* delikatny akcent kolorystyczny */
  color: black;
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  border-radius: 5px;
  transition: all 0.3s ease;
  min-width: 120px;
}



.modal-navigation button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(192, 179, 154, 0.5);
}


/* Sekcja galerii */
.photo-gallery {
  max-width: 1000px; /* Maksymalna szerokość */
  margin: 50px auto; /* Wyśrodkowanie */
  text-align: center;
}

/* Kontener dla zdjęć */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Siatka dopasowująca zdjęcia */
  gap: 15px; /* Odstęp między zdjęciami */
  justify-content: center;
}

/* Każde zdjęcie */
.gallery img {
  width: 100%; /* Dostosowanie szerokości */
  height: auto; /* Zachowanie proporcji */
  border-radius: 10px; /* Zaokrąglenie rogów */
  cursor: pointer; /* Kursor wskazuje możliwość kliknięcia */
  transition: transform 0.3s ease-in-out;
}

/* Powiększenie zdjęcia po najechaniu */
.gallery img:hover {
  transform: scale(1.1);
}

/* Lightbox (po kliknięciu zdjęcie powiększy się) */
[data-lightbox="gallery"] {
  display: inline-block;
}

/* Responsywność dla tabletów (max-width: 768px) */
@media (max-width: 768px) {
  .latest-info h1 {
    font-size: 28px;
  }
  .latest-info p {
    font-size: 16px;
  }
  .photo-gallery h2 {
    font-size: 24px;
  }
  .gallery {
    /* Zwiększona minimalna szerokość zdjęć dla tabletów */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }
  .modal-content {
    max-width: 90%;
    max-height: 70%;
  }
  .close {
    font-size: 24px;
    width: 30px;
    height: 30px;
    top: 10px;
    right: 10px;
  }
}

/* Responsywność dla telefonów (max-width: 480px) */
@media (max-width: 480px) {
  .latest-info h1 {
    font-size: 24px;
  }
  .latest-info p {
    font-size: 14px;
  }
  .photo-gallery h2 {
    font-size: 20px;
  }
  .gallery {
    /* Zwiększona minimalna szerokość zdjęć dla telefonów */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }
  .modal-content {
    max-width: 100%;
    max-height: 60%;
  }
  .close {
    font-size: 20px;
    width: 25px;
    height: 25px;
    top: 5px;
    right: 5px;
  }
}
