/*
Theme Name: Aalto Sites House Styles: 2 Column Basic
Theme URI: http://static-staging.new.sites.aalto.fi
Author: Aalto Web Studio
Author URI: http://webstudio.aalto.fi
Description: Description
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aalto_sites_2_column
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.

aalto_sites_2_column was initially based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc.

*/


@import url("font-awesome.min.css");

/*--------------------------------------------------------------
# Normalize

--------------------------------------------------------------*/
html {
	font-family: helvetica, arial, sans-serif;
	font-weight: 300;
	-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 {
	color: #0D60B6;
	background-color: transparent;
	text-decoration: none;
	-webkit-font-smoothing: antialiased;
}

a:visited
{
	color: #0D60B6;
}

a:focus {
	outline: thin dotted;
}

a:hover
{
	color: #488a00;
	outline: 0;
}

a:active {
	color: #ddd;
	outline: 0;
}


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

b,
strong {
	font-weight: bold;
}

dfn {
	font-style: italic;
}

h1 {
	font-size: 2rem;
	margin: 2px 0 8px 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;
	border: 1px solid rgba(0,0,0,0.2);
	border-radius: 4px;
	-webkit-appearance: none;	
}

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-appearance: textfield;
	//box-sizing: content-box;
}

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-size: 16px;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	-webkit-font-smoothing: antialiased;
	font-weight: 500;
}

p {
	margin: 0 0 8px 0;
}

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

/*--------------------------------------------------------------
# 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: #fff; /* 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;
	padding-left: 1.5em
}

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. */
}

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

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	//border: 1px solid;
	//border-color: #ccc #ccc #bbb;
	//border-radius: 3px;
	//background: #e6e6e6;
	//box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 15px 17px rgba(255, 255, 255, 0.5), inset 0 -5px 12px rgba(0, 0, 0, 0.05);
	color: rgba(0, 0, 0, .8);
	//font-size: 12px;
	//font-size: 0.75rem;
	//line-height: 1;
	padding: .6em 1em .4em;
	//text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	//border-color: #ccc #bbb #aaa;
	//box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 15px 17px rgba(255, 255, 255, 0.8), inset 0 -5px 12px rgba(0, 0, 0, 0.02);
}

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: #aaa #bbb #bbb;
	//box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
	color: #666;
	font-size: 0.8rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
	color: #111;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"] {
	padding: 0 2px;
}

textarea {
	padding-left: 3px;
	width: 100%;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Layout
--------------------------------------------------------------*/

#primary
{	
	float: left;
	width: 100%;
	margin-right: -332px;
}

#main
{
	margin-right: 356px;	
}

#secondary
{
	float: right;
	margin-top: 12px;
	width: 300px;
	
}

#main #sidebar ul
{
	margin: 0;
	padding: 0;
}

.page-template-frontpage_no_sidebar #main,
.page-template-frontpage_no_sidebar_with_gallery_boxes #main
{
	margin-right: 0;
}

footer
{
	max-width: 1024px;
	margin: 8px auto 8px auto;	
}

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.main-navigation {
	overflow: auto;
}

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

.main-navigation li {
	float: left;
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

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

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

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

.main-navigation ul ul li {

}

.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 {

	color: #666 !important;

}

.main-navigation .search-form
{
	display: inline-block;
    position: relative;
    margin-top: 3px;
    width: 300px;
	float: right;
}

.page-template-frontpage_no_sidebar .main-navigation .search-form,
.page-template-frontpage_no_sidebar_with_gallery_boxes .search-form
{
	display: inline-block
}

.sub-menu
{
	display: none !important;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	//display: block;
}

.menu-toggle {
	display: none;
}

.main-navigation ul {
	display: block;
}

/* 
@media screen and (min-width: 37.5em) {
	.menu-toggle {
		display: none;
	}
	.main-navigation ul {
		display: block;
	}
}
 */

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

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

.screen-reader-text:hover,
.screen-reader-text:active,
.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. */
}

/*--------------------------------------------------------------
# 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;
}

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

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
	margin: 0 0 24px 0;
	font-size: 0.9rem;
}

#frontpage-boxes .widget
{
	position: relative;
	vertical-align: top;
	margin: 0 18px 24px 0;	
	display: inline-block;
	width: 320px;
}


#frontpage-boxes .widget:nth-child(3n)
{
	margin-right: 0;
}

.frontpage-box-image
{
	width: 320px;
	height: 240px;
	background-color: #eee;
	background-size: cover;
	background-repeat: no-repeat;
	overflow: hidden;
}

.frontpage-box-excerpt
{
	position: absolute;
	padding: 8px;
	bottom: 0;
	background: rgba(255,255,255,0.9);
	width: 100%;
}

.frontpage-box-excerpt p
{
	margin: 0; 
}

#frontpage-boxes h1.widget-title
{
	margin-bottom: 0;
}

#frontpage-boxes a
{
	color: #838383;
}

#gallery-boxes .widget
{
	position: relative;
	vertical-align: top;
	margin: 0 4px 4px 0;	
	display: inline-block;
	width: 33%;
	border: 1px solid rgba(0,0,0,0.1);
}

#gallery-boxes .widget:nth-child(3n)
{
	margin-right: 0;
}

.gallery-box-image
{
	width: 100%;
	//height: 120px;
	background-color: #eee;
	//border-radius: 50%;
	//background-size: cover;
	//background-repeat: no-repeat;
	//overflow: hidden;
}

.gallery-box-secondary-image
{
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;	
	float: right;
	margin: 0 12px 12px 12px;
}

.gallery-box-secondary-image img
{
	width: 120px;
}

.gallery-box-excerpt,
.gallery-box-secondary-information
{
	//position: absolute;
	padding: 8px;
	//bottom: 0;
	background: rgba(255,255,255,0.9);
	width: 100%;
}

.gallery-box-excerpt p
{
	margin: 0; 
}

#gallery-boxes h1.widget-title
{
	display: none;
}

#gallery-boxes a
{
	color: #838383;
}

.single-aalto_gallery_box #callToActionArea,
.single-aalto_gallery_box .entry-meta
{
	display: none;
}

.widget-title
{
	color: #838383;
	border-top: 2px solid red;
	border-bottom: 1px solid #ccc;
	padding: 4px 0;
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
}

.widget
{
	//background: #000;
}

.widget + .widget .widget-title
{
	border-top-color: #169661
}

.widget + .widget .widget-title
{
	border-top-color: #47B2E1
}

.widget + .widget + .widget .widget-title
{
	border-top-color: #FC6830
}

.widget + .widget + .widget + .widget .widget-title
{
	border-top-color: #7BBD32
}

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

/* Search widget. */

#searchWrapper
{
	line-height: 1;	
}

.widget_search
{
	margin-bottom: 20px;
	padding-bottom: 4px;
	overflow: hidden;
}

.widget_search .widget-title
{
	display: none;
}

.widget_search  .search-form
{
    position: relative;
    //margin-top: 8px;
    width: 300px;
	float: right;
}

.search-form input
{
    width: 100%;
    height: 22px;
    box-sizing: border-box;
}

.widget_search  .search-form input[type=submit],
.main-navigation .search-form input[type=submit]
{
	font-family: FontAwesome;
    width: 64px;
    position: absolute;
    right:0;
    top: 0;
    bottom: 0;
    border: 0 solid white;
    border-radius: 4px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;    
    line-height: 18px;
    font-size: 0.8rem;
    padding: 0 8px;
    color: #fff !important;
    background-color: #81d742;

}

.widget ul
{
	margin: 0;
	padding: 0;
	list-style-type: none;	
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/
.sticky {
	display: block;
}

.hentry {
	margin: 0 0 1.5em;
}

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

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

.page-content,
.entry-content,
.entry-summary {
	margin: 8px 0;
}

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

.home .entry-header
{
	display: none;
}

/*--------------------------------------------------------------
## Asides
--------------------------------------------------------------*/
.blog .format-aside .entry-title,
.archive .format-aside .entry-title {
	display: none;
}

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

.bypostauthor {
	display: block;
}

/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* 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%;
}

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

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

.wp-caption-text {
	text-align: center;
}

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

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

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

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

.gallery-caption {
	display: block;
}

/* DEGBUG */

#page
{

}

#masthead
{
	top: 0;
	right: 0;
	left: 0;
	min-height: 102px;
	max-width: 1440px;
	margin: 0 auto 0 auto;	
	padding: 0;
	z-index: 9999;
	background: rgba(255,255,255,0.8);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

#mastheadColumn
{
	position: relative;
	max-width: 1024px;
	margin: 0 auto 0 auto;
	padding: 8px 8px 0 8px;
}

.site-branding
{
	padding: 4px 0;
}

.site-branding h1
{
	font-weight: 600;
	font-size: 1.2rem;
	margin: 0 0 4px 0;
	line-height: 100%;

}
.site-branding h2
{
	font-size: 0.9em;
	margin: 0;
	line-height: 100%;
}

.site-logo img
{
	height: 48px;
}

.aalto-menu 
{
	position: absolute;
	top: 8px;
	right: 8px;
	}

.aalto-menu .aalto-logo
{
	width: 60px;
	height: 48px;
	background-image: url(aalto_logo_quote_en.png);
	background-size: 59px;
	background-repeat: no-repeat;
}

#splash-image
{
	margin: 0 auto 0 auto;
	position: relative; 
	width: 100%;
	max-width: 1440px;
	height: 480px;
	background-size: cover;
	background-position: center center;
}

#callToActionArea
{
	display: none;
	position: absolute;
	top: -64px;

/*
	position: relative;
	max-width: 1024px;
	height: 320px;
	margin: 0 auto;
*/
}

#call-to-action
{
    display: inline-block;
    color: white;
    padding: 8px 32px;
    border: 2px solid white;
    background: rgba(0,0,0,0.1);
    text-align: center;
    text-transform: uppercase;
}

#site-navigation
{
	display: none;
	max-width: 1024px;
	margin: 0 auto;
}

#site-navigation li a
{
	padding: 4px 24px 4px 0;
}

.menu-menu-1-container
{
	display: inline-block;
	overflow: auto;
}

#content
{
	position: relative;
	max-width: 1024px;
	margin: 0 auto;
	padding: 6px 8px;
}

p[data-twttr-id="twttr-sandbox-0"]
{
	vertical-align: top;
	display: inline-block;
}

.twitter-timeline
{
	vertical-align: top;
	display: inline-block;
	width: 48% !important;
}

.cff-wrapper
{	
	vertical-align;
	display: inline-block;
	width: 48% !important;
	border:1px solid #e8e8e8;
	border-radius: 5px;
}

/* Incoming changes */

//p,ol,ul,li,th,td,div { font-weight: 300; }

.site-title a { color: #000; }

#call-to-action { font-weight: 100 }

#colophon { display: none; }

.site-branding h1 { font-size: 2.8rem; font-weight: 900; }

.site-description { display: none; }


/* Small screen */

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

	
}

@media screen and (max-width: 768px)
{
	.site-logo img
	{
		height: 32px;
	}

	.aalto-menu .aalto-logo
	{
		width: 38px;
		height: 34px;
		background-size: 38px;
	}

	#site-navigation
	{
		width: 100%;
	}

	.main-navigation .search-form
	{
		width: 100%;
		margin-top: 8px;
		float: none;
		margin-bottom: 6px;
	}
	
	.search-form input
	{
	    height: 32px;
	}	

	#splash-image
	{
		margin: 0 auto 0 auto;
		height: 240px;
	}
	
    #primary
    {	
    	float: none;
    	width: 100%;
    	margin-right: 8px;
    }
    
    #main
    {
    	margin-right: 0;	
    }
    
    #secondary
    {
    	float: none;
    	margin-top: 12px;
    	width: 100%;
    	
    }
    
    #frontpage-boxes .widget,
    #gallery-boxes .widget,
    aside.widget
    {
        width: 50%;
    }
    
    .frontpage-box-image
    {
        width: 50%;
    }
    
    footer
    {
 
    } 
}

@media screen and (max-width: 735px)
{
    #frontpage-boxes .widget,
    #gallery-boxes .widget,
    aside.widget
    {
        width: 100%;
    }
    
    .frontpage-box-image
    {
        width: 100%;
    }	
}

