.navbar-nav li a { 
  font-size: 10pt; 
  font-weight: bold; 
  font-family: "Book Antiqua" ;
}
.navbar {border-color: transparent;}

#content {background-color:#f7f5df;padding-top:20px;}
body {background: url("/obra zek/3/poz4-png") repeat 0 0 #E96d31;}


#list-pages li.media { /* úprava boxu */
  width: 100%; /* šířka boxu */
  margin-bottom: 7px; /* mezera mezi boxy */
  margin-top: 7px;
  padding-top: 7px;
  text-align: center;
  font-size: 15px;}
#list-pages h2.subtitle a {
  text-decoration: none;
  color: #E96d31;
  font-size: 20px;
}

#list-pages h2.subtitle a:hover {
  text-decoration:underline;
}

#list-pages img.perex-image {
  max-height: 200px;
  margin-bottom: 15px;
  margin-right: 10px;
}

#panel-custom-2.panel {border:0; padding:0; margin:0; box-shadow:none; background-color:transparent;}
#panel-custom-2.panel > .panel-body {padding-top:5; margin:0; border:0;text-align: center}
#panel-custom-1.panel {border:0; padding:0; margin:0; box-shadow:none; background-color:transparent;}
#panel-custom-1.panel > .panel-body {padding:0; margin:0; border:0;}

h1 {color: #004f8f; font-family: "Book Antiqua"; font-weight: bold;}
h2 {color: #E96d31; font-family: "Book Antiqua"; font-weight: bold;}
h3 {color: #E96d31; font-family: "Book Antiqua"; font-weight: bold;}
h4 {color: red; font-family: "Book Antiqua"; font-weight: bold;}
p {color: #004f8f; font-family: "Book Antiqua"}
h5 {color: #004f8f; font-family: "Book Antiqua"; font-weight: bold;}

hr {border-color: #004f8f;} /*barva vlozene cary*/

#box-custom-footer .container,
aside .panel-primary > .panel-heading  {background-color:#004f8f;}

#box-custom-footer p {color:white}

section.section-container {padding: 15px 0;}

/*fotogalerie*/
#photogalleries {
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
}

.item-photogallery .thumbnail {
  background-color: white; /*barva pozadi dlazdice fotogalerie*/
  border-color: transparent; /*barva ohraniceni dlazdice fotogalerie*/
  height:auto!important;
}
.item-photogallery .link-thumbnail {
  height:auto!important;
}

/*vypis fotografii*/
.gallery-detail main, 
.tab-content #tab-images.active {
  display: flex;
  display: -webkit-flex;
  display: -moz-box;
  flex-direction: column;
  -webkit-flex-direction: column;
  -moz-flex-direction: column;
  flex-wrap:wrap;
  -webkit-flex-wrap:wrap;
  justify-content: center;
  align-items: center; 
}
#photogalleries {  width:100%;}

#galleriesphoto,
.photos,
#tab-images .row {
  columns: 3 200px;
  column-gap: 1.5rem;
  display: ;
  width:100%;
}
#galleriesphoto div,
.photos  div,
#tab-images div {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  float:none;
}

#galleriesphoto .item-photo .thumbnail,
.photos .item-photo .thumbnail,
#tab-images div .thumbnail {
  max-height: 100%;
  display:block ;
  height: 100%;
  padding: 0;
  border: 0;
  margin:  0;
  box-shadow: none;
  background-color: transparent;
}
#galleriesphoto .item-photo,
.photos .item-photo,
#tab-images div {
  overflow: hidden;
}

#galleriesphoto img,
.photos img, 
#tab-images img {
  width: 100%;
  padding: 5px 5px;
  background-color:transparent;
}