@charset "utf-8";
/*
Theme Name: BirdSITE
Theme URI: http://www.sysbird.jp/birdsite/theme/
Description: BirdSITE is a photoblogging theme. The theme has grid layout and uses CSS3 media queries for its responsive layout and is therefore optimized for tablet pcs and smart phones. Features include the Theme Customize. You can choose the text color, link color, header line and footer background color and navigation color.
Author: Sysbird
Author URI: https://profiles.wordpress.org/sysbird/
Version: 1.06
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: white, two-columns, left-sidebar, responsive-layout, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, photoblogging
Text Domain: birdsite

This theme, like WordPress, is licensed under the GPL.
*/

@import "compass";
@import "compass/reset";

// variable
$background-color: #F5F5F5;
$text-color: #555;
$link-color: #06A;
$accent_color: #000;
$navigation_color: #555;
$border-color: #CCC;
$meta-color: #999;
$menu-width: 240px;

/*------------------------------
Font Awesome
-----------------------------*/
@font-face {
	font-family: 'FontAwesome';
	src: url("font-awesome/fontawesome-webfont.eot?v=4.1.0");
	src: url("font-awesome/fontawesome-webfont.eot?#iefix&v=4.1.0") format("embedded-opentype"), url("font-awesome/fontawesome-webfont.woff?v=4.1.0") format("woff"), url("font-awesome/fontawesome-webfont.ttf?v=4.1.0") format("truetype"), url("font-awesome/fontawesome-webfont.svg?v=4.1.0#fontawesomeregular") format("svg");
	font-weight: normal;
	font-style: normal;
}

@mixin font-awesome( $param, $padding-left:0, $padding-right:0 ) {
	content: $param;
	display: inline-block;
	font-family: FontAwesome;
	font-style: normal;
	font-weight: normal;
	line-height: 1;
	padding-left: $padding-left;
	padding-right: $padding-right;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Index
--------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	margin: 0.7em 0;
	line-height:1.2;
	color: $accent_color;
}

h1 {font-size:2.4rem;}
h2 {font-size:2rem;}
h3 {font-size:1.8rem;}
h4 {font-size:1.6rem;}
h5 {font-size:1.4rem;}
h6 {font-size:1.2rem;}

/* Link
--------------------------------------------- */
a {
	color: $link-color;
	text-decoration: none;

	&:hover {
		text-decoration: underline;
	}
}

/* Structure
--------------------------------------------- */
body {
	margin:0;
	padding:0;
	border:0;
	width:100%;
}

.container {
	max-width: 1060px;
}

#header {
	float: left;
	width: $menu-width;
	margin-right: -($menu-width);
	position: relative;
	z-index: 2;
}

.main {
	float: left;
	min-height: 300px;
	width: 100%;
}

#content {
	margin-left: $menu-width;
	position: relative;
	z-index: 1;
}

#footer {
	overflow: hidden;
	clear: both;
	width: 100%;
	margin: 0 auto;
}

/* Body
-------------------------------------------------------------- */
body {
	background-color: $background-color;
}

/* Wrapper
-------------------------------------------------------------- */
.wrapper {
	font-family: 'Lucida Grande','Verdana','Hiragino Kaku Gothic ProN',Meiryo, sans-serif;
 	font-size: 0.92em;
	color: $text-color;
	border-top: solid 7px $accent_color;
	word-wrap:break-word;
	overflow: hidden;

	* {
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		-o-box-sizing: border-box;
		-ms-box-sizing: border-box;
		box-sizing: border-box;
	}
}

/* Header
-------------------------------------------------------------- */
#header {
	padding-top: 40px;

	.branding {
		font-family: Georgia,"Bitstream Charter",serif;
		padding-left: 1.4em;
		color: $accent_color;
		margin-bottom: 20px;

		.site-title {
			font-size: 2.4rem;
			font-size: 2.4em\9;  /* IE8 and below */
			font-weight: bold;
			line-height: 1;
			margin: 0;

			a {
				color: $accent_color;
			}
		}

		.site-description {
			margin-top: 1rem;
			font-size: 1rem;
			line-height: 1.4;
		}
	}

	.header-image {
		display: block;
		margin-bottom: 20px;

		img {
			max-width: 100%;
			vertical-align:bottom
		}
	}

	&.no-title {
		.branding {
			margin-bottom: 0;

			.site-title,
			.site-description {
				position: absolute !important;
				clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
				clip: rect(1px, 1px, 1px, 1px);
			}
		}
	}
}

/* Footer
-------------------------------------------------------------- */
#footer {
	background: $accent_color;
	padding: 40px 0;
	color: #FFF;

	ul.row {
		padding: 0;
		margin: 0 0 20px 0;
		list-style: none outside none;
		@include clearfix;

		&>li {
			float: left;
			min-height: 1px;
			margin: 0 0 0 3%;
			width: 30%;
		}
	}

	a {
		color: #FFF;
	}

	.site-title {
		border-top: solid 3px #FFF;
		padding: 40px 0 0 20px;
		line-height: 1.6;

		.home {
			font-weight: bold;
		}

		.generator {
			font-family: Georgia, "Bitstream Charter", serif;
			font-style: italic;

			&:after {
			    @include font-awesome( "\f19a", 0.4em, 0.4em );
			}
		}
	}

	#back-top {
		position: fixed;
		bottom: 20px;
		right: 20px;
		z-index: 3;

		a {
			background: $border-color;
			border-radius: 100px;
			display: block;
			height: 50px;
			width: 50px;
			text-align: center;
			text-decoration: none;
			@include opacity( 0.7 );

			span {
				@include hide-text;
				display: block;
			}

			&:hover {
				text-decoration: none;
				@include opacity( 0.8 );
			}

			&:before {
				@include font-awesome( "\f077" );
				font-size: 30px;
				display: block;
				text-align: center;
				padding-top: 8px;
				color: $meta-color;
			}
		}
	}
}

/* Menu
-------------------------------------------------------------- */
#menu-wrapper {
	.menu {
		width: $menu-width;

		#small-menu {
			display: none; /* hide small menu initially */
		}

		ul {
			margin: 0;
			padding: 0;
			*zoom: 1;
			&:after {
				clear: both;
				content: "";
				display: block;
			}

			li {
				padding: 0;
				width: $menu-width;
				list-style: none;
				position: relative;

				&:hover > ul {
					display: block; /* show dropdown on hover */
				}

				a {
					border-top: dotted 1px $navigation_color;
					padding: 0.6em 1em;
					display: block;
					width: $menu-width - 2;
					color: $navigation_color;
					text-decoration: none;
					line-height: 1.2;
					*white-space: nowrap; /* IE7 and below */

					&:hover {
						background: #FFF;
					}
				}

				&:first-child {
					> a {
						border: none;
					}
				}

				&.menu-item-has-children {
					>a:after {
						position: absolute;
						top: 0.7em;
						right: 0;
						width: 0.6em;
						height: 0.8em;
						@include font-awesome("\f0da");
					}
				}

				ul {
					background: $background-color;
					border: dotted 1px $navigation_color;
					display: none; /* hide dropdown */
					width: $menu-width;
					position: absolute;
					top: 0;
					left: $menu-width;
					z-index: 2;

					li {
						float: none;
						margin: 0;
						padding: 0;

						a {
							white-space: normal;
						}

						ul {
							margin: -1px 0 0 -2px;
						}
					}
				}
			}
		}

		.current-menu-item > a,
		.current-menu-ancestor > a {
			font-weight: bold;
		}
	}
}

/* Posts
--------------------------------------------- */
#content{

	padding: 40px 0;

	h2 {
		border-bottom: dashed 1px $border-color;
		padding-bottom: 0.4em;
	}

	h3 {
		border-left: solid 7px $border-color;
		padding-left: 10px;
	}

	p {
		line-height: 1.6;
		margin: 0 0 1.6em;
	}

	blockquote {
		margin-left: 1em;
		padding-left: 1em;
		border-left: 5px solid $border-color;
		font-style: italic;
	}

	small {
		line-height: 1;
		color: $meta-color;
	}

	cite:before {
		content: "-";
	}

	cite {
		color: $meta-color;
		display: block;
	}

	table {
		max-width: 100%;
		width: 100%;
		border-collapse: collapse;
		border-spacing: 0;
		margin-bottom: 1.6em;

		caption {
			font-size: 1.2rem;
			font-style: bold;
			padding: 0.5em 0;
		}

		th,
		td {
			border: 1px solid $border-color;
			line-height: 1.4;
			padding: 0.4em;
			text-align: left;
			vertical-align: top;
		}

		th {
			background: $background-color;
			font-weight: bold;
		}
	}

	pre {
		border: dotted 1px $border-color;
		padding: 0.8em;
		margin-bottom: 1.6em;
		line-height: 1.4;
	}

	code, kbd, pre, samp {
	    font-family: monospace,serif;
	}

	hr {
	    background-color: $border-color;
	    border: 0 none;
	    height: 1px;
	    margin-bottom: 1.6m;
	}

	hr {
	    background-color: $border-color;
	    border: 0 none;
	    height: 1px;
	    margin-bottom: 1.6m;
	}

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

	sub {
		top: 0.5ex;
	}

	sup {
		bottom: 1ex;
	}

	em {
		font-style: italic;
	}

	strong {
		font-weight: bold;
	}

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

	ul,
	ol {
		margin: 0 0 1.6em 1em;
		padding: 0 0 0 1em;
		line-height: 1.4;

		li {
			padding: 0.2em 0;
		}

		ul,
		ol {
			margin-bottom: 0;
		}
	}

	ul {
		list-style: disc;
		ul {
			list-style: circle;
			ul {
				list-style: square;
			}
		}
	}

	ol {
		list-style: decimal;
		ol {
			list-style:upper-alpha;
			ol {
				list-style:lower-roman;
				ol {
					list-style:lower-alpha;
				}
			}
		}
	}

	dl {
		margin:0 0 1em 0;
		line-height: 1.6;

		dt {
			font-weight: bold;
		}

		dd {
			margin: 0 1.5em 1.6em;
			padding: 0;
		}
	}

	del {
		color: #C00;
	}

	ins {
		background: #ffc;
		text-decoration: none;
	}

	.hentry {
		margin-left: 20px;
		padding: 40px;
		background: #FFF;

		.entry-header {
			margin-bottom: 1.6em;

			.entry-title {
				font-size: 2rem;
				font-weight: normal;
				color: $text-color;
				border-bottom: dotted 1px $border-color;
				padding-bottom: 40px;
				margin: 0;

				a {
					color: $text-color;
				}
			}
		}

		.entry-content {
			margin-bottom: 1.6em;
			@include clearfix;
		}

		.entry-meta {
			clear: both;
			background: $background-color;
			line-height: 1.2;
			padding: 0.8em;
			margin-bottom: 1.6em;

			a {
				color: $text-color;
			}

			div {
				margin-bottom: 0.4em;
				&:before {
					color: $border-color;
				}
			}

			.postdate {
				&:before {
				    @include font-awesome( "\f017", 0, 0.4em );
				}
			}

			.author {
				&:before {
				    @include font-awesome( "\f007", 0, 0.4em );
				}
			}

			.category {
				&:before {
				    @include font-awesome( "\f07b", 0, 0.4em );
				}
			}

			.tag {
				&:before {
				    @include font-awesome( "\f02b", 0, 0.4em );
				}
			}

			.comment {
				&:before {
				    @include font-awesome( "\f075", 0, 0.4em );
				}
			}

			.parent-post-link {
				&:before {
				    @include font-awesome( "\f1c5", 0, 0.4em );
				}
			}
		}

		.page-link {
			clear: both;
			margin: 1.6em 0;
			color: $link-color;

			span {
				background: $link-color;
				color: #FFF;
				padding: 0.4em 0.6em;
				margin: 0.1em 0 0.1em 0;
				text-decoration:none;
				font-weight: normal;
				text-align: center;
				border: solid 1px $link-color;
				display: inline-block;
				line-height: 1;
			}

			a {
				span {
					color: $link-color;
					background: #FFF;

					&:hover {
						background: $background-color;
					}
				}
			}
		}
	}

	.tablenav {
		clear: both;
		color: $link-color;
		padding: 20px 0 0;
		@include clearfix;

		a.page-numbers,
		.current {
			display: inline-block;
			background: #FFF;
			color: $link-color;
			border:solid 1px $link-color;
			text-decoration:none;
			text-align: center;
			padding: 0.4em 0.6em;
			margin: 0.1em 0.1em 0.1em 0;

			&.prev,
			&.next {
				background: none;
				border: none;
			}
		}

		a.page-numbers:hover {
			background: $background-color;

			&.prev,
			&.next {
				background: none;
				text-decoration: underline;
			}
		}

		.current {
			color: #FFF;
			background: $link-color;
			border:solid 1px $link-color;
		}

		a.next {
		    padding-right: 0;

			&:after {
			    @include font-awesome( "\f054", 0.4em );
			}
		}

		a.prev {
		    padding-left: 0;

			&:before {
			    @include font-awesome( "\f053", 0, 0.4em );
			}
		}
	}
}

/*  Home Thumbnails */
.home #content {

	ul.row {
		padding: 0;
		margin: 0;
		list-style: none outside none;
		@include clearfix;

		li {
			float: left;
			position: relative;
			min-height: 1px;
			margin: 0 0 20px 20px;
			padding: 0;
			width: 250px;
			height: 250px;
			background: #FFF;
			overflow: hidden;

			.more-link {
				position: absolute;
				top: 0;
				left: 0;
				width: 250px;
				height: 250px;

				a {
					z-index: 9\9; /* IE8 and below */
					background: url("images/null.gif") repeat left top\9; /* IE8 and below */
					display: block;
					width: 250px;
					height: 250px;
					@include hide-text;
					@include opacity( 0.6 );
				}
			}

			.thumbnail {
				position: relative;
				width: 240px;
				height: 240px;
				margin: 5px auto;
				overflow: hidden;

				img {
					position: absolute;
					top: 0;
					left: 0;
					display: block;
					max-width: none;
				}

				.more-link {
					top: -5px;
					left: -5px;
				}
			}

			.caption {
				position: absolute;
				color: #FFF;
				background-color: rgba(0, 0, 0, 0.5);
				background-color: #000\9;  /* IE8 and below */
				top: 0;
				left: 0;
				width: 250px;
				height: 250px;
				line-height: 1.4;
				overflow: hidden;

				a {
					text-decoration: none;
					color: #FFF;
				}

				.entry-header {
					padding: 0.8em;
					margin: 0;

					.entry-title {
						font-size: 1.6rem;
						color: #FFF;
						font-weight: normal;
						border-bottom: none;
						padding: 0;

						a {
							color: #FFF;
						}
					}
				}

				.entry-meta {
					padding: 0 1em;
					background: none;
				}

				.more-link {
					a {
						position: relative;

						&:after {
							position: absolute;
							right: 0;
							bottom: 0;
							width: 0.5em;
							height: 1.2em;
							color: #FFF;
							@include font-awesome( "\f054", 0, 0.4em );
							font-size: 3em;
							text-indent: 0;
						}
					}
				}
			}

			&.has-image {
				.caption {
					@include opacity( 0 );
				}
			}

			&.sticky {
				position: relative;

				i {
					position: absolute;
					top: -3px;
					right: -15px;
					font-size: 12px;
					background: $accent-color;
					color: #fff;
					text-align: center;
					width: 50px;
					padding: 3px;
					@include rotate(45deg);

					 &:before {
					     @include font-awesome("\f005");
					}
				}
			}
		}
	}

	.tablenav {
		padding-left: 20px;
	}
}

/* Single
-------------------------------------------------------------------- */
.single {
	#content #nav-below {
		margin-top: 1.6em;
		line-height: 1.2;
		@include clearfix;

		.nav-next {
			a {
				&:before {
				    @include font-awesome( "\f053", 0, 0.4em );
				}
			}
		}

		.nav-previous {
			display: block;
			float: right;

			a {
				&:after {
				    @include font-awesome( "\f054", 0.4em );
				}
			}
		}
	}
}

/* Archive
-------------------------------------------------------------------- */
.attachment {

	#content {
		.hentry {

			.entry-attachment {
				text-align: center;
				margin-bottom: 1.6em;

				.wp-caption {
					background: none;
				}
			}
		}
	}
}

/* Images
-------------------------------------------------------------- */
#content .hentry img,
.widget img {
	max-width: 100%;
	height: auto;
}

img[class*="align"],
img[class*="wp-image-"] {
	height: auto;
}

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

.alignleft {
	float: left;
	margin-right: 0.75em;
}

.alignright {
	float: right;
	margin-left: 0.75em;
}

img.alignleft,
img.alignright,
img.aligncenter {
	margin-bottom: 0.75em;
}

a:hover img {
	@include opacity( 0.9 );
}

#content .hentry {
	.wp-caption,
	.gallery-caption {
		font-size: 0.9em;
		line-height: 1;
		color: $meta-color;
		max-width: 100%;
		text-align: center;
	}

	.wp-caption {
		max-width: 100%;
		background-color: $background-color;
		padding: 5px;

		p {
			text-align: center;
			margin: 5px 0 0 0;
			line-height: 1;
		}
	}

	.gallery-caption {
		margin: 5px 0 0 0;
	}

	.gallery {
		margin: 0 auto;
		clear: both;

		.gallery-item {
			float: left;
			padding: 0 5px;
			margin-bottom: 10px;
			text-align: center;
			width: 33%;

			a {
				display: block;
			}

			img {
				vertical-align:bottom;
			}
		}

		&.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%;
		}
	}
}

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

.entry-content .twitter-tweet-rendered {
	max-width: 100% !important; /* Override the Twitter embed fixed width */
}

/* Comments
-------------------------------------------------------------- */
#content #comments {
	margin-top: 1.6em;

	.navigation {
		position: relative;
		height: 1em;
		margin-bottom: 0.8em;

		&.bottom {
			margin-bottom: 1.6em;
		}

		.nav-previous a {
			position: absolute;
			top: 0;
			right: 0;

			&:after {
				@include font-awesome( "\f054", 0.4em );
			}
		}

		.nav-next a {
			position: absolute;
			top: 0;
			left: 0;

			&:before {
				@include font-awesome( "\f053", 0, 0.4em );
			}
		}
	}

	ol.commentlist {
		list-style: none;
		margin: 0;
		padding-left: 0;

		li.trackback,
		li.pingback,
		li.comment {
			border-left: 2px solid $border-color;
			clear: both;
			margin-bottom: 0.8em;
			padding: 0 0 0 0.8em;
			position: relative;
			list-style: none;
			@include clearfix;
		}
	}

	li {
		&.trackback,
		&.pingback {
			.posted {
				a.web:after {
					@include font-awesome("\f08e", 0.2em, 0.2em );
				}
			}
		}

		.comment_meta {
			.author {
				font-weight: bold;
			}

			.postdate {
				color: $meta-color;
				font-size: 0.85rem;

				&:before {
					@include font-awesome( "\f017", 0.2em, 0.2em );
				}
			}

			.comment-reply-link {
				&:before {
					@include font-awesome( "\f112", 0.4em, 0.4em );
				}
			}

			img {
				border: none;
				margin: 0 10px 5px 0;
				float: left;
			}
		}

		.comment_text {
			clear: both;
			margin: 0 0 0.7em 55px;

			p {
				line-height: 1.4;

				&.web {
					a:after {
						@include font-awesome( "\f08e", 0.4em, 0 );
					}
				}
			}
		}

		&.bypostauthor .comment_meta .author {
			color: $accent_color;
		}

		&.awaiting  {
			.author,
			.comment_text,
			.comment_text a {
				color: $meta_color;
			}

			.attention {
				display: block;
				color: #C00;
			}
		}
	}
}

/* Forms
-------------------------------------------------------------- */
#comments #commentform {
	border: dashed 1px $border-color;
	padding: 10px 5%;
	margin: 15px 0;
	width: 100%;

	em {
		display: block;
		padding: 1em 0 0.4em;
		font-style: normal;
	}

	label input {
		width: 300px;
	  	padding: 5px;
		background: #FFF;
		border: solid 1px $border-color;
	}

	textarea {
		width: 100%;
		height: 100px;
	  	padding:5px;
		background: #FFF;
		border: solid 1px $border-color;
	}

	input#submit {
		padding: 5px 10px;
	}

	.form-allowed-tags {
		font-size: 0.9rem;
		color: $meta-color;
	}

	.form-allowed-tags code {
		display: block;
	}
}

form {
	input,
	select,
	textarea {
		max-width: 95%;
	}
}

/* Archive
-------------------------------------------------------------------- */
.archive,
.search,
.error404 {
	#content {
		.hentry {
			.entry-header {
				margin-bottom: 0;
			}
		}

		ul {
			margin: 0;
			padding: 0 0 20px 0;
			list-style: none;

			li {
				border-bottom: dotted 1px $border-color;
				line-height: 1.2;
				padding: 0;

				a {
					display: block;
					padding: 5px 0;
					color: $text-color;
					@include clearfix;

					&:hover {
						text-decoration: none;
						background: $background-color;
					}
				}

				p {
					margin: 0 0 0 60px;
					line-height: 1.2;
					font-size: 1.2rem;
				}

				img {
					float: left;
					margin-right: 10px;
					width: 50px;
					height: 50px;
				}

				.postdate {
					color: $meta-color;
					font-size: 0.85rem;
					margin-top: 5px;
					display: block;

					&:before {
						@include font-awesome( "\f017", 0, 0.4em );
					}
				}
			}
		}
	}
}

/* Widget
-------------------------------------------------------------- */
.widget {
	margin-bottom: 2em;

	a {
		text-decoration: none;

		&:hover {
			text-decoration: underline;
		}
	}

	.widget_image img {
		height: auto;
		max-width: 100%;
	}

	h3 {
		font-size: 1.4rem;
		font-weight: normal;
		margin: 0 0 10px 0;
		padding: 0 0 5px 0;
		border-bottom: solid 3px #FFF;
		color: #FFF;
	}

	ul {
		list-style: none;
		padding: 0;
		margin-left: 0;
		line-height: 1.4;
		overflow: hidden;

		li {
			margin: -1px 0 0 0;
			border-top: dotted 1px #FFF;
			padding: 0.4em 0 0.4em 0.8em;
			text-indent: -0.4em;

			&:before {
				@include font-awesome( "\f0da", 0, 0.2em);
			}

			a {
				color: #FFF;
			}

			ul {
				padding: 0.5em 0 0 1em;
			}
		}
	}

	table {
		width: 100%;
		margin-bottom: 0;
		padding-bottom: 0;
	}

	.textwidget {
		line-height: 1.4;

		a {
			text-decoration: underline;
		}
	}

	#wp-calendar {
		border-collapse: collapse;
		border-spacing: 0;

		caption {
			font-size: 1.4rem;
			font-weight: normal;
			margin-bottom: 10px;
		}

		tbody {
			th,
			td {
				text-align: center;
				border-top: 1px solid $border-color;
				padding: 8px;

				a {
					font-weight: bold;
					display: block;
					padding: 2px 0;
					margin: 0 auto;
					background: #FFF;
					color: $accent_color;

					&:hover {
						background: $border-color;
						text-decoration: none;
					}
				}
		    }
		}

		thead {
			th {
				padding: 8px;
				text-align: center;
			}
		}

		tfoot {
			border-top: 1px solid $border-color;

			a {
				font-size: 1.2em;
			}

			#next {
				text-align: right;
			}

			td {
				padding: 8px 0;
			}
		}
	}
}

/* Searcform
--------------------------------------------- */
#searchform {
	width: 100%;
	height: 30px;
	position: relative;

	label {
	    display: block;
	    font-size: 0;
	    overflow: hidden;
	    text-indent: -9999px;
	}

	#s {
		width: 80%;
		padding: 5px 10px 5px 5px;
		height: 30px;
		line-height: 1;
		border-radius: 4px 0 0 4px;
		border: none;
	}

	#searchsubmit {
		position: absolute;
		top: 0;
		right: 1px;
		border: 0 none;
		cursor: pointer;
		width: 20%;
		height: 30px;
		border-radius: 0 4px 4px 0;
		margin: 0;
		background: $border-color;
		color: #FFF;
		-webkit-appearance: button;
		@include font-awesome( "\f005" );
		font-size: 1.2em;
	}
}

/* Media queries for responsive design
--------------------------------------------- */
/* --- Smartphones and small Tablet PCs --- */
@media screen and (max-width: 810px) {

	.home #content {

		ul.row {
			li {
				float: none;

				.more-link {
					a {
						position: relative;

						&:after {
							position: absolute;
							right: 0;
							bottom: 0;
							width: 0.5em;
							height: 1.2em;
							color: #FFF;
							@include font-awesome( "\f054", 0, 0.4em );
							font-size: 3em;
							text-indent: 0;
						}
					}
				}
			}
		}
	}

	#footer {
		padding: 20px 0;
		.container {
			padding: 0 10px;
		}

		ul.row {
			margin: 0 0 10px 0;

			&>li {
				float: none;
				width: 100%;
				margin: 0;
			}
		}

		.site-title {
			padding: 10px 0 0 0;
			text-align: center;
		}
	}

	.widget {
		ul {
			li {
				border-top: none;
				display: inline;

				ul {
					margin-left: 2em;
					padding-top: 0;

					li{
						a {
							padding: 0.2em 0.2em 0.2em 0;
						}
					}
				}
			}

			@include clearfix;
		}
	}

	#content .hentry {
		.gallery {
			margin: 0 10%;

			.gallery-item {
				width: 31%;
				padding-right: 2%;
				margin: 0;

				img {
					width: 100%;
					height: auto;
				}
			}

			.wp-caption,
			.gallery-caption {
				display: none;
			}
		}
	}
}

/* --- Smartphones and small Tablet PCs --- */
@media screen and (max-width: 600px) {
	.wrapper {
	 	font-size: 1em;
	}

	.main {
		float: none;
	}

	#header {
		width: 100%;
		float: none;
		padding: 0;
		position: static;

		.branding {
			padding: 2.4em 0;
			margin-bottom: 0;
			text-align: center;

			.site-description {
				display: none;
			}
		}

		.header-image {
			margin-bottom: 0;
		}

		&.no-image {
			min-height: 2.2em;
			padding: 0;
		}

		&.no-title {
			.branding {
				padding: 0;
			}
		}
	}

	#content {
		margin: 0 auto;
		padding: 0;

		.hentry {
			margin-left: 0;
			padding: 10px;

			.entry-header {
				 margin-bottom: 10px;

				.entry-title {
					padding-bottom: 10px;
				}
			}
		}

		.tablenav {
			padding: 0 10px 10px;
			text-align: center;
		}
	}

	.home {
		#header {
			margin-bottom: 20px;

			&.no-image {
				margin-bottom: 0;
			}
		}

		#content {
			ul.row {
				li {
					margin: 0 auto 20px;
				}
			}

			.tablenav {
				padding-left:  10px;
				padding-bottom: 20px
			}
		}
	}

	.single {
		#content #nav-below {
			margin-bottom: 1.6em;
		}
	}


	/* small menu */
	#menu-wrapper {
		position: absolute;
		top: 0;
		left: -($menu-width);
		z-index: 3;

		.menu {
			margin-top: 0;

			#small-menu {
				cursor: pointer;
				display: block;
				position: absolute;
				top: 0;
				left: $menu-width;
				width: 2.8em;
				height: 2.8em;
				background-color: $navigation_color;
				color: #FFF;
				text-align: center;
				border-bottom-right-radius : 8px;
				padding: 0.4em;

				&:after {
					@include font-awesome( "\f0c9" );
					font-size: 2em;
				}
			}

			ul#menu-primary-items {
				clear: both;
				width: $menu-width;
				background: $navigation_color;
				border-bottom-right-radius : 8px;
				padding: 0 5px 5px;
				z-index: 3;

				li {
					clear: both;
					float: none;
					width: 100%;
					margin-top: -1px;
					background: none;

					a {
						border-top: dotted 1px #FFF;
						color: #FFF;
						white-space: normal;
						padding: 0.4em;
						width: auto;

						&:hover {
							background: none;
							color: $border-color;
						}
					}

					&.menu-item-has-children {
						>a:after {
							@include font-awesome("");
						}
					}

					ul {
						width: auto;
						position: static;
						left: 0;
						display: block;
						border: none;
						background: none;
						width: 100%;

						li {
							border: none;
							background: none;
							margin-left: 2em;
							width: auto;
						}
					}
				}

				.current-menu-item > a,
				.current-menu-ancestor > a {
					color: $border-color;
				}
			}
		}
	}

	body {
		position: relative;

		&.open-menu {
			//overflow: hidden;

			.overlay {
				position: absolute;
				z-index: 2;
				top: 0;
				left: 0;
				width:100%;
				height: 100%;
				background: #000;
				@include opacity( 0.7 );
			}

			#menu-wrapper {
				.menu {
					#small-menu {
						&:after {
							@include font-awesome( "\f00d" );
						}
					}
				}
			}
		}
	}
}

@media screen and (min-width: 600px) {

	/* ensure .menu is visible on desktop version */
	ul#menu-primary-items {
		display: block !important;
	}
}
