/*!
Theme Name: Nuorten Tiedeakatemia
Author: La&La & Days
Author URI: http://lala.fi
Description: Nuorten Tiedeakatemian oma WordPress-teema
Version: 1.0.0
License: GNU General Public License v2 or later 
License URI: LICENSE
Text Domain: nta
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

Nuorten Tiedeakatemia is based on Underscores https://underscores.me/, (C) 2012-2017 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 https://necolas.github.io/normalize.css/
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize
# Typography
# Elements
# Forms
# Navigation
	## Links
	## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Content
	## Posts and pages
	## Comments
# Infinite scroll 
# Media
	## Captions
	## Galleries
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
/* normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
	line-height: 1.15; /* 1 */
	-webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
	margin: 0;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

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

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
	box-sizing: content-box; /* 1 */
	height: 0; /* 1 */
	overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
	font-family: monospace, monospace; /* 1 */
	font-size: 1em; /* 2 */
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
	border-bottom: none; /* 1 */
	text-decoration: underline; /* 2 */
	text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
	font-family: monospace, monospace; /* 1 */
	font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

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

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
	font-family: inherit; /* 1 */
	font-size: 100%; /* 1 */
	line-height: 1.15; /* 1 */
	margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

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

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */

legend {
	box-sizing: border-box; /* 1 */
	color: inherit; /* 2 */
	display: table; /* 1 */
	max-width: 100%; /* 1 */
	padding: 0; /* 3 */
	white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
	box-sizing: border-box; /* 1 */
	padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

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

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
	-webkit-appearance: textfield; /* 1 */
	outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
	-webkit-appearance: button; /* 1 */
	font: inherit; /* 2 */
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
	display: none;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/

@font-face {
    font-family: 'ntamedium';
    src: url('webfonts/nta-medium-webfont.woff2') format('woff2'),
         url('webfonts/nta-medium-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'ntaregular';
    src: url('webfonts/nta-regular-webfont.woff2') format('woff2'),
         url('webfonts/nta-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'ntaitalic';
    src: url('webfonts/nta-regularitalic-webfont.woff2') format('woff2'),
         url('webfonts/nta-regularitalic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'ntasemi_bold';
    src: url('webfonts/nta-semibold-webfont.woff2') format('woff2'),
         url('webfonts/nta-semibold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}


@font-face {
  font-family: 'lala_icons';
  src: url('icons/lala_icons.eot?95827462');
  src: url('icons/lala_icons.eot?95827462#iefix') format('embedded-opentype'),
       url('icons/lala_icons.woff2?95827462') format('woff2'),
       url('icons/lala_icons.woff?95827462') format('woff'),
       url('icons/lala_icons.ttf?95827462') format('truetype'),
       url('icons/lala_icons.svg?95827462#lala_icons') format('svg');
  font-weight: normal;
  font-style: normal;
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
  @font-face {
    font-family: 'lala_icons';
    src: url('icons/lala_icons.svg?95827462#lala_icons') format('svg');
  }
}
*/
 
 [class^="icon-"]:before, [class*=" icon-"]:before, 
 .social-icons a:before, 
 a[href$=".pdf"]:before, a[href$=".doc"]:before, 
 a[href$=".docx"]:before,
 a[href$=".xls"]:before, a[href$=".xlsx"]:before, 
 a[href$=".ppt"]:before, a[href$=".pptx"]:before,
 a[href$=".zip"]:before,
 .ui-accordion-header:before {
  font-family: "lala_icons";
  font-style: normal;
  font-weight: normal;
  speak: none;
 
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  /* opacity: .8; */
 
  /* For safety - reset parent styles, that can break glyph codes*/
  font-variant: normal;
  text-transform: none;
 
  /* fix buttons height, for twitter bootstrap */
  line-height: 1em;
 
  /* Animation center compensation - margins should be symmetric */
  /* remove if not needed */
  margin-left: .2em;
 
  /* you can be more comfortable with increased icons size */
  /* font-size: 120%; */
 
  /* Font smoothing. That was taken from TWBS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
 
  /* Uncomment for 3D effect */
  /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}


.share [class^="icon-"]:before {
	font-size: 200%;
	vertical-align: middle;
	margin-left: .1em; 	
}
 
.icon-twitter:before, .social-icons a[href*="twitter.com"]:before  { content: '\f099'; } 
.icon-facebook:before, .social-icons a[href*="facebook.com"]:before { content: '\f308'; } 
.icon-linkedin:before, .social-icons a[href*="linkedin.com"]:before { content: '\f0e1'; } 
.icon-angle-left:before { content: '\f104'; } 
.icon-angle-right:before { content: '\f105'; } 
.icon-angle-up:before { content: '\f106'; } 
.icon-angle-down:before { content: '\f107'; } 
.icon-youtube:before, .social-icons a[href*="youtube.com"]:before { content: '\f167'; } 
.icon-instagram:before, .social-icons a[href*="instagram.com"]:before { content: '\f16d'; }
.icon-file-pdf:before, a[href$=".pdf"]:before { content: '\f1c1'; } 
.icon-file-word:before, a[href$=".doc"]:before, a[href$=".docx"]:before { content: '\f1c2'; } 
.icon-file-excel:before, a[href$=".xls"]:before, a[href$=".xlsx"]:before { content: '\f1c3'; } 
.icon-file-powerpoint:before, a[href$=".ppt"]:before, a[href$=".pptx"]:before { content: '\f1c4'; }
.icon-file-image:before { content: '\f1c5'; }
.icon-file-archive:before, a[href$=".zip"]:before { content: '\f1c6'; }
.icon-pinterest:before, .social-icons  a[href*="pinterest.com"]:before { content: '\f231'; }
.icon-vimeo:before, .social-icons a[href*="vimeo.com"]:before { content: '\f27d'; }

html {
	font-size: 14px;
}


body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: 'ntaregular', sans-serif;
	line-height: 1.5;
	font-size: 14px;
	font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
	clear: both;
	font-family: 'Libre Baskerville', serif;
	font-weight: 400;
	color: #007382;
	margin-bottom: 0.7em;
}

h1 {
	font-size: 35px;
	font-size: 2.5rem;
}

h2, .twitter h3 {
	font-size: 13px;
	font-size: 0.928rem;
	font-family: 'ntamedium', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-top: 1.8em;
}

.masonry h2, .page-template-page-contact aside h2,
.videos-wrapper h2 {
	font-size: 25px;
	font-size: 1.7857rem;
	font-family: 'Libre Baskerville', serif;
	letter-spacing: normal;
	text-transform: none;
	overflow-wrap: break-word;
	word-wrap: break-word;
	-ms-word-break: break-all;
	word-break: break-word;
}

h3, .widget_recent_entries li {
	font-size: 18px;
	font-size: 1.3rem;
	line-height: 1.4;
	font-family: 'Libre Baskerville', serif;
}

h3 {
	margin-top: 2em;
}


h5, h6 {
	font-size: 15px;
	font-size: 1.071rem;
	font-family: 'ntamedium', sans-serif;
	margin-bottom: 0.3em;
}

p {
	margin: 0 0 1.5em;
}

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

strong, b {
	font-family: 'ntasemi_bold', sans-serif;
	font-weight: normal;
}

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

/*--------------------------------------------------------------
# Global 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 https://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. */
}

.centered {
	max-width: 1293px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */

.header-wrapper, .footer-wrapper {
	background: #007382;	
	color: #fff;
}

.site-header, .site-footer {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	align-items: center;
}

.site-header.centered:before, .site-header.centered:after,
.site-footer.centered:before, .site-footer.centered:after {
	display: none;
}

.site-header img {
	display: block;
}

.site-logo {
	max-width: 45%;
}

.site-title {
	margin: 25px 0;
}

.site-actions > * {
	float: left;
}

.site-search {
	margin-left: 15px;
}

.site-header .site-search a {
	margin-right: 10px;
}

.search-area {
	display: none;
}

.search .search-area {
	display: block;
}

/* Footer */

.footer-wrapper {
	background: #FF7875;
	margin-top: 40px;
}

.site-footer  {
	flex-wrap: wrap;
	align-items: flex-start;
	font-size: 12px;
	font-size: 0.857rem;
}

.site-footer > * {
	width: 50%;
	margin: 25px 0;
}

.site-footer .address {
	order: 2;
	align-self: flex-end;
}

.site-footer .address * {
	margin: 0;
	font-size: 14px;
}

.site-footer .address a {
	color: inherit;
	text-decoration: underline;
}

.site-footer .social-icons {
	order: 1;
	text-align: right;
	font-size: 1.3rem;
}

.site-footer .social-icons a {
	margin: 0;
}

.site-footer .site-info {
	order: 3;
	text-align: right;
	align-self: flex-end;
}


/* Other elements */

hr {
	background-color: #007282;
	border: 0;
	height: 1px;
	margin: 4em 0;
	width: 70px;
}

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

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: 1em 0;
	/* Extra wide images within figure tags don't overflow the content area. */
}

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

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
form {
	background: #F1F9FA;
	padding: 3.5rem;
}

.search-area .search-form {
	background: #007382;
	padding: 10px 0 30px 0;
	position: relative;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.nav-links a {
	border: none;
	border-radius: 3px;
	background: #007382;
	color: #fff;
	font-size: 13px;
	font-size: 0.928rem;
	line-height: 1;
	padding: 1em 2em .9em;
	font-family: 'ntamedium', sans-serif;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	display: inline-block;
}

form input[type="submit"] {
	float: right;
}

.search-area form input[type="submit"] {
	position: absolute;
	right: 0px;
	top: 15px;
	background: #4dd1d1;
	color: 
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.nav-links a:hover  {
	background: #3fa7b5;
	color: #fff;
}

button:active, button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	
}

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: 3px;
	padding: 5px;
	width: 100%;
}

.search-area input[type="search"] {
	background: transparent;
	border-radius: 0;
	border-bottom: 2px solid #F1F9FA;
	display: inline-block;
	width: 90%;
	font-family: 'Libre Baskerville', serif;
	font-size: 20px;
	font-size: 1.428rem;
	color: #4dd1d1;
}

.search-area input[type="search"]:focus {
	border: none;
	border-bottom: 2px solid #F1F9FA;
	color: #4dd1d1;
}

.search-area input::-webkit-input-placeholder {
	color: #4dd1d1;
}
.search-area input:-ms-input-placeholder {
	color: #4dd1d1;
}
.search-area input::-ms-input-placeholder {
	color: #4dd1d1;
}
.search-area input::placeholder {
	color: #4dd1d1;
}

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;
	outline: none;
	border: 1px solid #4dd1d1;
}

select {
	border: none;
}

textarea {
	width: 100%;
}

div.wpcf7-response-output,
.page-template-page-contact .widget-area section div.wpcf7-response-output {
	margin: 2em 0.5em 1em;
	padding: 1em;
	border: none;
}

div.wpcf7-mail-sent-ok {
	border: none;
	background: #d3ebef
}

div.wpcf7-mail-sent-ng,
div.wpcf7-aborted {
	border: none;
	background: #fbd0d0;
}

div.wpcf7-spam-blocked {
	border: none;
	background: #fbdca4;
}

div.wpcf7-validation-errors,
div.wpcf7-acceptance-missing {
	border: none;
	background:#f7f1a1;
}

.grecaptcha-badge {opacity:0}

.wpcf7-list-item {
  margin: 0 1em 0 0;
}


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


a:hover, a:focus, a:active {
	color: #007382;
}

a:focus {
	outline: thin dotted;
}

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

a.readmore {
	text-transform: uppercase;
	font-size: 13px;
	font-size: 0.928rem;
	font-family: 'ntamedium', sans-serif;
	letter-spacing: 0.09em;
}

a.readmore:after {
	content: " \2192";

}

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/

.site-header a {
	color: #fff;
	/* margin: 0 7px; */
	display: block;
}


.main-navigation {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	font-family: "ntamedium", sans-serif;
	font-weight: normal;
	font-size: 13px;
	font-size: 0.9285rem;
}

.main-navigation .social-icons {
	display: none;
}

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

.main-navigation ul ul {
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
	padding-top: 10px;
}

.main-navigation ul ul:before {
	content: "";
	width: 15px;
	height: 15px;
	background: #F1F9FA;
	display: block;
	margin-left: 45px;
	margin-bottom: -10px;
	transform: rotate(45deg);
}

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

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

.main-navigation ul ul a {
	width: 200px;
	color: #007382;
	padding: 5px 20px;
	background: #F1F9FA;	
}

.main-navigation ul ul li:first-of-type a {
	padding-top: 15px;
}

.main-navigation ul ul li:last-of-type a {
	padding-bottom: 15px;
}

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

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

.main-navigation a {
	display: block;
	text-decoration: none;
	margin: 0 20px;
}

.current-menu-item a, .current-menu-ancestor > a {
	border-bottom: 2px solid;
}

.sub-menu .current-menu-item a {
	border: none;
}

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

.menu-toggle {
	position: absolute;
	right: 20px;
	top: 20px;
	border: none;
	border-radius: 0;
	background: transparent;
	color:#fff;
	padding: 0;
	width: 25px;
	height: 20px;
	border-top: 2px solid;
	border-bottom: 2px solid;
}

.menu-toggle:focus, .menu-toggle:hover {
	border-color:#fff;
	outline: none;
	background: transparent;
}

.menu-toggle:before {
	content: "";
	width: 25px;
	border-top: 2px solid;
	display: block;
}

.main-navigation.toggled {
	width: 100%;
}

.main-navigation.toggled ul {
	margin-top: 100px;
	background: #F1F9FA;
	padding: 20px 0;
}

.main-navigation.toggled ul a {
	color: #007382;
	/* padding: 10px; */
}

.main-navigation.toggled div > ul > li {
	float: none;
	display: inline-block;
}



/* Social menu */

.social-icons ul {
	margin: 0;
	padding: 0;
}

.social-icons li {
	display: inline-block;

}

.site-footer .social-icons li {
	margin: 0 5px;
}

.social-icons a {
	text-decoration: none;
	color: #fff;
	font-size: 140%;
	line-height: 0;
	margin: 0 7px;
}

.social-icons a .menu-text {
    position: absolute;
    top: -9999em;
    left: -9999em;
}

.social-icons li.text-link { /* If you need to add text link instead of icon */
    display: block;
}

.social-icons .text-link a {
    color: inherit;
}

.social-icons a:before {
	margin: 0;
}

.social-icons .text-link a .menu-text {
    position: static;
}


/* Posts menu */


.site-main .comment-navigation, .site-main
.posts-navigation, .site-main
.post-navigation {
	margin: 2.1em 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 {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	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;
	clip-path: none;
	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 select {
	max-width: 100%;
}


.content-with-sidebar .content-area {
	max-width: 800px;
	margin-top: 60px;
}

.content-with-sidebar .widget-area {
	width: 31.52%;
	margin-left: 53px;
}

.widget-area .widget {
	margin-top: 60px;
}

.widget-area .widget div, .widget-area .accordion div {
	padding: 15px 22px 0;
}

.widget-area h2 {
	background: #F1F9FA;
	padding: 22px;
	margin: 0;
}

.widget > * {
	margin: 22px;
}

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

.widget_recent_entries li {

}

.widget_recent_entries .post-date {
	display: block;
	margin: 5px 0 1.9em;
	color: #007382;
}

.entry-content > *:last-child,
.entry-content > *:last-child > *:last-child,
.entry-content > *:last-child > *:last-child > *:last-child,
.widget > *:last-child,
.widget > *:last-child > *:last-child,
.widget > *:last-child > *:last-child > *:last-child {
  margin-bottom: 0;
}

.entry-content > *:first-child,
.entry-content > *:first-child > *:first-child,
.entry-content > *:first-child > *:first-child > *:first-child,
.widget > *:first-child,
.widget > *:first-child > *:first-child,
.widget > *:first-child > *:first-child > *:first-child {
  margin-top: 0;
}

/* Accordion */

.widget-area .accordion {
	margin-top: 70px;
}

.ui-accordion .ui-accordion-header {
	display: block;
	cursor: pointer;
	position: relative;
	margin: 30px 0 0 0;	
	padding-right: 45px;
}

.ui-accordion-content {
	margin-bottom: 30px;
}

.ui-accordion .ui-accordion-header:focus {
	outline: none;
}

.ui-accordion-header:before {
	content: '\f107';
	position: absolute;
	right: 10px;
	top: 20px;
	font-size: 150%;
}

.ui-state-active:before {
	content: '\f106';
}

.accordion h3 {
	margin-top: 1em;
}


/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/

/* Home */


.home-header-wrapper, .home-header-content {
	width: 50%;
	float: left;
}

.home-header-image {
	width: 100%;
	height: 0;
	padding-bottom: 59%;
	background-size: cover;
	background-position: center center;
	float: left;
}

.home-header-content {
	/*position: relative;
	margin:150px 0;*/
	padding: 3% 5%;
}

.tweet-item {
	margin-top: 25px;
}

.masonry-item p.tweet-item  {
	margin-bottom: 0;
}

.tweet-item:before {
	color: #007382;
}

.masonry-item.twitter .entry-meta {
	margin-top: 10px;
}


/*.vertical-middle {
	position: absolute;
	top:50%;
	left: 0;
	width: 100%;
	padding: 0 10%;
	transform:translate(0%, -50%);
	-webkit-transform:translate(0%, -50%);
}*/


/* Archives & Masonry */


.page-title {
	margin-top: 50px;
}

.masonry {
	margin: 30px auto 0;
	max-width: 1253px;
}

.item-sizer,
.masonry-item { width: 31.524%; }

.gutter-sizer { width: 2.713%; }

.masonry-item {
	/*width: 395px;*/
	display: block;
	background-color: #F1F9FA;
	margin: 17px 0;
}

.stamp {
	position: absolute;
	right: 0;
	top: 0;
	/* height: 100px; */
}

.masonry-item img {
	margin-top: 0;
	width: 100%;
}

.masonry-item *:last-child {
	margin-bottom: 40px;
}

.masonry-item h2, .masonry-item p, .masonry-item .entry-meta, .twitter h3 {
	margin: 40px;
}

a.masonry-item {
	color: #007382;
}

a.masonry-item:hover h2, a.masonry-item:hover {
	color: #4dd1d1;
}

.masonry-item p {
	color: #000;
}

/* Post */


.post-thumbnail {
	margin-bottom: 60px;
}

.entry-title {
	margin: 0 0 0.5rem;
}

.entry-meta, .widget_recent_entries .post-date {
	text-transform: uppercase;
	font-size: 13px;
	font-size: 0.928rem;
	font-family: 'ntamedium', sans-serif;
	letter-spacing: 0.09em;
}

.entry-meta .byline {
	text-transform: none;
}

.entry-meta span {
	margin-right: 5px;
}

.single .entry-footer {
	margin-top: 70px;
	display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
    -ms-flex-pack: justify;
        justify-content: space-between;
}

.single .entry-footer .share {
	width: 250px;
	padding-left: 30px;
}

.single .entry-footer .edit-link {
	padding-left: 30px;
}

.sticky {
	display: block;
}

.hentry {
	
}

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

.content-with-sidebar {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}


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

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


/* Members */


.archive .page-title {
	margin: 50px 0 40px 0;
}

.members {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.archive .member {
	width: 23.38%;
	margin-bottom: 27px;
	background: #F1F9FA;
	min-height: 377px;
	display: block;
	color: inherit;
}

a.member:hover h3 {
	color: #4dd1d1;
}

.archive .member:empty { /* fix last line align */
  height: 0;
  min-height: 0;
}

.archive .member img {
	width: 100%;
}

.archive .member h3 {
	margin-top: 0;
}

.member-content {
	padding: 30px;
}

.single-member aside {
	margin-top: 70px;
	background: #F1F9FA;
}

.member-content h3 {
	margin-top: 0;
}

.single-member .post-thumbnail {
	margin-bottom: 0;
}

.members-list {
	list-style: none;
	padding: 0;
	margin: 0;
	-webkit-columns: 300px 4;
    columns: 300px 4;
}

.members-list li {
	margin: 0;
}


/* Contact */

.page-template-page-contact aside section {
	background: #F1F9FA;
}

.page-template-page-contact .widget-area section div {
	padding: 0;
}

.page-template-page-contact .content-with-sidebar .widget-area {
	width: 47.7%;
	flex-shrink: 0;
}

.page-template-page-contact .widget-area .widget > h2,
.page-template-page-contact .widget-area .widget > div > p {
	background: #F1F9FA;
	padding: 3.5rem 3.5rem 0;
	margin: 0 0 -1rem 0;
}

/* Videos */

.videos-wrapper .anchors {
	font-size: 13px;
	font-size: 0.928rem;
	font-family: 'ntamedium', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.videos-wrapper .anchors a + a:before {
	content: "| ";
	color: #000;
}

.videogrid {
	display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 34px;
	margin-top: 30px;
}

.videogrid .video {
	margin-bottom: 27px;
	background: #F1F9FA;
	min-height: 377px;
	display: block;
	color: inherit;
}

.videogrid .video h3, .videogrid .video p {
	margin: 40px;
}


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

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/*--------------------------------------------------------------
## 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: 0.8075em 0;
}

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

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


/*--------------------------------------------------------------
## Media queries
--------------------------------------------------------------*/


@media screen and (min-width: 1160px) {
	.menu-toggle {
		display: none;
	}
	.main-navigation ul {
		display: block;
	}


}


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

	.main-navigation a {
		margin: 0 13px;
	}
	.main-navigation.toggled div > ul > li {
		display: block;
	}

	.main-navigation.toggled a {
		display: inline-block;
		margin: 5px 20px;
	}

}



@media screen and (max-width: 1230px) {
	
	.home-header-image {
		padding-bottom: 85%;
	}
}


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

	.site-header .social-icons {
		position: absolute;
		right: 100px;
		top: 22px;
	}
	.site-search {
		position: absolute;
		right: 60px;
		top: 22px;
	}
	.site-header {
		min-height: 100px;
		display: block;
		padding: 0;
		overflow: hidden;
	}


	.site-header {
		min-height: 100px;
		display: block;
		padding: 0;
		overflow: hidden;
	}

	.site-logo {
		position: absolute;
		top: 0px;
		left: 20px;
	}


	.main-navigation a {
		margin: 0 20px;
	}

	.main-navigation.toggled .sub-menu {
    	position: static;
    	margin: 0;
    	float: none;
    	padding: 0;
    }

    .main-navigation ul ul.sub-menu:before {
        display: none;	
    }

    .main-navigation.toggled .sub-menu li {
    	float: none;
    	margin: 0;
    }

    .main-navigation.toggled .sub-menu li a {
    	width: 90%;
    	padding-top: 0;
    	padding-bottom: 0;
    }


    .main-navigation.toggled li li a {
    	display: block;
    }

	.home-header-image {
		padding-bottom: 100%;
	}

	.content-with-sidebar {
		display: block;
	}
	.content-with-sidebar .content-area {
		max-width: 800px;
		margin-top: 70px;
	}

	.content-with-sidebar .widget-area,
	.page-template-page-contact .content-with-sidebar .widget-area {
		width: auto;
		max-width: 500px;
		margin-left: 0;
	}

	.alignleft, .alignright {
		float: none;
		display: block;
		margin: 1em 0;
	}

	
}

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

	.home-header-image {
		padding-bottom: 60%;
	}

	.home-header-content, .home-header-wrapper, .home-header-image {
		float: none;
		width: 100%;
	}

	.page-template-page-frontpage .masonry {
		margin: 0 34px;
	}

	.item-sizer,
	.masonry-item, 
	.archive .member { width: 47.42%;}

	.videogrid {
    grid-template-columns: repeat(2, 1fr);
	}

	.gutter-sizer { width: 5.15%; }



	
}

@media screen and (max-width: 768px) {
	.search-area input[type="search"] {
		width: 85%;
	}
}	


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

	.page-template-page-frontpage .masonry {
			margin: 0 20px;
		}

	.item-sizer,
	.masonry-item, 
	.archive .member{width: 100%;}

	.gutter-sizer { width: 0%; }

	.videogrid {
    grid-template-columns: repeat(1, 1fr);
	}

	.site-actions .social-icons {
		display: none;
	}

	.main-navigation.toggled .social-icons.mobile {
		display: block;
		position: static;
	}

	.main-navigation.toggled .social-icons.mobile ul {
		margin: 0;
		padding-left: 15px
	}

	.main-navigation.toggled ul {
		margin-bottom: -30px;
	}

	.main-navigation.toggled .social-icons.mobile ul li {
		display: inline-block;
		margin: 0;
	}

	.main-navigation.toggled .social-icons.mobile ul li a {
		margin: 5px;
	}
	
}
 

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

	.site-header {
		min-height: 85px;
	}

	.main-navigation.toggled ul {
		margin-top: 85px;
	}

	.site-footer .address {
		width: 100%;
	}

	.site-footer .site-info {
		text-align: left;
		width: 100%;
	}
	
	.search-area input[type="search"] {
		width: 70%;
	}

	.wpcf7-recaptcha div {
		width: 200px !important;
	}

	form {
		padding: 1rem;
	}
	
	.widget > * {
		margin: 12px;
	}


}	