/*
Theme Name:     RB SOU Ostrava
Description:  Template webu souauto.cz
Author:         Martin Koumal
Author URI:     http://www.studiokoumal.cz
Template:       Divi
Version:        1.0
*/
ul#menu-paticka {
  flex-flow: column !important;
}

header#main-header {
  /*podmenu*/
}

header#main-header #et-top-navigation nav > ul > li > a {
  padding: 15px 30px 15px 30px !important;
}

header#main-header #et-top-navigation nav > ul > li > a:hover, header#main-header #top-menu li.current-menu-item > a {
  background: #ddd;
  color: #aa002d;
}

header#main-header #et-top-navigation nav > ul > li {
  padding-right: 0;
}

header#main-header #top-menu .menu-item-has-children > a:first-child::after {
  top: 35%;
  right: 5px;
}

header#main-header #et-top-navigation {
  padding-top: 30px;
}

header#main-header #top-menu li li {
  padding: 0;
}

header#main-header #top-menu li li a {
  width: 240px;
}

header#main-header #top-menu li li a:hover {
  background: #ddd;
  color: #aa002d;
}

.et_mobile_menu li a:hover, .nav ul li a:hover {
  background-color: #ddd;
  opacity: 1;
  color: #aa002d;
}

#top-menu li li {
  padding: 0;
}

#top-menu li li a {
  width: 240px;
}

header#main-header.et-fixed-header #top-menu li.current-menu-item > a {
  color: #aa002d !important;
}

header#main-header.et-fixed-header #et-top-navigation {
  padding-top: 0 !important;
}

@media screen and (max-width: 1099px) {
  header#main-header #et-top-navigation nav > ul > li > a {
    padding: 15px 20px 15px 20px !important;
  }
}

.entry-content tr td {
  padding: 6px;
}

article.type-project {
  box-shadow: 5px 5px 10px #aaa;
}

.et_pb_blog_grid .wp-pagenavi a, .et_pb_blog_grid .wp-pagenavi span {
  border: 1px solid #eee !important;
  padding: 3px 5px;
}

div.filtr-galerie .et_pb_text_inner a {
  padding: 15px;
  margin: 0.5%;
  background: #eee;
  border-radius: 5px;
}

div.filtr-galerie .et_pb_text_inner a:hover {
  background: #dedede;
}

@media (min-width: 981px) {
  .col-5 .et_pb_salvattore_content[data-columns]::before {
    content: '3 .column.size-1of5' !important;
  }
}

@media only screen and (min-width: 981px) and (min-width: 981px) {
  .col-5 .column.size-1of5 {
    width: 32.3% !important;
    margin-right: 1%;
  }
}

@media (min-width: 1199px) {
  .col-5 .et_pb_salvattore_content[data-columns]::before {
    content: '4 .column.size-1of5' !important;
  }
}

@media only screen and (min-width: 1199px) and (min-width: 981px) {
  .col-5 .column.size-1of5 {
    width: 24% !important;
    margin-right: 1%;
  }
}

@media (min-width: 1499px) {
  .col-5 .et_pb_salvattore_content[data-columns]::before {
    content: '5 .column.size-1of5' !important;
  }
}

@media only screen and (min-width: 1499px) and (min-width: 981px) {
  .col-5 .column.size-1of5 {
    width: 19% !important;
    margin-right: 1%;
  }
}

.et_mobile_menu li a:hover, .nav ul li a:hover {
    background-color: #dddddd;
    opacity: 1;
    color: #aa002d;
}

#top-menu li li {padding: 0;}
#top-menu li li a {width: 240px;}


 .wp-pagenavi a,  .wp-pagenavi span  {border: 1px solid #eee !important; padding: 3px 5px;}
.wp-pagenavi span.pages {border: 0 !important;}

/*Blog - sloupce stejne vysoke*/

.bloggrid .et_pb_salvattore_content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.bloggrid article {
        margin-bottom: 20px !important;
	-webkit-box-flex: 1;
	    -ms-flex: 1 0 auto;
	        flex: 1 0 auto;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
}

.bloggrid .post-content {
	-webkit-box-flex: 1;
	    -ms-flex: 1 0 auto;
	        flex: 1 0 auto;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
}

.bloggrid .column {
        margin-bottom: 20px !important;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
}

.et_pb_blog_grid h2 {
min-height: 3em;
}

.et_pb_blog_grid .et_pb_image_container {

    margin-bottom: 0;
}

.loop-obrazek {
  overflow: hidden;
}
.loop-obrazek img {
  transition: all 0.5s;
  -moz-transition: all 0.5s;
  -webkit-transition: all 0.5s;
}

.loop-karta:hover .loop-obrazek img {
  transform: scale(1.05);
  -moz-transform: scale(1.05);
  -webkit-transform: scale(1.05);
}

.loop-vynatek a {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}

.loop-datum, .loop-rubrika {
  display: inline-block;
  width: auto !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  flex-basis: auto !important;
}

.et_post_meta_wrapper img {
  max-width: 500px;
  width: 100%;
  height: auto;
  border: 8px solid #ffffff;
  box-shadow: 10px 10px 10px -5px rgba(0, 0, 0, 0.15);}

