/* =============================================
   Galeria.css
   Style dla galerii obrazkow i modalu
   ============================================= */

/* Obrazek w galerii */
.galeria {
  cursor: pointer;
  margin: 5px;
}

/* Modal - okno wyledujace */
.modal {
  display: none;
  position: fixed;
  z-index: 1000; /* Much higher than menu (100) */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

/* Zawartosc modalu - obrazek */
.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  position: relative;
  top: 120px; /* Position below header + menu */
}

/* Przycisk zamkniecia modalu */
.close {
  position: absolute;
  top: 135px; /* Position below header + menu */
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Przyciski nawigacji (poprzedni/nastepny) */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: calc(50% + 60px); /* Adjust for header + menu height */
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  -webkit-user-select: none;
  user-select: none;
  text-decoration: none; /* Usunie podkreslenie */
}

/* Przycisk "nastepny" - po prawej */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* Przycisk "poprzedni" - po lewej */
.prev {
  left: 0;
}
