/* 1254px = 1164px (+ body padding 60px + header margin 30px) or less */
@media screen and (max-width: 1254px) {
/* layout */
body {background-image: none; margin: 0; padding: 0;}
* {box-sizing: border-box;}

#menu-header {position: relative;}
#header {height: auto;}

#footer #footer-block {padding: 0 15px;}

h1 {font-size: 30px; padding: 40px 15px;}
h1.home {font-size: 20px; padding: 0; line-height: 140%;}

#main {font-size: 100%;}

/* kontakt */
.wpcf7 {margin-left: 0;}
table.table-form {width: 100%;}


#news-block .perex {padding: 0 0 10px 0;}


/* clanek */
#main {padding: 15px; min-height: 0;}
#breadcrumb {padding: 0 15px;}

blockquote {font-size: 120%; padding: 0.25em 0 0.25em 40px;}


/* gallery + album */
.gallery {font-size: 80%;}


/* fancybox */
.fancybox-title {font-size: 70%;}

/* index blocks */
#blocks .block a.thumbnail, #blocks .block a.thumbnail span.img-overlay {height: 0; padding-bottom: 54.54%;}


/* hromadne deklarace */
img {max-width: 100%; height: auto;}  

/* carousel */
#carousel .owl-lazy  {height: 0; padding-bottom: 27.6%;}
.owl-carousel .owl-dots {bottom: 10px;}


#header,
#menu-header > ul, 
#breadcrumb ul, #main,
#footer #footer-block, 
#news-block .perex,
table.table-form, .table-article,
.owl-dots,
.wpcf7,
input[type="text"], input[type="email"], input[type="tel"], textarea {width: auto; overflow: none; float: none;}   
}


/* between 481px and 1253px */
@media screen and (min-width: 481px) and (max-width: 1253px) {
/* layout */
#header {margin: 0 15px;}
#menu-header {padding: 0 15px;}

/* index blocks */
#blocks .block + .block {margin-left: 2%;}
#blocks .block {width: 49%}
}


/* 480px or less */
@media screen and (max-width: 480px) {
/* layout */
#header a#header-logo {margin-bottom: 15px; background-size: contain;}
#header #ico {position: relative; top: auto; right: auto; margin: 10px 0; text-align: center;}
#header #ico #language {float: none; margin: 5px auto;}

/* footer */
#footer #footer-block .col {margin-bottom: 30px;}

/* index blocks */
#blocks {padding: 0;}
#blocks .block + .block {margin-left: 0;}
#blocks .block {margion: 0 0 20px 0;}

/* nadpisy */
h1.strike {display: block; white-space: normal; margin: 0 0 1em 0; line-height: normal; letter-spacing: normal;}

/* menu header */ 
#menu-header, #menu-header #menu-button, #menu-header ul li {position: relative;}
#menu-header ul li, #menu-header ul li a, #menu-header ul ul li a {text-align: left; line-height: 1;}

/* search */
#menu-header #searchform {position: relative; bottom: auto; transform: none; min-width: 100%; width: 100%; border-bottom: 1px solid #ebebeb;}
#menu-header #searchform .searchform-input {color: #000; padding-left: 20px; padding-right: 50px; background-color: #fff; border: none; filter: alpha(opacity=100); opacity: 1; transition-property: none;}
#menu-header #searchform .searchform-button {width: 40px;}
#menu-header #searchform .searchform-button:before {text-align: left;}
#menu-header #searchform.searchform-open .searchform-button {color: #000;}

/* menu-button */
#menu-header #menu-button {display: block; position: absolute; right: 8px; top: -55px; width: 60px; height: 50px; font-weight: bold; cursor: pointer;}
#menu-header #menu-button::before, #menu-header #menu-button::after {display: block; position: absolute; left: 19px; content: ""; transition: all .2s ease;}
#menu-header #menu-button::after {top: 24px; height: 4px; width: 22px; border-top: 2px solid #000; border-bottom: 2px solid #000;}
#menu-header #menu-button::before {top: 18px; height: 2px; width: 22px; background: #000;}
#menu-header #menu-button.menu-opened::after {border: 0; height: 2px; transform: rotate(45deg);}
#menu-header #menu-button.menu-opened::before {transform: rotate(-45deg);}
#menu-header #menu-button.menu-opened::after, #menu-header #menu-button.menu-opened::before {top: 24px; left: 23px; background: #000; width: 15px;}

/* parent */
#menu-header {height: auto; padding: 0; border: none; background: transparent;}
#menu-header ul {background: #f3f3f3;}
#menu-header ul li {float: none; display: block; margin: 0; padding: 0; background: none; border: none; border-top: 1px solid #ebebeb!important;}
#menu-header ul li a, #menu-header ul ul {background: none!important; border: none;}
#menu-header ul li a {font-family: Verdana, Geneva, sans-serif; font-size: 12px!important; color: #000; padding: 20px!important; line-height: 1!important; text-shadow: 1px 1px 0 #fff;}
#menu-header ul li a:hover {color: #999;}

/* sub ico */
#menu-header ul li.page_item_has_children .submenu-button {display: block; position: absolute; right: 0; top: 0; height: 52px; width: 52px; cursor: pointer; z-index: 10;}
#menu-header ul li.page_item_has_children .submenu-button::after {top: 21px; left: 26px; width: 1px; height: 11px;}
#menu-header ul li.page_item_has_children .submenu-button::before {left: 21px; top: 26px; width: 11px; height: 1px;}
#menu-header ul li.page_item_has_children .submenu-button::after, #menu-header ul li.page_item_has_children .submenu-button::before {content: ""; display: block; position: absolute; background: #000; z-index: 99;}
#menu-header ul li.page_item_has_children > a {padding-right: 58px;}
#menu-header ul li.page_item_has_children > a:before {content: ""; position: absolute; top: 0; right: 0; width: 52px; height: 100%; background-color: #ebebeb;}

/* children */
#menu-header ul ul {opacity: 1; transition-property: none; box-shadow: none;}
#menu-header ul ul li {border-bottom: none;}
#menu-header ul ul li a {font-weight: normal; padding-left: 25px!important;}
#menu-header ul ul ul li a {padding-left: 45px!important;}
#menu-header ul ul ul li:before {font: normal normal normal 14px/1 'FontAwesome'; display: inline-block; position: absolute; top: 18px; left: 20px; content: "\f00c"; color: #999; margin-right: 3px;}

/* children hide  */
#menu-header ul ul li {width: 100%}
#menu-header ul ul li:hover > ul, #menu-header ul ul {position: relative; top: auto; left: auto;} 
#menu-header ul ul li > a, #menu-header ul li:hover > ul > li > a {width: auto; height: auto; box-sizing: border-box;}

/* barva */
#menu-header ul li[class*="current"] > a {color: #df0000;}


/* tabulky */
table td,  table tr {display: block;}
.table-form td, .table-form th {padding: 0 0 0.5em 0;}

/* iframe video */
#main .iframe-wrapper {position: relative; margin-bottom: 2em; padding: 30px 0 56.25% 0; height: 0; overflow: hidden;}
#main .iframe-wrapper iframe, .iframe-wrapper object, .iframe-wrapper embed {position: absolute; top: 0; left: 0; width: 100%!important; height: 100%!important;} 


/* gallery + album */
.gallery .gallery-item, .gallery .album {width: 50%;}
.gallery .gallery-item:nth-child(2n+3), .gallery .album:nth-child(2n+3) {clear: left;}


/* blocks */
#blocks .block {margin-bottom: 30px;}
#blocks .block + .block {margin-left: 0;}


/* hromadne deklarace */

/* position cleaner */
#menu-header, #header #ico, #header #language {position: relative; top: auto; bottom: auto; right: auto;}

#blocks .block,
#footer #footer-block .col,
.table-menu.col,
#header a#header-logo, #header #ico, .alignright, .alignleft {width: auto; float: none;}

.wpcf7-form .table-form th {width: 100%;}

.alignright, .alignleft {display: block; margin: 0 auto 1em auto;}

.strike::before, .strike::after,
#header-bottom,
#blocks .block-separator,
#menu-header > ul > li > a::after,
#menu-header #searchform .searchform-icon,
#menu-header > ul > li::before, #menu-header ul, #menu-header ul li.page_item_has_children > a::after, #menu-header ul li.page_item_has_children .submenu-button.submenu-opened::after {display: none;}
}