/*
Theme Name: Palascak theme
Author: Exarion
Description: Vlastni tema
Version: 0.0.1
Tags: palascak
*/

/* CSS reset */
html, body, div, span, applet, object, iframe,
 h1, h2, h3, h4, h5, h6, p, blockquote, pre,
 a, abbr, acronym, address, big, cite, code,
 del, dfn, em, font, img, ins, kbd, q, s, samp,
 small, strike, strong, tt, var,
 dl, dt, dd, ol, ul, li,
 fieldset, form, label, legend,
 table, caption, tbody, tfoot, thead, tr, th, td {
       margin: 0;
       padding: 0;
       border: 0;
       outline: 0;
       font-weight: inherit;
       font-style: inherit;
       font-size: 100%;
       font-family: inherit;
       vertical-align: baseline; }       

*:focus, *:active {outline: 0;}     
*, *:before, *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;}

.clearfix { zoom: 1; }
.clearfix:before, .clearfix:after {content: ""; display: table;}
.clearfix:after {clear: both;}

/* Vlastni kod */

body, html {
  font: 400 16px/1 Arial, "Helvetica Neue", Helvetica, sans-serif;
  background: #fff;
  color: #111;
	margin: 0px;
	padding: 0px;
	text-align: center;
  -webkit-font-smoothing: antialiased;
	width: 100%;
	height: 100%;}
  
a:link, a:visited, a:active {
	color: #333;
	text-decoration: none;
  outline: 0;
  -webkit-transition: 0.3s ease;
	transition: 0.3s ease;}

a:hover {
	color: #666;
	text-decoration: none;
  outline: 0;}
  
b, strong {font-weight: bold;}

.hidden{
	visibility: hidden;
    width: 0;
    height: 0;
    overflow: hidden;}

/* zahlavi */
  
#zahlavi {
    width: 100%;
    position: fixed;
    top: 0; left: 0;
    background: #fff;
    text-align: center;
    z-index: 5;} 
    
#zahlavi .in {
    width: auto;
    margin: 0 auto;
    padding: 10px 80px;
    text-align: left;}        

h1 {
  font: 18px/1.3 Arial, sans-serif;
  display: block;}

#titulek {
  margin: 5px auto 0;
  display: inline-block;
  font: bold 18px/1.3 Arial, "Helvetica Neue", Helvetica, sans-serif;
  float: left;}
  
/* menu */

a#pull {display: none;} 

#menu {
  float: right;
  padding: 0;
  margin: 0;}

#menu ul {
	float: right;
	width: auto;}

#menu ul li {display: inline-block; float: left; position: relative;}
  
#menu ul li a {
	padding: 0;
	margin: 0 0 0 30px;
	display: block;
	text-decoration: none;
  color: #111;
  font: normal 15px/30px Arial, "Helvetica Neue", Helvetica, sans-serif;
  -webkit-transition: all 0.2s linear;
  transition: all 0.2s linear;}  

#menu ul li a:hover {color: #666; background: transparent; text-decoration: none;}
  
/* hlavni cast webu */

.sekce {
    width: 100%;
    padding: 0 40px;
    text-align: left;
    margin: 50px auto 0;}

.sekce.detail {max-width: 760px; padding: 20px 0 0;}

.sekce.detail .in {}

.sekce.detail img {width: 100%; height: auto; max-width: 100%; margin: 0 auto 20px;}
/*.sekce.detail img.size-full {width: auto; height: auto; max-width: 100%; margin: 0 auto 20px;}*/

.sekce.detail p {font: 15px/1.3 Arial, "Helvetica Neue", Helvetica, sans-serif; margin: 0 auto 20px;}

.sekce.detail h1 {font: bold 18px/1.3 Arial, "Helvetica Neue", Helvetica, sans-serif; margin: 0 auto 20px;}

/* nahledy praci */

.grid {}
.grid:after {
  content: '';
  display: block;
  clear: both;}
.grid-sizer, .grid-item {width: 20%;}
.grid-item {float: left; position: relative;}

.nahled {
  width: auto;
  padding: 40px;
  margin: 0;
  text-align: left;
  position: relative;}
   
.nahled img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  z-index: 1;
  -webkit-transition: filter .2s ease-in-out;
  transition: filter .2s ease-in-out;
   -webkit-filter: grayscale(0%); 
	filter: grayscale(0%);} 
  
.nahled:hover img {  
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);}
  
.nahled span {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid rgba(0,0,0,0.4);
  z-index: 2;
  opacity: 0;
  filter: alpha(opacity = 0);}
  
.nahled:hover span {    
  opacity: 1;
  filter: alpha(opacity = 100);}
  
.nahled a {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0px; right: 0px; bottom: 0px;
  z-index: 5;}
  
.nahled h1 {
  font: bold 16px/1.3 Arial, "Helvetica Neue", Helvetica, sans-serif; 
  color: #111;
  margin: 15px auto 5px;
  width: auto;
  -webkit-transition: all 0.2s linear;
  transition: all 0.2s linear;}
  
.nahled:hover h1 {
  color: #666;
  text-decoration: underline;}  
  
.nahled p {
  color: #666;
  font: normal 13px/1.3 Arial, "Helvetica Neue", Helvetica, sans-serif; }
  
/*! Gray v1.5.0 (https://github.com/karlhorky/gray) | MIT */
.grayscale {
  /* Firefox 10-34 */
  filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='saturate' values='0'/></filter></svg>#grayscale");


  /*
    Chrome 19+,
    Safari 6+,
    Safari 6+ iOS,
    Opera 15+
  */
  -webkit-filter: grayscale(1);

  /* Firefox 35+ */
  filter: grayscale(1);

  /* IE 6-9 */
  filter: gray;
}

.grayscale.grayscale-fade {
  transition: filter .2s;
}

/* Webkit hack until filter is unprefixed */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .grayscale.grayscale-fade {
    -webkit-transition: -webkit-filter .2s;
    transition:         -webkit-filter .2s;
  }
}

.grayscale.grayscale-off,
.grayscale.grayscale-fade:hover {
  -webkit-filter: grayscale(0);
  filter:         grayscale(0);
}

/* Background element */
.grayscale.grayscale-replaced {
  -webkit-filter: none;
  filter:         none;
}

.grayscale.grayscale-replaced > svg {
  -webkit-transition: opacity .2s ease;
  transition:         opacity .2s ease;
  opacity: 1;
}

.grayscale.grayscale-replaced.grayscale-off > svg,
.grayscale.grayscale-replaced.grayscale-fade:hover > svg {
  opacity: 0;
}
  
/* responsivni design */

/*@media screen and (max-width: 1040px) {
#titulek {width: calc(33.33% + 20px);}
#menu {width: calc(33.33% - 20px);}
.sekce.detail .in {padding: 0;}
.grid-sizer, .grid-item {width: 33.33%;}
} */

@media screen and (max-width: 1800px) {
.grid-sizer, .grid-item {width: 25%;}
} 

@media screen and (max-width: 1300px) {
.grid-sizer, .grid-item {width: 33.33%;}
} 

@media screen and (max-width: 1040px) {
#zahlavi .in {padding: 10px 60px;} 
.nahled {padding: 30px;}
.sekce {padding: 0 30px;}
} 

@media screen and (max-width: 960px) {
.grid-sizer, .grid-item {width: 50%;}
} 

@media screen and (max-width: 880px) {
.sekce.detail {width: auto; max-width: 100%; padding: 20px 60px 0; margin: 50px auto 0;}
} 

@media screen and (max-width: 760px) {
#zahlavi .in {padding: 10px 40px;} 
.nahled {padding: 20px;}
.sekce {padding: 0 20px;}
.sekce.detail {padding: 20px 40px 0;}
} 

@media screen and (max-width: 480px) {
.grid-sizer, .grid-item {width: 100%;} 
} 

@media screen and (max-width: 420px) {
#zahlavi .in {padding: 10px 30px;} 
.nahled {padding: 15px;}
.sekce {padding: 0 15px; margin: 55px auto 0;}
.sekce.detail {padding: 20px 30px 0; margin: 55px auto 0;}
#menu ul li a {padding: 0; margin: 2px 15px 0 0;} 
#menu ul li:last-of-type a {margin: 2px 0 0 0;} 
}