h1 {
  text-align: center;
  margin-bottom: 1em;
}

img {
  max-width: 100%;
}

hr {
  border-top: 1px solid #ddd;
}

/* Layout */
#content > .row > main {
  left: 0;
  width: 100%
}

#content > .row > aside {
  display: none;
}

/* Header - logo */
#logo img {
  max-height: 110px;
}

@media (max-width: 768px) {
  #logo img {
    max-height: 80px;
  }
}

@media (min-width: 768px) {
  header > .container > .row > div {
    width: 100%
  }
}

@media (min-width: 991px) {
  header > .container > .row > div {
    width: 50%
  }
}


/*vlastni box 1*/
#panel-custom-1 {
  background-color:transparent;
  box-shadow:none;
  -webkit-box-shadow:none;
  border:0;
  padding:0;
  margin:0;
}

#panel-custom-1 .panel-heading{
  display:none;
  border-bottom:0;
}

#panel-custom-1 .panel-body {
  border:0;
  padding:0;
  margin:0;
}

#panel-custom-1 section.section-container {
  margin-bottom:30px 
}

/*panel-news*/
#panel-news.panel-primary > .panel-heading {
  background-color:#F3565D;
}
ul#list-panel-news li div h4 a,
#panel-news .more a {
  color:#F3565D;
}


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

#box-custom-motive section.section-container {
  padding:0 15px;
}

/*section bg*/
section.section-bg-light {
  background: #fff;
  -webkit-box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.05);
  box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 15px;
}


section.section-bg-light.section-3-col-bottom-text {
  background-color:transparent;
  box-shadow:none;
  -webkit-box-shadow:none;
  padding:15px 0 ;
}
section.section-bg-light.section-3-col-bottom-text .section-cell-parent {
  margin:0 -10px
}

/*
section.section-bg-light.section-3-col-bottom-text .section-cell-item{
background: #fff;
-webkit-box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.05);
box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.05);
margin:10px;
}
*/
/*
.section-bg-light.section-3-col-bottom-text .col-xs-12 {
width: calc(100% - 30px);
}
@media (min-width: 768px) {
.section-bg-light.section-3-col-bottom-text .col-sm-6 {
width: calc(50% - 30px);
}
}
@media (min-width: 992px) {
.section-bg-light.section-3-col-bottom-text .col-md-4 {
width: calc(33.333333% - 30px);
}
}
*/


/*svetlejsi zelena*/
.navbar-default .navbar-collapse,
#topcart .btn-default:hover,
#topbar .btn-default[title="Hledat"]:hover,
.navbar .dropdown-menu > .active > a,
.navbar .dropdown-menu > .active > a:hover,
.navbar .dropdown-menu > .active > a:focus,
.navbar .dropdown-menu > li > a:hover,
.navbar .dropdown-menu > li > a:focus,
.btn-primary,
#topbar .btn-default,
.navbar-default .navbar-toggle,
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus,
aside .panel-primary > .panel-heading{
  background-color: #1c7f19
}

#topbar .btn-default[title="Hledat"] ,
.section-contact .fa,
a,
.btn-link,
.pagination > li > a,
.pagination > li > span {
  color: #1c7f19
}


.btn-primary,
#topbar .btn-default,
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus,
a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active,
.form-control:focus,
section.section-services li{
  border-color: #1c7f19
}

.form-control:focus {
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(237, 143, 52, 0.6);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(237, 143, 52, 0.6);
}

@media (min-width: 768px) {
  .navbar-nav > li {
    border-left-color: #1c7f19
      border-right-color: #1c7f19
  }
}


/*tmavsi zelena*/
.navbar .navbar-nav > .active > a,
.navbar .navbar-nav > .active > a:hover,
.navbar .navbar-nav > .active > a:focus,
.navbar .navbar-nav > li > a:hover,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary,
#topbar .btn-default:hover,
#topbar .btn-default:focus,
#topbar .btn-default:active,
#topbar .btn-default.active,
#topbar .open > .dropdown-toggle.btn-default,
.navbar-default .navbar-toggle:hover, 
.navbar-default .navbar-toggle:focus,
#topcart .btn-default:focus,
#topbar .btn-default[title="Hledat"]:focus {
  background-color: #0c611e
}

.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus,
a.social-fb:hover .fa,
a.social-tw:hover .fa,
a.social-instagram:hover .fa,
a.social-tripadvisor:hover .fa,
a:hover,
a:focus,
.btn-link:hover,
.btn-link:focus {
  color: #0c611e
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary,
#topbar .btn-default:hover,
#topbar .btn-default:focus,
#topbar .btn-default:active,
#topbar .btn-default.active,
#topbar .open > .dropdown-toggle.btn-default{
  border-color: #0c611e
}

/* Image filter */
.filter-default {
  filter: invert(33%) sepia(83%) saturate(923%) hue-rotate(81deg) brightness(90%) contrast(86%) !important;
}

/* E-shop */
#topcart {
  display: none;
}

/* Nabidka */
.img-wrap-square {
  position: relative;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.img-wrap-square img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Docasne zneaktivneni odkazu */
/*
.section-offer-level2 .section-cell-item a {
pointer-events: none;
cursor: default;
}
*/

/* loga firem (home) */
.loga-firem {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

@media (max-width: 991px) {
  .loga-firem {
    flex-direction: row;
    gap: 0;
  }
  .loga-firem:first-child {
    margin-bottom: 1rem;
  }
  .loga-firem:last-child {
    margin-top: 1rem;
  }
  .loga-firem img {
    max-width: clamp(3rem, calc(2rem + 10vw), 12rem);
  }
}

/* grid - 5 polozek na radek */
@media (min-width: 768px) {
  .col-sm-fifth {
    width: 20%;
  }
}

@media (min-width: 992px) {
  .col-md-fifth {
    width: 20%;
  }
}

@media (min-width: 1200px) {
  .col-lg-fifth {
    width: 20%;
  }
}


@media (min-width: 480px) and (max-width: 767px) {
  .section-3-col-bottom-text .section-cell-item {
    width: 50%;
    float: left;
  }
}


/* list items fix */
.item-card {
  background: #fff;
  -webkit-box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.05);
  box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1rem;
  margin-bottom: 2rem;
}

.item-card h2 {
  margin-bottom: 0;
}

.item-card .btn-lg {
  white-space: normal;
  padding: .5em;
  line-height: 1.25;
  font-size: 1.7rem;
  min-height: 6rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* custom gallery */
.item-photogallery .count-photos,
.item-photogallery .count-date,
.item-photogallery .more,
.item-photogallery .description {
  display: none;
}

.item-photogallery .subtitle {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  margin-top: .5em;
  margin-bottom: .5em;
}

.item-photogallery .thumbnail {
  padding: 1rem;
  box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.05);
}

.item-photogallery .link-thumbnail {
  position: relative;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.item-photogallery .link-thumbnail img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  max-width: 100%;
  max-height: 100%;
  height: auto;
}

.item-photogallery .caption {
  text-align: center;
}

@media (min-width: 480px) {
  .item-photogallery,
  .item-photo {
    width: 50%;
    float: left;
  }
}

@media (min-width: 768px) {
  .item-photogallery,
  .item-photo {
    width: 33.33333333%;
  }
}

@media (min-width: 992px) {
  .item-photogallery,
  .item-photo {
    width: 25%;
  }
}

@media (min-width: 1200px) {
  .item-photogallery,
  .item-photo {
    width: 20%;
  }
}

#photogalleries ~ .back-link {
  display: none;
}

.item-photo .thumbnail {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* galerie akce - schovat back button */
#gallery-144881 .photos ~ .back-link {
  display: none;
}