/**
 * Theme Name: Photour
 * Theme URI: http://photour.net
 * Description: The default style of Photour, which promotes the pictures on the site instead of the text content.
 * Version: 2.0
 * Author: Aleksi Kinnunen
 * Author URI: http://npn.fi
 * License: GPLv3
 */

/*  Transitions */
a:hover,
input,
textarea,
#posts .single-post p {
    transition: all 0.2s;
}
a {
    transition: all 0.1s;
}

/* Global */
html {
    background-color: #3f3f3f;
    font: 14px "Open Sans", sans-serif;
    color: #d9d9d9;
    text-align: center;
}
body {
    width: 100%;
    max-width: 960px;
    text-align: left;
    margin: auto;
}
h1, h2, h3, h4, h5, h6 {
	color: #b2b2b2;
}
a {
	color: #64A2D8;
	text-decoration: none;
}
a:hover {
	color: #d9d9d9;
}
.post-content img {
	box-shadow: 0 4px 7px #2d2d2d;
    max-width: 100%;
    height: auto;
}
a img {
    vertical-align: top;
}
img {
    max-width: 100%;
    width: auto;
    height: auto;
}

/* Header */
#topheader  {
	height: 130px;
    margin: auto;
    width: 960px;
    position: relative;
    overflow: hidden;
}
#topheader #logo {
	float: left;
}
#topheader #main-ads {
    float: right;
    margin-top: 10px;
}
#topheader nav {
	font-weight: bold;
    position: absolute;
    right: 0;
    bottom: 10px;
}
#topheader nav ul {
	list-style-type: none;
	margin: 0;
}
#topheader nav li {
	display: inline-block;
}
#topheader nav a {
	padding: 0 10px 5px 10px;
	border-bottom: 0;
}
#topheader nav a:hover {
	border-bottom: 10px solid #64A2D8;
}
#topheader nav .current-menu-item a {
	color: #d9d9d9;
	border-bottom: 5px solid #64A2D8;
}

#main {
    overflow: hidden;
}

#subheader {
    overflow: hidden;
	background-color: #474747;
	margin-bottom: 20px;
	box-shadow: 0 0 10px #393939;
}
#subheader .you-are-here {
	margin-top: 0;
}
#subheader .about {
	float: left;
	width: 280px;
	padding: 20px;
	line-height: 1.5em;
}
#subheader .about h1 {
	margin-top: 0;
    line-height: 1.25em;

}
#subheader .header-image {
	float: right;
}
#subheader .header-image-left {
	float: left;
}
#subheader .header-image,
#subheader .header-image-left {
    width: 640px;
    box-shadow: 0 0 10px 0 #2d2d2d;
}

/* Single post */
#header-banner-left {
	float: left;
	width: 640px;
}
.about .smallinfo {
	font-size: 0.85em;
}
.about .smallinfo span {
	font-weight: bold;
	color: #b2b2b2;
}
#content .post-content,
#content .entry-content {
	line-height: 1.5em;
}
#content .post-content img.size-full {
	margin: 20px auto 0 auto;
}
#content .post-content .wp-caption {
	text-align: left;
	width: auto !important;
	padding: 0;
}
#content .post-content .wp-caption-text {
	margin-top: 0;
	font-size: 0.9em;
}

/* Single attachment (image) */
.attachment-image {
	text-align: center;
}
#excerpt {
	margin-top: 5px;
	line-height: 1.5em;
	text-align: center;
}
#exif-data {
	font-size: 0.85em;
	margin-bottom: 0;
}
#exif-data span {
	color: #999999;
	margin-left: 1em;
}
#imagefile {
	width: 960px;
	background-color: #363636;
	box-shadow: 0 4px 7px #2d2d2d;
	text-align: center;
}
#imagefile a {
	display: block;
	line-height: 0;
}
#imagefile img {
	box-shadow: none;
}
#exif {
	text-align: center;
}

/* Galleries */
.gallery {
	text-align: center;
}
.gallery-size-thumbnail {
	margin: 20px 20px 0 20px;
}
.gallery-size-thumbnail .gallery-item {
	display: inline-block;
	margin: 0 10px 20px 10px;
	vertical-align: top;
	width: 150px;
	height: 200px;
}
.gallery-size-thumbnail .gallery-caption {
	font-size: 0.85em;
	margin: 2px 0 0 0;
	overflow: hidden;
	height: 4em;
}

/* Content */
#posts {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
    justify-content: center;
}
#posts .single-post {
	display: inline-block;
    margin: 10px;
	text-align: center;
	min-width: 300px;
    max-width: 400px;
	height: 200px;
	overflow: hidden;
	position: relative;
    flex-grow: 1;
}
#posts .single-post a {
	display: inline-block;
	vertical-align: bottom;
    background-size: cover;
    background-position: 50% 50%;
    width: 100%;
    height: 100%;
}
#posts .single-post a img {
	max-width: 360px;
}
#posts .single-post a p {
	position: absolute;
	text-align: left;
	display: inline-block;
	bottom: 0;
	right: 0;
    left: 0;
	margin: 0;
	padding: 10px 15px;
	opacity: 0.95;
    background-color: rgb(32,32,32);
    font-weight: bold;
}
#posts .single-post a p span {
	font-weight: normal;
	display: block;
	font-size: 0.7em;
}
#posts .single-post a:hover p {
	background-color: #2d2d2d;
}

/* Footer */
footer {
    margin-top: 30px;
	padding: 30px;
	font-size: 0.85em;
	text-align: center;
}
footer p {
    margin: 10px;
}

/* Comments */
#comments {
	width: 640px;
	margin: auto;
}
#comments ol,
#comments ul {
	list-style-type: none;
}
#comments ol.comment-list {
	padding-left: 0;
}
#comments li.depth-1 {
	padding-bottom: 20px;
	border-bottom: 1px solid #606060;
}
#comments li {
	padding: 20px 0 0 0;
}
#comments p {
	margin: 20px 0 20px 58px;
	line-height: 1.5em;
}
#comments .reply {
	margin-left: 58px;
	font-size: 0.85em;
}
#comments .comment-meta .avatar {
	float: left;
	margin-right: 10px;
}
#comments .comment-meta .comment-by {
	font-weight: bold;
	line-height: 2em;
}
#comments .comment-meta .commentmetadata {
	font-size: 0.85em;
}

/* Comment form */
#respond {
	width: 640px;
	margin: 40px auto 0 auto;
}
#respond .comment-form-comment label {
	display: block;
	font-style: oblique;
	margin-bottom: 2px;
}

textarea {
	width: 100%;
	height: 100px;
	background-color: #2d2d2d;
	border: 1px inset #2d2d2d;
	color: #D9D9D9;
	padding: 2px;
	border-radius: 2px;
}

input[type='text'] {
	background-color: #2d2d2d;
	border: 1px inset #2d2d2d;
	color: #D9D9D9;
	padding: 2px;
	border-radius: 2px;
}

input[type='submit'],
button {
	background-color: #2d2d2d;
	border: 1px outset #2d2d2d;
	color: #D9D9D9;
	padding: 3px 10px;
	border-radius: 5px;
	box-shadow: inset 0 15px 20px -20px #ffffff;
}

input[type='submit']:hover,
button:hover {
	background-color: #3d3d3d;
}

input[type='submit']:active,
button:active {
	border: 1px inset #2d2d2d;
	box-shadow: inset 0 -15px 20px -20px #ffffff;
}

@media (max-width: 959px) {
    #topheader {
        height: auto;
        position: static;
        text-align: center;
        margin-bottom: 20px;
        overflow: visible;
    }
    #topheader #logo {
        float: none;
    }
    #topheader #main-ads {
        float: none;
    }
    #topheader #main-ads img {
        max-width: 100%;
    }
    #topheader nav {
        position: static;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        line-height: 50px;
    }
    #topheader nav ul {
        padding: 0;
    }
    #topheader nav a {
        padding: 10px 30px;
    }
    #subheader .header-image,
    #subheader .header-image-left {
        width: 100%;
        float: none;
    }
    #subheader .about {
        text-align: center;
        width: 90%;
        width: calc( 100% - 40px );
        float: none;
    }
    #subheader .about .smallinfo {
        text-align: left;
    }
    #content h2 {
        text-align: center;
    }
    .post-content p {
        padding: 0 10px;
    }
    .post-content .gallery img {
        width: 100%;
    }
    #topheader,
    #comments,
    #respond {
        width: 95%;
        width: calc( 100% - 20px );
        padding: 0 10px;
    }
}


#patreon-linkki {
	background-image:url(http://photour.net/wp-content/uploads/2015/03/patreon.png);
	display:block;
	height:112px;
	width:345px;
	text-indent:-9999px;
}
