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

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

/* Stopka - kontener */
.footer-row {
  display: flex; /* Elementy w rzędzie */
  justify-content: space-between; /* Tekst po lewej, ikony po prawej */
  align-items: center; /* Wyrównanie pionowe */
  background-color: #fff; /* Białe tło */
  color: #000; /* Czarny tekst */
  width: 100%; /* Cała szerokość strony */
  padding: 20px 10%; /* Wyrównanie od boków */
  font-size: 1.5em; /* Wielkość tekstu */
  margin-top: 0px;
  margin-bottom: 0; /* Usunięcie niepotrzebnych odstępów */
}

/* Tekst w stopce */
.footer-row p {
  margin: 0; /* Usuń dodatkowe marginesy */
}

.footer-row strong {
  color: #000; /* Czarny tekst dla wytłuszczeń */
}

.footer-link {
  text-decoration: none; /* Usuń podkreślenie */
  color: #000; /* Czarny tekst */
}

.footer-link:hover {
  text-decoration: underline; /* Podkreślenie na hover */
}

/* 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 */
}

/* Ikony społecznościowe */
.social-icons {
  display: flex; /* Ikony w rzędzie */
  gap: 10px; /* Odstęp między ikonami */
}

.social-icons img {
  width: 42px; /* Szerokość ikon */
  height: 42px; /* Wysokość ikon */
  transition: transform 0.3s ease; /* Płynna animacja skalowania */
}

.social-icons img:hover {
  transform: scale(1.1); /* Powiększenie ikony przy najechaniu */
}

/* 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: #fff;
}

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

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

.inactive {
  font-size: 1.5em;
  font-weight: bold;
  color: #676767; /* Jasnoszary 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: white;
}

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

/* Galeria */
.gallery {
  background-color: #000; /* Czarne tło galerii */
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Trzy miniatury w rzędzie */
  gap: 2px; /* Odstęp 2px między miniaturkami */
  width: 80%;
  margin: 20px auto;
  margin-top: 175px;
  margin-bottom: 40px;
}

/* Miniatury */
.thumbnail {
  width: 100%;
  aspect-ratio: 800 / 533; /* Zachowanie proporcji obrazów */
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease; /* Płynna zmiana powiększenia */
}

.thumbnail:hover img {
  transform: scale(1.05); /* Powiększenie o 5% */
}

/* Efekt rozjaśnienia za pomocą warstwy */
.thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0); /* Brak rozjaśnienia domyślnie */
  transition: background-color 0.3s ease; /* Płynne pojawienie się */
  z-index: 1; /* Warstwa nad obrazem */
}

.thumbnail:hover::before {
  background-color: rgba(255, 255, 255, 0.2); /* 20% białego rozjaśnienia */
}

.left-text {
  width: 80%; /* Maksymalna szerokość tekstu - 80% szerokości strony */
  margin: 0 auto; /* Wyśrodkowanie tekstu */
  text-align: left; /* Wyrównanie tekstu do lewej */
  font-size: 1.5em; /* Trochę większy tekst */
  color: #000; /* Kolor tekstu - czarny */
  line-height: 1.8; /* Poprawiona czytelność */
  margin-top: 165px;
  margin-bottom: 55px;
  line-height: 1.6;
}

.left-text a {
  color: #000; /* Czarny tekst dla linków */
  text-decoration: underline; /* Podkreślenie */
  text-decoration-color: #fff; /* Białe podkreślenie */
  transition: color 0.3s ease, text-decoration-color 0.3s ease; /* Płynna zmiana kolorów */
}

.left-text a:hover {
  color: #fff; /* Biały tekst po najechaniu */
  text-decoration-color: #fff; /* Białe podkreślenie po najechaniu */
}

.aligned-image {
  width: 100%; /* Dopasowanie szerokości do tekstu */
  margin: 0 auto; /* Wyśrodkowanie obrazu */
  display: block; /* Wyświetlanie jako blokowy element, aby działało centrowanie */
}

/* Bottom Right Language Link (Desktop Only) */
.lang {
  position: absolute;
  bottom: 50px;
  right: 50px;
  font-size: 1.5em;
  font-weight: bold;
  text-decoration: none;
  color: white;
}

.lang: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: white;
  border-radius: 2px;
}

.hamburger[aria-expanded="true"] span {
  background-color: white; /* 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);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .lang {
    display: none; /* Ukryj EN w wersji mobilnej */
  }
  
@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: #e03335;
    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;
  }

  /* Styl dla stopki w wersji mobilnej */
@media (max-width: 768px) {
  .footer-row {
    flex-direction: column; /* Ustawienie elementów w kolumnie */
    align-items: center; /* Wyśrodkowanie elementów */
    text-align: center; /* Wyrównanie tekstu */
    gap: 15px; /* Odstęp między tekstem a ikonami */
  }

  .footer-row p {
    margin-bottom: 0px; /* Odstęp poniżej tekstu */
  }

  .social-icons {
    justify-content: center; /* Wyśrodkowanie ikon */
    margin-top: -40px;
    margin-bottom: 25px;
  }
}