@import url('http://fonts.googleapis.com/css?family=Gabriela');

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, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  outline: none;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  text-decoration: none;
  letter-spacing:normal;
} 
html { overflow-y: scroll; }


br { display: block; line-height: 0em; } 

article, aside, details, figcaption, figure, footer, hgroup, menu, nav, section { display: block; }
ol, ul { list-style: none; }

input, textarea { 
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  outline: none;
}

blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
strong, b { font-weight: bold; }
em, i { font-style: italic; }

table { border-collapse: collapse; border-spacing: 0; }


/** page structure **/
#wrapper {
  display: block;
  max-width: auto;
  margin: 0;
}

#portfolio {
  display: block;
  margin-bottom:1.3em;

}

#portfolio li {
  display: block;
  float: left;
  width: 33%;
  margin: 0px;
  max-width: 400px;


}

#portfolio li a {
  display: block;
  padding:0px;
  margin:0px;
  background:#fef200;
  margin-right: 10px;
  margin-bottom: 10px;
  cursor: crosshair;
}

/* egna grejer jag lagt till lol */

#portfolio li a img {
  opacity: 1;
  filter: alpha(opacity=100); /* For IE8 and earlier */
  -webkit-transform: translateZ(0px); /* Chrome image jitter bug on hover */
  	-webkit-transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -ms-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;
	

}

.portfolioh2{
	float:left;
	width:100%;
	margin-top:5em;
}


/* onepage link button */
#portfolio a.info {
	background-color: black;
	position:absolute;
	z-index: 1;
	text-align:center;
	margin-left:6%;
	margin-top: 8%;
	padding:20px;
	width: auto;
	
	
	
	-ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	opacity: 0;
	-webkit-transition: all 0.1s ease-in-out;
	-moz-transition: all 0.1s ease-in-out;
	-o-transition: all 0.1s ease-in-out;
	-ms-transition: all 0.1s ease-in-out;
	transition: all 0.1s ease-in-out;
}

#portfolio li a img:hover
{
    opacity: 0.8;
    filter: alpha(opacity=80); /* For IE8 and earlier */
	  -webkit-transform: translateZ(0px);
}


/* BILDRUTORNAS TEXT ******************/
#portfolio a h1{
	color: #ffffff;
	padding: 1.2em 0 9px;;
	text-align:center;
	line-height:0.9em;
	font-size: 0.8em;
	background-color:#1c1c1a;
}

#portfolio a h1:after{
    background-color: white;
    content: '';
    display: block;
    height: 1px;
    width: 50px;
    margin: 14px auto 0;  
}

#portfolio a p{
color: #ffffff;
padding: 0.2em 0 1.4em;
text-align:center;
line-height:0.9em;
font-size: 0.65em;
background-color:#1c1c1a;
}

/* egna grejer jag lagt till lol SLUT SLUT SLUT SLUT SLUT SLUT SLUT  */



.mfp-title {
  font-size: 1.2em;
  color: #ddd !important;
  font-weight: 700;
}

/** clearfix **/
.clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; }
.clearfix { display: inline-block; }
 
html[xmlns] .clearfix { display: block; }
* html .clearfix { height: 1%; }


/** media queries **/
@media screen and (max-width: 780px) {
  #portfolio li {
    width: 45%;
  }
}

@media screen and (max-width: 550px) {
  #portfolio { 
    text-align: center;
  }
  
  #portfolio li {
    float: none;
    display: inline-block;
    width: 80%;
    margin-bottom: 20px;
  }
}

#portfolio img { 
	border: 0; 
	max-width: 100%; 
	display:block;
}