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

:root {
  --red: #800000;
  --orange: #ffa500;
  --text: #000;
}

* { 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: 1.2em 5% 1px;
}
.obsah { max-width: 900px; margin: 0 auto; }

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

.podnadpis { font-weight: bold; margin: 1.33em 0; }
.c { text-align: center; }

.text { text-align: justify; }
.text p { margin: 1em 0; }
.text u { text-underline-offset: 2px; }

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

.galerie { margin: 1em 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) * .177);
  padding: 0 5% 1em;
}
.bottom-in { max-width: 900px; margin: 0 auto; }
.kontakt { margin: 0; }
.kontakt .tel:link, .kontakt .tel:visited { color: inherit; }
.mapy { margin: .6em 0 0; }
.paticka { margin: .3em 0 1.5em; padding: 0 5%; 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%; }
  .text { text-align: left; }
  .galerie { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
  .thumb { margin: 0; }
  .thumb img { height: 130px; width: auto; }
}

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