/*!
Theme Name: Herlinin saation WordPress-teema
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: herlin

Herlinin saatio 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
--------------------------------------------------------------*/

html {
    font-size: 14px;
}

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

h1, h2, h3, h4, h5, h6, .ingressi {
	clear: both;
	font-family: 'Muli', sans-serif;
	color: #004357;
	letter-spacing: 0.03em;
}

h1, h2, h3, h1 strong, h2 strong, h3 strong {
	font-weight: 600;
}

h1 {
	text-align: center;
	font-size: 34px;
	font-size: 2.4rem;
	line-height: 1.29;
	margin-bottom: 50px;
}

h2 {
	font-size: 21px;
	font-size: 1.5rem;
	line-height: 1.5;
	margin-bottom: 25px;
	margin-bottom: 1.78rem;
}

h3 {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 17px;
	font-size: 1.21rem;
	color: #000;
	margin: 40px 0 10px 0;
}

h4, .ingressi {
	font-weight: 400;
	font-size: 18px;
	font-size: 1.285rem;
	color: #000;
	margin-bottom: 1.33em;
}

h5, h6 {
	color: #000;
}


p {
	margin: 10px 0;
}

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

cite {
	font-style: normal;
	    font-family: 'Muli', sans-serif;
	    font-size: 1rem;
}

blockquote {
	margin: 0 2em;
}

.wp-block-pullquote {
	padding: 2em 0;
}

blockquote p,
.wp-block-pullquote p {
	font-style: italic;
	color: #004256;
	line-height: 1.3;
}

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

.full-width {
    width: 100%;
    padding: 0 20px;
}

.wide-width {
    max-width: 1240px;
    padding: 0 20px;
    margin: 0 auto;
}

.narrow-width {
    max-width: 735px;
    margin: 0 auto;
    padding: 0 20px;
    flex-basis: 100%;
}

.full-width .narrow-width {
	padding-left: 0;
	padding-right: 0;
}

.narrow-width-with-sidebar {
    max-width: 995px;
    margin: 0 auto;
    display: flex;
    align-content: space-between;
}

/* Header & Footer */

.site-header, .newsletter, .site-info {
    background-color: #004357;
    color: #fff;
}

.site-header a, .newsletter a {
    color: #fff;
}

.site-info a {
    color: #f4d7c6;
}


.site-header {
	padding-top: 30px;
	padding-bottom: 30px;
	display: block;
	margin-bottom: 85px;
}

.site-logo {
	max-width: 350px;
	width: 100%;
}

.site-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

html[lang='en-GB'] .site-logo {
	max-width: 384px;
}

.extras {
	display: none;
	margin-left: 35px;
}

.extras .search-form {
	margin-left: 5px;
	margin-right: 15px
}

.extras form .search-submit {
	display: none;
}

.extras input.search-field {
	background-image: url('img/search@2x.png');
  background-position: left 0; 
  background-size: 18px 19px;
  background-repeat: no-repeat;
  -webkit-transition: width 0.4s ease-in-out;
  transition: width 0.4s ease-in-out;
  width: 20px;
  height: 22px;
  background-color: transparent;
  padding: 0 0 3px 30px;
  border: none;
  color: #fff;
}

.extras input.search-field:hover {
	cursor: pointer;
}

.extras input.search-field:focus {
  width: 145px;
  color: #fff;
  border-bottom: 1px solid;
  outline: none;
}

.extras input.search-field::-webkit-input-placeholder { color:transparent; }
.extras input.search-field:-moz-placeholder { color:transparent; } /* FF 4-18 */
.extras input.search-field::-moz-placeholder { color:transparent; } /* FF 19+ */
.extras input.search-field:-ms-input-placeholder { color:transparent; } /* IE 10+ */

.extras input.search-field:focus::-webkit-input-placeholder { color:#fff; }
.extras input.search-field:focus:-moz-placeholder { color:#fff; } /* FF 4-18 */
.extras input.search-field:focus::-moz-placeholder { color:#fff; } /* FF 19+ */
.extras input.search-field:focus:-ms-input-placeholder { color:#fff; } /* IE 10+ */


.site-title {
    margin: 0;
    line-height: 1;
}

.site-footer {
	overflow: auto;
	font-weight: 600;
}

.site-footer p, .site-footer li {
    letter-spacing: 0.3px;
}

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


.site-footer .latest-posts {
    background-color: #E7F1F4;
    overflow: auto;
    padding-top: 45px;
    padding-bottom: 55px;
}

.site-footer .link-container {
	background: #fff;
	height: 100%;
}

.site-footer .newsletter {
    background-color: #195568;
    overflow: auto;
    text-align: center;
}

.newsletter h2, .site-info h2 {
	color: #fff;
}

.newsletter p {
	font-size: 17px;
	max-width: 430px;
	margin: 20px auto;
	letter-spacing: 0.3px;
}

.site-footer .site-info {
	overflow: auto;
}

.site-info > * {
	display: flex;
	justify-content: space-between;
}

.site-footer .social li {
	display: inline-block;
	margin-top: 10px;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer .sitemap {
	flex-basis: 50%;
}

.sitemap > div > ul > li {
	margin-bottom: 20px;
}

.sitemap > div > ul > li > a {
	font-size: 14px;
	text-transform: uppercase;
	margin: 0 0 5px 0;
	letter-spacing: 0.1em;
	display:  block;
}

.sitemap .sub-menu {
	margin-bottom: 20px;
}

.sitemap .sub-menu .sub-menu  {
	margin-bottom: 0;
	margin-left: 15px;
}

.sitemap .menu {
	columns: 3;
	column-gap: 30px;
	min-height: 180px;
}

.sitemap .menu-item-has-children {
	-webkit-column-break-inside: avoid;
          page-break-inside: avoid;
               break-inside: avoid;
}

.site-info-2.widget {
	font-size: 12px;
	font-size: 0.85rem;
	margin-bottom: 10px;
}

.mobile {
	display: none;
}


/* Other */

hr {
	background-color: #004257;
	border: 0;
	height: 2px;
	margin: 3.5em auto;
	width: 80px;
}

ul, ol {
	margin: 20px 0;
	padding: 0 0 0 1.3rem;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li {
	margin: 10px 0;
	padding: 0;
}

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

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

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.contact a,
.featured a  {
	border: none;
	border-color: #ccc #ccc #bbb;
	border-radius: 0;
	background: #004357;
	color: #fff;
	line-height: 1;
	padding: .8em 2em .9em;
	font-size: 14px;
	font-size: 1rem;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.1em;
	display: inline-block;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.contact a:hover,
.featured a:hover  {
	color: #DE8D5B;
}

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 {
	border-color: #aaa #bbb #bbb;
}

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: inherit;
	border: 1px solid #195568;
	border-radius: 0;
	padding: 7px 10px ;
	background:  transparent;

}

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: #000;
}

select {
	border: 1px solid #195568;
}

textarea {
	width: 100%;
}

.newsletter input,
.site-content .search-form input {
	background: transparent;
	border: 2px solid #fff;
	height: 49px;
	display: inline-block;
	vertical-align: top;
}

.site-content .search-form input {
	border-color: #195568;
	color: #195568;
}


.newsletter input[type="email"],
.site-content .search-form input[type="search"]  {
	width: 70%;
	font-size: 17px;
	color: #fff;
}

.site-content .search-form input[type="search"] {
	width: 100%;
	color: #000;
}

.site-content .search-form label {
	width: 70%;
	display: inline-block;
	margin-right: -4px;
}

.site-content .search-form {
	margin-bottom: 60px;
}


.newsletter input[type="submit"],
.site-content .search-form input[type="submit"] {
	width: 30%;
	border-left: none;
}

.newsletter input[type="email"]:focus {
	outline: 0;
	border-color: #F4D7C6;
}

.site-content .search-form input[type="search"]:focus {
	outline: 0;
	border-color: #DE8D5B;
}

.newsletter input::placeholder {
  color: #fff;
}

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

.entry-content a {
	text-decoration: underline;
}

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

a:focus {
	outline: thin dotted;
}

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

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.main-navigation {
	display: flex;
	justify-content: space-between;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.main-navigation ul, .extras ul, .social ul, .subpages ul  {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	float: left;
	position: absolute;
	top: 20px;
	left: -999em;
	z-index: 99999;
	/*border-top: 28px #004357 solid;*/
	padding: 20px;
	padding-top: 15px;
	width: 270px;
	margin-top: 1px;
	text-transform: none;
	text-align: center;
	font-weight: 600;
	letter-spacing: 0.03em;
}

.main-navigation ul ul:before {
	content: "";
	width: 50px;
	height: 50px;
	position: absolute;
	top:15px;
	left: calc(50% - 25px);
	background:#195568;
	transform: rotate(45deg);
}

.main-navigation ul ul li {
	margin: 0;
	display: block;
	background: #195568;
}

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

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

.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; */
	width: auto;
	display: inline-block;
	padding: 7px 20px;
}

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

.main-navigation ul li:hover > ul, .main-navigation ul li.focus > ul {
    left: 50%;
    margin-left: -135px;
}

.main-navigation li {
	display: inline-block;
	position: relative;
	margin: 0 36px 0 0;
}

.main-navigation a {
	display: inline-block;
}


.subpages a:hover, 
.subpages .current_page_item > a,
.current-menu-item > a, 
.current-menu-ancestor > a,
.site-footer .current-menu-item > a:hover, 
.site-footer .current-menu-ancestor > a:hover,
.current-page-ancestor > a  {
	color: #DE8D5B;
}

.site-footer .current-menu-item > a, 
.site-footer .current-menu-ancestor > a,
.site-footer .current-menu-item > a {
	color: #f4d7c6;
}

.main-navigation .extras li {
	margin: 0 10px 0 0;
}

/* Languages menu */

li.lang-item {
	margin-right: 0;
}

li.lang-item:after {
	content: " / ";
}

li.lang-item:last-of-type:after {
	content: " ";
}

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

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

.admin-bar .menu-toggle {
	top: 75px;
}

.menu-toggle:hover, .menu-toggle:focus {
	border-color: #fff;
	cursor: pointer;
}

.main-navigation.toggled .menu-toggle {
	border: none;
	z-index: 1000;
}

.menu-toggle:before {
	content: "";
	width: 25px;
	border-top: 2px solid #fff;
	height: 2px;
	position: absolute;
	left: 0;
	top: 8px;
}

.main-navigation.toggled .menu-toggle:before, 
.main-navigation.toggled .menu-toggle:after {
	position: absolute;
	content: "";
	border: none;
	left: 5px;
	top: 0;
	content: ' ';
	height: 25px;
	width: 2px;
	background-color: #fff;
	transform: rotate(45deg);
}

.main-navigation.toggled .menu-toggle:after{
	transform: rotate(-45deg);

}

button.menu-toggle:hover {
	background: inherit;
	color: #fff;
}

button.menu-toggle:focus {
	outline: none;
}

.main-navigation.toggled {
	margin-top: 40px;
	background: #004257;
}

.main-navigation.toggled ul {
	border-top-width: 10px;
	background: #004257;
	overflow: hidden;
}

.main-navigation.toggled li:not(.lang-item) {
	display: block;
	margin: 12px 0;
}

.main-navigation.toggled .extras {
		display: flex;
		justify-content: center;
		margin-left: 0;
		align-items: center;
		padding: 10px 20px 40px;
		text-align: center;
		background: #004257;
}

.main-navigation.toggled .extras li {
	display: inline-block;
	margin: 12px 5px;
}

.main-navigation.toggled .extras .search-form {
	margin-left: 10px;
	margin-right: 0
}


.main-navigation.toggled {
	    width: 100%;
		display: flex;
		flex-direction: column;
		text-align: center;
}

.main-navigation.toggled ul li:hover > ul,
.main-navigation.toggled ul li.focus > ul {
    float: none;
    position: static;
    width: auto;
    padding: 15px 0 10px 0;
    left:0;
    margin-left: 0;
}

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

.main-navigation.toggled ul ul li:not(.lang-item) {
	margin: 0;
}



/* Posts navigation */

.site-main .comment-navigation, .site-main
.posts-navigation, .site-main
.post-navigation {
	margin: 0 0 70px;
	overflow: hidden;
	text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: center;
    width: 100%;
}

.nav-links > * {
	display: inline-block;
	margin: 0 15px;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {

}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {

}

/* Social menu */ 

@font-face {
  font-family: 'lala_social';
  src: url('font/lala_social.eot?30820462');
  src: url('font/lala_social.eot?30820462#iefix') format('embedded-opentype'),
       url('font/lala_social.woff2?30820462') format('woff2'),
       url('font/lala_social.woff?30820462') format('woff'),
       url('font/lala_social.ttf?30820462') format('truetype'),
       url('font/lala_social.svg?30820462#lala_social') 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_social';
    src: url('../font/lala_social.svg?30820462#lala_social') format('svg');
  }
}
*/
 
 [class^="icon-"]:before, [class*=" icon-"]:before, .social a:before {
  font-family: "lala_social";
  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;

 
  /* you can be more comfortable with increased icons size */
   font-size: 150%; 
 
  /* 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); */
}
 
.icon-flickr:before, .social  a[href*="flickr.com"]:before { content: '\f303'; } 
.icon-flickr-circled:before { content: '\f304'; } 
.icon-vimeo:before, .social  a[href*="vimeo.com"]:before { content: '\f306'; }
.icon-vimeo-circled:before { content: '\f307'; } 
.icon-twitter:before, .social a[href*="twitter.com"]:before  { content: '\f309'; }
.icon-twitter-circled:before { content: '\f30a'; } 
.icon-facebook:before, .social a[href*="facebook.com"]:before  { content: '\f30c'; } 
.icon-facebook-circled:before { content: '\f30d'; } 
.icon-facebook-squared:before { content: '\f30e'; } 
.icon-linkedin:before, .social a[href*="linkedin.com"]:before { content: '\f318'; } 
.icon-linkedin-circled:before { content: '\f319'; } 
.icon-instagram:before, .social a[href*="instagram.com"]:before  { content: '\f32d'; }
.icon-youtube:before, .social a[href*="youtube.com"]:before { content: '\f167'; }
.icon-pinterest:before, .social a[href*="pinterest.com"]:before { content: '\f312'; } 
.icon-pinterest-circled:before { content: '\f313'; } 
.icon-behance:before, .social a[href*="behance.net"]:before { content: '\f34e'; }
.icon-mail:before { content: '\e800'; } 


.social a {
	text-decoration: none;
}

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

.social li.text-link {
    display: block;
    margin-top: 0;
}

.social .text-link a {
    color: inherit;
    font-weight: 700;
}

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


/*--------------------------------------------------------------
# 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-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-content:after,
.site-footer:after {
	clear: both;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
	margin-top: 40px;
	margin-bottom: 40px;
	/* Make sure select elements fit in widgets. */
}

.widget select {
	max-width: 100%;
}

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

.post,
.page {
	/* margin: 0 0 1.5em; */
}

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

.error-404 {
	text-align: center;
}

.entry-header > *, .page-header > * {
	margin-top: 0;
}

.entry-header h1 {
	margin-bottom: 70px;
}

.entry-meta {
	font-weight: 600;
	letter-spacing: 0.1em;
	text-align: center;
	text-transform: uppercase;
	margin-bottom: 20px;
}

.search article .entry-meta {
	text-align: left;
	margin-top: -20px;
	margin-bottom: 10px
}

.no-results {
	text-align: center;
}

.search article {
	margin-bottom: 40px;
}

.entry-writer {
	text-align: center;
	margin-top: -35px;
	margin-bottom: 50px;
}

.page-header .tags {
	text-align: center;
	margin-bottom: 55px;
}

.post-thumbnail {
	margin-top: 50px;
	margin-bottom: 50px;
}

.post-thumbnail img {
	margin: 0 auto;
	display: block;
}

.page-content,
.entry-content,
.entry-summary {
	font-family: 'Crimson Text', serif;
	font-size: 18px;
	font-size: 1.28rem;
}

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

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

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

.entry-footer {
	margin-bottom: 80px;
	padding-top: 20px;
}

.writer {
	display: flex;
	align-items: center;
	font-family: 'Muli', sans-serif;
	font-size: 14px;
	font-size: 1rem;
	margin: 40px 0 10px 0;
}

.writer p {
	margin: 0;
}

.writer img {
	border-radius: 50%;
	margin-right: 27px;
	width: 120px;
}

.tags {
	margin-bottom: 40px;
}

.tags h3 {
	margin: 15px 0;
}

.tags a {
	border: 2px solid;
	margin-right: 10px;
	padding: 5px 10px;
	font-weight: 600;
	letter-spacing: 0.5px;
	margin-bottom: 1rem;
	display: inline-block;
}

.share h3 {
	display: inline;
	margin-right: 15px;
}

.share a {
	margin: 0 5px;
	font-size: 0.9em;
}



/* Sidebar */

.content-container {
	display: flex;
	max-width: 995px;
	margin: 0 auto 90px auto;
	align-items: flex-start;
}

.sidebar {
	width: 275px;
	background: #E7F1F4;
	padding: 25px;
	margin: 0 20px;
}

.sidebar > *:last-child,
.sidebar > *:last-child > *:last-child,
.sidebar > *:last-child > *:last-child > *:last-child {
  margin-bottom: 0;
}

.sidebar > *:first-child,
.sidebar > *:first-child > *:first-child,
.sidebar > *:first-child > *:first-child > *:first-child {
  margin-top: 0;
}

.sidebar h3 {
	margin: 30px 0 20px 0;
}


/* Grid */

.grid {
	display: flex;
	justify-content: space-between;
	margin-left: -14px;
	margin-right: -14px;
}

.grid-header {
	position: relative;
	text-align: center;
	margin: 70px 0 40px;
}

.grid-header a {
	position: absolute;
	right: 0;
	top: 10px;
}

a.more-news {
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-align: center;
}


.grid > * {
	padding: 0 14px;
	text-align: center;
	flex-basis: 100%;
}

.archive .grid, .blog .grid {
	flex-wrap: wrap;
	justify-content: left;
	margin-bottom: 40px;
}

.archive .grid > *, .blog .grid > *  {
	flex-basis: 33%;
	margin-bottom: 25px;
}

.link-container {
	background: #e6f1f4;
	padding-bottom: 50px;
	min-height: 450px;
}

.link-container img {
	width: 100%;
}

.link-container h2 {
	padding: 0 40px;
}

.grid .entry-meta {
	margin: 35px 20px 20px;
}

a:hover h2 {
	color: #DE8D5B;
}

/* Home */

.page-template-page-home .site-header {
	margin-bottom: 0;
}

.hero {
    margin-top: -107px;
    height: 100vh;
    color: #fff;
    background-color: #386774;
    background-size: cover;
    background-position: top center;
}

.hero .wide-width {
	display: flex;
	align-items: center;
	height: 100%;
	max-width: 785px;
}

.hero-content {
	max-width: 450px;
	font-size: 25px;
	font-size: 1.7rem;
	line-height: 1.5;
	letter-spacing: 0.02em;
}

.page-template-page-home .grid .link-container {
	background-color: #E7F1F4;
	height: 100%;
}

.contact {
	background-color: #DE8D5B;
	color: #fff;
	overflow: auto;
	text-align: center;
	font-size: 20px;
	font-size: 1.4rem;
	padding-top: 50px;
	padding-bottom: 50px;
	font-weight: 400;
	letter-spacing: 0.02em;
}

.featured {
	background: #E7F1F4;
	padding: 6.6% 0;
	margin: 100px 0;
}

.featured + .featured {
	margin-top: -100px;
}

.featured:nth-of-type(odd) {
	background: #F4D7C6;
}

.featured .wide-width {
   display: flex;
   align-items: center;
}

.featured-image {
	flex-basis: 65.8%;
}

.featured-image img {
	display: block;
}

.featured-content {
	background: #fff;
	padding: 50px;
	z-index: 100;
	max-width: 485px;
	margin-left: -75px;
}

.featured-content h1 {
	text-align: left;
}

.featured-text {
	font-family: 'Crimson Text', serif;
	font-size: 18px;
	font-size: 1.285rem;
}

.featured:nth-of-type(odd) .featured-content {
	order: -1;
	margin-right: -75px;
	margin-left: 0;
}

.contact a,
.featured a {
	display: inline-block;
	margin-top: 20px;
	font-family: 'Muli', sans-serif;
	font-size: 14px;
	font-size: 1rem;
}

/* Twitter feed */

.ctf-tweets {
	display: flex;
	justify-content: space-between;
	margin-bottom: 70px;
	align-items: flex-start;
}

.ctf-item {
	flex-basis: 31%;
}

#ctf .ctf-item, #ctf .ctf-item:first-child {
	border: 2px solid rgba(0, 67, 87, 0.53);	
	margin-bottom: 25px;
	padding: 30px;
}

#ctf .ctf-retweet-icon {
	background: transparent;
	color: #000 !important; 
}

#ctf .ctf-author-name {
	display: none;
}

#ctf.ctf-styles .ctf-author-screenname {
	font-size: 14px;
	margin-bottom: 20px;
	margin-left: 0;
}

#ctf .ctf-author-box-link  {
    display: inline;
    line-height: 2.5!important;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
}

#ctf .ctf-author-box-link a {
    color: #004357 !important;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
}

#ctf .ctf-author-box-link a:hover {
    color: #DE8D5B !important;
}

#ctf .ctf-tweet-content {
    font-family: 'Crimson Text', serif;
	font-size: 16px;
	font-size: 1.142rem;
}	

#ctf .ctf-context {
	margin-bottom: 20px
}

#ctf .ctf-corner-logo {
    display: inline-block;
    float: left;
    color: #004357;
    font-size: 24px;
    margin-right: 10px;
}


#ctf.ctf-super-narrow .ctf-author-name {
	line-height: 1.5
}

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

figcaption {
	font-family: 'Muli', sans-serif;
	font-size: 14px;
	font-size: 1rem;
}

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

.blocks-gallery-grid, .wp-block-gallery {
	margin: 1rem 0;
}


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

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

	.site-header {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
	}

	.menu-toggle {
		display: none;
	}
	.main-navigation ul {
		display: block;
	}
	.extras {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
	}
}

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

	.site-header {
		padding: 25px 0 20px 0;
	}

	.site-logo {
		margin: 0 20px;
	}
	.hero {
		margin-top: -90px;
	}


}

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

	.content-container, .site-info > *, .site-info-2  {
		display: block;
	}

	.site-info-1, .site-info-2 {
		text-align: center;
	}


}



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

	.sidebar {
		width: calc(100% - 40px);
		background: #E7F1F4;
		padding: 0 25px 10px 25px;
		margin: 10px 20px 70px 20px;
		overflow: auto;
	}

	.hero-content {
		text-align: center;
		margin: 0 auto;
	}

	.featured {
		padding: 55px 0;
		margin: 40px 0;
	}
	.featured .wide-width {
		display: block;
	}

	.featured-content, 
	.featured:nth-of-type(odd) .featured-content {
		background: #fff;
		padding: 50px;
		margin-right: 0;
		margin-left:  0;
		z-index: 100;
		max-width: 100%;
		text-align: center;
	}

	.featured + .featured {
		margin-top: -40px;
	}

	.writer {
		display: block;
		text-align: center;
	}
	.writer img {
		margin: 30px 0;
	}

	.tags, .share {
		text-align: center;
	}

	.share h3 {
		display: block;
		margin-right: 0;
	}


}

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

	.site-header {
		margin-bottom: 45px;
	}

	.grid-header {
		margin: 50px 0 0px;
	}

	.grid-header h1 {
		margin-bottom: 30px;
	}

	.grid {
		display: block;
		margin-left: 0;
		margin-right: 0;
	}

	.link-container {
		min-height: auto;
	}


	.site-logo, html[lang='en-GB'] .site-logo {
		max-width: 250px;
	}

	.mobile {
		display: block;
	}

	.desktop {
		display: none;
	}

	.more-news {
		margin: 20px 0 60px 0;
	}

	.featured-content h1 {
		text-align: center;
		margin: 0 0 20px 0;
	}

	.featured-content, 
	.featured:nth-of-type(odd) .featured-content {
		padding: 30px;
	}
	.ctf-tweets {
		display: block;
	}

	.sitemap .menu {
		columns: 1;
	}

	.entry-meta {
		margin-bottom: 13px;
	}

	.entry-header h1 {
		margin-bottom: 45px;
	}

	.entry-writer {
		margin-bottom: 30px;

	}

	.post-thumbnail {
		margin-top: 30px;
		margin-bottom: 20px;
	}

	.entry-content.narrow-width {
		padding: 0 30px;
	}

	.page-header .tags {
		margin-bottom: 40px;
	}

	h1, h2 {
		overflow-wrap: break-word;
		word-wrap: break-word;
		-ms-word-break: break-all;
		word-break: break-word;
		/* Adds a hyphen where the word breaks, if supported (No Blink) */
		-ms-hyphens: auto;
		-moz-hyphens: auto;
		-webkit-hyphens: auto;
		hyphens: auto;
	}


}
