/* 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: 1030px) {

#image img {width: auto; max-width: 96%; margin: 0;}
#info {width: auto; max-width: 92%; margin: 20px auto;}

#slides img {width: 100%; height: auto;}

.soc {display: none;}

#image #sipky .vlevo {width: 70px; height: 109px; position: absolute; left: 30%; margin: 0 0 0 0;}
#image #sipky .vpravo {width: 70px; height: 109px; position: absolute; right: 30%; margin: 0 0 0 0;}

}



@media only screen and (max-width: 960px) {

#container {width: 100%;}
#content {width: 92%; float: left; padding-left: 4%; padding-right: 0;}

#socialmenu #socialmenuin {width: 98%; padding-left: 2%;}

#flag {top: 14px;}
#flag #flagin {width: 98%; padding-right: 2%;}

#topmenu ul.topmenu-cz {width: 75%; padding-left: 25%;} /* 416 */
#topmenu ul.topmenu-en {width: 75%; padding-left: 25%;} /* 429 */

#box-search {float: none; left: auto; right: calc(4% - 11px); margin: 0;}
#box-search-gallery {float: none; left: auto; right: calc(4% - 11px); margin: 0;}

.share {margin-left: 0;}

#cloud {width: 100%; padding: 20px 0;}

}



@media only screen and (max-width: 905px) {

.title-gallery {width: 670px; position: relative; left: 50%; margin-left: -335px;}
.title-gallery-en {width: 690px; margin-left: -345px;}
.title-gallery-thumbnail {height: 150px; max-width: 140px; margin-right: 15px;}
.title-gallery-thumbnail img {height: 100px;}

#header-more .title-gallery {padding-top: 74px;}

#box-search {top: 390px;}

}



@media only screen and (max-width: 770px) {

#flag #flagin {width: calc(100% - 60px); padding-right: 60px;}

#menu {width: 100%; padding: 0; position: static; left: 0; top: 0; text-align: left; overflow: hidden;}
#menu ul {width: 96%; padding-left: 2%; padding-right: 2%;}

#topmenu-sticky-wrapper {width: 100%;}
#topmenu ul {width: 100%;}

#kontakt {margin: 0;}
#formular {margin: 0;}

#sidebar {width: 100%; float: left; padding: 15px 0;}

#footer {width: 96%; padding: 20px 2%; text-align: left; height: auto;}

.post-comment {margin: 0 0 16px 2%; width: 500px; float: left;}
.post-comment-reply {margin: 0 0 16px 2%; width: 470px; float: left; overflow: hidden;}

.gallery-menu {width: 96%; padding: 0 2%; margin: 0;}

.thumbnail {width: 175px; height: 140px; float: left; text-align: left; font-size: 0.75em;}
.thumbnail span {width: 145px; display: block; float: left; text-align: center; padding-left: 1px;}

#latest .thumbnail {width: 15%; margin: 0 2% 2% 0;}
#latest .thumbnail:nth-child(6) {margin-right: 0;}

.inner-gallery .thumbnail {width: 25%;}

.blog-news {width: 320px;}
.blog-news .blog-text {width: 140px;}

.reference-left {float: left; width: 30%; overflow: hidden;}
.reference-left .thumbnail {width: 100%; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; text-align: center; height: auto;}
.reference-left img {width: 100%;}
.reference-right {float: right; width: 60%; overflow: hidden; margin-right: 0;}

.links-bigimage {float: left; margin: 34px 0 0 18px; width: 250px; display: block;}

#kontakt {width: 90%; margin-left: 77px;}

#image #sipky {margin-top: 16px; font-size: 0.55em; position: relative; top: -5px; overflow: hidden;}
#image #sipky .vlevo {width: auto; height: 30px; position: absolute; left: 30%; margin: 0 0 0 0;}
#image #sipky .vlevo a, #image #sipky .vlevo a:visited {width: auto; height: 30px;}
#image #sipky .vpravo {width: auto;  height: 30px; position: absolute; right: 30%; margin: 0 0 0 0;}
#image #sipky .vpravo a, #image #sipky .vpravo a:visited {width: auto; height: 30px;}
#image #sipky .zpet {height: 30px; position: relative; left: 4px; top: -5px;}
#image #sipky .zpet a, #image #sipky .zpet a:visited {height: 30px;}

#box-search {top: 390px;}

}



@media only screen and (max-width: 660px) {

.title-gallery {width: 384px; position: relative; left: 50%; margin-left: -192px;}
.title-gallery-en {width: 420px;  margin-left: -210px;}

.title-gallery-thumbnail {height: 90px; max-width: 80px; margin-right: 10px; margin-top: 10px; margin-bottom: 20px;}
.title-gallery-thumbnail img {height: 55px;}

#box-search {top: 360px;}

}



@media only screen and (max-width: 600px) {

.inner-gallery .thumbnail {width: 33.33%;}

#box-search-gallery {display: none; visibility: hidden;}

}



@media only screen and (max-width: 570px) {

#header {height: 110px;}

#header h1 a span, #header h2 a span {visibility: hidden;}

#header h1.h-en, #header h2.h-en {width: 300px; height: 76px; background-size: 300px 76px; margin-left: -150px;}
#header h1.h-en a, #header h2.h-en a {width: 300px; height: 76px;}

#header h1.h-cz, #header h2.h-cz {width: 300px; height: 76px; background-size: 300px 76px; margin-left: -150px;}
#header h1.h-cz a, #header h2.h-cz a {width: 300px; height: 76px;}

#footer {width: 90%; padding: 20px 5%;}

.postdate-comment {visibility: visible;}

.gallery-menu {width: 90%; padding: 0 5%; margin: 0;}

.article {width: 90%; padding: 0 5%; margin: 0;}

#kontakt {width: 90%; float: left; margin: 0 5%;}
#kontakt .article {padding: 0;}

#formular {width: 90%; float: left; margin: 0 5%;}
#formular form {padding-left: 0;}
#formular form .input-cell {height: 40px;}
#formular form .input-text {width: 90%; text-align: left;}
#formular form .input-input {width: 90%;}
#formular form .input-button {height: 50px; margin-top: 10px;} 

#kniha {width: 96%; padding: 0; margin: 20px 0 20px 2%; border: 0; background: none;}
#kniha .comment-smile {visibility: hidden;}

.post-comment {width: 96%; margin: 0 0 16px 2%;}
.post-comment-reply {width: 96%; margin: 0 0 16px 2%; float: left;}

#vypis {width: 100%; position: static; left: 0; margin: 0;}

#box-search {right: auto; top: 290px; left: 4%;}

a.g, a.g:visited {margin-bottom: 6px;}

#info {text-align: center;}

.thumbnail {width: 155px; height: 140px; float: left; text-align: left; font-size: 0.75em;}
.thumbnail span {width: 135px; display: block; float: left; text-align: center; padding-left: 1px;}

.thumbnail-all-span {padding-left: 0; padding-right: 0; width: 100%;}
.thumbnail-all-p {padding-left: 0; padding-right: 0; width: 100%;}

#kontakt-text .article {margin-left: -50%;}

.lista-latest {margin-top: 30px;}

}



@media only screen and (max-width: 481px) {

#header {height: 110px;}
#footer {text-align: left; height: auto;}

.thumbnail {width: 120px; height: 120px;}
.thumbnail span {width: 110px;}
.thumbnail img {border: 0; width: 110px; max-width: 110px; max-height: 110px;}

/*
.inner-gallery .thumbnail {width: 125px; height: 125px;}
.inner-gallery .thumbnail span {width: 110px;}
.inner-gallery .thumbnail img {border: 0; width: 110px; max-width: 110px; max-height: 110px;}
*/

.reference-left .thumbnail {width: 100%; height: auto;}
.reference-left img {width: 100%; height: auto; max-width: 100%; max-height: 100%;}

.share .coffee {width: 100%;}

}



@media only screen and (max-width: 460px) {

.inner-gallery .thumbnail img {max-width: 90%;}

#latest .thumbnail {width: 30%; margin: 0 5% 5% 0;}
#latest .thumbnail:nth-child(3n) {margin-right: 0;}
#latest .thumbnail img {width: 100%; height: 100%; max-width: 100%; max-height: 100%;}

}



@media only screen and (max-width: 400px) {

#header-more {height: 350px;}

.title-gallery {width: 230px; position: relative; left: 50%; margin-left: -105px;}
.title-gallery-thumbnail:nth-child(1) {margin-bottom: 0;}
.title-gallery-thumbnail:nth-child(2) {margin-bottom: 0;}
.title-gallery-thumbnail:nth-child(3) {margin-bottom: 0; margin-right: 0;}
.title-gallery-thumbnail:nth-child(4) {margin-left: 33px;}

.inner-gallery .thumbnail {height: 135px; min-height: 135px;}

#box-search {top: 400px;}

}



@media only screen and (max-width: 370px) {

#header {height: 80px;}

#header h1.h-en, #header h2.h-en {width: 200px; height: 50px; background-size: 200px 50px; margin-left: -100px;}
#header h1.h-en a, #header h2.h-en a {width: 200px; height: 50px;}

#header h1.h-cz, #header h2.h-cz {width: 200px; height: 50px; background-size: 200px 50px; margin-left: -100px;}
#header h1.h-cz a, #header h2.h-cz a {width: 200px; height: 50px;}

.inner-gallery .thumbnail {height: 130px; min-height: 130px;}

#box-search {top: 370px;}

}



@media only screen and (max-width: 320px) {

.inner-gallery .thumbnail {height: 120px; min-height: 120px;}

}



@media only screen and (max-width: 320px) {

.inner-gallery .thumbnail {width: 50%; height: 140px; min-height: 140px;}

}