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

body {
  display: flex;
  flex-direction: row; /* Kolumny obok siebie w wersji desktopowej */
  height: 100vh; /* Pełna wysokość widoku */
  font-family: Poppins, sans-serif;
  overflow: hidden; /* Wyłączamy przewijanie dla całego body */
}
/* Wyróżnione teksty wprowadzające */
.lead-text {
  font-size: 23px;
}

.lead-text-2 {
  font-size: 23px;
  color:#fff
}

.left-column,
.middle-column,
.right-column {
  width: 33.33%; /* Wszystkie kolumny o tej samej szerokości */
  height: 100%; /* Każda kolumna zajmuje pełną wysokość */
  overflow-y: auto; /* Każda kolumna przewija się osobno */
}

.right-column a {
  color: inherit;
  font-weight: bold;
  text-decoration: underline;
}

.right-column a:hover {
  text-decoration: none;
}

.dawid-photo {
  display: block;
  width: 170px;
  height: auto;
  margin: 20px auto 35px auto;
}

/* Lewa kolumna */
.left-column {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  padding: 40px 0 0;
}

.left-column .content {
  padding: 0 40px;
  flex-shrink: 0;
}

.left-column .logo {
  max-width: 160px;
  margin-bottom: 20px;
}

.left-column p {
  margin-bottom: 20px;
  line-height: 1.5;
  font-size: 16px;
}

.left-column .full-width-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  padding: 0;
  flex-shrink: 0;
}

/* Mapa Pragi - pełna szerokość lewej kolumny */
.left-column .praga-map {
  display: block;
  width: 100%;
  height: 450px;
  margin: 0;
  padding: 0;
  border: 0;
  flex-shrink: 0;
}

.left-column .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 0px;
  margin-bottom: 20px;
  width: 100%;
  padding: 0 40px;
  text-align: left;
}

.left-column .links a {
  text-decoration: underline;
  font-weight: bold;
  color: #cfcfd0;
}

.left-column .links a:hover {
  text-decoration: none;
}

.left-column .footer a {
  color: inherit;
  font-weight: bold;
  text-decoration: underline;
}

.left-column .footer a:hover {
  text-decoration: none;
}

/* Środkowa kolumna */
.middle-column {
  background-color: #000;
  color: #fff;
  padding: 0;
}

.middle-column .full-width-image {
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

.middle-column .text-content {
  padding: 40px;
  color: #cfcfd0;
}

.middle-column h1 {
  margin-bottom: 20px;
  font-size: 16px;
  text-transform: uppercase;
  color: #cfcfd0;
}

.middle-column p {
  line-height: 1.6;
  font-size: 16px;
  color: #cfcfd0;
}

.middle-column a {
  font-weight: bold;
  text-decoration: underline;
  color: #cfcfd0;
  transition: text-decoration 0.3s ease;
}

.middle-column a:hover {
  text-decoration: none;
  color: #cfcfd0;
}

/* Prawa kolumna */
.right-column {
  background-color: #303031;
  color: #cfcfd0; /* Biały tekst */
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.right-column p {
  margin-bottom: 20px;
  line-height: 1.5;
  font-size: 16px;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px; /* Odstępy między miniaturami */
  margin-top: 20px;
}

.thumbnail-grid img {
  width: 100%;
  height: auto;
  display: block;
  background-color: #000; /* Czarny placeholder, jeśli brak obrazu */
  border-radius: 4px; /* Opcjonalne zaokrąglenie rogów */
  transition: transform 0.3s ease; /* Płynne przejście przy powiększaniu */
}

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

.thumbnail-grid div {
  overflow: hidden; /* Miniaturki pozostają w swoim "obszarze" */
}

/* Stopka w lewej kolumnie */
.left-column .footer {
  width: 100%;
  margin: 0;
  font-size: 16px;
  text-align: left;
  line-height: 1.5;
  color: #000;
}

.left-column .footer-contact {
  padding: 40px;
  background-color: #fff;
  margin-top: -20px;
}

.left-column .footer-bottom {
  padding: 40px;
  background-color: #e3e3e3;
}

.left-column .footer-partner-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 28px 0;
}

.left-column .footer-partner-logos img {
  display: block;
  width: 60px;
  max-width: 100%;
  height: auto;
}

.left-column .footer-funding-logo {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  margin-top: 28px;
}

hr {
  border: none;
  height: 1px;
  background-color: #c6c3c3;
  margin-top: 25px;
  margin-bottom: 25px;
}

/* Stylizacja dla nakładki galerii */
.gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.gallery-overlay img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.gallery-overlay .close-btn,
.gallery-overlay .arrow {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.gallery-overlay .close-btn {
  top: 20px;
  right: 20px;
}

.gallery-overlay .arrow {
  top: 50%;
  transform: translateY(-50%);
}

.gallery-overlay .arrow.left {
  left: 20px;
}

.gallery-overlay .arrow.right {
  right: 20px;
}


/* Mobilne menu - ukryte na desktopie */
.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

/* Media Query */
@media (max-width: 768px) {

  /* Mobilne menu */
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    top: 48px;
    right: 40px;
    width: 46px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    flex-direction: column;
    justify-content: space-between;
    z-index: 900;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 80%;
    height: 7px;
    border-radius: 5px;
    background: #000;
  }

  .mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: #fff;
    z-index: 2000;
    overflow-y: auto;
  }

  .mobile-menu.is-open {
    display: block;
  }

  .mobile-menu-close {
    position: absolute;
    top: 42px;
    right: 40px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #000;
    font-family: Arial, sans-serif;
    font-size: 72px;
    font-weight: 300;
    line-height: .65;
    cursor: pointer;
  }

  .mobile-menu-links {
    min-height: 100%;
    padding: 190px 40px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }

  .mobile-menu-links a {
    display: block;
    color: #000;
    font-size: clamp(46px, 12vw, 76px);
    font-weight: 600;
    line-height: 1.18;
    text-decoration: none;
  }

  .mobile-menu-links a:hover,
  .mobile-menu-links a:focus-visible {
    text-decoration: underline;
  }

  body.menu-open {
    overflow: hidden;
  }

  #oprojekcie,
  #fotografia,
  #historiamowiona {
    scroll-margin-top: 20px;
  }


  body {
    flex-direction: column;
    overflow-y: auto;
    height: auto;
  }

  .left-column,
  .middle-column,
  .right-column {
    width: 100%;
    height: auto;
  }

  /* Na mobile elementy lewej kolumny uczestniczą w układzie całej strony.
     Dzięki temu ta sama stopka może trafić na sam dół bez duplikowania HTML. */
  body {
    display: grid;
    grid-template-columns: 1fr;
  }

  .left-column {
    display: contents;
  }

  .left-column > .content,
  .left-column > .full-width-image {
    width: 100%;
  }

  .middle-column {
    order: 3;
  }

  .right-column {
    order: 2;
  }

  .left-column .footer {
    display: block;
    order: 4;
    width: 100%;
  }

  hr {
    display: none;
  }

  .left-column .links {
    margin-bottom: 10px;
  }

  .left-column .full-width-image {
    margin-bottom: 0; /* Usunięcie marginesu pod obrazem */
  }

  .left-column {
    padding-bottom: 0; /* Usunięcie paddingu na dole */
  }

  .left-column .content {
    margin-bottom: 0; /* Wyłączenie pustych marginesów */
  }
  .left-column .praga-map {
    width: 100%;
    height: 380px;
  }

}

/* Odtwarzacze YouTube – Historia mówiona */
.middle-column .youtube-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  background-color: #000;
  overflow: hidden;
}

.middle-column .youtube-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* SEKCJA EBOOKA */

.left-column .ebook-section {
  width: 100%;
  background-color: #121d82;
  color: #ffffff;
  padding: 60px 0;
  flex-shrink: 0;
  margin-bottom: -20px;
  margin-top: -10px;
}

.left-column .ebook-section .content {
  padding: 0 40px;
}

.left-column .ebook-section p,
.left-column .ebook-section strong {
  color: #ffffff;
}

/* Usunięcie białych pasków wokół sekcji ebooka */

.left-column .full-width-image:has(+ .ebook-section) {
  margin-bottom: 0;
}

.left-column .ebook-section + .full-width-image {
  margin-top: 0;
}

/* Link do publikacji PDF */

.left-column .ebook-section .ebook-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;

  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Po najechaniu znika podkreślenie */

.left-column .ebook-section .ebook-link:hover {
  text-decoration: none;
}

/* Ikona PDF */

.left-column .ebook-section .ebook-link::after {
  content: "PDF";
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;

  color: #fff;
  background-color: #f13333;

  padding: 4px 5px;
  border-radius: 2px;

  text-decoration: none;
}

/* PRZYCISK WYSTAWA */

.right-column .wystawa-button {
  display: inline-block;
  align-self: flex-start;

  background-color: #121d82;
  color: #ffffff;

  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 700;

  text-decoration: underline;

  padding: 15px 35px;
  margin-top: -5px;
  margin-bottom: 30px;

  border-radius: 0;

  transition: background-color 0.3s ease;
}

/* Efekt po najechaniu */

.right-column .wystawa-button:hover {
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
}

/* WERSJA MOBILNA */

@media (max-width: 768px) {
  .left-column .ebook-section {
    width: 100%;
    padding: 40px 0;
  }
}
