@font-face {
  font-family: "NewYork";
  src:
    url("NewYork.woff2") format("woff2"),
    url("NewYork.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg: #f1e3d2;
  --text: #be872c;
  --border: rgba(190, 135, 44, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-size: 0.95rem;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image: url("obrazky/pozadi.svg");
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: top right;
  background-size: 100% auto;
}

h1,
h2,
h3 {
  font-family: "NewYork", serif;
  font-weight: normal;
  margin: 0;
}

h1 {
  font-size: 7rem;
  line-height: 1.1;
  text-align: center;
}

h2 {
  font-size: 5.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.p-wrap {
  max-width: 750px;
  display: inline-block;
  text-align: left;
}

p em {
  font-style: italic;
  font-weight: 300;
}
.align-right .p-wrap {
  text-align: right;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.booking-link {
  text-decoration: underline;
}

a:hover {
  opacity: 0.7;
}

header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center; /* Vrácení položky menu na střed na desktopu */
  padding: 0;
  margin: 0;
  gap: 5rem;
  width: 100%;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 200;
  display: block;
  padding: 1rem 0;
  letter-spacing: 0.05rem;
  transition: opacity 0.3s ease;
  font-size: 0.95rem;
  line-height: 1;
}

.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-img {
  max-width: 280px;
  border: 1px solid var(--border);
}

/* --- SEKCE --- */
section {
  padding: 6rem 2rem;
  width: 100%;
}

.section-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.text-block {
  width: 100%;
  margin-bottom: 3rem;
}

.text-block.align-right {
  text-align: right;
}

.text-block.align-left {
  text-align: left;
}

.image-block {
  width: 100%;
}

.image-block.align-right {
  display: flex;
  justify-content: flex-end;
}

.image-block.align-left {
  display: flex;
  justify-content: flex-start;
}

.gallery img,
.image-block img {
  height: 280px;
  width: auto;
  border: 1px solid var(--border);
  display: block;
  object-fit: cover;
}

/* O mně - Zvětšený obrázek */
.image-block img.large-img {
  height: 560px;
  margin-right: 5rem;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.align-right .gallery {
  justify-content: flex-end;
}

.audio-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem; /* Mezera mezi názvem a přehrávačem */
  margin-bottom: 2rem; /* Mezera mezi jednotlivými nahrávkami */
}

.audio-title {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  color: var(--text);
  font-size: 0.95rem;
}
.audio-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

audio {
  filter: sepia(20%) saturate(70%) hue-rotate(10deg);
  width: 300px;
}

/* Kontakt */
.contact-header-wrap {
  display: flex;
  align-items: center;
  gap: 1.7rem; /* Zachováno dle tvého nastavení */
  margin-bottom: 2rem;
  width: 100%;
}

.contact-logo-square {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  border: none;
}

.contact-header-wrap h2 {
  margin-bottom: 0;
  white-space: nowrap;
}

.contact-details img {
  width: 18px;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.contact-details {
  margin-top: 0;
}

/* Lightbox */
#lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#lightbox-overlay.hidden {
  display: none;
}

#lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
}

#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  color: #fff;
  font-size: 4rem;
  cursor: pointer;
  padding: 0 2rem;
  transform: translateY(-50%);
  user-select: none;
}

#lightbox-prev {
  left: 0;
}

#lightbox-next {
  right: 0;
}

/* Responzivita */
@media (max-width: 1200px) {
  h2 {
    white-space: normal;
    font-size: 4rem;
  }
  .p-wrap {
    max-width: 100%;
  }
  .image-block img.large-img {
    margin-right: 0;
    height: 400px;
  }
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px; /* Mezera mezi tečkami */
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  margin-left: auto; /* Toto odsune tlačítko na pravou stranu */
}

.menu-toggle .dot {
  width: 5px;
  height: 5px;
  background-color: var(--text);
  border-radius: 50%; /* Udělá z čtverečku kolečko */
  transition: 0.3s;
}
@media (max-width: 768px) {
  /* Nastavení navigace pro mobil - zajistí tečky vpravo */
  header nav {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding: 0 1rem;
  }

  /* Zobrazení tlačítka s tečkami */
  .menu-toggle {
    display: flex;
  }

  /* Skrytý seznam menu, který se vyklopí pod headerem */
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    gap: 0;
    z-index: 999;
    align-items: center;
    justify-content: center;
  }

  /* Aktivní stav menu po kliknutí na tečky */
  nav ul.active {
    display: flex;
  }

  /* Vzhled odkazů v mobilním menu */
  nav a {
    padding: 0.8rem 0;
    font-size: 1.2rem;
    letter-spacing: 0.1rem;
    text-align: center; /* Zarovná text "O mně" atd. na střed řádku */
  }

  /* Obrázky v sekcích na mobilu */
  .gallery img,
  .image-block img,
  .image-block img.large-img {
    width: 100%; /* Obrázky se roztáhnou na šířku textu */
    max-width: 400px; /* Horní hranice, aby fotky na výšku nebyly přes celý displej */
    height: auto; /* DŮLEŽITÉ: Výška se dopočítá, obrázek se nedeformuje */
    display: block;
    margin: 0 auto 1.5rem auto; /* Vycentrování a mezera pod obrázkem */
  }

  .gallery {
    flex-direction: column;
    align-items: center;
    gap: 0rem;
  }
  /* Úprava kontaktu na mobilu */
  .contact-header-wrap {
    gap: 1rem;
    margin-left: 0;
  }

  .contact-logo-square {
    width: 60px;
    height: 60px;
  }

  /* Responzivita nadpisů */
  h1 {
    font-size: 5.5rem; /* Původně 3.5rem */
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 4rem; /* Původně 2.8rem */
    white-space: normal;
    line-height: 1.1;
    margin-bottom: 1.5rem;
  }
}
