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

body {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  background-color: #d1c5a8;
  background-size: cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #000;
}

/* Main Content POLAROIDS */
.main-content-polaroids {
  margin: 100px auto 0 auto; /* Marginesy, aby dodać przestrzeń pod menu */
  width: 80%; /* 80% szerokości dla tekstu */
  max-width: 1200px; /* Maksymalna szerokość dla dużych ekranów */
  font-size: 1.5em;
  margin-top: 100px;
  margin-bottom: 15px;
  text-align: center;
}

.main-content-polaroids-2 {
  margin: 100px auto 0 auto; /* Marginesy, aby dodać przestrzeń pod menu */
  width: 80%; /* 80% szerokości dla tekstu */
  max-width: 1200px; /* Maksymalna szerokość dla dużych ekranów */
  font-size: 1.5em;
  margin-top: 15px;
  margin-bottom: 60px;
  text-align: center;
  text-decoration: none;
}

.main-content-polaroids-2 .highlight {
  background-color: #ffc932; /* Żółty prostokąt */
  color: #000; /* Ciemniejszy kolor tekstu dla kontrastu */
  padding: 0 10px; /* Trochę przestrzeni wokół tekstu */
  border-radius: 5px; /* Zaokrąglone rogi */
  font-weight: bold; /* Podkreślenie znaczenia */
}

.polaroids-download {
  width: 350px;
}

/* Nowa sekcja z czarnym tłem */
.main-content-black {
  width: 100%; /* Pełna szerokość sekcji */
  background-color: #000; /* Czarny kolor tła */
  color: #b0b0b0; /* Lekko szary tekst */
  text-align: center; /* Wyśrodkowanie tekstu */
  padding: 50px 0; /* Odstępy góra/dół */
}

.black-content {
  width: 80%; /* Treść ograniczona do 80% szerokości */
  margin: 0 auto; /* Wycentrowanie treści w sekcji */
  font-size: 1.5em; /* Rozmiar tekstu */
}

/* Pogrubiony tekst */
.main-content-black strong {
  color: #fff; /* Biały kolor dla pogrubionych fragmentów */
  font-weight: bold; /* Pogrubienie */
}

/* Styl linków w sekcji */
.main-content-black a {
  color: #ffc932; /* Żółty kolor linków */
  text-decoration: none; /* Bez podkreślenia */
  font-weight: bold; /* Wyróżnienie */
}

.main-content-black a:hover {
  text-decoration: underline; /* Podkreślenie na hover */
}

/* Styl dla podświetlenia */
.highlight {
  background-color: #ffc932; /* Kolor tła dla podświetlenia */
  color: #000; /* Czarny kolor tekstu na żółtym tle */
  font-weight: bold; /* Pogrubienie tekstu */
  padding: 2px 6px; /* Wewnętrzne odstępy dla lepszego wyglądu */
  border-radius: 4px; /* Zaokrąglenie krawędzi */
  display: inline-block; /* Żeby tło działało dokładnie dla tekstu */
}

.centered-container {
  width: 100%; /* Pełna szerokość */
  display: flex; /* Użycie flexboxa do wyśrodkowania */
  justify-content: center; /* Wyśrodkowanie w poziomie */
  align-items: center; /* Wyśrodkowanie w pionie (jeśli kontener ma wysokość) */
  padding: 20px 0; /* Odstęp góra/dół (opcjonalny) */
  background-color: transparent; /* Możesz dodać tło, jeśli chcesz */
  margin-top: -15px;
  margin-bottom: -5px;
}

/* Miniaturki albumów */
.album-thumbnails {
  display: flex;
  flex-wrap: wrap; /* Dodanie zawijania miniatur */
  justify-content: center; /* Wyśrodkowanie miniatur przy mniejszych rozdzielczościach */
  gap: 20px; /* Odstępy między miniaturami */
  margin-top: 50px; /* Odstęp od tekstu */
  width: 100%; /* Szerokość całej sekcji miniatur */
  margin-left: auto; /* Wyśrodkowanie całej sekcji */
  margin-right: auto; /* Wyśrodkowanie całej sekcji */
}

.thumbnail {
  flex: 0 1 calc(33.333% - 20px); /* Ustaw trzy miniatury w rzędzie */
  max-width: 350px; /* Maksymalna szerokość dla każdej miniatury */
  text-align: center; /* Wyśrodkowanie przycisku pod miniaturą */
}

.thumbnail img {
  width: 100%; /* Miniatura dopasowuje się do swojego kontenera */
  height: auto; /* Zachowanie proporcji */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Lekki cień pod miniaturą */
}

.download-btn {
  display: inline-block;
  margin-top: 10px; /* Odstęp od obrazka */
  padding: 10px 20px; /* Wewnętrzne odstępy */
  background-color: #ffc932; /* Żółty kolor */
  color: #000; /* Czarny tekst */
  font-weight: bold; /* Pogrubiony tekst */
  text-decoration: none; /* Brak podkreślenia */
  border-radius: 5px; /* Zaokrąglone rogi przycisku */
  transition: background-color 0.3s ease; /* Animacja przy najechaniu */
}

.download-btn:hover {
  background-color: #e5a800; /* Ciemniejszy żółty na hover */
}

/* Responsywność - ustawianie miniatur jeden pod drugim */
@media (max-width: 768px) {
  .album-thumbnails {
    flex-direction: column; /* Ustawienie pionowe */
    align-items: center; /* Wyśrodkowanie w pionie */
    gap: 30px; /* Większy odstęp między miniaturami */
    width: 100%; /* Cała szerokość ekranu */
  }

  .thumbnail {
    max-width: 80%; /* Każda miniatura zajmuje 80% szerokości ekranu */
  }

  .thumbnail img {
    width: 100%; /* Obrazek dopasowuje się do kontenera */
  }
}

button-2 {
  outline: none;
  cursor: pointer;
  border: none;
  padding: 0.9rem 2rem;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  position: relative;
  display: inline-block;
  letter-spacing: 0.05rem;
  font-weight: 700;
  font-size: 17px;
  border-radius: 500px;
  overflow: hidden;
  background: #ffc932;
  color: ghostwhite;
  margin-top: -25px;
  margin-bottom: -20px;
 }
 
 button-2 span {
  position: relative;
  z-index: 10;
  transition: color 0.4s;
 }
 
 button-2:hover span {
  color: black;
 }
 
 button-2::before,
 button-2::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
 }
 
 button-2::before {
  content: "";
  background: #000;
  width: 120%;
  left: -10%;
  transform: skew(30deg);
  transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
 }
 
 button-2:hover::before {
  transform: translate3d(100%, 0, 0);
 }

 button-3 {
  outline: none;
  cursor: pointer;
  border: none;
  padding: 0.9rem 2rem;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  position: relative;
  display: inline-block;
  letter-spacing: 0.05rem;
  font-weight: 700;
  font-size: 17px;
  border-radius: 500px;
  overflow: hidden;
  background: #ffc932;
  color: #000;
  margin-top: 30px;
 }
 
 button-3 span {
  position: relative;
  z-index: 10;
  transition: color 0.4s;
 }
 
 button-3:hover span {
  color: #000;
 }
 
 button-3::before,
 button-3::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
 }
 
 button-3::before {
  content: "";
  background: #fff;
  width: 120%;
  left: -10%;
  transform: skew(30deg);
  transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
 }
 
 button-3:hover::before {
  transform: translate3d(100%, 0, 0);
 }

/* Styl responsywny */
@media (max-width: 768px) {
  .content-container {
    flex-direction: column; /* Ustaw elementy w kolumnie */
  }
}

/* Stopka - styl niezależny */
.stopka-final {
  background-color: #fff; /* Białe tło */
  color: #000; /* Czarny tekst */
  font-size: 1em; /* Rozmiar tekstu */
  text-align: center; /* Wyśrodkowanie tekstu */
  padding: 15px 10px; /* Góra i dół: 15px, boki: 10px */
  width: 100%; /* Szerokość stopki na 100% */
  border-top: 1px solid #ddd; /* Subtelna linia oddzielająca stopkę */
  box-sizing: border-box; /* Uwzględnia padding w szerokości */
}

/* Styl linków w stopce */
.stopka-final a {
  color: #000; /* Czarny kolor tekstu linku */
  text-decoration: underline; /* Podkreślenie w stanie podstawowym */
  transition: color 0.3s ease, text-decoration 0.3s ease; /* Płynna zmiana stylu */
}

.stopka-final a:hover {
  color: #000; /* Czarny tekst */
  text-decoration: none; /* Usunięcie podkreślenia na hover */
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border: 3px solid #fff;
}

.lightbox button {
  background: none;
  border: none;
  color: #fff;
  font-size: 2em;
  cursor: pointer;
  margin: 10px;
}

.lightbox .close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .prev {
  left: 20px;
}

.lightbox .next {
  right: 20px;
}

/* Top Left Name */
.name {
  position: absolute;
  top: 50px; /* Wyżej względem góry */
  left: 50px;
  font-size: 1.5em;
  font-weight: bold;
  z-index: 1002; /* Zawsze nad menu */
  color: #000;
}

.name a {
  text-decoration: none;
  color: #000;
}

.name a:hover {
  text-decoration: underline;
  text-decoration-color: #000;
}

.inactive {
  font-size: 1.5em;
  font-weight: bold;
  color: #afa282; /* Jasno szary kolor */
  cursor: default; /* Brak efektu kliknięcia */
}

/* Top Right Menu (Desktop Only) */
.menu {
  position: absolute;
  top: 50px;
  right: 50px;
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.menu a {
  font-size: 1.5em;
  font-weight: bold;
  text-decoration: none;
  color: #000;
}

.menu a:hover {
  text-decoration: underline;
}

/* Hamburger Button */
.hamburger {
  display: none; /* Hidden by default */
  position: absolute;
  top: 50px;
  right: 50px;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 4px;
  background: #000;
  border-radius: 2px;
}

.hamburger[aria-expanded="true"] span {
  background-color: #000; /* Upewniamy się, że kolor pozostaje czarny po rozwinięciu */
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translateY(0);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0; /* Ukrycie środkowej linii */
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translateY(0);
}
  
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr; /* Jedna miniatura w rzędzie */
  }

  .hamburger {
    display: flex; /* Pokaż hamburger w wersji mobilnej */
  }

  .menu {
    display: none; /* Ukryj menu domyślnie */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #d1c5a8;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    line-height: 1.0;
    font-size: 1.9em;
  }

  .menu.open {
    display: flex; /* Pokaż menu po otwarciu */
  }

  .menu a {
    font-size: 1.5em;
  }

  .menu a:hover {
    text-decoration: underline;
  }
  @media (max-width: 1024px) {
    .thumbnail {
      flex: 0 1 calc(50% - 20px); /* Dwie miniatury w rzędzie */
    }
  }
  
  @media (max-width: 768px) {
    .thumbnail {
      flex: 0 1 100%; /* Jedna miniatura w rzędzie */
      max-width: 90%; /* Ograniczenie szerokości do 90% ekranu */
    }
  }
}