/*
Theme Name: Miriam Barrio
Author: Jonás Zamora
Author URI: http://jonaszamora.com
Text Domain: miriambarrio
*/


/* @group Reset */
/* 
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com 
Twitter: @rich_clark

More info: http://html5doctor.com/html-5-reset-stylesheet/
*/



html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
	margin:0;
	padding:0;
	border:0;
	outline:0;
	font-size:100%;
	vertical-align:baseline;
	background:transparent;
}

body {
	line-height:1;
}

article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section { 
	display:block;
}

nav ul {
	list-style:none;
}

blockquote, q {
	quotes:none;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content:'';
	content:none;
}

a {
	margin:0;
	padding:0;
	font-size:100%;
	vertical-align:baseline;
	background:transparent;
}

/* change colours to suit your needs */
ins {
	background-color:#ff9;
	color:#000;
	text-decoration:none;
}

/* change colours to suit your needs */
mark {
	background-color:#ff9;
	color:#000; 
	font-style:italic;
	font-weight:bold;
}

del {
	text-decoration: line-through;
}

abbr[title], dfn[title] {
	border-bottom:1px dotted;
	cursor:help;
}

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

/* change border colour to suit your needs */
hr {
	display:block;
	height:1px;
	border:0;   
	border-top:1px solid #000;
	margin:1em 0;
	padding:0;
}

input, select {
	vertical-align:middle;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: normal;
}
/* @end */


/* START: Global tags */
html {
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	height:100%;
}


body {
	font-family: Karla, sans-serif;
	color: black;
	font-size: 14px;
	line-height: 18px;
	height: 100%;
}

p {
	margin-bottom: 18px;
}

.hTitle, #main h1 {
	text-transform: uppercase;
	letter-spacing: 2px;
	text-decoration: none;
	display: block;
}

* {
	margin: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

a, a:hover, a:link {
	color: black;
	transition: all .4s ease;
	-webkit-transition: all .4s ease;
	-moz-transition: all .4s ease;
	-o-transition: all .4s ease;
}


#main {
	padding-top: 120px;
	margin-bottom: -30px;
	min-height: 100%;
}

.container {
	width: 90%;
	margin: 0 auto;
	clear: both;
	max-width: 1024px;
	overflow: hidden;
}


/* HEADER */
header {
	width: 100%;
	height: 120px;
	background: white;
	position: fixed;
	z-index: 10;
	top: 0px;
	overflow: hidden;
	transition: all .4s ease;
	-webkit-transition: all .4s ease;
	-moz-transition: all .4s ease;
	-o-transition: all .4s ease;
}

header.sticky {
	height: 60px;
}

header nav {
	display: block;
	margin: 0 auto;
	position: relative;
	margin-top: 20px;
}

header nav ul {
	text-align: center;
}

header nav ul li {
	display: inline-block;
	margin: 0 13px;
}

header nav ul li a {
	text-decoration: none;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-size: 11px;
	line-height: 11px;
}

header nav ul li.current-menu-item a, .single-project header nav ul li.projectMenu a, .single-post header nav ul li.blogMenu a {
	text-decoration: underline;
}

header nav ul li a:hover {
    text-decoration: line-through;
}

#mobileHeader {
	display: none;
}

header h1, div.logo {
	margin: 30px auto;
	display: block;
	width: 200px;
	height: 18.7px;
}

header h1 a, div.logo a {
	display: block;
	position: relative;
	text-indent: -9999px;
	background-image: url(images/logo.png);
	background-size: 100%;
	background-repeat: no-repeat;
	width: 200px;
	height: 18.7px;
}

header h1 a:hover, div.logo a:hover {
	background-image: url(images/logo2.png);
}

#socialIcons {
	float: left;
	left: 20px;
	list-style: none;
	position: absolute;
	top: 20px;
}

#socialIcons li {
	float: left;
	margin-right: 5px;
}

#socialIcons li a {
	width: 16px;
	height: 16px;
	display: block;
	float: left;
	background-size: 16px;
	position: relative;
	top: 0px;
	transition: all .2s ease;
	-webkit-transition: all .2s ease;
	-moz-transition: all .2s ease;
	-o-transition: all .2s ease;
}

#socialIcons li a:hover {
	top: -3px;
}

#socialIcons li a.fb {
	background-image: url(images/facebook.png);
} 

#socialIcons li a.pi {
	background-image: url(images/pinterest.png);
} 

#socialIcons li a.in {
	background-image: url(images/instagram.png);
}

div.language {
	float: right;
	position: fixed;
	z-index: 11;
	right: 20px;
	top: 13px;
}

#lang_sel {
	font-family: 'Karla', sans-serif !important;
}

#lang_sel ul ul {
	border: 0;
}

#lang_sel  a {
	padding: 5px !important;
}

#lang_sel a.lang_sel_sel, #lang_sel ul ul a {
	border: 0;
	color: black !important;
	color: black !important;
}

#lang_sel a:hover, #lang_sel ul ul a:hover, #lang_sel :hover > a, #lang_sel ul ul :hover > a {
	background: transparent;
	text-decoration: line-through;
}

#lang_sel li {
	width: auto;
}

#lang_sel a.lang_sel_sel {
	background: transparent;
	border: 0;
}

header div.language #lang_sel_list a {
	letter-spacing: 2px;
	text-transform: uppercase;
	font-size: 11px;
	line-height: 11px;
	font-family: 'Karla', sans-serif !important;
	margin-left: 10px !important;
	background: none !important;
}

header div.language #lang_sel_list a.lang_sel_sel {
	text-decoration: underline !important;
}

/* HOME */
#slider {
	width: 100%;
	overflow: hidden;
	clear: both;
	float: left;
	position: relative;
}

#slider .slides {
	width: 100%;
}

#slider .slides li, #slider .slides li img {
	width: 100%;
	float: left;
}

.flex-control-nav.flex-control-paging {
	position: absolute;
	bottom: 10px;
	text-align: center;
	width: 100%;
	z-index: 10;
}

.flex-control-nav.flex-control-paging li {
	display: inline-block;
	margin: 0 8px;
}

.flex-control-nav.flex-control-paging li a {
	text-indent: -99999px;
	border: 1px solid #ffffff;
	display: block;
	width: 8px;
	height: 8px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	cursor: pointer;
}

.flex-control-nav.flex-control-paging li a.flex-active, 
.flex-control-nav.flex-control-paging li a:hover {
	background: #ffffff;
}

#featuredProjects {
	padding-top: 35px;
}

.flex-direction-nav {
	list-style: none;
	width: 100%;
	padding: 0 25px;
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-o-transform: translateY(-50%);
}

.flex-direction-nav li a {
	color: transparent;
	display: block;
	color: transparent;
	width: 26px;
	height: 36px;
	background-repeat: no-repeat !important;
	background-size: contain !important;
}

.flex-direction-nav li.flex-nav-prev {
	float: left;
}

.flex-direction-nav li.flex-nav-next {
	float: right;
}

.flex-direction-nav li.flex-nav-prev a {
	background: url('images/left.png');
}

.flex-direction-nav li.flex-nav-next a {
	background: url('images/right.png');
}

/* BLOG */
.postBlock {
	float: left;
	margin-right: 3.5%;
	margin-bottom: 35px;
	width: 31%;
	cursor: pointer;
	text-align: center;
	position: relative;
}

.postBlock:nth-child(3n) {
	margin-right: 0px;
}

.postBlock:nth-child(3n+1) {
	clear: both;
}

.postBlock .image {
	width: 100%;
	position: relative;
}

.postBlock .image img {
	width: 100%;
	display: block;
}

.postBlock .description {
	text-align: left;
	margin-top: 10px;
	clear: both;
}

.imageOverlay {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0px;
	opacity: 0;
	display: block;
	color: black;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.8);
	z-index: 2;
	padding: 30px;
	transition: all .4s ease;
	-webkit-transition: all .4s ease;
	-moz-transition: all .4s ease;
	-o-transition: all .4s ease;
}

.postBlock:hover .imageOverlay {
	opacity: 1;
}

.imageOverlay span {
	top: 45%;
	position: relative;
}

.overlayBorder {
	position: absolute;
	top: 10px;
	left: 10px;
	width: -moz-calc(100% - 20px);
	width: -webkit-calc(100% - 20px);
	width: calc(100% - 20px);
	height: -moz-calc(100% - 20px);
	height: -webkit-calc(100% - 20px);
	height: calc(100% - 20px);
	border: 1px solid black;
}


/* SINGLE */
#post {
	position: relative;
}

#post img {
	width: 100%;
	height: auto;
	display: block;
	margin-bottom: 30px;
	clear: both;
}

#post .hTitle {
	text-align: center;
}

.innerPost {
	float: left;
	margin-left: 13%;
	width: 74%;
	padding: 0 2%;
}

#post .text {
	clear: both;
	margin-top: 24px;
}

.previousPost, .nextPost {
	position: absolute;
	width: 13%;
	float: left;
	background-size: 6px;
	background-repeat: no-repeat;
	text-decoration: none;
	font-family: Times, serif;
    font-style: italic;
}

.previousPost {
	left: 0px;
	padding-left: 40px;
	background-image: url(images/left.png);
	background-position: left center;
}

.nextPost {
	float: right;
	right: 0px;
	padding-right: 40px;
	background-image: url(images/right.png);
	background-position: right center;
	text-align: right;
}


/* PROJECTS */
#projects .postBlock h2, #featuredProjects .postBlock h2 {
	color: white;
	top: -50%;
	position: absolute;
	text-align: center;
	margin: 0 auto;
	width: 100%;
	left: 0;
	transition: all .4s ease;
	-webkit-transition: all .4s ease;
	-moz-transition: all .4s ease;
	-o-transition: all .4s ease;
	pointer-events: none;
}

#projects .postBlock:hover h2, #featuredProjects .postBlock:hover h2 {
	top: 42%;
	pointer-events: visible;
}

#projects .postBlock h2 a, #featuredProjects .postBlock h2 a {
	color: black;
}

#projects .postBlock hr, #featuredProjects .postBlock hr {
	width: 50px;
	display: block;
	clear: both;
	margin: 10px auto;
	top: 48%;
	left: 0px;
	right: 0px;
	position: absolute;
	border-color: black;
}

.postBlock span.category {
	color: black;
	top: 154%;
	position: absolute;
	left: 0;
	width: 100%;
	transition: all .4s ease;
	-webkit-transition: all .4s ease;
	-moz-transition: all .4s ease;
	-o-transition: all .4s ease;
	pointer-events: none;
}

#projects .postBlock:hover span.category, #featuredProjects .postBlock:hover span.category {
	top: 54%;
	pointer-events: visible;
}


.projectInfo figure {
	float: left;
	width: -moz-calc(50% - 12px);
	width: -webkit-calc(50% - 12px);
	width: calc(50% - 12px);
	margin-right: 24px;
	position: relative;
}

.projectInfo figure img {
	width: 100%;
	display: block;
}

.projectInfo figure > a:first-child {
	position: absolute;
	top: 10px;
	left: 10px;
	opacity: 0;
}

.projectInfo figure:hover > a:first-child {
	opacity: 1;
}

.projectInfo .projectText {
	float: left;
	width: -moz-calc(50% - 12px);
	width: -webkit-calc(50% - 12px);
	width: calc(50% - 12px);
}

.projectInfo .projectText h2, .categoryLink {
	font-family: Times, serif;
	font-style: italic;
	text-decoration: underline;
	margin: 0px 0px 10px 0px;
}

.categoryLink {
	margin: 20px 0;
	clear: both;
	display: block;
}

.projectInfo .projectText .content {
	width: 100%;
	float: left;
	font-size: 13px;
	line-height: 17px;
}

.projectInfo .projectText .fields {
	float: left;
	width: 100%;
	clear: both;
}

.projectInfo .projectText .fields table {
	width: 48%;
	margin-right: 4%;
	float: left;
}

.projectInfo .projectText .fields table.right {
	margin-right: 0;
}

.projectInfo .projectText .fields tr td {
	height: 24px;
	font-size: 11px;
	border-top: 1px solid black;
}

.projectInfo .projectText .fields tr:last-child td {
	border-bottom: 1px solid black;
}

.projectGallery {
	list-style: none;
	clear: both;
	float: left;
	width: 100%;
	margin-top: 30px;
	overflow: hidden;
}

.projectGallery li {
	float: left;
	width: -moz-calc(25% - 18px);
	width: -webkit-calc(25% - 18px);
	width: calc(25% - 18px);
	margin-bottom: 24px;
	margin-right: 24px;
	position: relative;
}

.projectGallery li .swipebox {
	display: block;
}

.single .projectGallery li > a:first-child {
	opacity: 0;
	position: absolute;
	top: 10px;
	left: 10px;
}

.single .projectGallery li:hover > a:first-child {
	opacity: 1;
}

.projectGallery li img {
	width: 100%;
}

.projectGallery li:nth-child(4n) {
	margin-right: 0;
}

.projectGallery li:nth-child(4n+1) {
	clear: both;
}

#project .projectInfo figure span, .projectGallery li span {
	position: absolute;
	top: 20px;
	left: 20px;
	display: none;
}

#project .projectInfo figure:hover span, .projectGallery li:hover span {
	display: inherit;
}

#pinThese {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	opacity: 0;
}

.projectInfo figure:hover #pinThese {
	opacity: 1;
}

#pinThese img {
	width: 24px !important;
}


/* PRESS */
#press .projectGallery {
	margin-top: 0;
}

#press {
	text-align: center;
}

#press h2 {
	text-transform: uppercase;
	letter-spacing: 2px;
}

#press h3 {
	font-family: Times, serif;
    font-style: italic;
}

.pressGallery {
	display: none;
}

/* CONTACT */
#contact {
	margin-top: 20px;
}

#contact figure {
	width: 100%;
	margin: 30px auto;
	max-width: 600px;
}

#contact figure img {
	width: 100%;
	display: block;
}

#contact address {
	font-style: normal;
	text-align: center;
}

#contact h1 {
	text-align: center;
	margin-bottom: 10px;
}

/* FOOTER */
footer {
	height: 30px;
	font-size: 12px;
	line-height: 30px;
}

#main:after {
	content: "";
	display: block;
	height: 30px;
}

footer span {
	float: right;
	text-align: right;
}


/* ABOUT */
.about figure {
	width: 100%;
}

.about figure img {
	width: 100%;
	display: block;
}

.about .hTitle {
	text-align: center;
	margin: 35px auto;
	max-width: 860px;
}

.about .twoColumns {
	-webkit-column-count: 2; /* Chrome, Safari, Opera */
    -moz-column-count: 2; /* Firefox */
    column-count: 2;
     -webkit-column-gap: 40px; /* Chrome, Safari, Opera */
    -moz-column-gap: 40px; /* Firefox */
    column-gap: 40px;
}

.about .column {
	float: left;
	width: -moz-calc(33.3% - 20px);
	width: -webkit-calc(33.3% - 20px);
	width: calc(33.3% - 20px);
	margin-right: 20px;
}

.about .column h3 {
	text-align: center;
	margin: 20px auto;
}

.about .lastText {
	max-width: 860px;
	text-align: center;
	margin: 0 auto 80px;
}

/* OVERLAY */
#swipebox-overlay {
	background: rgba(255, 255, 255, 0.8) !important;
}

#swipebox-close, #swipebox-next, #swipebox-prev {
	background-image: url(img/icons.png) !important;
}

#swipebox-overlay #swipebox-bottom-bar, #swipebox-overlay #swipebox-top-bar {
	text-shadow: none !important;
    background: #fff !important;
    color: black !important;
    text-transform: uppercase;
	letter-spacing: 2px;
	text-decoration: none;
	display: block;
	font-family: Karla, sans-serif !important;
}

.wpml-ls-legacy-dropdown {
	width: 60px;
}

.wpml-ls-statics-shortcode_actions,
.wpml-ls-statics-shortcode_actions a {
	background-color: transparent;
}

@media only screen and (max-width: 960px) {
	.previousPost {
		padding-left: 20px;
	}

	.nextPost {
		padding-right: 20px;
	}

	.projectInfo .projectText .content {
		width: 100%;
	}

	.projectInfo .projectText .fields {
		width: 100%;
		clear: both;
	}

	.projectInfo .projectText .fields tr td:first-child {
		text-align: left;
	}
}

@media only screen and (max-width: 768px) {
	
	.toggleMenu {
		position: fixed;
		display:  block;
		width: 30px;
		height: 30px;
		top: 20px;
		right: 5%;
		z-index: 9999;
	}

	.toggleMenu span {
		margin: 0 auto;
		position: relative;
		top: 10px;
	}

	.toggleMenu span:before, .toggleMenu span:after {
		position: absolute;
		content: '';
	}

	.toggleMenu span, .toggleMenu span:before, .toggleMenu span:after {
		width: 24px;
		height: 2px;
		background-color: #000;
		display: block;
	}

	.toggleMenu span:before {
		margin-top: -8px;
	}

	.toggleMenu span:after {
		margin-top: 8px;
	}

	.toggleMenu span {
		-webkit-transition-duration: 0s;
		-webkit-transition-delay: .05s;
	}
	.toggleMenu.active span {
		background-color: rgba(0,0,0,0.0);
		-webkit-transition-delay: .1s;
	}
	.toggleMenu span:before {
		-webkit-transition-property: margin, -webkit-transform;
		-webkit-transition-duration: .1s;
		-webkit-transition-delay: .1s, 0;
	}
	.toggleMenu.active span:before {
		margin-top: 0;
		-webkit-transform: rotate(45deg);
		-webkit-transition-delay: 0, .1s;
	}
	.toggleMenu span:after {
		-webkit-transition-property: margin, -webkit-transform;
		-webkit-transition-duration: .1s;
		-webkit-transition-delay: .1s, 0;
	}
	.toggleMenu.active span:after {
		margin-top: 0;
		-webkit-transform: rotate(-45deg);
		-webkit-transition-delay: 0, .1s;
	}

	#mobileHeader {
		background: rgba(255,255,255, 0.95);
		display: block;
		position: fixed;
		width: 100%;
		height: 70px;
	}

	#socialIcons {
		left: 4%;
	}
	
	header {
		position: fixed;
		top: 70px;
		left: -100%;
		z-index: 999;
		width: 100%;
		height: 100%;
		opacity: 0;
		background: rgba(255,255,255, 0.95);
		transition: all .4s ease;
		-webkit-transition: all .4s ease;
		-moz-transition: all .4s ease;
		-o-transition: all .4s ease;
	}

	header.active {
		opacity: 1;
		left: 0;
	}

	#main {
		padding-top: 70px;
	}

	header h1, div.logo {
		display: none;
	}

	#mobileTitle {
		position: fixed;
		z-index: 9999;
		top: 22px;
		margin: 0;
		left: 5%;
		display: block;
	}

	header nav ul {
		text-align: left;
	}

	header nav ul li {
		float: left;
		clear: both;
		margin: 0;
		margin-bottom: 20px;
	}

	#headerContainer {
		margin-top: 40px;
	}

	div.language {
		position: relative;
		margin-top: 10px;
		clear: both;
		left: 4%;
		clear: both;
		width: 100%;
	}

	.postBlock, .projectGallery li {
		width: 48%;
		margin-bottom: 30px;
		margin-right: 4% !important;
		clear: none !important;
	}

	.postBlock:nth-child(even), .projectGallery li:nth-child(even) {
		margin-right: 0 !important;
	}

	.projectGallery li:nth-child(odd) {
		clear: both !important;
	}

	.previousPost {
		text-indent: -9999px;
	}

	.nextPost {
		text-indent: 9999px;
	}

	.projectInfo figure {
		width: 80%;
		margin: 0 auto;
		display: block;
		float: none;
	}

	.projectInfo .projectText  {
		width: 100%;
		margin-top: 40px;
	}

	.about .column {
		float: left;
		width: 100%;
		margin-right: 0px;
		margin-bottom: 40px;
	}

	.about .twoColumns {
		-webkit-column-count: 1; /* Chrome, Safari, Opera */
		-moz-column-count: 1; /* Firefox */
		column-count: 1;
	}

	.about p, .about .text {
		text-align: center !important;
	}

}

@media only screen and (max-width: 550px) {
	#slider {
		display: none;
	}
	
	.projectInfo figure {
		width: 100%;
	}
	
	.postBlock, .projectGallery li {
		width: 100%;
		margin-right: 0;
	}

	.postBlock .imageOverlay {
		position: relative;
		width: 100%;
		left: 0;
		top: 0;
		margin-top: 20px;
		opacity: 1;
		padding: 0 0 30px;
	}

	.overlayBorder, .postBlock .imageOverlay hr {
		display: none !important;
	}

	#projects .postBlock h2, #featuredProjects .postBlock h2,
	.postBlock span.category {
		top: 0 !important;
		position: relative;
	}

	#minilogo {
		float: left;
	}

	.projectInfo .projectText .fields table {
		width: 100%;
		margin-right: 0;
	}

	.projectInfo .projectText .fields table td {
		width: 50%;
	}

	.projectInfo .projectText .fields table.right tr:first-child td {
		border-top: 0;
	}

	footer span {
		text-align: left;
		float: left;
		clear: both;
	}
}