/* 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: 1260px) {

#menu .logo {opacity: 1; transform: translateX(0); z-index: 1000;}

a.button, a.button:visited {top: 17px; left: auto; right: 100px;}

#menu a.logo, #menu a.logo:visited {position: absolute; left: 30px; margin: 0 0 0 0;}


}



@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%;}

}



@media only screen and (max-width: 1170px) {

#home {gap: 40px;}
#home .image-container img {width: 300px;}

#home .text-container .article p {font-size: 2.0em;}

}



@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;}

#home-under {max-width: 96%;}
#home-under .article p {font-size: 1.0em;}

}



@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;}

}



@media only screen and (max-width: 940px) {

#header {height: 400px;}
#header h1, #header h2 {width: 100px; height: 100px; margin: 100px 0 0 -50px; background-size: 100px 100px;}
#header h1 a, #header h2 a {width: 100px; height: 100px;}
#header h3 {font-size: 2.0em; margin: 30px 0 0 0; line-height: 1.125em;}
#header h4 {font-size: 1.25em; margin: 15px 0 0 0;}

}



@media only screen and (max-width: 900px) {

#program .article {max-width: 92%;}

}



@media only screen and (max-width: 860px) {

#kontakt {width: 100%; margin: 0;}
#kontakt .article {padding: 0;}

#formular {width: 100%; float: left; margin: 0;}

#home {height: auto; padding: 40px 0;}

}



@media only screen and (max-width: 810px) {

#home {gap: 30px;}
#home .image-container img {width: 250px;}
#home .text-container .article p {font-size: 1.5em;}

}



@media only screen and (max-width: 770px) {


#footer {width: 96%; padding: 20px 2%;}

.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;}

.overlay input[type=text] {width: calc(70% - 30px);}
.overlay button {width: calc(30% - 30px);}

.modal {padding-top: 50px;}

.services-grid {padding: 0 20px;}

}



@media only screen and (max-width: 670px) {

#home {gap: 30px;}
#home .image-container img {width: 200px;}
#home .text-container .article p {font-size: 1.25em;}

a.button, a.button:visited {display: none;}

}



@media only screen and (max-width: 600px) {

#menu .logo {left: 30px;}

}



@media only screen and (max-width: 580px) {

#home {gap: 20px;}
#home .image-container img {width: 150px;}
#home .text-container .article p {font-size: 1.0em;}

}



@media only screen and (max-width: 560px) {

.postdate-comment {visibility: visible;}

.gallery-menu {width: 90%; padding: 0 5%; margin: 0;}

.article {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;}

#kniha {width: 100%; max-width: 100%; padding: 0; margin: 20px 0; border: 0; background: none;}
#kniha .comment-smile {visibility: hidden;}
#kniha .comment-antispam {width: calc(100% - 112px);}

.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;}

.social-article {width: 90%; padding: 0 5%; margin-left: 0;}

#password-form .registrace-help {width: 95%; padding: 2%;}

#password-form .registrace-left {width: 100%;}
#password-form .registrace-left .input-cell {float: left; width: 100%;}
#password-form .registrace-left .input-cell-button .input-text {display: none;}
#password-form .registrace-left .input-text {width: 100%; padding: 0; padding-right: 0; padding-bottom: 5px; text-align: left;}
#password-form .registrace-left .input-input {width: 100%;}

.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;}

#home .image-container img {padding: 5px;}

}



@media only screen and (max-width: 460px) {

#header {height: 400px;}
#header h1, #header h2 {width: 70px; height: 70px; margin: 90px 0 0 -35px; background-size: 70px 70px;}
#header h1 a, #header h2 a {width: 70px; height: 70px;}
#header h3 {font-size: 2.0em; margin: 15px 0 0 0; line-height: 1.125em;}
#header h4 {font-size: 1.25em; margin: 15px 0 0 0;}

#home {padding: 20px 0; display: block;}
#home .image-container {text-align: center;}
#home .text-container {text-align: center; margin-top: 20px;}

}



@media only screen and (max-width: 430px) {

#kniha .comment-antispam {width: 100%;}
#kniha .comment-kod {padding: 7px 0 0 0;}

}



@media only screen and (max-width: 400px) {

.thumbnail img {border: 0;}

.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);}

#flag {right: 23px; top: 40px;}

#menu a.logo, #menu a.logo:visited {left: 20px; top: 27px; font-size: 1.5em;}

}



@media only screen and (max-width: 350px) {

#header {height: 370px;}
#header h3 {font-size: 1.75em; margin: 15px 0 0 0;}
#header h4 {font-size: 1.125em; margin: 15px 0 0 0;}

a.button-effect {font-size: 1.0em;}

}



@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;}

}