/*
Theme Name: Jaakko Veijola 1.1
Author: Emerca / Karlo Koskitanner (edit by TT)
Author URI: http://www.emerca.net/
-------------------------------------------------------------- */

/* @group RESET
-------------------------------------------------------------------------------*/
/* 
green 91c6c7
dark 36393f
 */
body {
    font-size: 1em;
    line-height: 1.4;
    height: 100%;
    position:relative;
}
hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}
img {
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}
@media \0screen {
  img { 
  	width: auto; /* for ie 8 */
  }
}
fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}
textarea {
    resize: vertical;
}
.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}
.clr {
	clear: both;
}
html {
	height: 100%;

}
ul {
	list-style-type: none;
	margin-left: 0;
	padding-left: 0;
}
p, li, span, label {
	font-size: 14px;
}
/* @end */

/* @license
 * MyFonts Webfont Build ID 2642793, 2013-09-13T03:46:48-0400
 * 
 * The fonts listed in this notice are subject to the End User License
 * Agreement(s) entered into by the website owner. All other parties are 
 * explicitly restricted from using the Licensed Webfonts(s).
 * 
 * You may obtain a valid license at the URLs below.
 * 
 * Webfont: Brandon Text Black by HVD Fonts
 * URL: http://www.myfonts.com/fonts/hvdfonts/brandon-text/black/
 * 
 * Webfont: Brandon Text Regular by HVD Fonts
 * URL: http://www.myfonts.com/fonts/hvdfonts/brandon-text/regular/
 * 
 * 
 * License: http://www.myfonts.com/viewlicense?type=web&buildid=2642793
 * Licensed pageviews: 10,000
 * Webfonts copyright: Copyright (c) 2012 by Hannes von Doehren. All rights reserved.
 * 
 * © 2013 MyFonts Inc
*/


/* @import must be at top of file, otherwise CSS will not work */
@import url("//hello.myfonts.net/count/285369");

  
@font-face {font-family: 'BrandonText-Black';src: url('_/webfonts/285369_0_0.eot');src: url('_/webfonts/285369_0_0.eot?#iefix') format('embedded-opentype'),url('_/webfonts/285369_0_0.woff') format('woff'),url('_/webfonts/285369_0_0.ttf') format('truetype');}
 
  
@font-face {font-family: 'BrandonText-Regular';src: url('_/webfonts/285369_1_0.eot');src: url('_/webfonts/285369_1_0.eot?#iefix') format('embedded-opentype'),url('_/webfonts/285369_1_0.woff') format('woff'),url('_/webfonts/285369_1_0.ttf') format('truetype');}
 
 
 
/* @group BASIC STYLES
-------------------------------------------------------------------------------*/


html, body, button, input, select, textarea {
    color: #222;
    font-family: BrandonText-Regular, Arial, Helvetica, sans-serif;
    font-weight: normal;
}
a, a:visited {
	color: #222;
	text-decoration: none;
	-moz-transition: color 0.2s linear;
	-webkit-transition: color 0.2s linear;
	transitition: color 0.2s linear;
}
a:hover { 
	color: #91c6c7; 
}
a:focus { 
	outline: none; 
}
h1, h2, h3, h4, h5, h6 {
 	font-family: BrandonText-Black, Arial, Helvetica, sans-serif;
	font-weight: normal;
	font-style: normal;
	text-transform: uppercase;
}
h1 {
	margin-top: 0;
	line-height: 1em;
}
h3 {
	color: #999;
}
.double-heading h1 {
	margin-bottom: 0;
}
.double-heading p, .sub-heading {
	text-transform: uppercase;
	margin-top: 0;
	letter-spacing: 3px;
}
.twocol {
	-moz-column-count:2; /* Firefox */
	-webkit-column-count:2; /* Safari and Chrome */
	column-count:2;
	-moz-column-gap:30px; /* Firefox */
	-webkit-column-gap:30px; /* Safari and Chrome */
	column-gap:30px;
}
.grey-box{
	padding: 30px;
	background: #ececec;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */
}
.col12, .col22 {
	width: 45%;
	float: left;
}
.col12 {
	margin-right: 10%;
}
.col13, .col213 {
	width: 35%;
	margin-right: 5%;
	float: left;
}
.col23, .col123 {
	width: 60%;
	float: left;
}
.col213 {
	margin-right: 0;
	margin-left: 5%;
}

.half1, .half2 {
	width: 48%;
	float: left;
}
.half1 {
	margin-right: 4%;
}
a.post-edit-link {
	display: inline-block;
	background: #951a5d;
	color: #fff;
	text-transform: uppercase;
	padding: 5px 10px;
}
.slide .button {
	display: inline-block;
	background: #333;
	color: #fff;
	text-transform: uppercase;
	padding: 5px 10px;
	width: auto;
	height: auto;
	margin-top: 20px;
}
.slide .button:hover {
	color: #fff;
}
/* @end */

/* @group CONTENT SCROLLER
-------------------------------------------------------------------------------*/

.nicescroll-rails {
	top: 0;
	left: 193px;
	}

/* @end */

/* @group CONTENT BLOCKS
-------------------------------------------------------------------------------*/
#page-wrap {
	height: 100%;
}
#header {
/*	max-width: 300px;*/
	width: 200px;
	background: #f2f2f2;
	float: left;
	height: 100%;
	position: fixed;
	overflow-y: auto;	
	
}
#logo {
	margin: 30px;
	display: block;
	width: 140px !important;
	height: 79px !important;
}
#site-name {
	display: none;
}
#site-name img {
	max-height: 30px;
}
#content-wrap {
	width: 100%;
	padding-left: 200px;
	float: left;
	margin: 0%;
	height: 100%;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */
}
#content {
	padding: 30px;
	width: 100%;
	height: 100%;
	background-repeat: no-repeat;
	background-position: 0% 50%;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */
}
.boxed /* content block if bg image is defined */ {
	background: #fff;
	max-width: 700px;
	padding: 30px;
}
#footer {
	position: fixed;
	bottom: 0px;
	left: 0px;
	background: url(_/img/footer.png) repeat-x;
	display: block;
	width: 180px;
	height: 65px;
	z-index: 8000;
}

#footer small {
	display: block;
	padding: 25px 0 30px 30px;
	}

#footer-mobile { display: none; }	
	
/* @end */
/* @group MENU
-------------------------------------------------------------------------------*/
#menu {
	position: relative;
	margin-top: 80px;
	padding-bottom: 65px;
	font-family: BrandonText-Black, Arial, Helvetica, sans-serif;
}
#menu ul {
	margin: 0;
	list-style: none;
	padding: 0;
}
#menu li a {
	text-transform: uppercase;
	color: #36393f;
	font-size: 12px;
	padding: 10px 10px 10px 30px;
	display: inline-block;
	margin: 5px 0;
}

#menu li.current-menu-item a, #menu li.current-menu-parent > a {
	background: #91c6c7;
}
#menu li a:hover  {
	color: #91c6c7;
	cursor: pointer;
}
#menu li.current-menu-item a:hover, #menu li.current-menu-parent > a:hover {
	color: #36393f;
}
#menu .current-menu-parent .current-menu-item a {

}
#menu .sub-menu {
	margin-bottom: 30px;
}
#menu .sub-menu li a {
	background: transparent;
	padding: 5px 5px 5px 30px;
	color: #6a6a69;
}

#menu .sub-menu li.current-menu-item a {
	color: #36393f;
}
#menu .sub-menu li a:hover  {
	color: #91c6c7;
	cursor: pointer;
}
#menu .sub-menu li.current-menu-item a:hover {
	color: #36393f;
}
#menu-trigger {
	position: fixed;
	bottom: 0;
	left: 0;
	line-height: ;
	font-size: 2em;
	background: #222;
	text-align: center;

	color: #fff;
	display: none;
	z-index: 999999999;
	height: 50px;
	width: 50px;
	line-height: 55px;
}
#menu-trigger:hover {
	cursor: pointer;
}
.menu-open {
	padding: 13px;
}
.menu-stripe {
	width: 100%;
	margin: 4px auto;
	border-top: 4px solid #fff;
	display: block;
}
.menu-close {
	font-size: 1em;
}
.over {
	overflow-x: hidden;
}
/* @end */
/* @group BIO
-------------------------------------------------------------------------------*/
.time-span {
	float:left;
	width:150px;
}
.event {
	float:left;
	width: 70%;

}
#bio-image {
	display: block;
	height: 600px;
}
/* @end */
/* @group MASONRY GALLERY
-------------------------------------------------------------------------------*/
.page-template-page-gallery-php #content {
	padding: 15px;
}
.work {
	float: left;
	width: 33.333333333333%;
	padding: 15px 15px 15px 15px;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */
}
@media screen and (min-width: 2200px) {
    .work {
    	width: 20%;
    }
}
@media screen and (min-width: 1500px) and (max-width: 2199px){
    .work {
    	width: 25%;
    }
}
@media screen and (min-width: 1200px) and (max-width: 1499px) {
    .work {
    	width: 33.333333333%;
    }
}
@media screen and (min-width: 701px) and (max-width: 1199px) {
    .work {
    	width: 50%;
    }
}
@media screen and (min-width: 0px) and (max-width: 700px) {
    .work {
    	width: 100%;
    }
}
.work-image {
	margin-bottom: 20px;
}
.work-titles {
	float: left;
	width: 55%;
	margin-right: 5%;
	text-transform: uppercase;
}
.work-titles h2, .work-titles p {
	margin: 0;
	line-height: 1.1em;
}
.work-details {
	float: left;
	width: 40%;
	font-size: 80%;
}
.work-details p {
	margin: 0;
}
.work-title {
	line-height: 1em;
}
.gallery-intro {
	margin: 15px;
}
.gallery-desc p {
	margin: 0;
}
.detail {
	display: inline-block;
	width: 100px;
	font-weight: 700;
}
#attachment-image {
	margin-bottom: 5%;
}
.gallery-moreinfo-image {
	text-align: right;
}
#gallery-intro-icon {
	float: left;
	width: 35%;
	margin-right: 5%;
	
}
#gallery-intro-headings {
	float: left;
	width: 60%;
	
}
.gallery-desc a {
	background: #38393f;
	color: #fff;
	display: inline-block;
	padding: 7px 30px;
	text-transform: uppercase;
	margin-top: 0.75em;
	
}
/* @end */
/* @group SLIDER GALLERY
-------------------------------------------------------------------------------*/
.slider-tag {
	position: absolute;
	top: 60%;
	right: 0;
	
	width: 35%;
	max-width: 300px;
}
.slider-tag h2, .slider-tag p {
	margin: 0;
	text-transform: uppercase;
}
.slider-titles {
	opacity: 0.8;

}
.slider-titles, .slider-details {
	padding: 5%;
	background: #ffffff;
}
.slide {
	position: relative;
}
.slide a {
	width: 100%;
	height: 100%;
	display: block;
}
.slide a:hover {
	color: #222;
}
/* @end */
/* @group POPUP
-------------------------------------------------------------------------------*/

.page-template-page-popup-php #header, .page-template-page-popup-php #menu-trigger {
	display: none;
}
.page-template-page-popup-php #content-wrap {
	padding: 0;
}
/* @end */
/* @group FORMS 
---------------------------------------------------------------------------------- */
input[type="text"], 
input[type="email"], 
input[type="date"], 
input[type="tel"], 
input[type="number"], 
input[type="datetime-local"], 
input[type="time"], 
input[type="text"], 
input[type="submit"],
textarea, 
select 
{
	background: #ececec;
	border: none;
	padding: 8px;
	width:100%;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-transition: border 0.2s linear;
	-webkit-transition: border 0.2s linear;
	transitition: border 0.2s linear;
}

input:focus, textarea:focus {
	
}

input[type="submit"] {
	background: #222;
	color: #fff;
	width: auto;
	margin-top: 20px;
	padding-left: 20px;
	padding-right: 20px;
	text-transform: uppercase;
}
label {
	display: block;
	height: 40px;
	line-height: 40px;
}
form p {
	margin: 0;
}
/* @end */

/* @group FLEXSLIDER
 * jQuery FlexSlider v2.2.0
 * http://www.woothemes.com/flexslider/
 *
 * Copyright 2012 WooThemes
 * Free to use under the GPLv2 license.
 * http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Contributing author: Tyler Smith (@mbmufffin)
 */


/* Browser Resets
*********************************/
.flex-container a:active,
.flexslider a:active,
.flex-container a:focus,
.flexslider a:focus  {outline: none;}
.slides,
.flex-control-nav,
.flex-direction-nav {margin: 0; padding: 0; list-style: none;}

.flex-viewport, .flexslider, .slides, .slide {
	height: 100%;
}
.slide {
	background-position: 50% 50%;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}

/* FlexSlider Necessary Styles
*********************************/
.flexslider {margin: 0; padding: 0;}
.flexslider .slides > li {display: none; -webkit-backface-visibility: hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping */
.flexslider .slides img {width: 100%; display: block;}
.flex-pauseplay span {text-transform: capitalize;}

/* Clearfix for the .slides element */
.slides:after {content: "\0020"; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;}
html[xmlns] .slides {display: block;}
* html .slides {height: 1%;}

/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
 * include js that eliminates this class on page load */
.no-js .slides > li:first-child {display: block;}

/* FlexSlider Default Theme
*********************************/
.flexslider { margin: 0px; background: #fff; position: relative; -webkit-border-radius: 4px; zoom: 1; }
.flex-viewport { max-height: 2000px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -o-transition: all 1s ease; transition: all 1s ease; }
.loading .flex-viewport { max-height: 300px; }
.flexslider .slides { zoom: 1; }
.carousel li { margin-right: 5px; }

/* Direction Nav */
.flex-direction-nav {*height: 0;}
.flex-direction-nav a  { display: block; width: 40px; height: 40px; margin: -20px 0 0; position: absolute; top: 50%; z-index: 10; overflow: hidden; opacity: 0; cursor: pointer; color: rgba(0,0,0,0.8); text-shadow: 1px 1px 0 rgba(255,255,255,0.3); -webkit-transition: all .3s ease; -moz-transition: all .3s ease; transition: all .3s ease; }
.flex-direction-nav .flex-prev { left: 10px; }
.flex-direction-nav .flex-next { right: 10px; text-align: right; }
.flexslider:hover .flex-prev { opacity: 0.7; left: 10px; }
.flexslider:hover .flex-next { opacity: 0.7; right: 10px; }
.flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover { opacity: 1; }
.flex-direction-nav .flex-disabled { opacity: 0!important; filter:alpha(opacity=0); cursor: default; }
.flex-direction-nav a:before  { font-size: 40px; display: inline-block; content:; }
.flex-direction-nav a.flex-next:before  {  }

/* Pause/Play */
.flex-pauseplay a { display: block; width: 20px; height: 20px; position: absolute; bottom: 5px; left: 10px; opacity: 0.8; z-index: 10; overflow: hidden; cursor: pointer; color: #000; }
.flex-pauseplay a:before  { font-size: 20px; display: inline-block;  }
.flex-pauseplay a:hover  { opacity: 1; }
.flex-pauseplay a.flex-play:before {  }

/* Control Nav */
.flex-control-nav {width: 100%; position: absolute; bottom: 20px; text-align: right;}
.flex-control-nav li {margin: 0 20px 0 0; display: inline-block; zoom: 1; *display: inline;}
.flex-control-paging li a {width: 20px; height: 20px; display: block; background: #f0f0f0; cursor: pointer; text-indent: 9999px; overflow: hidden;
}
.flex-control-paging li a:hover { background: #91c6c7; }
.flex-control-paging li a.flex-active { background: #91c6c7; cursor: default; }

.flex-control-thumbs {margin: 5px 0 0; position: static; overflow: hidden;}
.flex-control-thumbs li {width: 25%; float: left; margin: 0;}
.flex-control-thumbs img {width: 100%; display: block; opacity: .7; cursor: pointer;}
.flex-control-thumbs img:hover {opacity: 1;}
.flex-control-thumbs .flex-active {opacity: 1; cursor: default;}
/* @end */
/* @group SHADOWBOX
-------------------------------------------------------------------------------*/
#sb-title-inner,#sb-info-inner,#sb-loading-inner,div.sb-message{}
#sb-container{position:fixed;margin:0;padding:0;top:0;left:0;z-index:999;text-align:left;visibility:hidden;display:none;}
#sb-overlay{position:relative;height:100%;width:100%;}
#sb-wrapper{position:absolute;visibility:hidden;width:100px;}
#sb-wrapper-inner{position:relative;border:0px solid #303030;overflow:hidden;height:100px;}
#sb-body{position:relative;height:100%;}
#sb-body-inner{position:absolute;height:100%;width:100%;}
#sb-player.html{height:100%;overflow:auto;}
#sb-body img{border:none;}
#sb-loading{position:relative;height:100%;}
#sb-loading-inner{position:absolute;font-size:14px;line-height:24px;height:24px;top:50%;margin-top:-12px;width:100%;text-align:center;}
#sb-loading-inner span{background:url(_/img/loading.gif) no-repeat;padding-left:34px;display:inline-block;}
#sb-body,#sb-loading{background-color:#fff;}
#sb-title,#sb-info{position:relative;margin:0;padding:0;overflow:hidden;}
#sb-title,#sb-title-inner{height:26px;line-height:26px;}
#sb-title-inner{font-size:16px; color: #fff;text-transform: uppercase;
}
#sb-info,#sb-info-inner{height:20px;line-height:20px;}
#sb-info-inner{font-size:12px;}
#sb-nav{float:right;height:16px;padding:2px 0;width:45%;}
#sb-nav a{display:block;float:right;height:16px;width:16px;margin-left:3px;cursor:pointer;background-repeat:no-repeat;}
#sb-nav-close{background-image:url(_/img/close.png);}
#sb-nav-next{background-image:url(_/img/next.png);}
#sb-nav-previous{background-image:url(_/img/previous.png);}
#sb-nav-play{background-image:url(_/img/play.png);}
#sb-nav-pause{background-image:url(_/img/pause.png);}
#sb-counter{float:left;width:45%;}
#sb-counter a{padding:0 4px 0 0;text-decoration:none;cursor:pointer;color:#fff;}
#sb-counter a.sb-counter-current{text-decoration:underline;}
div.sb-message{font-size:12px;padding:10px;text-align:center;}
div.sb-message a:link,div.sb-message a:visited{color:#fff;text-decoration:underline;}
/* @end */
/* @group CLEARFIX
-------------------------------------------------------------------------------*/
.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}
.clearfix:after {
    clear: both;
}
.clearfix {
    *zoom: 1;
}
/* group PRINT STYLES
-------------------------------------------------------------------------------*/
@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }
    a,
    a:visited {
        text-decoration: underline;
    }
    a[href]:after {
        content: " (" attr(href) ")";
    }
    abbr[title]:after {
        content: " (" attr(title) ")";
    }
    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }
    thead {
        display: table-header-group; /* h5bp.com/t */
    }
    tr,
    img {
        page-break-inside: avoid;
    }
    img {
        max-width: 100% !important;
    }
    @page {
        margin: 0.5cm;
    }
    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }
    h2,
    h3 {
        page-break-after: avoid;
    }
}
/* @end */



/* @group MEDIA QUERIES
-------------------------------------------------------------------------------*/
@media screen and (min-width: 0px) and (max-width: 1100px) {
	#attachment-image, #attachment-desc {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}

@media screen and (min-width: 0px) and (max-width: 800px) {
    .col13, .col23, .col213 {
    	width: 100%;
    	margin-left: 0;
    	margin-right: 0;    
    }
    #bio-image {
    	display: none;
    }
    #header {
    	width: 200px;
    	z-index: 9999;
    	margin-left: -200px;
    	position: absolute;
		height: auto;
		min-height: 100%;
		overflow-y: auto;

    }
    #footer-mobile {
		display: block;
    	position: static;
		margin-left: 30px;
		padding-bottom: 30px;
    }
	
	#footer { display: none; }
	
    #content-wrap {
    	padding-left: 0;
    }

    #menu-trigger {
    	display: block;
    }
    #menu {
    	margin-top: 30px;
		padding-bottom: 0;
    }
    #site-name {
    	display: block;
    	height: 30px;
    	margin: 30px 0 0 30px;
    }
    .bg-image #site-name {
    	margin-bottom: 30px;
    }
    #site-name h1  {
    	margin: 0;
    }
    #content {

    }
    .slider-tag {
    	width: 40%;
    	bottom: 100px;
    	top: auto;
    }
    .menu-mainmenu-container {
    	margin-top: auto !important;
    }
    #site-name {
    	display: none;
    }
    #gallery-intro-icon {
    	width: 80%;
    	float: none;
    	margin-bottom: 5%;
    }
    #gallery-intro-headings {
    	width: 100%;
    	float: none;
    }
}

@media screen and (min-width: 0px) and (max-width: 550px) {
	#content {
		padding: 20px;
	}
	.page-template-page-gallery-php #content {
		padding: 10px;
	}
	.work {
		padding: 10px;
	}
	.gallery-intro {
		margin: 10px;
	}
	.bg-image #site-name {
		margin-bottom: 20px;
	}
	
	.twocol {
		-moz-column-count:1; /* Firefox */
		-webkit-column-count:1; /* Safari and Chrome */
		column-count:1;
		-moz-column-gap:0px; /* Firefox */
		-webkit-column-gap:0px; /* Safari and Chrome */
		column-gap:0px;
	}
	.col12, .col22, .half1, .half2 {
		width: 100%;
		margin: 0;
	}
	.slider-tag {
		display: none;
	}
	.slider-tag h2, .slider-tag p, .slider-tag span {
		font-size: 90%;
	}
	.flex-control-nav {
		display: none;
		
	}
	.slide {
		display: block !important;
		margin-bottom: 20px;
		height: 300px;
	}
	
}
/* @end */