/*
Theme Name: orthodox2
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: orthodox2
Tags:

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

orthodox2 is based on Underscores http://underscores.me/, (C) 2012-2016 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal http://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize
# Typography
# Elements
# Forms
# Navigation
	## Links
	## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Header
# Content
	## Posts and pages
	## Comments
	## 404
# Footer
# Infinite scroll
# Media
	## Captions
	## Galleries
#scrollbars

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

/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
html {
	font-family: 'PT Serif', serif;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust:     100%;
}

body {
	margin: 0;
  
}

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

audio,
canvas,
progress,
video {
	display: inline-block;
	vertical-align: baseline;
}

audio:not([controls]) {
	display: none;
	height: 0;
}

[hidden],
template {
	display: none;
}

a {
	background-color: transparent;
}

a:active,
a:hover {
	outline: 0;
}

abbr[title] {
	border-bottom: 1px dotted;
}

b,
strong {
	font-weight: bold;
}

dfn {
	font-style: italic;
}

h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

.home h1{
	padding-left:1%;
	margin-top:0;}

mark {
	background: #ff0;
	color: #000;
}

small {
	font-size: 80%;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

img {
	border: 0;
}

svg:not(:root) {
	overflow: hidden;
}

figure {
	margin: 1em 40px;
}

hr {
	box-sizing: content-box;
	height: 0;
}

pre {
	overflow: auto;
}

code,
kbd,
pre,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

button,
input,
optgroup,
select,
textarea {
	color: inherit;
	font: inherit;
	margin: 0;
}

button {
	overflow: visible;
}

button,
select {
	text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
	-webkit-appearance: button;
	cursor: pointer;
}

button[disabled],
html input[disabled] {
	cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
	border: 0;
	padding: 0;
}

input {
	line-height: normal;
	max-width:100%;
}

input[type="checkbox"],
input[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

fieldset {
	border: 1px solid #c0c0c0;
	margin: 0 2px;
	padding: 0.35em 0.625em 0.75em;
}

legend {
	border: 0;
	padding: 0;
}

textarea {
	overflow: auto;
}

optgroup {
	font-weight: bold;
}

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

td,
th {
	padding: 0;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
body,
button,
input,
select,
textarea {
	color: #404040;		
  	font-family: 'PT Serif', serif;
	font-size: 16px;
	font-size: 1rem;
	line-height: 1.5;
}
	 

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	text-transform:uppercase;
	color:#081647;
	word-wrap: break-word;
}
	  
h1.entry-title{
	margin-top:0;
	  }

h2.widget-title{
	background-color:#081647;
	color:#fff;
	text-align:center;
	margin:0;
	padding:5px;
	font-size:1.2em;}
	  
article h4{
		margin-bottom:0;
	  }
	  
article p{
		margin-top:0;
	  }	  

#secondary .cat-post-widget h2.widget-title a:link,
#secondary .cat-post-widget h2.widget-title a:visited,
#secondary .cat-post-widget h2.widget-title a:hover,
#secondary .cat-post-widget h2.widget-title a:focus{
	  color:#FFF;
	}
	  

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", Courier, monospace;
	font-size: 15px;
	font-size: 0.9375rem;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
	font-size: 15px;
	font-size: 0.9375rem;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

.wrapper a.button,
.wrapper a.more-link{
  background-color:#081647;
  color:#fff;
  padding:3px;
  text-decoration: none;
  display:block;
  text-align:center;
  margin:20px 0;
  font-size:0.75rem;
	  }
	
.home .readmore{
  background-color:#081647;
  color:#fff;
  padding:3px;
  text-decoration: none;
  display:block;
  text-align:center;
  margin:20px 0;
  font-size:0.75rem;}
	
.wrapper a.more-link,
.home .readmore{
  max-width:120px;
	  }

.wrapper .ms-item a.more-link{
  margin:20px 0 30px 0;
	  }
		
.fa{
	margin-bottom:4px;}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
html {
	box-sizing: border-box;
}

*,
*:before,
*:after { /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
	box-sizing: inherit;
}

body {
	background-color: #D9D9D9; /* Fallback for when there is no custom background color defined. */
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: "";
}

blockquote,
q {
	quotes: "" "";
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 0;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: bold;
}

dd {
	margin: 0 1.5em 1.5em;
}

img {
	height: auto; /* Make sure images are scaled correctly. */
	max-width: 100%; /* Adhere to container width. */
}

figure {
	margin:0; 
}/* 1em 0 For extra wide images within figure tags don't overflow the content area. */

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: none;
	border-color: transparent;
	border-radius: 0;
	background: #081647;
	color:#fff;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1;
	padding: .6em 1em .6em;
}

#FSContact1{
	margin-bottom:1em;}

#FSContact1 img {
	width:auto;}

#FSContact1 input,
#FSContact1 textarea{
	border:1px solid #ccc;}

#FSContact1 input#fscf_submit1{
	border:none;}

#FSContact1 #fscf_captcha_field1{
	margin-top:30px;}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
	border-color: none;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: none;
	border-radius: 0;
	padding: 5px;
}

select {
	border: 1px solid #ccc;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a {
	color: #081647;
	text-decoration:none;
}

p a{
	color:#C5B175;}

p a:hover,
p a:focus,
p a:active {
	text-decoration:underline;
	color:#081647;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
  	text-decoration:underline;
}

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.main-navigation {
	
}

.menu{
	background-color:#081647;
	width:100%;}

	
.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding:30px 0;
}

.main-navigation li {
	padding:10px 0;
}

.main-navigation li a {
  	color:#C5B175;
	text-decoration: none;
  	text-transform: uppercase;
}

.main-navigation a:hover {
	text-decoration:underline;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: none;
	position: relative;
	top: 0;
	left: -999em;
	z-index: 99999;
  height:0;
  padding:0;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul ul li {
	padding:0;
}

.main-navigation ul ul li a{
  color:#081647;
  background-color:#C5B175;
  display:block;
  width:300px;
  margin-left:auto;
  margin-right:auto;
  padding:10px; 15px;
  border-bottom: 1px solid #081647;
}


.main-navigation li:hover > a,
.main-navigation li.focus > a {
}

.main-navigation ul ul :hover > a,
.main-navigation ul ul .focus > a {
}

.main-navigation ul ul a:hover,
.main-navigation ul ul a.focus {
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	left: 100%;
}

.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_ancestor > a,
.main-navigation .current-menu-ancestor > a {
}

/* Small menu. */

.menu-toggle,
.main-navigation.toggled ul {
	display: block;
  }
	
.main-navigation.toggled ul{  
  	margin-top:120px;
}

.main-navigation.toggled ul ul{  
  	margin-top:0;
  	display:block;
  	max-height:100px;
}
	
.main-navigation.toggled ul li{
	display:block;
	text-align:center;
}

.menu-toggle{
	position:absolute;
  padding:.4em .5em .3em .5em;
	right:4px;
	font-size:2em;
	background:#C5B175;
	color:#081647;}

.menu-toggle[aria-expanded="true"]{
	top:-120px;
}

/* secondary menu */
.main-navigation.toggled ul#menu-kielet{
	text-align:center;
	margin:0;
	border-top:1px solid #C5B175;}

.main-navigation.toggled ul#menu-kielet li {
	display: inline-block;
	text-align:center;
  	font-size:0.8rem;
  padding-left:15px;
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
	margin: 0 0 1.5em;
	overflow: hidden;
}

/* Footer-widget-menu */

#menu-footer-kielet.menu{
	background:transparent;
	list-style-type:none;
}

#menu-footer-kielet.menu{
	padding:0;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	float: left;
	width: 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
	outline: 0;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}

.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: "";
	display: table;
	table-layout: fixed;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
	margin: 0 0 1.5em;
	background:#fff;
  	
}

/* Make sure select elements fit in widgets. */
.widget select {
	max-width: 100%;
}

/*sidebar-right*/
.content-area {
	float: left;
	margin: 0 -35% 0 0;
	width: 100%;
  	padding:4px;
}
.site-main {
	margin: 0 35% 0 0;
  	background:#fff;
  	padding:30px;
}

#page #primary .site-main{
	box-shadow:0 0 5px #888888;}

.home #page #primary .site-main{
	box-shadow:none;}

.site-content .widget-area {
	float: right;
	overflow: hidden;
	width: 30%;
  	padding: 4px;
}

.search-form{
margin-bottom:2em;}



@media screen and (max-width:1300px){

  .content-area {
	float: none;
	margin: 0;
	width: 100%;
}
  
#page #primary .site-main {
	margin: 0 0 1.5em 0;}
	  
#secondary.widget-area{
	  width:100%;}
	  
}

.site-content .widget{
	box-shadow: 0 0 5px #888888;}

/*sidebarin category-post*/
ul.category-posts-internal{
	padding-left:0;
}

li.cat-post-item{
  	padding: 0 30px;
	margin-bottom:15px;
	border-bottom:1px solid #ccc;}

li.cat-post-item a.post-title{
	display:block;
	padding:20px 0;
	text-transform:uppercase;
	margin-top:10px;}

.cat-post-item a.cat-post-thumbnail{

	}


li.cat-post-item p{
	margin-bottom:0.5em;
  	margin-top:0;
	padding:10px 0;
}

li.cat-post-item .post-date{
	margin:0;
  	font-size:0.8em;
  	color:#999;
  	padding-bottom:0;
	}


li.cat-post-item .post-title{
	margin-top:0;
	padding-bottom:0;}


.textwidget{
padding:20px 30px;}

.textwidget h4{
	margin-bottom:0;}

.textwidget p{
	margin-top:0;}

#footer-sidebar .textwidget{
  padding:0;}

li.cat-post-item a.post-title{
	text-decoration:none;
	font-weight:900;
	color:#081647;}


#footer-sidebar .widget{
	width:20%;
	float:left;
  	padding:0 10px;
	background: none;
}

@media screen and (max-width:1000px){
	#footer-sidebar .widget{
	width:100%;
	float:left;
	background: none;	
}


  
  
 #menu-footer-kielet li a{
  
  
  }

}


.site-footer {
	clear: both;
	width: 100%;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

.site-header{
	background-color: #C5B175;
  	top:0;
  	left:0;
  	right:0;
  	z-index:2000;
	padding-top:20px;
	box-shadow:0 0 5px #888888;
	top: 0;
	width: 100%;
	z-index: 2000;}

.site-branding{
	width:100%;
	float:left;
	text-align:left;
	margin-bottom:20px;}

@media screen and (max-width:850px) {
	.site-header{
	position: relative;
}
  
  .site-branding {
		float: none;
	}
	  
	.menu-toggle{
		top:15px;
  		padding;.6em 1em .4em;}
		  
    .menu-toggle[aria-expanded="true"]{
		  top:-60px;}
	  
	.site-header .menu ul{
		  margin-top:80px;}

	
  	
}

.custom-logo{
	max-width:100px;
	height:auto;
	margin-bottom: -80px;}

.site-title{
	margin:-25px 0 0 110px;
  	font-weight:700;
  	line-height:1.2 !important;
}

.site-title a{
	text-decoration:none;
  	color:#000;
  	font-size:1.5rem;
  	text-transform:uppercase;
}

.site-description {
	margin:0 0 0 110px;
  	font-weight:100;
  	color:#000;
  	font-size:1.2rem;
}

.main-navigation #secondary_menu li{
	padding-left:15px;}

@media screen and (max-width: 97.5em) {
	
  .site-branding{
		  width:100%;}
  	
}



/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/
.wrapper {
	width:85%;
	margin-left:auto;
	margin-right:auto;
  	position:relative;
		}

#footer-links .wrapper{
	width:100%}

@media screen and (max-width:600px){
  .wrapper{
	width:95%;
}

}


#content{
	margin:120px 0 3em 0;}


@media screen and (max-width:850px){
	#content{
  	margin:100px 0 3em 0;}
}

.sticky {
	display: block;
}

.hentry {
	margin: 0 0 1.5em;
}
  
 
.entry-meta{
  	font-size:0.8em;
  	color:#999;}
  
.archive article .entry-footer{
  border-bottom: 1px solid #ccc;
  margin-bottom:1em;
  padding-bottom: 2em;}

.quote-footer .cat-links{
	display:none;}

.byline,
.updated:not(.published) {
	display: none;
}

.single .byline,
.group-blog .byline {
	display: inline;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.entry-content img{
	margin: 1em 0;}

.page .site-main{
  	padding:30px;
  	box-shadow: 0 0 5px #888888;
  	margin:0 35% 1.5em 0;
}

.home .site-main{
	background:transparent;
	margin:0 35% 0 0;
	padding:0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

.category-4 .entry-header .wp-post-image{
	width:100%;
	float:none;
	padding:0;}

.archive .entry-header .wp-post-image{
	width:30%;
	float:left;
	padding:0 1em 1em 0;
	min-width:200px;}
	
.entry-title{}

.page-title{
	margin-top:0;}

article.post h1,
article.post h2,
article.post h3,
article.post h4,
article.post h5,
article.post h6{
	display:inline;}

article.post .entry-title{
	display:block;
	margin-bottom:1.5em;}

.thumbnail-container {
  float: left;
  width: 50%;
  margin: 0 1.5em 1.5em 0;
}

.archive .thumbnail-container {
  width: 30%;
  min-width:150px;
}



.thumbnail-container .thumbnail {
  background-size: cover;
  background-position: center top;
  padding-top: 75%; /* 4:3 kuvasuhde */
  /* Jos haluut kokeilla muita kuvasuhteita, opiskele tää:
  https://www.w3schools.com/howto/howto_css_aspect_ratio.asp */
}

/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/*----------------------------------------------------------------
## 404
-------------------------------------------------------------------*/

.site-content .error-404 .widget{
	box-shadow:none;
}

.error-404 h2.widgettitle{
	color:#081647;
  	background-color:transparent;
    text-align:left;
  	font-size:16px;
}
  
.error-404 input[type="search"]{
	border:1px solid #C5B175;
}

.no-results  input[type="search"]{
	border:1px solid #C5B175;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

footer.site-footer{
	background-color:#C5B175;
  	box-shadow:1px -1px 5px #888888;}

footer.site-footer a{
	color:#081647;}

footer.site-info a{
	color:#081647;}

#footer-links{
  	background-color:#fff;
  	text-align:center;
  	margin-bottom:30px;
}

#footer-links .widget{
	padding:30px;}

#footer-links .link-img-div{
	max-width:150px;
	text-align:center;
  	display:inline-block;
  	margin:15px 0 30px 0;
  	vertical-align:top;
  	padding:10px;
}

#footer-links .link-img-div img{
	max-width:100%;
}


#footer-links .link-img-div a{
	text-decoration:none;
	font-size:0.8em;
	line-height:1.5;}

#footer-links .link-img-div a:hover,
#footer-links .link-img-div a:focus{
  text-decoration:underline;}


@media screen and (max-width: 1100px){
	#footer-links .widget,
	#footer-links .textwidget{
		padding:20px 0;  
	  }
}

@media screen and (max-width: 500px){
	#footer-links .widget .link-img-div img{
		display:none; 
	  }
  	#footer-links .widget .link-img-div{
		max-width:100%;
	  	margin:0;
	  }
  #footer-links .widget .link-img-div a,
  #footer-links .widget .link-img-div p{
	  	margin:0;
	  }
  
   #footer-links .widget .link-img-div a{
	color:#C5B175;}
  
  #footer-links .widget .link-img-div a:hover,
  #footer-links .widget .link-img-div a:focus{
  		text-decoration:underline;
		color:#081647;
  }
  
}

footer #footer-sidebar{
	margin-top:40px;}

footer #footer-sidebar .widget img{
	max-width:3em;
}

footer #footer-sidebar .textwidget{
	padding-top:0;
}

footer #footer-sidebar .textwidget img{

}

footer #footer-sidebar .button{
  margin:0;
  max-width:200px;

}

footer #footer-sidebar .footer-button{
  font-size:1.1em;
  text-transform:uppercase;

}

.widget_rss_links p{
	margin:0;
}

footer.site-info{
	background-color:#C5B175;
}

footer .site-info{
  	border-top:1px solid #081647;
}
 
footer.site-info a{
	text-decoration:none;
  	font-size:0.8em;
  	text-transform:uppercase;
}


/*--------------------------------------------------------------
# Infinite 
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation, /* Older / Newer Posts Navigation (always hidden) */
.infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */
	display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

/*centering videos*/

.wrapper .wp-video{
	margin:0 auto;}

.wrapper .jetpack-video-wrapper .embed-youtube iframe{
	margin:0 auto !important;	  
	  }
	  
.wrapper .jetpack-video-wrapper .embed-vimeo iframe{
	margin:0 auto !important;
			}


/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: -1em 0 0.8075em 0;
}

.wp-caption-text {
	color:#999;
  	font-size:0.8em;
  	font-style:italic;
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
	margin-bottom: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 100%;
  	padding-right:1em;
}

.entry-content .slideshow-window{z-index:0;}

.entry-content .gallery-item img.attachment-thumbnail{
	margin-bottom:-0.2em;}

.gallery-item .gallery-caption a{
	text-transform:uppercase;
	font-weight:900;
	font-size:1.2em;}

.gallery-item .gallery-caption{
	display:none;}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

@media screen and (max-width:600px){
.gallery-columns-4 .gallery-item {
	max-width: 50%;
}
}

#slb_viewer_wrap .slb_theme_slb_default .slb_data_title,
#slb_viewer_wrap .slb_theme_slb_default .slb_group_status{
	font-family: 'PT Serif', serif !important;
	font-size:1em !important;
	}
	
#slb_viewer_wrap .slb_theme_slb_default .slb_data_title a,
#slb_viewer_wrap .slb_theme_slb_default .slb_group_status{
	font-family: 'PT Serif', serif !important;
	text-transform:uppercase;
	}
	

#slb_viewer_wrap .slb_theme_slb_baseline .slb_data_content{
	margin-top:1em;}

	

/* Etusivun Masonry */
.ms-item {
	width: 31%;
	margin:0 1% 2% 1%;
	background:#fff;
	box-shadow:0 0 5px #888888;
}
	
.ms-item h3,
.ms-item p,
.ms-item .entry-meta{
	padding:0 30px;
	}

.ms-item p:last-child {
    margin-bottom:2.5em;
}

	
	@media screen and (max-width:1750px){
		/* Makes two columns */
.ms-item {
width: 48%;
}

		}
@media screen and (max-width:700px){
		/* Makes two columns */
.ms-item {
width: 100%;
margin:1em 0;
}

		}

.ms-item .article-preview-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;}

.ms-item .article-preview-image	.wp-post-image{
  position: absolute;
  left: 50%;
  top: 50%;
  height: auto;
  width: 100%;
  -webkit-transform: translate(-50%,-50%);
      -ms-transform: translate(-50%,-50%);
          transform: translate(-50%,-50%);
}