body {
	background: #f7f7f7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather Sans', Arial, Helvetica, sans-serif;
}

.custom_title h1, 
.custom_title h2, 
.custom_title h3, 
.custom_title h4, 
.custom_title h5, 
.custom_title h6 {
    font-weight: normal;
    margin: 0;
}

@media print, screen and (min-width: 40em) {
	h2 {
		font-size: 1.5rem;
    	font-weight: bold;
    	margin-bottom: 1rem;
	}
}

a, a:focus, a:hover  {
    color: #005fb3;
    text-decoration: underline;
}

.menu a {
    color: #333;
    text-decoration: none;
}

/* header */

header {
    margin-bottom: .7rem;
}

header > div.thumbnail {
	width: 100%;
}

.header-theme {
    background-image: url(../img/yläbanneri.jpg);
    background-size: cover;
    background-position: 50% 68%;
    margin-bottom: 1rem;
    max-width: 80rem;
    position: relative;
}

/* themeimage */

.themeimage-container {
	max-width: 82rem;
}

body .themeimage {
	width: 100%;
	height: 250px;
	margin-bottom: .5rem;
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
    position: relative;
}

@media print, screen and (min-width: 40em) {
    body .themeimage {
        height: 400px;
        margin-bottom: 2rem;
    }
}

@media print, screen and (min-width: 50em) {
    body .themeimage {
        height: 680px;
        margin-bottom: 2rem;
    }
}

body .themeimage:after {
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    background: -moz-linear-gradient(bottom,rgba(0,0,0,1) 0,rgba(0,0,0,0) 50%,rgba(0,0,0,0) 97%,rgba(0,0,0,0) 99%,rgba(0,0,0,0) 100%);
    background: -webkit-linear-gradient(bottom,rgba(0,0,0,1) 0,rgba(0,0,0,0) 50%,rgba(0,0,0,0) 97%,rgba(0,0,0,0) 99%,rgba(0,0,0,0) 100%);
    background: linear-gradient(to top,rgba(0,0,0,1) 0,rgba(0,0,0,0) 50%,rgba(0,0,0,0) 97%,rgba(0,0,0,0) 99%,rgba(0,0,0,0) 100%);
}

body .themeimage .after {
    background: #fbfbfb;
    width: 101%;
    height: 25px;
    position: absolute;
    bottom: -.7em;
    left: -1px;
    transform: rotate(-1deg);
    z-index: 9;
}

body .themeimage * {
	color: #Fff;
}

body .themeimage img {
	display: none;
}

body .themeimage .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

@media print, screen and (max-width: 60em) {
	body .themeimage {
		height: auto;
		background-image: none !important;
		background: #333;
	}
	body .themeimage img {
		display: block;
	}
	body .themeimage .content {
		text-align: center;
		padding: 1rem;
		position: relative;
	}
	body .themeimage .content h1 {
	    font-size: 1.25rem;
	}
	body .themeimage .content p {
	    font-size: .9rem;
	    padding-top: .7rem !important;
	}
}

@media print, screen and (min-width: 60em) {
	body .themeimage .content {
	    position: absolute;
	    bottom: 3rem;
	    left: 4rem;
	    right: 4rem;
	    z-index: 1;
	}
}

body .themeimage .content h2 {
    margin-bottom: 0;
}

body .themeimage .content p {
    position: relative;
    padding-top: 1.5rem;
}

body .themeimage .content p:before {
    content: " ";
    position: absolute;
    height: 4px;
    background: #bb212e;
    width: 80px;
    top: 0;
    left: 20%;
    right: 20%;
    display: block;
    margin: 0 auto;
    text-align: center;
}

@media print, screen and (min-width: 40em) {
	body .themeimage .content h2 {
	    font-size: 2.7em;
	}
}

.slick-prev, .slick-next {
    opacity: .5;
    transition: all 200ms ease-out;
}

.slick-prev:hover,
.slick-next:hover {
    opacity: .7;
}

.slick-prev:hover {
    left: -50px;
}

.slick-next:hover {
    right: -50px;
}



/* logo */
div.logo {
    max-width: 100%; 
    height: 200px;
}

@media screen and (max-width:768px) {
    div.logo {
        height: 150px;
    }
}   


@media screen and (max-width:568px) {
    div.logo {
        height: 100px;
    }
}   


@media screen and (max-width:368px) {
    div.logo {
        height: 60px;
    }
}   


/* menu */
.menu {
    display: none;
	text-align: center;
    margin: 0 0 .3rem 0;
}

@media screen and (min-width: 40em) {
   .menu {
        display: block;
    } 
}

.menu>li>a {
    font-size: 1.1em;
    transition: all 300ms ease-out;
}

.menu .active>a,
.menu a:hover {
    background: #bb212e;
    color: #fefefe;
}

.menu a:hover {
    transform: rotate(-3deg);
}

.topmenu li:last-child .active>a,
.topmenu li:last-child a:hover {
    background: transparent;
    color: #333;
    transform: none;
}

.menu>li>a.search {
    padding-top: .2em;
}

@media print, screen and (min-width: 40em) {
	.menu.medium-horizontal>li {
	    display: inline-block;
	}
}

/* thumbnails*/
.thumbnail {
	width: 100%;
	background: #fff;
}

.thumbnail .content {
	padding: 1em;
}

.thumbnail .content h1, 
.thumbnail .content h2, 
.thumbnail .content h3, 
.thumbnail .content h4, 
.thumbnail .content h5, 
.thumbnail .content h6 
{
    margin: 0;
    font-weight: bold;
    font-size: 1.5em;
}

.thumbnail .content h2
{
    font-size: 1.4em;
}

.thumbnail .content h3
{
    font-size: 1.3em;
}

.thumbnail .content h4
{
    font-size: 1.2em;
}

.thumbnail .content h5
{
    font-size: 1.1em;
}

.thumbnail .content h6
{
    font-size: 1em;
}

.themeimage .content h1 {
    font-size: 2.2em;
}

.themeimage .content h2 {
    font-size: 1.9em;
}

.themeimage .content h3 {
    font-size: 1.7em;
}

.themeimage .content h4 {
    font-size: 1.4em;
}

.themeimage .content h5 {
    font-size: 1.2em;
}

.themeimage .content h6 {
    font-size: 1em;
}
.thumbnail {
	box-shadow: none;
	border: none;
    transition: box-shadow 200ms ease-out;
}

.thumbnail .image-container {
    overflow: hidden;
    border-bottom: 1px solid #e6e0e0;
}

.thumbnail:hover .image-container img {
    transition: all 400ms ease-out;
}

.thumbnail:hover .image-container img {
    transform: rotate(1deg) scale(1.05);
}

.thumbnail .image-container iframe {
    max-width: 100%;
    height: auto;
    min-height: 247px;
}

.thumbnail:hover, a.thumbnail:hover, a.thumbnail:focus {
    box-shadow: 0 0 16px 6px rgba(103, 103, 103, 0.1);
}

.date {
    margin-top: 10px;
	font-size: .8em;
	display: block;
    margin-bottom: 1rem;
    color: #bb212e;
    font-weight: bold;
}

.thumbnail .content p {
	margin: 0;
}

.column-block {
	position: relative;
}

.column-block a {
    color: #333;
    text-decoration: none;
}

.category-link {
    position: absolute;
    top: .6em;
    left: .7em;
    background: #fff;
    padding: .2rem .5rem;
    transform: rotate(-4deg);
    box-shadow: 0 0 6px 1px rgba(121, 121, 121, 0.27);
    background: #bb212e;
    color: #fff;
    z-index: 99;
}

footer {
    background: #444;
    padding: 2rem 0 8rem;
}

@media screen and (min-width: 40em) {
   footer .menu {
        padding: 4rem 0;
    } 
}

footer .menu {
	display: block !important;
}

footer .menu a {
	font-size: 1.5rem;
	color: #fff;
}

/* stats */

.stats-container {
    background: #fff;
    padding-top: 3.5rem;
    margin-top: 1.5rem;
    margin-bottom: .2rem;
}

.stats h2 {
	position: relative;
    padding-bottom: .7em;
}

.stats h2:after {
	content: " ";
    position: absolute;
    height: 4px;
    background: #bb212e;
    width: 80px;
    bottom: 0;
    left: 25%;
    right: 25%;
    display: block;
    margin: 0 auto;
    text-align: center;
}

.stats ul {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.stats li {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e6e0e0;
}

.stats li:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.stats li .date {
    margin-bottom: 0;
}

/* content */

.body {
    margin-bottom: 4rem;
}

@media print, screen and (min-width: 40em) {
    h3.summary {
        font-size: 1.375rem;
    }
}

/* kirjoittaja */


.galleria {
    height: 500px;
}

.galleria-theme-classic {
    background: #e3e3e3;
}

.galleria-theme-classic .galleria-counter {
    color: #333;
}

.person {
    margin-bottom: .5rem;
}

.person img {
    border-radius: 50%;
}

.slick-prev {
    border-radius: 20px;
    left: 30px !important;
    height: 20px;
    width: 20px;
    background: #fff; /*to notice it, is white*/
}
.slick-next {
    border-radius: 20px;
    right: 30px !important;
    height: 20px;
    width: 20px;
    background: #fff; /*to notice it, is white*/
}

.fileWrapper{
    display: inline-block;
    margin-right: 1rem;
}
.fileName{

}
.fileDescription{
    display: block;
    font-size: 0.8rem;
    color: #949494;
}

.hamburger, .hamburger:hover {
    color: #333 !important;
    text-decoration: none !important;
    display: inline-block;
    line-height: 32px;
}

.hamburger img {
	margin-right: .5rem;
    margin-top: -3px;
}

iframe {
	max-width: 100%;
}

.MarkupPagerNav {
    list-style: none;
}

.MarkupPagerNav li {
    font-size: 1.5rem;
    display: inline-block;
    padding: 0 .3rem;
}

.MarkupPagerNav li a {
    border-bottom: 2px solid transparent;
}

.MarkupPagerNav li.MarkupPagerNavOn a,
.MarkupPagerNav li:hover a {
    border-bottom: 2px solid #444;
}

.MarkupPagerNav li a {
    color: #444;
    font-weight: bold;
    text-decoration: none;
}

.MarkupPagerNavNext span:after {
    content: " »";
}

.MarkupPagerNavPrevious span:before {
    content: "« ";
}

.column-block li a:hover {
    color: #bb212e;
}