html, body {
  margin: 0;       /* odstraní výchozí bílé okraje */
  padding: 0;
  width: 100%;
  height: 100%;
  background: black; /* žádná barva kolem */
  overflow: hidden; /* jistota, že není horizontální posuvník */
}


nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 1rem 0;
}

nav ul li {
  margin: 0 1rem;
}

nav a {
  text-decoration: none;
  color: rgb(255, 255, 255);
  font-size: 19.5px;
}

nav ul li:hover {
  transform: scale(1.2);
}

nav {
  position: relative;
  z-index: 10; /* vyšší než center */
}


footer {
  text-align: center;
  padding: 2rem;
  background-color: #2d2e33;
  color: white;
  margin-top: auto;
  box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.4);
  height: 50px;

}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


.logo {
  justify-self: start;
  margin-top: 120px;
  margin-bottom: -110px;
  margin-left: 80px;
}

.logo img {
  max-width: 80px;
}


.main-grid {
  display: grid;
  grid-template-columns: 0.75fr 3.4fr 0.75fr;
  height: calc(100vh - 300px); /* výška okna minus hlavička a patička */
  overflow: hidden;
  width: 100%;
}



.sidebar {
  background-color: #404247;
  padding: 1rem;
  color: white;
  width: 100%;
  box-sizing: border-box;
  filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.5));
}


.sidebar .panel {
  background-color: white;
  color: black;
  padding: 1rem;
  border-radius: 8px;
}


.sidebar h3 {
  margin-top: 0;
}

.center {
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  text-align: center;
  background-color: #5d5e60;
  scrollbar-gutter: stable both-edges; /* drží stejný „žlábek“ a nevznikne světlejší pás */
}

.center::-webkit-scrollbar {
  width: 8px;
}
.center::-webkit-scrollbar-thumb {
  background-color: #cccccc;
  border-radius: 4px;
}


header {
  position: relative;
  text-align: center;
  padding: 2rem 1rem;
  color: white;
  z-index: 1;
  margin-top: -80px;
  font-size: 17.5px;
  
}

.header-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1100px; /* <- nastav podle šířky hlavičkové fotky */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
  z-index: 2;
  pointer-events: none;
}





header::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background-image: url("photo/ŠONOV\ FARA\ \(3\).jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.4);
  z-index: -1;
}

.header-wrapper {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  overflow: visible;
  position: relative;
  z-index: 2;

}

.box {
  background-color: #cccccc; /* světle béžová jako pergamen */
  color: #000000; /* tmavě hnědá pro text */
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 400px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  font-family: "Georgia", serif;
  font-size: 1.1rem;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

h2 {
  color: white;
}

.box:hover {
  box-shadow: 3px 3px 8px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}


.akcni-panel .box a {
  color: inherit;
  text-decoration: none;
  display: block;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


.box.social-panel {
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
  background-color: #ffffff;
  color: #000000;
  border-radius: 6px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  font-family: "Georgia", serif;
  font-size: 1.1rem;
  transition: all 0.3s ease-in-out;
}

.box.social-panel h3 {
  font-weight: normal; /* NE tučné */
  margin: 0.5rem 0;
}

.social-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;  /* menší mezera než původní 0.5rem */
  flex-wrap: nowrap;
}


.icon-fb,
.icon-ig,
.icon-yt {
  display: block;
  margin: auto 0;
}




.icon-fb {
  width: 60px;
  height: auto;
  margin-left: -10px;
}



.icon-ig {
  width: 100px;
  height: auto;
  margin-right: -15px;
  margin-left: -22px;
}

.icon-yt {
  width: 50px;
  height: auto;
}

.social-heading {
  margin: 0.5rem 0;
  font-weight: normal;
  font-size: 1.1rem;
}

.prava {
  margin-left: -1650px;
  margin-top: -45px;
}


/* Dropdown základ */
.menu li {
  position: relative;
}

.menu li .dropdown {
  position: absolute;
  top: 50%;
  left: 50%; /* střed nadřazené položky */
  transform: translate(-50%, -10px); /* zarovnání a výjezd */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 6;
  background: transparent;
}


.menu li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}


/* Vzhled odkazů v dropdownu */
.menu li .dropdown li a {
  background: none;
  padding: 8px 0;
  color: white;
  font-size: 14px;
  white-space: nowrap;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  font-family: "Georgia", serif; /* jako zbytek designu */
  font-weight: normal;
}


.menu li .dropdown li a:hover {
  border-radius: 4px;
}

.calendar-frame {
  margin: 2rem auto;
  max-width: 800px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  background: white;
}

/* === Mobilní verze ================================= */
@media (max-width: 800px) {
  .news-card {
    flex-direction: column;
    height: auto;                 /* výška podle obsahu */
  }
  .news-image {
    width: 100%;
    flex: 0 0 auto;
    height: 220px;                /* fixní výška náhledu na mobilu */
  }
  .news-text {
    -webkit-line-clamp: 4;        /* na mobilu o řádek víc */
  }
}



.main-grid {
  display: grid;
  grid-template-columns: 0.7fr 3.4fr 0.7fr;
  height: calc(100vh - 300px); /* výška okna minus hlavička a patička */
  overflow: hidden;
}

  html {
    scroll-behavior: smooth;
  }


#info-card-historie {
  scroll-margin-top: 120px; /* nastav podle výšky headeru */
}




.info-card-podpora {
  background-color:#cccccc;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  padding: 30px 40px;
  margin: 40px auto;
  max-width: 700px;

  font-size: 18px;
  line-height: 1.8;
  color: #222;
  text-align: left;

  font-family: 'Georgia', 'Times New Roman', serif;
}
.info-card-podpora p {
  margin-bottom: 1.5em;
}



.info-card {
  background-color: #cccccc;
  border-radius: 10px;
  padding: 25px 40px;
  margin-bottom: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.info-card h4 {
  font-size: 26px;
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}

.info-text {
  font-size: 17px;
  line-height: 1.7;
  text-align: justify;
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  position: relative;
}


.info-text.expanded {
  max-height: 2000px;
}

.info {
  margin-top: 80px;
}

.info-float-img {
  float: right;
  width: 180px;
  margin: 0 20px 5px 0;
  text-align: center;
  margin-left: 60px;
}

.info-float-img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.info-float-img figcaption {
  font-size: 0.9em;
  color: #444;
  margin-top: 6px;
}

.kontaktni-ram {
  background-color: #cccccc;
  padding: 30px;
  border-radius: 12px;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-height: 100%;
  padding-bottom: 30px;
  margin-bottom: 100px;
}

.kontaktni-dvojice {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
}

.blok-levy, .blok-pravy {
  flex: 1 1 45%;
}

.kontaktni-dvojice h3 {
  font-size: 1.4rem;
  color: #000000;
}

.kontaktni-dvojice p {
  margin: 0.4rem;
  line-height: 1.6;
}

.kontaktni-dvojice a {
  color: #005f99;
  text-decoration: none;
}

.kontaktni-dvojice a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .kontaktni-dvojice {
    flex-direction: column;
  }

  .blok-levy, .blok-pravy {
    flex: 1 1 100%;
  }
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.podnadpis {
  margin-left: 200px;

}

.book-card {
  background-color: #cccccc;
  border-radius: 10px;
  padding: 25px 40px 40px; /* přidán větší spodní padding */
  margin-bottom: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.book-card h4 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.5rem; /* 🔹 zvětšený nadpis */
  font-weight: bold;
  text-align: left;
  color: #000;
}

.book-text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.book-img {
  flex: 0 0 140px;
  margin: 0;
  text-align: left;
}

.book-img img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.book-img figcaption {
  font-size: 0.8rem;
  color: #333;
  margin-top: 0.3rem;
}

.book-desc {
  flex: 1;
  text-align: left;
  position: relative;
  padding-bottom: 30px; /* rezerva pro cenu */
}

.book-desc p {
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* 🔹 Cena vpravo dole */
.book-desc .price {
  position: absolute;
  right: 0;
  bottom: 0;
  font-weight: bold;
  color: #000;
  font-size: 1rem;
}


@media (max-width: 768px) {
  .book-text {
    flex-direction: column;
  }
  .book-img {
    flex: none;
  }
}


.info-clen {
  background-color: #cccccc;
  border-radius: 10px;
  padding: 25px 40px;
  margin-top: 30px;
  margin-bottom: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  position: relative;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.info-clen h3 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}

/* --- Jen pro karty: Památky a jejich lidé / osudy --- */
#info-card-pamatky-lide .project-text .project-image,
#info-card-pamatky-osudy .project-text .project-image {
  float: right;            /* fotka vpravo, text ji obtéká a pokračuje i pod ní */
  width: 320px;            /* klidně 280–360px dle fotky */
  margin: 4px 0 14px 20px; /* mezery od textu */
}

#info-card-pamatky-lide .project-text .project-image img,
#info-card-pamatky-osudy .project-text .project-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  margin: 0;
}

/* clearfix, aby .project-text správně obepnula float při "expanded" */
#info-card-pamatky-lide .project-text::after,
#info-card-pamatky-osudy .project-text::after {
  content: "";
  display: block;
  clear: both;
}

/* necháme fungovat collapse/expand – u těchto dvou nech max-height defaultně 300px */
#info-card-pamatky-lide .project-text,
#info-card-pamatky-osudy .project-text {
  max-height: 300px;       /* máš to už globálně – jen potvrzujeme */
  overflow: hidden;
}
#info-card-pamatky-lide .project-text.expanded,
#info-card-pamatky-osudy .project-text.expanded {
  max-height: 3000px;      /* rozbalení jako u ostatních */
}

.priprava p{
  font-size: 70px;
  color: #ffffff;
  margin-top: 180px;
}


.sponsors-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #cccccc;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  padding: 30px;
  margin: 40px auto;
  max-width: 1000px;
  font-family: 'Georgia', serif;
  color: #222;
  text-align: center;
  margin-top: 50px;
}

.sponsors-card h3 {
  margin-top: 0;
  font-size: 1.8rem;
}

.sponsors-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.sponsors-logos img {
  height: 100px; /* jednotná výška */
  object-fit: contain;
  background: white; /* pokud chceš bílé pozadí za logem */
  border-radius: 6px;
  padding: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


.box-icon-link {
  margin-left: 6px; /* malá mezera mezi textem a ikonou */
  display: inline-flex;
  align-items: center;
}

.box-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}


/* zarovnání ikon vpravo jen u těchto dvou boxů */
.box--hrncir,
.box--pamatky {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* řádek s ikonami – každý box má svůj vlastní kontejner */
.hrncir-icons,
.pamatky-icons {
  display: flex;
  flex-direction: column; /* ikony pod sebe */              
  align-items: center;    /* zarovnání na střed */
}


/* individuální velikosti podle obrázků */
.hrncir-icons .fb img {   /* FB u Hrnčířova mlýna */
  width: 28px;
  height: 28px;
}

.pamatky-icons .fb img {  /* FB u Památek */
  width: 28px;
  height: 28px;
}

.pamatky-icons .yt img {  /* YT u Památek – jiný nativní poměr stran */
  width: 18px;
  height: 18px;
}

/* (volitelné) lehký hover, jen na tyhle ikonky */
.hrncir-icons img,
.pamatky-icons img {
  transition: transform 120ms ease;
}
.hrncir-icons a:hover img,
.pamatky-icons a:hover img {
  transform: scale(1.06);
}

.calendar-frame {
  display: flex;
  justify-content: center; /* vycentrování */
}

.ext-embed {
  width: 100%;
  max-width: 900px;   /* stejná max šířka jako iframe */
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  margin-bottom: 100px;
}

.ext-embed-btn {
  display: block;
  margin: 0 auto 10px auto;
  padding: 10px 18px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  background: #444;
  color: #fff;
}

.ext-embed-note {
  font-size: 13px;
  text-align: center;
  opacity: 0.8;
}

.ext-embed-iframe {
  display: none;
  width: 100%;
  height: 540px;
  border: 0;
  border-radius: 10px;
}

.ext-embed.show .ext-embed-iframe {
  display: block;
}

.gallery-wrapper {
  background: #cccccc;
  padding: 1.5rem;
  margin: 1rem auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
  max-width: 1000px;
  text-align: left;      /* aby nadpisy/texty nebyly centrované */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.gallery-desc {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  color: #333;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gallery img {
  width: calc(33.333% - 1rem);
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}


/* === Lightbox (bez kolize s existujícím CSS) ==================== */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;                 /* skryté, zobrazí se přes .is-open */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 4vh 4vw;
}
.lb-overlay.is-open { display: flex; }

.lb-img {
  max-width: min(92vw, 1600px);
  max-height: 88vh;
  box-shadow: 0 8px 30px rgba(0,0,0,.6);
  border-radius: 6px;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  padding: .4rem .7rem;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

.lb-close { top: 16px; right: 16px; font-size: 44px; }
.lb-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }

.lb-prev:hover, .lb-next:hover, .lb-close:hover { background: rgba(255,255,255,.12); }

.gallery img {
  cursor: pointer;   /* místo lupy se ukáže ručička */
}

body.lb-noscroll { overflow: hidden; }  /* zabrání scrollu stránky při otevření */


/* ===== NOTEBOOK (1366–1536 px) – stejný vzhled jako PC, jen menší ===== */
@media screen and (min-width: 1280px) and (max-width: 1536px) {

  /* Layout */
  .main-grid {
    grid-template-columns: 0.60fr minmax(0, 3.1fr) 0.60fr;
    height: calc(100vh - 180px);
    
  }
  .center {
    padding: 30px;
    min-height: 0

   }

  /* --- KARTA: jeden panel, žádná vnitřní karta --- */
  .news-card {
    max-width: 680px;              /* bylo 720px */
    margin: 22px auto;
    border-radius: 10px;
    background: #cccccc;
    border: 1px solid rgba(0,0,0,.18);
    box-shadow: 0 4px 0 rgba(0,0,0,.35);
    overflow: hidden;              /* ořízne rohy fotky */
  }

  /* vnitřek už nemá vlastní pozadí → zruší „druhý rámeček“ */
  .news-card-content {
    background: transparent !important;
    padding: 14px;
  }

  /* obrázek bez vlastního stínu a v pevném poměru (~36 %) */
  .news-image {
    width: 200px;                  /* drží cca 36% šířky (244/680) */
    flex: 0 0 200px;
    height: 144px;
    object-fit: cover;
    box-shadow: none !important;   /* jistota */
    border: 0 !important;
    display: block;                /* odstraní baseline mezeru = žádný světlý proužek */
    border-top-left-radius: 10px;  /* pro HiDPI, kdyby overflow nestačil */
    border-bottom-left-radius: 10px;
    background: #cccccc;           /* proti prosvítání při pomalém načtení */
  }

  .news-card-content { padding: 12px; }
  .news-title { font-size: 1rem; margin: 0 0 6px; }
  .news-text  { font-size: 0.85rem; line-height: 1.34; }
  .read-more  { font-size: 0.8rem; }


  /* Jednotný styl i pro ostatní karty ve středu */
  .info-card,
  .book-card,
  .sponsors-card,
  .gallery-wrapper,
  .ext-embed {
    max-width: 720px;
    border-radius: 10px;
    background: #cccccc;
    border: 1px solid rgba(0,0,0,.18);
    box-shadow: 0 4px 0 rgba(0,0,0,.35);
    font-size: 0.88rem;
  }

  /* Zrušení případných obalů co dělají „druhý rámeček“ */
  .news-list, .news-row, .news-item, .news-wrapper, .news-card-outer {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    outline: none !important;
  }

  /* Nadpis sekce */
  h2 { font-size: 1.25rem; margin-bottom: 0.9rem; color:#fff; }

  /* Sidebary a ikony */
  .sidebar .box { max-width: 260px; padding: 0.6rem 0.7rem; font-size: 0.86rem; }
  .icon-fb { width: 30px; height: auto; }
  .icon-ig { width: 48px; height: auto; }
  .icon-yt { width: 26px; height: auto; }
  .hrncir-icons .fb img, .pamatky-icons .fb img { width: 20px; height: 20px; }
  .pamatky-icons .yt img { width: 14px; height: 14px; }

  /* Header / menu / footer */
  header { padding: 0.2rem 0.5rem; margin-top: -60px; }
  header h1 { font-size: 1.55rem; line-height: 1.2; }
  footer { height: 44px; padding: 6px 12px; font-size: 0.8rem; }

   nav ul {
    justify-content: center;
    gap: 0px;           /* místo velkých mezer */
  }
  nav ul li {
    margin: 0;           /* zruší dodatečné mezery mezi li */
  }
  nav a {
    font-size: 15px;     /* trochu menší text */
    padding: 6px 10px;   /* užší polštářky */
    letter-spacing: 0;   /* žádné roztahování písmen */
  }
  nav ul li:hover {
    transform: scale(1.05); /* jemnější hover, ať to “nerozťahuje” řádek */
  }

  /* Ikony vpravo: do jedné řádky se stejnými rozestupy */
.right .hrncir-icons,
.right .social-box {
  display: flex;
  align-items: center;     /* vertikálně zarovná na střed */
  margin-left: 4px;
  gap: 10px;               /* stejné rozestupy mezi ikonami */
}

/* ať obalové divy nepřidávají své mezery/rozbitou geometrii */
.right .hrncir-icons > * ,
.right .social-box > * {
  margin: 0;
}

/* linky jako inline-flex kvůli přesnému zarovnání obrázků */
.right .hrncir-icons a,
.right .social-box a {
  display: inline-flex;
}

.pamatky-icons {
  display: flex;
  gap: 0px;
  justify-content: center;
}

.logo {
  margin-left: 50px;
  margin-bottom: -90px;
  margin-top: 100px;

}

.logo img {
  width: 70px;
}

  .center::after {
    content: "";
    display: block;
    height: 180px;   /* “falešné dno” pro dojetí scrollem */
    flex: none;
  }


}


/* ===== NOTEBOOK: menší karty + kontakt ===== */
@media screen and (min-width: 1280px) and (max-width: 1536px) {

  /* sjednocené zmenšení všech „šedých karet“ */
  .project-card,
  .info-card,
  .book-card,
  .sponsors-card,
  .gallery-wrapper,
  .ext-embed,
  .kontaktni-ram {
    max-width: 650px;         /* menší šířka */
    padding: 18px 22px;       /* menší vnitřní odsazení */
    border-radius: 10px;
    font-size: 0.9rem;        /* menší text uvnitř karet */
    line-height: 1.5;
  }

  /* Kontakt – jemnější typografie a rozestupy */
  .center h2 {
    font-size: 1.3rem;        /* zmenšený nadpis sekce */
    margin: 0 0 0.8rem;
  }

  .kontaktni-ram {
    gap: 1.5rem;              /* menší mezery mezi dvojicemi bloků */
  }

  .kontaktni-dvojice {
    gap: 1rem;                /* menší horizontální mezera */
  }

  .kontaktni-dvojice h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }


  .kontaktni-dvojice p {
    margin: 0.25rem 0;
    line-height: 1.45;
  }

  /* Obrázky v kartách menší, ať karta nepůsobí „přerostle“ */
  .project-card img,
  .project-image img,
  .book-img img {
    max-height: 150px;
    object-fit: cover;
  }

  /* Sidebar boxy ještě o chlup menší */
  .sidebar .box {
    max-width: 240px;
    padding: 0.5rem 0.6rem;
    font-size: 0.84rem;
  }

  /* Mírně menší logo a menu, ať celek působí proporčně */
  .logo img { width: 64px; }
  nav a { font-size: 14px; padding: 6px 8px; }

  .prava {
    margin-left: -1100px;
    font-size: 10px;
    margin-top: -32px;
  }
}


/* ===== MOBIL: skryjeme levý a pravý sidebar ===== */
@media (max-width: 768px) {

   h2 {
    font-size: 20px;

  }


  header h1 {
    font-size: 1.2rem;        /* zmenšený hlavní nadpis */
    line-height: 1.3;
  }

  nav a {
    font-size: 12px;          /* menší menu odkazy */
    padding: 4px 6px;
  }

  .logo img {
    max-width: 50px;          /* menší logo */
  }


  
  .sidebar.left,
  .sidebar.right {
    display: none !important;
  }

  .main-grid {
    grid-template-columns: 1fr; /* střední část přes celou šířku */
  }

  .center {
    padding: 15px;
  }

 .news-card {
    flex-direction: column;       /* obrázek nahoře, text pod ním */
    max-width: 80%;              /* karta přes celou šířku */
    margin: 15px auto;            /* menší mezery mezi kartami */
    border-radius: 8px;
  }

  .news-image {
    width: 100%;                  /* obrázek přes celou šířku */
    height: auto;
    max-height: 200px;            /* omez výšku */
    object-fit: cover;
    border-radius: 8px 8px 0 0;
  }

  .news-card-content {
    padding: 12px;
  }

  .news-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .news-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .read-more {
    font-size: 0.85rem;
    margin-top: 10px;
  }

}


/* === výchozí: hamburger a panel jsou vypnuté na PC === */
.mob-actions,
.mob-panel { display: none; }

/* === MOBIL (≤768px) ================================== */
@media (max-width: 768px) {
  

  /* layout: jen střed, bez mezer */
  .sidebar.left,
  .sidebar.right { display: none !important; }

  .main-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    height: auto;
    overflow: visible;
    width: 100%;
  }

  .center {
    background: #5d5e60;
    padding: 0 !important;          /* full-bleed */
    height: auto;
    overflow: visible;
    position: relative;
    border-top: 0 !important;   /* kdyby měl střed nějaký horní lem */
  }


  header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
    position: relative; 
    width: 93%;
    
  }

  /* PRUH: hamburger + „AKTUALITY“ (sticky, přes celou šířku) */
  .mob-actions{
    display: flex;                  /* zapnout jen na mobilu */
    align-items: center;
    gap: 10px;                      /* 50px dělalo díru – stačí 10 */
    width:auto;
    margin: 0;
    padding: 10px 12px 8px; 
    background: #404247;            /* stejné jako .center */
    border-radius: 0;
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: 0 6px 14px rgba(0,0,0,.35);
    margin-top: -1px;           /* „sní“ případnou 1px mezeru */
    border-top: 0 !important;
  }
  .mob-actions h2{
    margin: 0;    
    font-size: 1.15rem;
    color: #ffffff;
  }

  /* HAMBURGER (3 čárky) */
  .mob-hambtn{
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px; height: 20px;
    background: transparent;
    border: 0; padding: 0;
    cursor: pointer;
  }
  .mob-hambtn span{
    display: block; height: 3px; width: 100%;
    background: #fff; border-radius: 2px;
  }

  /* PANEL (vysouvací, full-bleed) */
  .mob-panel{
    display: block;                 /* na mobilu existuje */
    width: 100%;
    margin: 0;                      /* zruší -10px → žádný „lem“ */
    border-radius: 0;
    background: #404247;
    overflow: hidden;
    max-height: 0;                  /* zavřeno – JS přidá .open */
    transition: max-height .28s ease;
    box-shadow: 0 6px 14px rgba(0,0,0,.35);
  }
  .mob-panel.open{ max-height: 560px; } /* klidně uprav dle obsahu */

  .mob-list{
    list-style: none;
    margin: 8px 10px 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .mob-list li a{
    display: block;
    background: #cccccc;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 600;
  }
  .mob-list li a:active{ transform: scale(0.99); }

  .mob-socials{
    display: flex;
    align-items: center;
    gap: 10px;
    background: #cccccc;
    border-radius: 8px;
    padding: 8px 10px;
  }
  .mob-socials span{ font-weight: 600; margin-right: 8px; }
  .mob-socials img{ width: 22px; height: 22px; display: block; }

  /* schovej duplicitní H2, pokud máš někde další „AKTUALITY“ pod pruhem */
  .center > h2 { display: none; }


  /* menší header/nav nahoře */
  header { padding: .8rem .5rem; }
  header h1 { font-size: 1.05rem; line-height: 1.35; margin: 0; }
  .logo { margin: 0 !important; position: static !important; }
  .logo img { max-width: 50px; height: auto; display: block; }


    nav ul {
    display: flex;
    flex-wrap: wrap;           /* dovolí zalomení do dalších řádků */
    justify-content: center;   /* vycentruje odkazy */
    gap: 6px;                  /* mezery mezi odkazy */
    padding: 8px;
    margin: 0;
  }

  nav ul li {
    margin: 0;                 /* odstraní extra mezery */         /* každý odkaz má trochu prostoru */
    text-align: center;
  }

  nav a {
    display: block;
    font-size: 18px;       
    font-weight: 500;
    padding: 4px 4px;
    color: #fff;
    text-decoration: none;
  }

  nav ul li:hover {
    transform: none;           /* zruší zoom efekt na mobilu */
  }

  /* dropdown menu skryjeme na mobilu */
  .menu li .dropdown {
    display: none !important;
  }


  /* footer menší */
  footer{ height: auto; padding: 10px 12px; font-size: .85rem; }

    header h1 {
    font-size: 1.3rem;         /* zmenší text nadpisu */
    line-height: 1.3;
    margin-bottom: 8px;      /* dá mezeru mezi nadpis a menu */
    margin-top: 30px;
  }

  nav ul {
    margin-top: 30px;         /* malý odstup od nadpisu */
  }

    html, body {
    height: auto !important;
    overflow: auto !important;    /* zruší globální overflow:hidden */
  }

  .main-grid {
    height: auto ;
    overflow: visible ;
  }

  .center {
    height: auto !important;
    overflow: visible !important;
  }

  .fb-icon img {
    width: 42px;
    height: auto;
    margin-left: -12px;
  }

  .ig-icon img {
    width: 70px;
    height: auto;
    margin-left: -50px;
  }

  .ytb-icon img {
    width: 37px;
    height: auto;
    margin-left: -41px;
  }

    iframe.ext-embed-iframe {
    height: 350px !important;   /* menší výška na mobilu */
    width: 90% !important;
    margin-left: -40px;
  }

  .sponsors-card {
    width: 205px;
  }

  .sponsors-logos img {
    width: 90%;

  }

  .books {
    margin-top: 50px;
  }

  .project-image img {
    height: 60%;
    margin-right: 50pxss;
  }

}


@media (max-width: 350px) {

  .main-grid{ 
    width: 101.1%;
  }

  .footer {
    width: 110%;
  }

  .project-card {
    width: 50%;
    margin-left: 25px;
  }

  .project-image img {
    height: 70%;
    margin-left: -10px;
  }

  .info-card {
    width: 70%;
    margin-left: -0.5px;

  }

}

@media (max-width: 400px) {

  .project-card {
    width: 70%;
    margin-left: 12.5px;
  }

    .project-image img {
    height: 70%;
    margin-left: -10px;
  }


}

@media (min-width: 999px) and (max-width: 1000px) {

  .news-card-content { padding: 12px; }
  .news-title { font-size: 1rem; margin: 0 0 6px; }
  .news-text  { font-size: 0.85rem; line-height: 1.34; }
  .read-more  { font-size: 0.8rem; }

  .project-image img {
    width: 50%;
    margin-left: -20px;
  }

  nav a {
    font-size: 19px;
    padding: 0px;
  }

  header h1 {
    font-size: 30px;

  }

  header {
    width: 743px;
    margin-left: 0px;
  }

}


/* karta = grid 2 sloupce (fotka|text), 2 řádky (druhý využijeme po rozbalení) */
.news-card{
  display:grid;
  grid-template-columns: 300px 1fr;   /* šířka sloupce s fotkou – klidně uprav */
  grid-auto-rows: auto;
  max-width: 800px;
  margin: 30px auto;
  border-radius: 10px;
  background:#ccc;
  box-shadow: 0 4px 10px rgba(0,0,0,.4);
  overflow:hidden;
}

/* levý blok pro fotku – fotka vyplní celou výšku karty */
.news-image-box{
  grid-column: 1;
  grid-row: 1;
  height: 100%;                      /* fotka vyplní celou výšku */
  display:flex; align-items:center; justify-content:center;
  background:#ccc;
}

.news-image{
  width: 100%; /* zajistí, že fotka vyplní šířku */
  height: 100%; /* fotka vyplní celou výšku */
  object-fit: cover; /* ořízne fotku, aby zaplnila celé místo */
  display:block;
}

/* textový panel – v přehledu vpravo od fotky */
.news-card-content{
  grid-column: 2;                     /* vedle fotky */
  grid-row: 1;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;  /* titulek / teaser / tlačítko */
  min-width: 0;
  padding: 20px 20px 46px 20px;       /* dole rezerva na btn */
  background:#ccc;
  text-align:left;
  overflow: hidden; /* zajistí, že text nebude přesahovat */
}

/* po rozbalení přesuň celý panel POD fotku a přes obě kolony */
.news-card.expanded .news-card-content{
  grid-column: 1 / -1;                /* přes obě kolony – i pod fotkou */
  grid-row: 2;                        /* do druhého řádku */
}

/* titulek + teaser */
.news-title{ margin:0 0 10px; font-size:1.2rem; color:#000; }
.news-text{
  line-height:1.5;
  max-height:4.5em;                   /* 3 řádky v přehledu */
  overflow:hidden;
  overflow-wrap:anywhere;
  word-break:break-word;
  padding-bottom: 30px; /* přidáno pro zajištění prostoru pod textem */
  transition: max-height 0.3s ease-out; /* plynulé rozbalování */
}

/* po rozbalení už žádný limit */
.news-card.expanded .news-text{ 
  max-height:none;
}

/* fade jen v zavřeném stavu (nekryje tlačítko) */
.news-card:not(.expanded) .news-card-content::after{
  content:"";
  position:absolute; left:0; right:0;
  bottom:46px; height:44px;
  pointer-events:none;
  background:linear-gradient(to bottom, rgba(204,204,204,0), rgba(204,204,204,1));
}

/* tlačítko – vpravo dole + ručička */
.read-more{
  position:absolute;
  right:20px;
  bottom:12px;
  font-weight:700;
  text-decoration:none;
  color:#000;
  cursor:pointer;                     /* ukazatel */
}
.read-more:empty::before{ content:"Číst dále →"; }


.read-more,
.read-more-btn {
  all: unset;
  position: absolute;
  right: 20px;
  bottom: 12px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  font-size: 1em;
}


/* mobil: fotka nad text už v přehledu */
@media (max-width:800px){
  .news-card{
    width: 80%;
    grid-template-columns: 1fr;
   }
  .news-image-box{
     grid-column:1; 
     grid-row:1; 
     height:220px; 
     width: 80%;
     }
  .news-card-content{
     grid-column:1;
     grid-row:2;
     width: 80%;
     }
  .news-text{
     max-height:6em;
     width: 80%
   }

   .project-card {
    width: 80%;
   }

   .book-card {
     width: 80%;
   }

}


.reklama {
  font-size: 13px;
  margin-top: -50px;
  margin-left: 90rem;
}








































































 













































