/* !Format (Author: mail@jandousek.cz) */

/*
  Nadpisy
  ***
*/

.format h1, .format h2, .format h3, .format h4, .format h5, .format h6 {
  margin: 40px 0 30px 0;
  text-transform: uppercase;
  font: normal 20px 'trajan-sans-pro', Helvetica, sans-serif;
}
.format h1 {
  margin-top: 0 !important;
  margin-bottom: 40px;
  font-size: 32px;
}
.format h2 {
  padding-left: 45px;
  background: url('../img/format-h2.png') left center no-repeat;
  background-size: auto 22px;
  font-size: 22px;
  color: #a6a515;
}
.format h3 {
  font-size: 18px;
}
.format h4 {
  font-size: 16px;
}

/*
  Odstavce
  ***
*/

.format p, .format address {
  margin-bottom: 20px;
  line-height: 1.7;
}

/*
  Seznamy
  ***
*/

.format ul, .format ol {
  margin: 0 0 30px 25px;
}
.format ol {
  list-style: decimal;
}
.format ul {
  list-style: none;
}
.format li {
  margin-bottom: 7px;
  line-height: 1.5;
}
.format li > ul, .format li > ol {
  margin-top: 15px;
}
.format ol > li {
  padding-left: 15px;
}
.format ul > li {
  padding-left: 15px;
  list-style: disc;
}

/*
  definicni
  ---
*/

.format dl {
  margin-bottom: 15px;
}
.format dl dt, .format dl dd {
  line-height: 1.6;
}
.format dl dt {
  margin-bottom: 10px;
  font-weight: bold;
}
.format dl dd {
  margin-bottom: 15px;
}

/*
  Tabulky
  ***
*/

.format .table {
  width: 100%;
  overflow: auto;
  margin-bottom: 20px;
}
.format table {
  width: 100%;
  min-width: 600px;
  margin-bottom: 10px;
  font-size: 80%;
}
.format table th, .format table td {
  padding: 12px 15px;
  border-bottom: 1px solid #f1f1f2;
  line-height: 1.5;
}
.format table th {
  font-weight: bold;
}

/*
  thead
  ---
*/

.format table thead th, .format table thead td {
  background-color: #fbfbfb;
  border-top: 1px solid #f1f1f2;
}

/*
  colors
  ---
*/

.format table th.bg-white, .format table td.bg-white,
.format table th.bg-yellow, .format table td.bg-yellow,
.format table th.bg-blue, .format table td.bg-blue,
.format table th.bg-red, .format table td.bg-red {
  border: 1px solid #fff;
}
.format table th.bg-white, .format table td.bg-white {
  background-color: #eee;
  color: #222;
}
.format table th.bg-yellow, .format table td.bg-yellow {
  background-color: #edca28;
  color: #222;
}
.format table th.bg-blue, .format table td.bg-blue {
  background-color: #4da1d7;
  color: #fff;
}
.format table th.bg-red, .format table td.bg-red {
  background-color: #d43e3e;
  color: #fff;
}


/*
  Obrazky
  ***
*/

.format img.alignleft, .format img.alignright {
  max-width: 40%;
}
.format img.alignleft {
  float: left;
  margin: 7px 34px 25px 0;
}
.format img.alignright {
  float: right;
  margin: 7px 0 25px 34px;
}
.format img.aligncenter {
  display: block;
  margin: 30px auto;
}

/*
  Galerie
  ***
*/

.gallery {
  overflow: hidden;
  margin: 0 -22px 10px -22px;
}
.gallery dl {
  width: 100%;
  float: left;
  margin-bottom: 30px;
}
.gallery.gallery-columns-1 dl {
  width: 100%;
}
.gallery.gallery-columns-2 dl {
  width: 50%;
}
.gallery.gallery-columns-3 dl {
  width: 33.33%;
}
.gallery.gallery-columns-4 dl {
  width: 25%;
}
.gallery.gallery-columns-5 dl {
  width: 20%;
}
.gallery.gallery-columns-6 dl {
  width: 16.66%;
}
.gallery dl dt, .gallery dl dd {
  margin: 0;
  line-height: 1;
}
.gallery dl dt a {
  position: relative;
  display: block;
  margin: 0 22px;
}
.gallery dl dt a img {
  width: 100%;
  display: block;
}

/*
  hide
  ---
*/

.gallery dl dd, .gallery p, .gallery br {
  display: none;
}

/*
  a
  ***
*/

.format a[href$=".pdf"] {
  display: inline-block;
  padding-left: 25px;
  padding-bottom: 2px;
  background: url('../img/icons/files/pdf.png') left 6px no-repeat;
  text-decoration: none;
}

/*
  upravy
  ***
*/

.format .btn {
  margin: 0 20px 20px 0;
}
.format .btn + br {
  display: none;
}
