
.grid {
  background: #EEE;
  max-width: 1330px;
}

/* clearfix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* ---- grid-item ---- */

.grid-sizer,
.grid-item {
  width: 33.33%;
}

.grid-item--width2 {
  width: 66.66%;
}


.grid-item {
  float: left;
  border: 6px solid transparent;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
}

.grid-item-hlavni {
  width: 100%;
  height: 500px;
}

.grid-item-left, .grid-item-right {
  width: 33.33%;
}

.grid-item-center {
  width: 33.33%;
}
strong, b, pre,.perex {
  font-weight: 400 !important;
  font-size: 25px !important;
  letter-spacing: -0.5px;
  color: #999;
}

@media (max-width:1366px) {
  .col-lg-12 {
    padding-left: 10px;
    padding-right: 10px;
  }
  .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: calc(100%) !important;
  }
  .col-lg-12 .mesic_titulek {
    padding-left: 6px;
    padding-right: 8px !important;
  }
  #dparent {
    top:60px !important;
  }
}

@media (min-width: 1024px) {
  .grid-item,.grid-sizer {
    width: 33.33%;
  }
  .grid-item--width2 {
    width: 66.66%;
  }
}

@media (max-width: 1023px) {
  .grid-item,.grid-sizer {
    width: 50%;
  }
  .grid-item--width2 {
    width: 100%;
  }

  .container {
    margin:0;
  }
}

@media (max-width: 600px) {
  .grid-item,.grid-sizer {
    width: 100%;
  }
  .grid-item--width2 {
    width: 100%;
  }
  .container {
    margin:0;
  }
}

.overlay {
  background-color: rgba(0, 0, 0, 0.8); /* Initial opacity */
  bottom: 40px; /* Initial position */
  opacity: 1;
  transition: opacity 0.2s ease, bottom 0.2s ease, color 0.2s ease; /* Transition properties */
}

.clanek_title_2 {
  color: #333333;
}

.grid-item:hover .overlay {
  opacity: 0.8; /* Hover opacity */
  bottom: 60px; /* Hover position */
}

.grid-item:hover .clanek_title_2 {
  color: #777; /* Hover color */
}


body .theme_light {
  display: none;
}
body.dark .theme_light {
  display: initial;
}

body.dark .theme_dark {
  display: none !important;
}
body.dark {
  background-color: #222 !important;
  color: #fff;
}

body.dark .clanek_body {
  background: #333;
  color: #ebebeb;
}

body.dark .hidden-xs.submenu {
  background-color: #333 !important;
  border-color: #777 !important
}

body.dark a#clanek_left_text, body.dark a#clanek_right_text {
  color: #999 !important
}

body.dark a#clanek_left_text:hover, body.dark a#clanek_right_text:hover {
  color: #fff !important
}

body.dark .container .row .col-md-8 > div {
  border: 1px solid #000 !important
}

body.dark .container .row div h2.clanek_titulek, body.dark .container .row .col-md-8 div h3 {
  color: #fff
}

body.dark .container .row div p, body.dark .container .row div h4 {
  color: #ebebeb;
  line-height: 1.8
}

body.dark .container .row div .perex, body.dark .container .row .div .perex strong, body.dark .container .row div .perex b, body.dark .container .row div .perex pre {
  color: #c3c3c3
}

body.dark .container .row div hr {
  border-color: #777 !important
}

body.dark .container .row .clanek_2 {
  background: #333;
  /*border: 1px solid #000 !important*/
}

body.dark .container .row .clanek_2 h3, body.dark .container .row .clanek_2 h3 a {
  color: #fff
}
body.dark .container .row .clanek_2 h4, body.dark .container .row .clanek_2 h4 a {
  color: #ebebeb;

}


body.dark .container .row .clanek_2 hr {
  border-color: #777 !important
}

body.dark .container .row .clanek_2 .clanek_title_2 {
  border-bottom: 1px solid #777
}

body.dark #dparent {
  background: #222 !important
}

body.dark div.mesic {
  background: #333 !important;
  border-color: #777 !important
}

body.dark .grid-item {
  /*background: #222 !important;*/
  /*border: 6px solid #333*/
}

body.dark .mesic_titulek {
  color: #fff
}

body.dark .mesice .grid-item .clanek_2 {
  /*background: #222 !important;*/
  /*border: 1px solid #222*/
}

body.dark .mesice .grid-item .clanek_2.rubrika-0 {
  border-bottom: 5px solid #003886
}

body.dark .mesice .grid-item .clanek_2.rubrika-1 {
  border-bottom: 5px solid #f58345
}

body.dark .mesice .grid-item .clanek_2.rubrika-2 {
  border-bottom: 5px solid #fdc358
}

body.dark .mesice .grid-item .clanek_2.rubrika-3 {
  border-bottom: 5px solid #009bdd
}

body.dark .mesice .grid-item .clanek_2 .clanek_title_2 {
  border-bottom: 1px solid #777
}

body.dark .clanek_text_wrapper {
  /*background: #333*/
}

body.dark a.img_container, body.dark a.img_container:hover, body.dark a.img_container:hover * {
  color: #fff
}


body .clanek-top .clanek_2 {
  background-color: #333;
  color: #fff;
}
.clanek-top a.img_container, .clanek-top a.img_container:hover, .clanek-top a.img_container:hover * {
  color: #fff;
}

body.dark .container .row .clanek-top .clanek_2 {
  background-color: #fff;
  color: #333;
}

body.dark .container .row .clanek-top .clanek_2 h3, body.dark .container .row .clanek-top .clanek_2 h3 a {
  color: #333;
}
body.dark .container .row .clanek-top .clanek_2 h4, body.dark .container .row .clanek-top .clanek_2 h4 a {
  color: #777;
}


