/* 1099px or less */
@media screen and (max-width: 1099px) {
/* layout */
body {margin: 0; padding: 0;}
* {box-sizing: border-box;}


/* table-article */
.table-article {width: 100%;}
.table-article thead, .table-article tbody td:first-child:before {display: none;}
.table-article tbody td:first-child {display: block; text-align: center; font-weight: bold; font-size: 120%; background-color: #e8e8e8;}
.table-article tbody td {display: flex;}
.table-article tbody td::before {display: block; width: 50%; content: attr(data-th)": "; font-weight: bold; text-align: left; margin-right: 0.5em; overflow: hidden;}


/* crossroads icons */
#crossroads > ul > li {width: 50%;}


/* index blocks */
#blocks .block, #blocks .block:first-child {margin: 0 12px 25px 12px;}



/* clanek */
#content {padding: 15px;}
blockquote {font-size: 110%; padding: 0.25em 0 0.25em 40px;}

#main iframe {float: none; width: 100%; margin-bottom: 1em;}

#menu-header > ul > li > a {font-size: 16px;}

/* gallery + album */
.gallery {font-size: 80%;}


/* fancybox */
.fancybox-title {font-size: 70%;}

#counters .counter {margin: 20px;}


/* homepage section */
.section {padding: 40px 20px;}
.section h1, .section h2 {font-size: 200%;}

.contact-us-left h3 {font-size: 180%;}
.contact-us-left h4 {font-size: 120%;}


/* kontakt */
.wpcf7 {margin: 0 0 2em 0;}  


/* hromadne deklarace */
img {max-width: 100%; height: auto;}

table,
.section,
#header-inner,
#content,
#footer .block,
.wpcf7,
input[type="text"], input[type="email"], input[type="tel"], textarea {width: 100%; overflow: none; float: none;}   
}


/* between 481px and 1099px */
@media screen and (min-width: 481px) and (max-width: 1099px) {
/* header */   
#header #header-inner {padding: 0 15px;}
#header #header-inner a.logo {float: none; margin: 0 auto; background-position: center center;}   

/* header-wrapper */
#header-wrapper #block-header-outer {height: calc(100vh - 150px); margin-top: 150px;}

#content {padding: 30px 15px;}

#menu-header {margin-top: 0;}
#menu-header > ul > li > a,
#header.scroll #menu-header > ul > li > a {font-size: 16px!important; padding: 10px; line-height: 30px;}

#portfoliolist a.portfolio {width: 49%;}
}


/* 480px or less */
@media screen and (max-width: 480px) {
/* header */
#header.home, #header.scroll {position: relative; z-index: 1;}

#header {padding-top: 15px; border: none;}
#header #header-inner a.logo, #header.scroll #header-inner a.logo {height: 50px; margin: 0 68px 15px 15px;}


/* header-wrapper */
#header-wrapper, #header-wrapper #block-header-outer {height: auto; display: block; margin: 0;}
#header-wrapper::before {position: absolute; top: 0; left: 0; bottom: 0; right: 0; content: "";  background: url('../../../carousel/slide1.jpg') no-repeat; background-size: cover;}
#header-wrapper #block-header {display: block; padding: 30px;}
#header-wrapper #block-header .logo {height: 100px;}
#header-wrapper #block-header p.claim {font-size: 140%;}
#header-wrapper #block-header .center-button {margin: 20px 0;}

.button.anchor {font-size: 14px;}


/* homepage section */
.section h1, .section h2 {font-size: 180%;}


/* kontaktujte nas */
.contact-us-left {margin-bottom: 2em;}
.contact-us-left h3 {text-align: center; font-size: 160%;}
.contact-us-left h4 {text-align: center; font-size: 100%;}

/* crossroads blocks */
#blocks .block, #blocks .block:first-child {margin: 0 0 25px 0;}
#blocks .block a.thumbnail {height: 200px;}

/* proc my */
.section-wrapper.image .section .section-inner {padding: 30px 20px;}
.section-wrapper.image .section .section-inner ul li {font-size: 120%;}

/* content */
h1 {font-size: 160%;}
h2 {font-size: 120%;}
h3 {font-size: 110%;}
#content.scroll {margin-top: 0;}


/* 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; transform: none; min-width: 100%; width: 100%;}
#menu-header #searchform .searchform-input {color: #fff; padding-left: 20px; padding-right: 50px; background-color: #000; border: none; filter: alpha(opacity=100); opacity: 1; transition-property: none;}
#menu-header #searchform .searchform-button {color: #fff!important; width: 40px;}
#menu-header #searchform .searchform-button::before {text-align: left;}


/* 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 #fff; border-bottom: 2px solid #fff;}
#menu-header #menu-button::before {top: 18px; height: 2px; width: 22px; background: #fff;}
#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: #fff; width: 15px;}

/* parent */
#menu-header {height: auto; padding: 0; text-align: right; border: none; background: transaprent;}
#menu-header ul {background: #1a1a1a;}
#menu-header ul li {float: none; display: block; background: none; border: none; border-top: 1px solid #000;}
#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: #fff; padding: 20px!important; line-height: 1!important; text-shadow: 1px 1px 0 #000;}
#menu-header ul li a:hover {color: #ccc;}

/* 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: #fff; 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: #000;}

/* children */
#menu-header ul ul {opacity: 1; transition-property: 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;}

/* portfolio */
#portfoliolist a.portfolio {margin: 0 0 0.5em 0;}


/* tabulky */
table th, table td, table tr {display: block;}
.table-form td, .table-form th {padding: 0 0 0.5em 0;}

.wpcf7-form .table-form th {text-align: left;}

/* 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;}

/* carousel */
.owl-carousel .owl-nav {top: 40px;}

/* hromadne deklarace */
#menu-header,
#header #header-inner a.logo,
.contact-us-left, .right-button,
.section-wrapper.image .section .section-inner ul li,
.alignright, .alignleft {width: auto; float: none;}


/* width 100% */
.wpcf7-form .table-form th,
#crossroads > ul > li,
#blocks .block,
#portfoliolist a.portfolio,
#counters .counte {display: block; width: 100%;}


/* position cleaner */
.alignright, .alignleft {display: block; margin: 0 auto 1em auto;}

#header-wrapper #block-header .logo,
#header-wrapper #block-header .block-header-anchor,
.gallery .cleaner,
#header-wrapper #carousel,
#menu-header #searchform .searchform-icon,
#menu-header > ul > li > a::after,
#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;}
}