/* Eric Mayer reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, 
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}
/* remember to define focus styles! */
:focus {
	outline: 0;
}
body {
	line-height: 1;
	color: black;
	background: white;
}
/*ol, ul {
	list-style: none;
}*/
/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	text-align: left;
	font-weight: normal;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}
/* http://www.alistapart.com/articles/howtosizetextincss */
body {
    font-size:100%;
    line-height:1.125em;
}

.bodytext p {
    font-size:0.875em;
}

.sidenote {
    font-size:0.75em;
}

/* skupecne styly */
body {
  margin:40px;
}
#container { width:min(1020px, 100%); margin: 40px auto 0 auto; }
#header {
  width:100%;
  height:176px;
  background: #f9ebae url(/img/header.gif) no-repeat left top;
  background-size:cover;
}
#header h1 {display:none}
.hightlight {
  font-size: 22px;
  font-weight: bold;
  line-height: 32px;
  margin: 0;
  color:#800000;
  padding-top: 26px;
  padding-bottom: 17px;
  /* padding-left:17px; */
  text-transform: uppercase;
}
body {
  font-family:Palatino Linotype, serif;
}
.perex {
  font-style: italic; 
}
p {margin-bottom:0.7em}
#content-wrapper img {
  margin-left:-20px;
  margin-right:20px;
  margin-bottom:20px;
  float:left;
  max-width:100%;
  height:auto;
}
h1,h2 {
  color:#800000;
  font-weight:bold;
  margin-top:6px;
  margin-bottom:12px;
}
h1 {
  font-size:19px;
}
#content-wrapper {
  background: #fcf6de;
  padding:20px;
  padding-bottom:40px;
  clear:both;
}
a {
  color:black;
  text-decoration:underline;
  font-weight:bold;
}
#footer {
  background: #fcf6de;
  padding: 20px;
  color: gray;
  text-align: right;
}
#footer a {
  color: gray;
  font-weight:normal;
}
.clear {
  clear:both;
}
#page_odkazy table tr td {
  padding-bottom:10px;
}
#page_odkazy table tr td:first-child {
  width:250px;
}

/* navigace - http://css.maxdesign.com.au/listamatic/horizontal03.htm */
/* #navigation {
  display:relative;
} */
#navigation ul {
  padding-left: 0;
  margin-left: 0;
  color: #fce9ae;
  background: #872c2a;
  float: left;
  width: 100%;
  border-top: 1px solid #9f5756;
  border-bottom: 1px solid #9f5756;
  font-size: 120%;
  line-height:1.5em;
  margin: 0;
}
#navigation ul li {
  display: inline;
  margin: 0;
}
#navigation ul li a {
  padding: 0.2em 1em;
  background: #872c2a;
  color: #fce9ae;
  text-decoration: none;
  float: left;
}
#navigation ul li a.nav-selected {
  color: white;
}
#navigation ul li a:hover {
  background: #501a19;
}

/* Archivní komentáře jsou čitelné, bez původního formuláře. */
.guestBook-title { margin: 1.5em 0 .5em; font-size: 1.1em; font-weight: bold; }
.guestBook-entry { margin: 0 0 1em; padding: .7em 0; border-bottom: 1px solid #dfd2ae; line-height: 1.4; }
.contentByLine { margin-bottom: .4em; color: #665b4d; font-size: .9em; }

.gallery-grid { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:14px; margin:0 0 25px; }
.gallery-grid figure { margin:0; min-width:0; }
.gallery-grid a { display:flex; align-items:center; justify-content:center; height:150px; background:#f2e7c8; }
.gallery-grid img { float:none !important; margin:0 !important; max-width:100%; max-height:150px; width:auto; height:auto; object-fit:contain; }
.gallery-grid figcaption { overflow-wrap:anywhere; font-size:.78em; line-height:1.2; color:#574c3c; }
#gallery-dialog { max-width:95vw; max-height:95vh; padding:2.5rem 1rem 1rem; border:2px solid #872c2a; background:#fcf6de; }
#gallery-dialog::backdrop { background:rgba(0,0,0,.8); }
#gallery-dialog img { display:block; max-width:calc(95vw - 2rem); max-height:calc(95vh - 4rem); width:auto; height:auto; margin:0; float:none; }
.gallery-close { position:absolute; top:.25rem; right:.5rem; border:0; background:none; font-size:2rem; cursor:pointer; }

@media (max-width:700px) {
  body { margin:0; }
  #container { margin:0; }
  #header { height:110px; background-position:center top; }
  #navigation ul li { display:inline-block; }
  #navigation ul li a { float:none; display:inline-block; padding:.2em .6em; }
  #content-wrapper { padding:16px; }
  #content-wrapper > img, #content-wrapper p > img { float:none; margin:0 0 1em; }
  .gallery-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  #page_odkazy table, #page_odkazy tbody, #page_odkazy tr, #page_odkazy td { display:block; width:auto !important; }
}
