/* 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;}

}



@media only screen and (max-width: 1650px) {

#content-home #blog {margin-top: 250px; max-width: calc(100% - 68px);}

#content-search {margin-top: 50px;}

#kontakty {margin-top: 50px;}

#content-article-parallax .article-no-parallax {margin-top: 250px;}

#content-page {padding-top: 250px;}

}



@media only screen and (max-width: 1320px) {

#menu .nav-collapse ul li a {margin-right: 15px;}

}



@media only screen and (max-width: 1260px) {

#content-home #latest-blog {max-width: calc(100% - 68px);}

#content-search {max-width: calc(100% - 48px); margin-left: 24px;}

#kontakty {max-width: calc(100% - 48px); margin-left: 24px;}

}



@media only screen and (max-width: 1220px) {

#container {width: 100%;}

.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%;}

#content-article #gallery .thumbnail {width: 32%; margin: 0 2% 2% 0;}
#content-article #gallery .thumbnail:nth-child(1n) {margin-right: 2%;}
#content-article #gallery .thumbnail:nth-child(3n) {margin-right: 0;}

#content-article-parallax #gallery .thumbnail {width: 32%; margin: 0 2% 2% 0;}
#content-article-parallax #gallery .thumbnail:nth-child(1n) {margin-right: 2%;}
#content-article-parallax #gallery .thumbnail:nth-child(3n) {margin-right: 0;}

}



@media only screen and (max-width: 1160px) {

#menu .nav-collapse ul li {font-size: 0.75em;}
#menu .nav-collapse ul li li {font-size: 0.875em;}
#menu .nav-collapse ul li a {margin-right: 15px;}

}



@media only screen and (max-width: 1090px) {

#image .prev {height: calc(100% - 31px);}
#image .next {height: calc(100% - 31px);}

.reference-odkazy a, .reference-odkazy a:visited {width: 25%; height: 200px;}
.reference-odkazy a img {max-width: 100px; max-height: 100px;}

}



@media only screen and (max-width: 1050px) {

.openBtn {right: calc(2% + 6px); top: 100px; z-index: 50;}

}



@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;}

#content-home #latest .thumbnail {width: 32%; margin: 0 2% 2% 0;}
#content-home #latest .thumbnail:nth-child(1n) {margin-right: 2%;}
#content-home #latest .thumbnail:nth-child(3n) {margin-right: 0;}

#content-article #gallery .thumbnail {width: 49%; margin: 0 2% 2% 0;}
#content-article #gallery .thumbnail:nth-child(1n) {margin-right: 2%;}
#content-article #gallery .thumbnail:nth-child(2n) {margin-right: 0;}

}



@media only screen and (max-width: 890px) {

#formular form .input-input {height: auto; margin-bottom: 10px;}
#formular form .input-antispam input.field {width: calc(100% - 8px);}

#kontakt {width: 90%; float: left; margin: 200px 5% 0;}
#kontakt .article {padding: 0;}

#formular {width: 80%; float: left; margin: 0 5%; padding: 5%;}
#formular form {padding-left: 0;}
#formular form .input-cell {height: 40px;}
#formular form .input-text {width: 100%; text-align: left; padding-right: 0;}
#formular form .input-input {width: 100%;}
#formular form .input-textarea {height: auto; float: left;}
#formular form .input-textarea .input-input {height: auto; float: left;}
#formular form .input-button {height: 50px; margin-top: 10px; float: left;} 
#formular form .input-button .input-text {height: 0;}

#formular form .input-input {margin-bottom: 0;}
#formular form .input-antispam input.field {width: calc(100% - 113px);}

}



@media only screen and (max-width: 830px) {

.blog {margin: 0 34px 50px 0; width: calc(50% - 17px); float: left;}
.blog:nth-child(3n) {margin-right: 34px;}
.blog:nth-child(2n) {margin-right: 0;}

.reference-odkazy a, .reference-odkazy a:visited {width: 33.3%; height: 130px;}
.reference-odkazy a img {max-width: 100px; max-height: 100px;}

}



@media only screen and (max-width: 770px) {

#footer {width: 96%; padding: 20px 2%; text-align: center; height: auto;}

.overlay input[type=text] {width: calc(70% - 30px);}
.overlay button {width: calc(30% - 30px);}

.parallax-window .parallax-window-child h2 {font-size: 3.0em;}

.parallax-window-article .parallax-window-child {top: 250px;}
.parallax-window-article .parallax-window-child h1 {font-size: 3.0em;}

}



@media only screen and (max-width: 680px) {

#kontakt {margin: 130px 5% 0;}

#content-article {width: 90%; float: left; margin-left: 5%;}

#image .prev {top: 100px; height: calc(100% - 100px);}
#image .next {top: 100px; height: calc(100% - 100px);}

h1.header, h2.header {width: 110px; height: 110px; left: 36px; top: 35px; background-size: 110px 110px;}
h1.headerb, h2.headerb {left: 30px; top: 27px; background-size: 110px 110px;}
h1.header a, h2.header a {width: 110px; height: 110px;}

#content-home #blog {margin-top: 200px;}
#content-search {margin-top: 0px;}
#content-page {padding-top: 200px;}

.headline h2 {font-size: 3.5em;}
.headline h3 {font-size: 1.75em;}

}



@media only screen and (max-width: 660px) {

.article .article-column-2 {column-count: 1;}
.article .article-column-3 {column-count: 1;}
.article .article-column-4 {column-count: 1;}

}



@media only screen and (max-width: 560px) {

.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: 460px) {

.blog {margin: 0 0 50px 0; width: 100%;}
.blog:nth-child(3n) {margin-right: 0;}
.blog:nth-child(2n) {margin-right: 0;}

.headline h2 {font-size: 2.5em;}
.headline h3 {font-size: 1.75em;}

}



@media only screen and (max-width: 430px) {

.openBtn {top: 82px;}

.parallax-window .parallax-window-child h2 {font-size: 2.0em;}

.parallax-window-article .parallax-window-child {top: 200px;}
.parallax-window-article .parallax-window-child h1 {font-size: 2.0em;}

.reference-odkazy a, .reference-odkazy a:visited {width: 50%; height: 130px;}
.reference-odkazy a img {max-width: 100px; max-height: 100px;}

}



@media only screen and (max-width: 400px) {

.thumbnail img {border: 0;}

}