/* ZÁKLADNÍ NASTAVENÍ */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #ffffff;
  color: #1e293b;
}

/* HLAVIČKA */
header {
  background: #f8f8f8;
  color: #2f58a8;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo {
  height: 70px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: #2f58a8;
  text-decoration: none;
  font-weight: bold;
}

/* NAVIGACE */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  gap: 1rem;
}

nav a {
  color: #2f58a8;
  text-decoration: none;
  font-weight: bold;
}

nav a.active {
  text-decoration: underline;
}

/* HERO SEKCE */
.hero {
  position: relative;
  width: 100%;
  height: 300px; /* můžeš upravit výšku */
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* překryv přes celý obrázek */
.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); /* průhlednost 40 % */
}

/* text nahoru */
.hero-text {
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-30%, -50%);
  color: white;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  z-index: 1; /* text nad překryvem */
}


/* HLAVNÍ OBSAH */
main {
  padding: 1rem;
  max-width: 900px;
  margin: auto;
}

/* FOTOGALERIE */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery img {
  width: 200px;
  height: auto;
  border-radius: 8px;
}

/* Galerie - mřížka */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}


/* PATIČKA */
footer {
  background: #e2e8f0;
  color: #334155;
  text-align: center;
  padding: 0.5rem;
  margin-top: 3rem;
}


/* ÚPRAVA KONTAKTNÍ STRÁNKY */
.contact-wrapper {
  display: flex;
  gap: 2rem;           /* mezera mezi sloupci */
  align-items: flex-start;
  flex-wrap: wrap;     /* aby se na mobilu sloupce zalomily pod sebe */
}

.contact-info {
  flex: 1 1 300px;     /* levý sloupec se roztahuje, min. šířka 300px */
}

.contact-photo {
  flex: 1 1 300px;     /* pravý sloupec podobně */
}

.contact-photo img {
  max-width: 100%;
  height: auto;
}

/* Obrázky v galerii – na menších displejích zabírají 100 % šířky */
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Menu – na mobilu pod sebe */
@media (max-width: 768px) {
  nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
  }

  nav ul li {
    text-align: center;
    list-style: none;
  }

  .logo-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
/* Mobilní zobrazení */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-wrap img {
    max-width: 120px; /* zmenší logo na mobilu */
    height: auto;
    margin-bottom: 10px;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 10px 0 0 0;
  }

  nav ul li {
    list-style: none;
  }

  nav ul li a {
    font-size: 18px; /* větší klikací text */
  }
}

