/* Web vytvořil: VECTOR software – Mgr. Radek Vaňura, https://vector.cz/weby/
   Veteran Muzeum Kuks – vzhled převzatý z původního webu (rámeček, logo, barvy, písmo Verdana) */

:root {
  --red: #f00;
  --orange: #ffa500;
  --text: #000;
  --box: #d6d6d6;
  --box-line: #95969b;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; }
body {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.25;
  text-align: center;
  -webkit-text-size-adjust: 100%;
}

a:link, a:visited { color: var(--red); text-decoration: none; }
a:hover, a:active, a:focus { color: var(--orange); }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* stránka: pás 1000 px uprostřed, jako původní pozadí */
.page { max-width: 1000px; margin: 0 auto; }

.top {
  aspect-ratio: 1000 / 300;
  background: url('../layout/bg_top.jpg') no-repeat 50% 0 / 100% auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.logo { display: block; width: 80%; }
.logo img { display: block; width: 100%; height: auto; }

.middle {
  background: url('../layout/bg_middle.jpg') repeat-y 50% 0 / 100% auto;
  padding: 0 5%;
}
.obsah { max-width: 900px; margin: 0 auto; }

h1 { margin: 0; color: var(--red); font-size: 2em; }

.intro p { margin: 0; }

.notice {
  max-width: 800px;
  margin: 0 auto 1em;
  padding: .7em 1em;
  border: 2px solid var(--red);
  font-weight: bold;
}

.vstupne { max-width: 800px; margin: 2em auto 0; }
.vstupne p { margin: 0; }
.vstupne-nadpis { margin-bottom: 1.2em !important; }
.vstupne ul { list-style: none; margin: 0; padding: 0; }
.vstupne strong { font-weight: normal; }

.doba {
  max-width: 800px;
  margin: 0 auto;
  background: var(--box);
  border: 1px solid var(--box-line);
}
.doba table { width: 100%; border-collapse: separate; border-spacing: 2px; }
.doba th, .doba td { font-weight: normal; text-align: center; padding: 1px 2px; vertical-align: top; }
.doba .mezera td { height: 1px; padding: 0; }
.doba-pozn { padding-top: 2px; }

.galerie { margin: 2.5em 0 0; }
.thumb { display: inline-block; margin: 0 1px 4px; vertical-align: top; }
.thumb img { display: block; height: 200px; width: auto; max-width: 100%; border: 0; }

.bottom {
  background: url('../layout/bg_bottom.jpg') no-repeat 50% 0 / 100% auto;
  min-height: calc(min(100vw, 1000px) * .18);
  padding: 0 5% 2.5em;
}
.bottom-in { max-width: 900px; margin: 0 auto; }
.doporuceni p { margin: 0 0 1.2em; }
.kontakt { margin: 0; }
.kontakt .tel:link, .kontakt .tel:visited { color: inherit; }
.mapy { margin: .6em 0 0; }
.paticka { margin: 2.5em 0 0; font-size: 12px; color: #555; }

/* galerie – zvětšení fotky */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, .85);
  display: flex; align-items: center; justify-content: center;
  padding: 3vh 3vw;
}
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: 100%; max-height: 100%; position: relative; }
.lb img {
  display: block; max-width: 94vw; max-height: 86vh; width: auto; height: auto;
  border: 10px solid #fff; background: #fff;
}
.lb figcaption { color: #fff; font-size: 13px; margin-top: .5em; }
.lb button {
  position: absolute; border: 0; background: rgba(0, 0, 0, .45); color: #fff;
  font: bold 28px/1 Verdana, Arial, sans-serif; cursor: pointer; width: 48px; height: 48px; border-radius: 50%;
}
.lb button:hover, .lb button:focus-visible { background: var(--red); outline: none; }
.lb .lb-close { top: 12px; right: 12px; }
.lb .lb-prev { left: 12px; top: 50%; margin-top: -24px; }
.lb .lb-next { right: 12px; top: 50%; margin-top: -24px; }
body.lb-open { overflow: hidden; }

/* mobil */
@media (max-width: 700px) {
  body { font-size: 15px; }
  h1 { font-size: 1.6em; }
  .middle, .bottom { padding-left: 7%; padding-right: 7%; }
  .doba table, .doba tbody, .doba tr, .doba th, .doba td { display: block; }
  .doba tr { padding: .35em 0; }
  .doba th { font-weight: bold; }
  .doba td:empty { display: none; }
  .doba .mezera { display: none; }
  .thumb { margin: 0 0 6px; }
  .thumb img { height: auto; width: 100%; }
  .galerie { display: flex; flex-direction: column; }
}

@media print {
  .top, .middle, .bottom { background: none; }
  .lb { display: none !important; }
}
