/* 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: 1320px) {

#container {width: 100%;}
#content {width: 94%; margin: 0 auto; float: none;}

#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%;}

#socialmenu {left: auto; right: 88px; margin: 0;}

}



@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;}

}



@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: 900px) {

#header {
  width: 100%;
  height: 250px;
  background: none;
  overflow: hidden;
}

#antracit #header h1, #antracit #header h2 {
  position: relative;
  z-index: 10;
  top: 50px;
  left: 0;
  margin: 0 auto;
  width: 80%;
  height: auto;
  aspect-ratio: 900 / 118; /* zachová poměr stran loga */
  background: url("../images/h1-antracit.jpg") no-repeat center center;
  background-size: contain;
}

#header h1 a, #header h2 a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

#header h1 a span, #header h2 a span {
  visibility: hidden;
}

#flag {top: 190px;}

}



@media only screen and (max-width: 860px) {

#kontakt {width: 100%; margin: 0;}
#kontakt .article {padding: 0;}

#formular {width: 100%; float: left; margin: 0;}

}



@media only screen and (max-width: 800px) {

#header {height: 200px;}

#flag {top: 160px;}

}



@media only screen and (max-width: 770px) {

#header {}

#content {}
#sidebar {}

#footer {width: 96%; padding: 20px 2%;}

#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: 630px) {

}



@media only screen and (max-width: 560px) {

.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%;}

#flag {top: 150px;}

#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;}

}



@media only screen and (max-width: 500px) {

.article p {font-size: 1.25em; text-align: left;}

}



@media only screen and (max-width: 400px) {

.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);}

#flag {top: 140px;}

}



@media only screen and (max-width: 380px) {


}



@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;}

}