/* Obrazky v clancich
----------------------------------------------- */
@media only screen and (max-width: 480px) {

.article .article-img-fly-left {float: none; margin: 10px 0;}
.article .article-img-fly-left img {width: 100%; margin-bottom: 10px;}

.article .article-img-fly-right {float: none; margin: 10px 0;}
.article .article-img-fly-right img {width: 100%; margin-bottom: 10px;}

.postdate-comment {visibility: hidden;}

}



@media only screen and (max-width: 1220px) {

#container {width: 100%;}

#image img {width: auto; margin: 0;}
#info {width: auto; max-width: 96%; margin: 20px auto;}

#slides img {width: 100%; height: auto;}

.video-container {position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden;}
.video-container iframe, .video-container object, .video-container embed {position: absolute; top: 0; left: 0; width: 100%; height: 100%;}

#flag {left: auto; right: 10px; margin: 0;}
#socialmenu {left: auto; right: 88px; margin: 0;}

.owl-carousel .owl-item .box {position: absolute; top: 320px; left: 10%; margin: 0;}

#header a.button-contact, #header a.button-contact:visited {left: auto; right: 30px; margin: 0;}
#header-other a.button-contact, #header-other a.button-contact:visited {left: auto; right: 30px; margin: 0;}

}


@media only screen and (max-width: 1140px) {

#products {width: 100%; margin-top: 10px;}

#menu {left: 15px; margin: 0; width: 650px;}

#header h1, #header h2 {width: 270px; height: 61px; left: 30px; top: 9px; margin: 0; background-size: 270px 61px;}
#header h1 a, #header h2 a {width: 270px; height: 61px;}

#header-other h1, #header-other h2 {width: 270px; height: 61px; top: 9px; left: 30px; margin: 0; background-size: 270px 61px;}
#header-other h1 a, #header-other h2 a {width: 270px; height: 61px;}

#product {width: calc(100% - 40px); margin-left: 20px; overflow: hidden;}
#product #product-right {width: calc(100% - 575px); margin-left: 20px;}

#client {width: calc(100% - 40px); margin-left: 20px; overflow: hidden;}
#client #client-left {width: calc(100% - 575px); margin-right: 20px;}

#products-menu {width: calc(100% - 40px); margin-left: 20px; margin-bottom: 0; overflow: hidden;}
#products-menu a, #products-menu a:visited {display: block; float: left; border: 2px solid #fff; margin-bottom: 15px; margin-right: 20px; padding-left: 0; padding-right: 0;}
#products-menu a.products-current {border-bottom: 2px solid #ECC53F;}

#clients-menu {width: calc(100% - 40px); margin-left: 20px; margin-bottom: 0; overflow: hidden;}
#clients-menu a, #clients-menu a:visited {display: block; float: left; border: 2px solid #fff; margin-bottom: 15px; margin-right: 20px; padding-left: 0; padding-right: 0;}
#clients-menu a.clients-current {border-bottom: 2px solid #ECC53F;}

#contact {width: calc(100% - 40px); margin-left: 20px; margin-bottom: 0; overflow: hidden;}

#kontakt {width: 250px;}
#formular {width: calc(100% - 250px);}

}



@media only screen and (max-width: 1040px) {

#formular form .formular-antispam input.field {width: calc(100% - 16px); padding: 7px;}
#formular form .formular-antispam img {left: 0;}
#formular form .formular-antispam span {left: 3px;}

.claim {left: auto; right: 30px; margin: 0; width: 60%;}

}



@media only screen and (max-width: 960px) {

.thumbnail {width: 32%; margin: 0 2% 2% 0;}

.thumbnail:nth-child(1n) {margin-right: 2%;}
.thumbnail:nth-child(3n) {margin-right: 0;}

#products .product {height: 250px;}

}



@media only screen and (max-width: 880px) {

#products .product {width: calc(33.33% - 30px); height: 280px; margin: 0 15px;}
#products .product span.product-desc {margin-top: 5px;}


}



@media only screen and (max-width: 860px) {

#kontakt {width: 96%; margin: 0 0 0 4%;}
#kontakt .article {padding: 0;}

#formular {width: 100%; float: left; margin: 0;}

.owl-carousel .owl-item .box {top: 30%; left: 6%; margin: 0;}

}



@media only screen and (max-width: 820px) {

.claim {display: none;}

#product #product-left {width: 100%; margin-top: 20px;}
#product #product-right {width: 100%; margin-left: 0; margin-top: 10px;}

#client #client-left {width: 100%; margin-top: 0;}
#client #client-right {width: 100%; margin-left: 0; margin-top: 20px;}

}



@media (max-width: 800px) {

.video-grid {grid-template-columns: repeat(2, 1fr);}

}



@media only screen and (max-width: 770px) {

#flag {left: auto; top: 18px; right: 70px; margin: 0;}
#socialmenu {left: auto; top: 18px; right: 148px; margin: 0;}

.overlay input[type=text] {width: calc(70% - 30px);}
.overlay button {width: calc(30% - 30px);}

.modal {padding-top: 50px;}

}



@media only screen and (max-width: 700px) {

#products .product {width: calc(33.33% - 30px); height: 240px; margin: 0 15px;}
#products .product a span {font-size: 12px;}
#products .product span.product-desc {margin-top: 5px;}

}



@media only screen and (max-width: 650px) {

.owl-carousel .owl-item .box {top: 30%; left: 6%; width: calc(88% - 40px);}

h2.secondary-header {margin: 30px 0 0 0; padding: 16px 0;}

}



@media only screen and (max-width: 600px) {

.owl-carousel .owl-item .box h3 {font-size: 30px; margin-bottom: 30px;}

}



@media only screen and (max-width: 580px) {

#products .product {width: calc(50% - 30px); height: 270px; margin: 0 15px;}
#products .product a span {font-size: 12px;}
#products .product span.product-desc {margin-top: 5px;}

.dodavatele-adresy {display: block; width: 400px; max-width: 90%;}
.dodavatel {flex: none; width: calc(100% - 22px); display: block; padding: 10px; box-sizing: border-box; min-height: 440px; margin: 0 10px 20px;}

}



@media only screen and (max-width: 560px) {

.gallery-menu {width: 90%; padding: 0 5%; margin: 0;}

.article .article-column-2 {column-count: 1;}
.article .article-column-3 {column-count: 1;}
.article .article-column-4 {column-count: 1;}

#flag {width: 27px; top: 6px; right: 60px;}

#socialmenu {width: 57px; top: 5px; right: 100px;}

.thumbnail {width: 49%; margin: 0 2% 2% 0;}

.thumbnail:nth-child(1n) {margin-right: 2%;}
.thumbnail:nth-child(2n) {margin-right: 0;}

.overlay-content {width: 90%;}
.overlay-content form {width: 100%;}
.overlay input[type=text] {width: 60%; margin: 0;}
.overlay button {width: calc(40% - 30px); margin: 0;}

h1.main-header {font-size: 30px;}

}



@media only screen and (max-width: 530px) {

.tab-buttons button {padding: 10px 15px; margin-right: 5px;font-size: 12.25px;}
.tab {padding: 15px; font-size: 16px;}

}



@media only screen and (max-width: 500px) {

#products .product {height: 240px;}

h2.secondary-header {width: calc(100% - 40px); padding: 16px 20px; line-height: 34px; font-size: 30px;}
p.under-secondary-header {padding: 0 20px; font-size: 14px; line-height: 1.5em; width: calc(100% - 40px);}

#client-right #client-right-top h2 {font-size: 16px; margin-bottom: 20px;}

#client-right #client-right-top dl {font-size: 12.25px;}
#client-right #client-right-top dl dt {width: 60px; margin-bottom: 10px;}
#client-right #client-right-top dl dd {width: calc(100% - 60px); margin-bottom: 10px;}

.video-grid {grid-template-columns: 1fr;}

}



@media only screen and (max-width: 440px) {

.owl-carousel .owl-item .box {height: 120px;}
.owl-carousel .owl-item .box h3 {font-size: 20px; margin-bottom: 10px;}
.owl-carousel .owl-item .box p {font-size: 14px;}

.calc-row label {flex: 0 0 70%;}
.calc-row input {width: 30%;}

}



@media only screen and (max-width: 430px) {

#kniha .comment-antispam {width: 100%;}
#kniha .comment-kod {padding: 7px 0 0 0;}

#products .product {height: 210px;}

h1.main-header {font-size: 20px;}

}



@media only screen and (max-width: 400px) {

#header {height: 60px;}
#header-other {height: 60px;}

#header h1, #header h2 {width: 200px; height: 45px; left: 20px; top: 9px; margin: 0; background-size: 200px 45px;}
#header h1 a, #header h2 a {width: 200px; height: 45px;}

#header-other h1, #header-other h2 {width: 200px; height: 45px; left: 20px; top: 9px; margin: 0; background-size: 200px 45px;}
#header-other h1 a, #header-other h2 a {width: 200px; height: 45px;}

h1.main-header {margin-top: 80px;}

.thumbnail img {border: 0;}

.postdate-comment {display: none;}

#socialmenu {display: none; visibility: hidden;}

.eu-cookies {font-size: 0.75em;}
.eu-cookies button {font-size: 0.875em;}
.modal-row .button-cookies {margin: 0 0 0 5px; padding: 4px 7px;}
.modal-row .button-cookies-selected {padding: 4px 7px;}

#formular form {width: calc(100% - 30px); padding: 15px;}
#formular .alert-bad, #formular .alert-good {margin: 15px 0 0 15px; width: calc(100% - 50px);}

#header a.button-contact, #header a.button-contact:visited {display: none;}
#header-other a.button-contact, #header-other a.button-contact:visited {display: none;}

.tab-buttons {margin-bottom: 0; float: left; width: 100%; overflow: hidden;}
.tab-buttons button {width: 100%; padding: 10px 15px; margin: 0; font-size: 12.25px;}

#general, #technical, #references {float: left; overflow: hidden; width: calc(100% - 30px); border-top: 3px solid #fff;}

#client-right-bottom #general {width: 100%;}

}



@media only screen and (max-width: 380px) {

.calc-row {display: block; height: auto;}
.calc-row label {width: calc(100% - 15px);}
.calc-row input {width: calc(100% - 15px);}

}



@media only screen and (max-width: 360px) {

.owl-carousel .owl-item .box {height: 120px; padding: 10px; width: calc(88% - 20px);}
.owl-carousel .owl-item .box h3 {font-size: 15px; margin-bottom: 5px;}
.owl-carousel .owl-item .box p {font-size: 12px;}

#products .product {width: calc(100% - 30px); max-width: 280px; height: auto; margin-bottom: 20px; margin-left: calc((100% - 280px) / 2); text-align: center;}
#products .product img {max-width: 280px;}
#products .product a span {max-width: 280px;}

}



@media only screen and (max-width: 330px) {

#products .product {width: calc(100% - 50px); margin: 0 25px 20px;}

}



@media only screen and (max-width: 300px) {

#kniha .prvni-sloupec {width: 100%; float: left;}
#kniha .druhy-sloupec {width: 100%; float: left;}

#kniha .comment-antispam {width: calc(100% - 112px);}
#kniha .comment-kod {padding: 2px 0 0 5px;}

}