/* ---------------------------------- */

/*
 * Juho Kuva
 * 2014
 *
 * style.css
 *
 * 
 */

/* ---------------------------------- */

/* Reset */

html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote, pre, form, fieldset, table, th, td { margin: 0; padding: 0; }

img { border: 0; }
    
ol, ul, dl { list-style: none; }

/* ---------------------------------- */

/* HTML5 */

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

/* ---------------------------------- */

/* Global */

body {
	font-size: 12px;
}

body.thumbs, body.photos {
	background: #1a1a1a;
}

body.white {
	background: #F2F2F2;
}

p {
	line-height: 22px;
	margin-bottom: 20px;
	padding-left: 20px;
}

a {
	text-decoration: none;
}

div.about a { color: #f2f2f2; }
body.white div.about a { color: #B3B3B3; }

a:hover {
}

h2 {
	clear: left;
	color: #4D4D4D;
	font-size: 16px;
	font-weight: 500;
	text-transform: uppercase;
}

div.about-3-2 h2, div.about-3-3 h2 { text-transform: none; }

/* ---------------------------------- */

/* Content */

div#wrap2014 {
	margin: 0 auto;
	position: relative;
	width: 95%;
	z-index: 5;
}

div.thumbs {
	float: left;
	padding-top: 85px;
}

a.thumb {
	display: block;
	float: left;
	padding: 8px 15px;
	position: relative;
}

div.thumbs a:hover { opacity: 0.5; }

a.thumbover {
	border: 4px #fff solid;
	display: block;
	height: 192px;
	left: 15px;
	opacity: 0.8;
	position: absolute;
	top: 8px;
	width: 192px;
}

div.thumbs img {
	display: block;
}

div.caption {
	color: #4D4D4D;
	min-height: 30px;
	padding-top: 5px;
	text-transform: uppercase;
}

body.white div.caption { color: #B3B3B3; }

div.photos {
	margin: 0 auto;
	padding-top: 85px;
}

div.photos img {
	max-width: 1200px;
	width: 100%;
}

div.photocaption {
	color: #4D4D4D;
	min-height: 25px;
	padding-top: 5px;
	text-transform: uppercase;
}

body.white div.photocaption { color: #B3B3B3; }

div.about {
	color: #F2F2F2;
	font-size: 14px;
	font-weight: 400;
	margin: 0 auto;
	padding-top: 100px;
	width: 560px;
}

body.white div.about { color: #B3B3B3; }

div.about-3-1, div.about-3-2, div.about-3-3 {
	float: left;
	margin-bottom: 30px;
	width: 33%;
}

p.copyright {
	clear: left;
	color: #4D4D4D;
	padding-top: 20px;
	text-align: center;
}

body.white p.copyright {
	color: #B3B3B3;
}

/* ---------------------------------- */

/* Header */

h1 a {
	background: url(img/juhokuva_logo_lightgrey.svg) no-repeat;
	height: 33px;
	display: block;
	left: 35px;
	overflow: hidden;
	position: absolute;
	text-indent: -9999px;
	top: 35px;
	width: 132px;
	z-index: 10;
}

body.white h1 a, body.home h1 a {
	background: url(img/juhokuva_logo_black.svg) no-repeat;
}


/* ---------------------------------- */

/* Main menu */

ul#main-navi {
	position: absolute;
	right: 75px;
	text-transform: uppercase;
	top: 42px;
	z-index: 10;
}

ul#main-navi li {
	float: left;
	margin-left: 7px;
}

ul#main-navi li#mn-change {
	margin-left: 14px;
}

ul#main-navi li a {
	color: #4D4D4D;
	display: block;
}

body.white ul#main-navi li a {
	color: #B3B3B3;
}

body.home.white ul#main-navi li a {
	color: #fff;
}

a#mn-change {
	background: url(img/change_bg_color_icon.png) center center no-repeat;
	display: block;
	line-height: 30px;
	overflow: hidden;
	position: absolute;
	right: 35px;
	text-indent: -9999px;
	top: 35px;
	width: 20px;
	z-index: 10;
}

body.white a#mn-change { background: url(img/change_bg_color_icon_light.png) center center no-repeat; }

ul#main-navi a:hover {
	
}

ul#main-navi li.selected a {
	border-bottom: 2px #4D4D4D solid;
}

body.white ul#main-navi li.selected a {
	border-bottom: 2px #B3B3B3 solid;
}

/* ---------------------------------- */

/* Videos */

iframe {
	max-width: 100%;
}

video {
	display: block;
	height: 100vh;
	left: 0;
	margin: 0;
	max-width: 100%;
	object-fit: cover;
	object-position: center center;
	padding: 0;
	position: absolute;
	top: 0;
	width: 100vw;
	z-index: 1;
}

/* ---------------------------------- */

/* Misc */

div.clear {
	clear: left;
	height: 1px;
}

a img {
	border: 0;
}

@media only screen and (max-width : 800px) {
	iframe {
		height: 52vw;
	}
}

/* 800 */

@media only screen and (max-width : 520px) {
	div.about {
		width: 100%;
	}
}

@media only screen and (max-width : 450px) {
	div.about-3-1, div.about-3-2, div.about-3-3 {
		float: none;
		width: 100%;
	}
	
	div.about-3-1, div.about-3-2, div.about-3-3 {
		padding-left: 20px;
	}
	
	div.about-3-1 h2, div.about-3-2 h2, div.about-3-3 h2 {
		margin-left: -20px;
	}

	iframe {
		height: 47vw;
	}
}

@media only screen and (max-width : 320px) {
	h1 a {
		left: auto;
		margin: 35px auto 0 auto;
		position: relative;
		top: auto;
	}
	
	ul#main-navi {
		float: left;
		margin: 26px auto 0 90px;
		position: relative;
		right: auto;
		top: auto;
		width: 110px;
	}
	
	a#mn-change {
		display: block;
		float: left;
		margin: 18px 0 0 0;
		position: relative;
		right: auto;
		top: auto;
	}
	
	div.thumbs {
		padding-top: 15px;
	}
	
	div.photos {
		padding-top: 75px;
	}
	
	div.about {
		padding-top: 85px;
	}

}g {
	background: #000;
	display: none;
	left: 0;
	position: absolute;
	top: 0;
	z-index: 19;
}

.protected-img{
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* iOS: ei “Save Image” -long press -valikkoa */
}

/* ---------------------------------- */

/* Media queries */

/* iphone */
@media only screen and (min-device-width : 320px) and (max-device-width : 767px) {

	div#wrap {
		margin: 0 auto;
		padding: 122px 7px 0 7px;
		max-width: 312px;
	}
	
	header h1#logo-dark a {
		/*background: url(img/logo_iphone.png) no-repeat;*/
		background-size: 134px 50px;
		height: 50px;
		margin: 13px auto 9px auto;
		width: 134px;
	}
	
	ul#mainmenu-dark {
		padding-left: 0;
		width: 306px;
	}
	
	div#thumbs img {
		height: 95px;
		width: 95px
	}
	
	div#thumbs div {
		height: 95px;
		width: 95px;
	}
	
	div#thumbs a {
		margin: 0 9px 9px 0;
	}
	
	div#thumbs a:nth-child(3n) {
		margin: 0 0 9px 0;
	}
	
	div.suurennos img {
		/*max-height: 400px;
		max-width: 300px;*/
	}
	
	a#change-style {
		right: 7px;
		top: 25px;
	}
	
	ul#mainmenu-dark li a {
		padding: 2px 14px 0 7px;
	}
	
	ul#mainmenu-dark li:first-child a { 
		padding-left: 14px;
	}
}

/* ipad */
@media only screen and (min-width : 768px) and (max-width : 1024px) {

	div#wrap {
		margin: 0 auto;
		padding: 150px 24px 0 24px;
		max-width: 743px;
	}
	
	div#thumbs img {
		height: 133px;
		width: 133px
	}
	
	div#thumbs div {
		height: 133px;
		width: 133px;
	}
	
	div#thumbs a {
		margin: 0 13px 13px 0;
	}
	
	div#thumbs a:nth-child(5n) {
		margin: 0 0 13px 0;
	}

}