/* ==========================================================================
   Buri-Al-Basar – štýly stránky
   Obrázky vzhľadu sa berú z priečinka templates/buri-al-basar/images/
   ========================================================================== */

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 18px;
  line-height: 1.5;
  color: #4c3800;
  background: #50492c url(templates/buri-al-basar/images/bg.jpg) repeat-x top left;
}

img {
  border: 0;
}

/* ------------------------------------------------------------ hlavička */

#header {
  width: 1100px;
  height: 400px;
  margin: 0 auto;
}

#header1 {
  height: 200px;
  background: url(templates/buri-al-basar/images/header1.jpg) no-repeat;
  text-align: left;
}

#header2 {
  height: 200px;
  background: url(templates/buri-al-basar/images/header2.jpg) no-repeat top;
}

/* neviditeľná odkazová plocha v ľavom hornom rohu (odkaz na úvod) */
a.toplink {
  display: block;
  width: 157px;
  height: 200px;
  outline: 0;
}

/* ---------------------------------------------------------------- menu */

#topmenu {
  width: 1100px;
  height: 72px;
  margin: 0 auto;
  background: url(templates/buri-al-basar/images/topmenu.jpg) no-repeat top;
}

#menu {
  height: 50px;
  margin: 0 0 0 200px;
  padding: 10px 0 0;
  list-style: none;
}

#menu li {
  float: left;
  height: 53px;
  margin: 0;
  padding-left: 25px;
}

#menu a {
  display: block;
  padding: 15px 8px 0;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  font-style: italic;
  line-height: 1.5;
  text-decoration: none;
  text-shadow: 0.1em 0.1em #000;
  outline: 0;
}

#menu a:hover,
#menu a:focus {
  color: #dd9a46;
}

/* ------------------------------------------------------------ rozloženie */

#wrap {
  background: url(templates/buri-al-basar/images/container.jpg);
}

#container {
  background: url(templates/buri-al-basar/images/wrap_bg.jpg) repeat-x;
}

#incontainer {
  width: 1100px;
  margin: 0 auto;
  background: url(templates/buri-al-basar/images/container_bg.jpg) repeat-y;
}

#inside {
  width: 1100px;
  min-height: 337px;
  background: url(templates/buri-al-basar/images/bg_inside.jpg) no-repeat top left;
}

#mainbody {
  width: 920px;
  min-height: 500px;
  padding-left: 65px;
  overflow: hidden;
  font-size: 16px;
  color: #4c3800;
}

/* ----------------------------------------------------- prepínač jazykov */

#langs {
  float: right;
  margin: 16px -2px 10px 5px;
}

#langs a {
  display: inline-block;
  margin-left: 4px;
}

#langs img {
  display: block;
}

/* --------------------------------------------------------------- obsah */

#article {
  width: 98%;
  margin-left: 14px;
  padding-bottom: 22px;
}

#article h1 {
  box-sizing: border-box;
  width: 100%;
  height: 72px;
  margin: 46px 0 31px;
  padding-left: 100px;
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 22px;
  font-weight: normal;
  font-style: italic;
  line-height: normal;
  color: #653e06;
  text-align: left;
  background: url(templates/buri-al-basar/images/headings.png) no-repeat bottom left;
}

#article h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: normal;
  color: #722c06;
}

#article h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #722c06;
}

#article p {
  margin: 0;
  padding-bottom: 10px;
}

#article a,
#article a:visited {
  font-size: 16px;
  font-weight: bold;
  color: #833a07;
  text-decoration: none;
  outline: 0;
}

#article a:hover,
#article a:focus {
  color: #994d18;
}

#article img {
  max-width: 100%;
}

#article .red {
  color: #f00;
}

/* zarovnanie */
.center  { text-align: center; }
.right   { text-align: right; }
.justify { text-align: justify; }

#article table.center {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* tabuľky s výstavami a rodokmene */
#article table.tabulka {
  width: 90%;
  border-collapse: collapse;
  border: 2px solid #53420c;
}

#article table.tabulka td {
  padding: 2px 4px;
  border: 1px solid #796437;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  vertical-align: middle;
}

#article table.tabulka p {
  padding-bottom: 3px;
}

#article table.tabulka td.vystavy,
#article table.tabulka p.vystavy {
  font-size: 13px;
}

#article table.tabulka td.justify {
  text-align: justify;
}

#article table.tabulka a,
#article table.tabulka a:visited {
  font-size: inherit;
}

/* ------------------------------------------------------------- galéria */

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 880px;
  margin: 0 auto;
  padding: 6px 0;
}

#article .gallery a {
  display: block;
  padding: 6px 6px 14px;
  background: #fbf6e4;
  border: 1px solid #b9a66a;
  box-shadow: 1px 2px 5px rgba(60, 45, 0, 0.45);
  transition: transform 0.15s;
}

#article .gallery a:hover {
  transform: scale(1.06);
}

#article .gallery img {
  display: block;
  width: auto;
  height: 100px;
}

/* lightbox (lightbox.js) */
#lightbox {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

#lightbox[hidden] {
  display: none;
}

#lightbox figure {
  margin: 0;
  max-width: 94vw;
  text-align: center;
  cursor: default;
}

#lightbox img {
  display: block;
  max-width: 94vw;
  max-height: 86vh;
  margin: 0 auto;
  border: 10px solid #fff;
  background: #fff;
}

#lightbox figcaption {
  padding-top: 8px;
  font: 13px/1.4 Verdana, Arial, sans-serif;
  color: #ddd;
}

#lightbox button {
  position: absolute;
  padding: 10px 16px;
  font-size: 34px;
  line-height: 1;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}

#lightbox button:hover {
  color: #dd9a46;
}

#lightbox .lb-close { top: 8px; right: 12px; }
#lightbox .lb-prev  { top: 50%; left: 8px; }
#lightbox .lb-next  { top: 50%; right: 8px; }

body.lb-open {
  overflow: hidden;
}

/* ---------------------------------------------------------------- päta */

#footer {
  height: 494px;
  background: #3c2d00 url(templates/buri-al-basar/images/footer_bg.jpg) repeat-x top left;
}

#footer_in {
  width: 1100px;
  margin: 0 auto;
}

#footer1 {
  height: 459px;
  background: #897d6d url(templates/buri-al-basar/images/footer1.jpg) no-repeat top left;
}

#footer .icons {
  float: right;
  padding-top: 380px;
  overflow: hidden;
  text-align: left;
  font-size: 0;
}

#footer .icons a {
  display: inline-block;
}

#footer .icons a + a {
  margin-left: 3px;
}

#footer .icons img {
  display: block;
}

#footer2 {
  height: 35px;
  background: url(templates/buri-al-basar/images/footer2.jpg) no-repeat top left;
  font-size: 13px;
  line-height: 1.5;
}

#totop {
  float: left;
  display: block;
  width: 35px;
  height: 35px;
  background: url(templates/buri-al-basar/images/arrow_top.png) no-repeat;
  outline: 0;
}

#footer2 .infot2 {
  height: 20px;
  padding-top: 5px;
  color: #a59861;
  text-shadow: 0.1em 0.1em #362100;
}

#footer2 .infot2 a,
#footer2 .infot2 a:visited {
  color: #f2e39e;
  text-decoration: none;
  outline: 0;
}

#footer2 .infot2 a:hover {
  color: #a59861;
}
