/*!
Theme Name: FILI 2021
Author: La&La ja Tsto
Author URI: https://lala.fi
Description: FILIn oma WordPress teema
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: fili


FILI 2021 is based on Underscores https://underscores.me/, (C) 2012-2020 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:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

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

/*! normalize.css v8.0.1 | 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;
	-webkit-text-size-adjust: 100%;
}

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

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * 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;
	height: 0;
	overflow: visible;
}

/**
 * 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;
	font-size: 1em;
}

/* 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;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * 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;
	font-size: 1em;
}

/**
 * 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;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	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;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * 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;
	padding: 0;
}

/**
 * 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;
	outline-offset: -2px;
}

/**
 * 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;
	font: inherit;
}

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

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

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

@font-face {
  font-family: 'Calibre Light';
  src: url('webfonts/calibre-web-light.woff2') format('woff2'),
       url('webfonts/calibre-web-light.woff') format('woff');
  font-weight: normal;
  font-style:   normal;
  font-stretch: normal;
}

@font-face {
  font-family: 'Calibre Regular';
  src: url('webfonts/CalibreWeb-Regular.woff') format('woff');
  font-weight: normal;
  font-style:   normal;
  font-stretch: normal;
}

@font-face {
  font-family: 'Calibre Medium';
  src: url('webfonts/calibre-web-medium.woff2') format('woff2'),
       url('webfonts/calibre-web-medium.woff') format('woff');
  font-weight: normal;
  font-style:   normal;
  font-stretch: normal;
}

@font-face {
  font-family: 'GT Sectra';
  src: url('webfonts/GT-Sectra-Fine-Regular.woff2') format('woff2'),
       url('webfonts/GT-Sectra-Fine-Regular.woff') format('woff');
  font-weight: normal;
  font-style:   normal;
  font-stretch: normal;
}

html {
    font-size: 28px;
    /*scroll-behavior: smooth;*/
}

body,
button,
input,
select,
optgroup,
textarea {
	color: #001A70;
	font-family: 'Calibre Light', 'Helvetica Neue', sans-serif;
	font-size: 1rem;
	line-height: 1.25;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	font-weight: normal;
}

h1 strong,
h2 strong,
h4 strong {
	font-weight: 400;
	font-family: 'Calibre Light', sans-serif;
}

h1, .featured h3.news-title, .page-header h2 {
    font-size: 2.07rem;
    line-height: 1;
    margin-top: 0;
}

.entry-content h1 {
	display: none;
}

h2 {
	font-size: 1.5rem;
	line-height: 1;
	margin-top: 50px;
	margin-bottom: 30px;
}

h2 strong {
	font-weight: normal;
	font-family: 'Calibre Light', 'Helvetica Neue', sans-serif;
}

h3.news-title {
    font-size: 1.142rem;
    line-height: 1.125;
    text-transform: none;
}

.entry-content h2 {
	font-size: 1.5rem;
	line-height: 1;
}

h3, h2.caps-title, .cli-tab-container h4, .cli-tab-container h1 {
    font-size: 0.857rem;
    line-height: 1;
    text-transform: uppercase;
    margin: 0.83em 0;
}

.entry-content h3, .entry-content h3 strong {
	font-weight: 400;
	font-family: 'Calibre Regular', sans-serif;
	margin: 2em 0 1em;
}

p {
	margin: 0 0 30px;
}

p.small, .page-header p {
    font-size: 0.786rem;
}

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

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

blockquote {
	margin: 0 1.5em;
	font-size: 1.714rem;
	line-height: 1;
	text-align: center;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	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;
}

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

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

::selection {
	background: #001a70;
	color: #fff;
}

/* Elements
--------------------------------------------- */
body {
	background: #FCF5F6;
}

hr, .wp-block-separator {
	border-top: 1px solid #001A70;
	margin: 2.5em 0; 
}

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

.entry-content li {
	margin-left: -10px;
}

ul {
	list-style: disc;
}

p + ul {
	/* margin-top: -1em; */
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
	margin-bottom: 1.5em;
	border: none;
}

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

figure {
	margin: 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
	background-color: #F2F4F8;
	font-size: 0.648rem;
	border-collapse: collapse;
}

thead {
	background-color: #FDC6C5;
	text-transform: uppercase;
}

td, th {
	border-bottom: 1px solid #54639d;
	padding: 6px;
	vertical-align: top;
	text-align: left;
}

/* Global elements */

.site-main {
	
}

.content-wrapper {
	max-width: 1440px;
	padding: 0 60px;
	margin: 0 auto;
	overflow-wrap: break-word;
	word-wrap: break-word;
	-ms-word-break: break-all;
	word-break: break-word;
}

.breadcrumbs {
	margin-top: 33px;
	margin-top: 0;
	font-size: 12px;
	font-size: 0.428rem;
	text-transform: uppercase;
	padding: 20px 60px;
	border-bottom: 1px solid #6878af;
}

.breadcrumbs a {
	text-decoration: none;
	color: #5A6AA1;
}
.breadcrumbs a:hover {
	text-decoration: underline;
} 

.red {
	background-color: #ff4438;
	color: #00196D;
}

.blue {
	background-color: #001a70;
	color: #fff;
}

.light_red {
	background-color: #FDC6C5;
}

.light_blue {
	background-color: #CCD1E4;
}

.red, .blue, .light_red, .light_blue {
	border: none !important;
}


/* Header */

.site-header, .site-footer {
    background: #001a70;
    color: #fff;
    padding: 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header {
	padding-bottom: 50px;
}

.site-logo img {
	width: 231px;
}

.site-header h1, .site-header p, .site-header img {
	margin: 0;
	display: block;
}

.header-actions {

}

.search-lang {
	display: flex;
	align-items:flex-end;
	justify-content: flex-end;
	line-height: 1;
}

.search-lang > * {
	display: block;
}

.site-search {
	margin-right: 5px;
}

.site-search img {
	width: 20px;
	height:20px;
	display: inline;
    vertical-align: middle;
}

button#searchbutton {
	background: transparent;
	width: auto;
	height: auto;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

button#searchbutton:focus {
	outline: 1px dotted;
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    overflow: auto;
    margin: 0;
}

.modal-header {
	
}


.modal-overlay {
    margin: 0;
    max-width: 100%;
    background-color: #001a70;
    padding: 60px;
    color: #fff;
}

.modal-body form {
	margin: 0 0 0 60px;
	width: calc(100% - 60px);
	display: flex;
	justify-content: space-between;
}

.modal-body form label {
	flex-grow: 1;
}

.closebutton {
	height: 60px;
	width: 60px;
	position: absolute;
	left: 60px;
	top: 60px;
}

.closebutton:hover {
	cursor: pointer;
	height: 60px;
	width: 60px;
}

.closebutton:before, 
.closebutton:after {
	position: absolute;
	content: "";
	border: none;
	left: 0;
	top: 0;
	content: ' ';
	height: 60px;
	width: 1px;
	background-color: #fff;
	transform: rotate(45deg);
}

.closebutton:after{
	transform: rotate(-45deg);

}

.modal-body .search-field {
	font-size: 58px;
	font-size: 2.07rem;
	border-bottom: 1px solid #fff;
	width: calc(100% - 20px);
	padding: 0;
	margin-top: -10px;
	line-height: 1;
	color: #fff;
}

input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance:none;
}

.modal-body .search-field:focus, 
.modal-body .search-field::placeholder, 
.modal-body input[type="submit"].search-submit {
	color: #fff;
}

.search-submit img {
	width: 60px;
	height:60px;
	display: inline;
    vertical-align: middle;
}

button.search-submit {
	background: transparent;
	width: 60px;
	height: 60px;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

button.search-submit:focus {
	outline: 1px dotted;
}


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

.site-languages li {
	display: inline;
	text-transform: uppercase;
	font-size: 0.535rem;
	margin: 0;
	padding: 0;
	line-height: 1;
}

.site-languages li + li:before {
	content: " / "
}

.site-languages a {
	text-decoration: none;
}

/* Footer */

.site-footer {
	display: block;
	font-size: 14px;
	font-size: 0.5rem;

}

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

.site-footer a {
	text-decoration: none;
}

.wt-cli-manage-consent-link {
	display: block;
	margin-top: -40px;
}

.site-footer a:hover {

}

.footer-logo {
	width: 100%;
	text-align: center;
}

.footer-logo img {
	max-width: 475px;
	margin: 45px 20px 100px 20px;
}

.footer-links-wrapper {
	display: flex;
	justify-content: space-between;
}

.footer-address p {
	margin: 0 0 20px;
}

.footer-address ul {
	margin-bottom: 40px;
}

.sitemap {
	width: 75%;
}

.sitemap ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	justify-content: space-between;
	text-transform: uppercase;
}

.sitemap li a {
	margin-bottom: 7px;
	line-height: 1;
	display: block;
}

#sitemap > li {
	margin-bottom: 30px;
	padding-right: 40px;
}

.sitemap .sub-menu {
	text-transform: none;
	display: block;
}


.sks img {
	width: 96px;
}


.cli-modal-content, .cli-tab-content {
	border-radius: 0;
	background: #FCF5F6;
}

.cli-tab-container p, .cli-privacy-content-text,
.cli-tab-container h4, .cli-tab-container h1,
a.cli-privacy-readmore, .cli-tab-header,
.cli-tab-header a.cli-nav-link,
span.cli-necessary-caption,
.cli-switch .cli-slider:after,
.wt-cli-cookie-description {
	color: #001A70;
}

.cli-modal-close svg {
    fill: #001A70;
}

.cli-modal .cli-modal-close {
    padding: 2px;
}

.cli-tab-header a:before {
	border-color: #001A70;
}

.cli-tab-header {
    background-color: #CCD1E4;	
}

.wt-cli-accept-all-btn:hover, a.cli-plugin-button:hover {
    background-color: #001A70 !important;
    color: #fff !important;
}

.wt-cli-ckyes-brand-logo {
    display: none;
}

.cookielawinfo-row-cat-table {
    margin: 20px 0 !important;
}

.grecaptcha-badge {
	opacity: 0;
}

/* Social menu */ 

@font-face {
  font-family: 'lala_social';
  src: url('webfonts/lala_social.eot?30820462');
  src: url('webfonts/lala_social.eot?30820462#iefix') format('embedded-opentype'),
       url('webfonts/lala_social.woff2?30820462') format('woff2'),
       url('webfonts/lala_social.woff?30820462') format('woff'),
       url('webfonts/lala_social.ttf?30820462') format('truetype'),
       url('webfonts/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('../webfonts/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-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 li {
	display: inline-block;
}

.site-footer .social {
	margin-bottom: 50px;
}

/* Links
--------------------------------------------- */
a {
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-thickness: 0.05em;
	color: inherit;
	transition: color .5s;
}

a:hover,
a:focus,
a:active {
	text-decoration: none;
}

a:focus {
	outline: thin dotted;
}

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

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
a.lala-button,
a.lala-button:visited,
a.lala-button.negative:hover,
a.wp-block-button__link,
a.wp-block-button__link:visited,
a.wp-block-button__link.negative:hover,
.cat-menu a,
.cli-plugin-button, .wt-cli-privacy-btn,
.cli-tab-footer .wt-cli-privacy-accept-btn {
	color: #001a70;
	background-color: transparent;
	border-radius: 1.55em;
	box-shadow: none;
	cursor: pointer;
	display: inline-block;
	font-size: 0.571rem;
	padding: .667em 1.333em;
	text-align: center;
	text-decoration: none;
	overflow-wrap: break-word;
	border: 1px solid;
	text-transform: uppercase;
	transition: background-color .5s;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
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,
.lala-button:active, 
.lala-button:focus, 
.lala-button:hover,
a.lala-button:visited:hover,
a.lala-button.negative,
.wp-block-button__link:active, 
.wp-block-button__link:focus, 
.wp-block-button__link:hover,
a.wp-block-button__link:visited:hover,
a.wp-block-button__link.negative,
.cat-menu a:hover,
.cat-menu .current-cat a,
.cli-plugin-button:hover, .wt-cli-privacy-btn:hover  {
	background-color: #001a70;
	border: 1px solid #001a70;
	color: #fff;
}

button img {
	vertical-align:-2px;
	margin-right: 10px;
}

button:hover img {
	filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(344deg) brightness(112%) contrast(109%);
}

a.lala-button.negative:hover,
a.wp-block-button__link.negative:hover {
	color: #001a70;
}

.blue a.lala-button,
.blue a.lala-button.negative:hover,
.blue a.wp-block-button__link,
.blue a.wp-block-button__link.negative:hover  {
	color: #fff;
	background-color: transparent;
	border-color: #fff;
}

.blue a.lala-button.negative,
.blue a.lala-button:hover,
.blue a.wp-block-button__link.negative,
.blue a.wp-block-button__link:hover  {
	background-color: #fff;
	color: #001a70;
}

form {
	margin: 40px 0;
}

form p {
	clear: both;
}

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 {
	border: none;
	border-bottom: 1px solid #001a70;
	border-radius: 0;
	padding: 5px;
	background-color: transparent;
	font-size: 0.9em;
}

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 {
	border-color: #ff4438;
	outline: 0;
	color: #001a70;
}

select {
  appearance: none;
    -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: transparent;
  border: none;
  padding: 0 1em 0 0;
  margin: 0;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  cursor: inherit;
  line-height: inherit;
  outline: none;
}

.select {
  width: 230px;
  border: 1px solid #001a70;
  border-radius: 0;
  padding: 8px 0 8px 8px;
  cursor: pointer;
  line-height: 1;
  display: grid;
  grid-template-areas: "select";
  align-items: center;
}

.wide .entry-header .select {
	margin: 0 auto;
}

.select::after {
  content: "";
  width: 27px;
  height: 14px;
  background-color: #001a70;
  clip-path: polygon(95% 0, 100% 0, 50% 100%, 0 0, 5% 0, 50% 89%);
  justify-self: end;
  align-self: end;
  margin-right: 10px;
}

select,
.select:after {
  grid-area: select;
}


textarea {
	width: 100%;
}


.past-grants-menu label {
    font-size: 0.785rem;
    margin-bottom: 13px;
    display: block;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */

.site-header a:hover, .site-header button:hover, .site-header button:focus, 
.site-footer a:hover {
	color: #FDC6C5;
}

.site-header a {
	text-decoration: none;
}

.main-navigation {
	display: block;
	/* width: 100%; */
}

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

.main-navigation .site-address {
	display: none;
}

button.menu-toggle {
	border: none;
	padding: 0;
	font-size: 0.86rem;
	margin-bottom: 5px; 
	color: #fff;
	width: 100%;
	text-align: right;
}

.main-navigation ul ul {
	
}

.main-navigation ul ul ul {
	
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	
}

.main-navigation ul ul a {
	
}

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

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
	font-family: 'Calibre Medium', 'Helvetica Neue', sans-serif;
	line-height: 1;
	margin-bottom: 15px;
}

.menu-toggle,
.main-navigation.toggled ul,
.main-navigation.toggled .site-address  {
	display: block;
}

.toggle-submenu {
	display: none;
}

.main-navigation .menu-wrapper {
	transition: background 0.8s;
	background: transparent;
}

.main-navigation.toggled .menu-wrapper {
	position: absolute;
	left: 0;
	top: 160px;
	background: #001a70;
	width: 100%;
	min-height: calc(100vh - 160px);
	padding-bottom: 100px;
	z-index: 1000;
	display: flex;
	flex-wrap: wrap;
	align-content: flex-end;
	transition: background 0.5s;
}

body.menu-toggled {
	height: 100vh;
	overflow: hidden;
}

.menu-wrapper > div {
	flex-basis: 100%;
}

.main-navigation.toggled #primary-menu {
	margin: 60px 60px 20px 60px;
    display: flex;
    justify-content: space-between;
	border-top: 1px solid #babcc3;
	border-bottom: 1px solid #babcc3;
	padding: 60px 0;
	font-size: 22px;
	font-size: 0.785rem;
}

#primary-menu > li {
	padding-right: 40px;
}

#primary-menu > li:last-of-type {
	padding-right: 0;
}

.main-navigation.toggled .extras {
	display: flex;
    justify-content: space-between;
    margin: 0px 60px;
    text-transform: uppercase;
    font-size: 0.571rem;
}

.sub-menu a, .extras a  {
	font-family: 'Calibre Light', 'Helvetica Neue', sans-serif;
	margin-bottom: 8px;
}

.extras a {
	display: inline;
}

.extras br {
    content: '';
}

.extras br:after {
    content: '  \00a0\00a0';
}

.extras li {
	display: inline-block;
	margin-right: 50px;
}

/* Sub pages menu */

.sub-page-menu ul {
	display: flex;
	list-style: none;
	justify-content: space-around;
	padding: 20px 60px;
	margin: 0;
    font-size: 0.535rem;
    line-height: 1;
    text-transform: uppercase;
    border-bottom: 1px solid #6878af;
}

.sub-page-menu li {
	/* max-width: 200px; */
	/* width: 100%; */
}

.sub-page-menu li + li {
	margin-left: 5px;
}

.sub-page-menu a {
	text-decoration: none;
}

.sub-page-menu a:hover {
	text-decoration: underline;
}

.sub-page-menu .current_page_item a {
	text-decoration: underline;
}


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

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
	order: 2;
	text-align: right;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	
	flex: 1 0 50%;
	order: 1;
}

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

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

article {
	margin-top: 120px;
}

article.sub, .contact-wrapper {
	display: flex;
	justify-content: space-between;
}

.page-header {
	margin-right: 45px;
	margin-top: -10px;
	flex-shrink: 3;
	min-width: 300px;
}


.page-template-default .periods {
	border-bottom: 1px solid #6878af;
	border-top: 1px solid #6878af;
	padding: 20px 0 20px;
	margin-bottom: 40px;
}

.page-template-default .periods p {
	margin-bottom: 0;
	margin-top: 0;
}

.entry-header {
	text-align: center;
	max-width: 868px;
	margin: 0 auto;
}

.archive-header {
	margin-top: 60px;
}

.page-content {
	max-width: 868px;
	width: 100%;	
}

.entry-content {
	max-width: 780px;
	padding-bottom: 100px;
	width: 100%;
}

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

.entry-content.center {
	margin: 0 auto;
}

.wide .entry-content {
	max-width: 100%
}


.entry-content > *:last-child,
.entry-content > *:last-child > *:last-child,
.entry-content > *: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 {
  margin-top: 0;
}

/* Home */

.hero {
	background-color: #F9B13F;
	text-align: center;
	padding: 10% 60px;
	font-family: 'GT Sectra', serif;
}

.hero p {
	font-size: 2.46rem;
	margin: 0 auto;
	max-width: 1400px;
	line-height: 1.15;
}

.marquee {
	text-align: center;
	padding: 40px
}

.marquee p {
	margin: 0;
}

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

.home-grid .post {
	width: 30%;
}

.title-wrapper {
	display: flex;
	margin: 40px 0;
	align-items: center
}

.title-wrapper h2 {
	margin-right: 20px;
}

.featured .post {
	display: flex;
	justify-content: space-between;
	align-items: center
}

.featured .post > * {
	flex-basis: 48%;
}

.featured .post:nth-of-type(even) img {
	order: 2;
}

.featured .post img {
	max-width: 48%;
}

.sold-rights, .links, .social-feeds {
	padding: 40px 0 60px;
}

.sold-rights ul, .links ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: space-between;
		font-size: 22px;
	font-size: 0.785rem;
}

.sold-rights li a, .links li a {
	text-decoration: none;
}

.sold-rights li a:hover, .links li a:hover,
.sold-rights li a:focus, .links li a:focus          {
	text-decoration: underline;
}

.sold-rights li {
	flex-basis: 18%;
	margin-bottom: 20px;
}

.sold-rights strong {
	font-family: 'Calibre Light', sans-serif;
	font-weight: normal;
}

.links li {
	max-width: 250px;
}

.links li + li {
	margin-left: 50px;
}

.sold-rights li a:after, .links li p:after,
#primary-menu a[href*="//"]:not([href*="fili.fi"]):after {
	content: " \2192";
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    position: relative;
    top: 2px;
}

.links a[href*="//"]:not([href*="fili.fi"]) p:after,
#primary-menu a[href*="//"]:not([href*="fili.fi"]):after {
	transform: rotate(-45deg);
	display: inline-block;
	margin-left: 5px;
}

.links h2, .sold-rights h2 {
	margin-bottom: 50px
}

.links h3 {
	margin: 0 0 10px;
}

.social-feeds .title-wrapper ul {
	padding: 0;
	margin: 0;
	font-size: 0.6rem;
}

.social-feeds .title-wrapper a {
	text-decoration: none;
}

.sb-wall {
	margin: 30px -20px;
	font-size: 22px;
	font-size: 0.785rem;
}

[id^=sb-wall].sb-wall .sbsw-item-inner,
[id^=sb-wall].sb-wall .sbsw-item-header,
[id^=sb-wall].sb-wall .sbsw-item-footer {
	border-radius: 0;
	box-shadow: none;
}

[id^=sb-wall].sb-wall .sb-wall-load-btn,
.sbsw-item:hover .sbsw-follow {
	display: none;
}

[id^=sb-wall].sb-wall .sbsw-icon a:link, 
[id^=sb-wall].sb-wall .sbsw-icon a:visited,
[id^=sb-wall].sb-wall .sbsw-item-stats svg,
[id^=sb-wall].sb-wall .sbsw-item-stats, 
[id^=sb-wall].sb-wall .sbsw-item-stats .sbsw-count,
[id^=sb-wall].sb-wall a.sbsw-share-button {
	color: #001a70;
}

[id^=sb-wall].sb-wall a.sbsw-share-button {
	display: none;
}

[id^=sb-wall].sb-wall .sbsw-item p.sbsw-content-text {
	padding: 20px;
}

[id^=sb-wall].sb-wall .sbsw-item-bottom-content, 
[id^=sb-wall].sb-wall .sbsw-item-footer, 
[id^=sb-wall].sb-wall .sbsw-item-header,
[id^=sb-wall].sb-wall .sbsw-tc-content {
	background-color: #fcf5f6
}

.sbsw-quote-or-card:after, .sbsw-tc-media:after, [id^=sb-wall].sb-wall .sbsw-item-media:after {
	display: none;
}

[id^=sb-wall].sb-wall .sbsw-tc-title {
	font-weight: 300;
	font-size: 1.3em;
	line-height: 1.1;
}

[id^=sb-wall].sb-wall .sbsw-item-footer, [id^=sb-wall].sb-wall .sbsw-item-header {
	padding-bottom: 15px;
}

[id^=sb-wall].sb-wall .sbsw-more {
	border-color: #001a70;
	border-radius: 1.55em;
}

[id^=sb-wall].sb-wall .sbsw-more:hover {
	background-color: #001a70;
	color: #fff;
} 

#sb_instagram .sbi_info p {
	line-height: 0.6;
}

#sb_instagram .sbi_photo_wrap:hover .sbi_link {
	background: transparent !important;
}

/* Grants */

.grant-link {
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid #6878af;
	padding: 70px 0;
}

.grant-link:first-of-type {
	border-top: 1px solid #6878af;
}

.grant-link h2 {
	flex-basis: 30%;
	margin: 0;
	font-size: 1rem;
}

.grant-link .periods {
	flex-basis: 35%;
	font-size: 0.785rem;
}

.grant-link .periods p {
	margin-bottom: 0.3em;
}

.grant-link .periods p:first-of-type {
	text-transform: uppercase;
	font-size: 0.857rem;
}

.grant-link strong {
	font-family: 'Calibre Light', sans-serif;
	line-height: 1
}

.grant-link .forms-link {
	display: none;
}

.forms-link a:after {
    content: "";
    display: inline-block;
    height: 35px;
    width: 35px;
    background: url(img/nuolipallo.svg) no-repeat top center;
    background-size: contain;
    vertical-align: middle;
    margin-left: 10px;
}

.page-header .periods p + p.forms-link {
	margin: 20px 0;
}

td.grant, th.colset-6 { 
	width: 90px !important;	
}

td.language, th.colset-4, th.colset-5 {
	width: 120px;
}

td.writer, th.colset-3 {
	/* width: 150px; */
}

.past-grants-menu select {
	width: 200px;
	font-size: 0.535rem;
}



/* News */

.entry-meta {
	font-size: 15px;
	font-size: 0.535rem;
	margin-bottom: 20px;
}

.news-title {
	margin: 18px 0;
}

.post p {
	margin: 0;
	font-size: 0.785rem;
}

.post {
	margin-bottom: 60px;
}

.post .lala-button, 
.post .wp-block-button__link {
	margin: 20px 0;
}

.post img {
  margin-bottom: 20px;
  display: block;
  width: 100%;
}

.cat-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cat-menu li {
	display: inline-block;
	margin: 10px;
}

.grid {
  margin-top: 60px;
}

.grid:after {
  display: block;
  content: '';
  clear: both;
}

.grid-col {
  float: left;
  width: 100%;
  margin-right: 0;
}

.grid-col--3 { margin-right: 0; }

/* hide */
.grid-col--2 { display: none; }
.grid-col--3 { display: none; }

@media ( min-width: 768px ) {
	  .grid-col { width: 47.5%; margin-right: 5% }
	  .grid-col--2 { display: block; margin-right: 0}
}

@media ( min-width: 1024px ) {
	  .grid-col { width: 30%; margin-right: 5% }
	  .grid-col--2 { display: block; }
	  .grid-col--3 { display: block; margin-right: 0}
}



/* Contact */

.contact-wrapper + .contact-wrapper {
	padding-top: 80px;
	border-top: 1px solid #6878af;
}

.contact-wrapper .page-content {
	font-size: 0.785rem;
	padding-bottom: 30px;
}

.people, .publications, .translators, .videos, .title-selection {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.translators {
	margin-top: 100px;
}

.person {
    flex-basis: calc(50% - 20px);
    margin-bottom: 20px;
}

.person img, .translators .translator img {
	width: 100%;
	display: block;
	margin-bottom: 20px;
}

.single-translator .entry-content p img:first-of-type {
	display: none;
}

.publications .publication {
	flex-basis: calc(33.33% - 20px);
	margin-bottom: 60px;
	font-size: 0.785rem;
	text-decoration: none;
}

.publications .publication:hover {
	text-decoration: underline;
} 

.publications-grid figcaption {
	font-size: 0.785rem;
	text-align: left; 
}

.translators .translator {
	flex-basis: calc(25% - 20px);
	margin-bottom: 30px;
	font-size: 0.785rem;
	text-decoration: none;
}

.translators .translator img, .single-translator .post-thumbnail {
	 filter: grayscale(100%);
}

.translators .translator:hover {
	text-decoration: underline;
}

.translators .translator img {
	object-fit: cover;
  object-position: center; /* Center the image within the element */
  height: 175px;
  width: 175px;
}

.page-template-page-translators .entry-content .wp-block-image {
	margin-bottom: 0;
}

.entry-content 	.videos .video-outer {
	flex-basis: calc(50% - 15px);
	margin-bottom: 30px;
}

.entry-content 	.videos .video {
	position: relative; 
  padding-bottom: 56.25%;	
  overflow: hidden;
  max-width: 100%;
  height: auto;
}

.video iframe { 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.title-selection {
	max-width: 630px;
	margin: 0 auto;
}

body:not(.single-book) article.title-selection-box {
	margin-top: 0;
}

.title-selection-box h2 {
	margin-top: 1.2em;
	margin-bottom: 0.75em;
	text-align: left;
}

.title-selection-images {
	display: flex;
	justify-content: flex-start;
	gap: 5%;
}

.title-selection-images img {
	display: block;
}

.title-selection-images div {
	flex-basis: 50%;
}

.title-selection-images figcaption {
	text-align: left;
}

.title-selection-box + .title-selection-box {
	border-top: solid #6878af 1px;
}

.title-selection-box {
	padding-top: 100px;
}
.single-book .title-selection-box {
  padding-top: 0;
}

.hundred-books-cover {
	margin-bottom: 50px;
}

.hundred-anchors {
	margin-top: 50px !important;
	list-style: none;
	margin-left: 0;
	padding-left: 0;
	text-align: center;
}

.hundred-anchors li {
	display: inline-block;
	margin: 10px;
}

.hundred-books h2 {
	font-family: 'GT Sectra', serif;
	text-align: center;
	margin-top: 100px;
}

.hundred-books h2 img {
	width: 150px;
}

.hundred-books h3 {
	font-size: 1.5rem;
    line-height: 1;
	text-transform: none;
	margin-bottom: 10px;
	font-family: 'Calibre Regular', sans-serif;
	margin: 0.83em 0;
}

.hundred-books h3 span {
	font-family: 'Calibre Light', sans-serif;
}

.hundred-book {
	margin: 150px 0;
}

.hundred-book .book-images {
	display: flex;
	justify-content: center;
	gap: 30px;
	align-items: baseline;
}

.hundred-book figure {
	text-align: center
}

.book-details {
	font-size: 0.8rem;
}

.book-subtitle {
	margin-bottom: 0.2em;
	font-style: italic;
}

.hundred-books blockquote {
	font-size: 0.75rem;
	text-align: left;
	font-style: italic;
	font-family: 'Georgia', serif;
	line-height: 1.5;
	margin-bottom: 30px;
}

.hundred-books cite, .new-book {
	display: inline-block;
	margin-top: 0;
	font-style: normal;
	text-transform: uppercase;
	font-size: 0.65rem;
	font-family: 'Calibre Regular', sans-serif;
	background: #001A70;
	color: #fff;
	padding: 4px 25px 3px 10px;
	margin-right: 5px;
	position: relative;
	height: 26px;
	letter-spacing: 0.02em;
	line-height: 1;
	top:-1px;
}

.basic cite {
	display: none;
}

.hundred-books cite:after {
	content: " ";
} 

.hundred-books cite:after, .new-book:after {
	content: " ";
	border-bottom: 13px solid #001A70;
    border-top: 13px solid #001A70;
    border-right: 13px solid #fcf5f6;
	width: 0;
	height: 0;
	display: inline-block;
	position: absolute;
	right: 0;
	top: 0px;
} 

.hundred-books .reader {
    font-family: 'Calibre Light', 'Helvetica Neue', sans-serif;
    font-style: normal;
    font-size: 0.8rem;
}

/*.hundred-books a[href*="//"]:not([href*="fili.fi"]):after  {
	content: " \2192";
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    position: relative;
    top: 2px;
	transform: rotate(-45deg);
    display: inline-block;
    margin-left: 5px
}*/


.new-book + h3 {
	margin-top: 10px;
}



/* Map */

.worldmap {
	padding: 20px;
	background-color: #fff;
}

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

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	border-top: 1px solid;
}

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

aside section {
	overflow: auto;
	padding: 40px 0;
}

aside .content-wrapper {
	display: flex;
	justify-content: space-between;
}

aside h2.caps-title {
    margin-right: 45px;
    margin-top: 0;
    margin: 0 45px 40px 0
}

.free-content .page-content {
	columns: 2 300px;
	column-gap: 6%;
}

.free-content .page-content ul,
.free-content .page-content p {
	column-break-inside: avoid;
	-webkit-column-break-inside: avoid;
}

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

.news-columns .post {
	flex-basis: 47%;
}


/* 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 logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

.post-thumbnail {
	margin-bottom: 1rem;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	max-width: 100%;
	font-family: 'Calibre Regular', sans-serif;
}

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

figcaption {
	margin: 15px 0 0 0;
	text-align: center;
	font-size: 15px;
	font-size: 0.535rem;
}

.videos figcaption {
	font-size: 0.785rem;
	text-align: left;
	margin-top: 0.25em;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

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

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

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

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

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

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

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

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

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

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

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

.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: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/

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

	.footer-links-wrapper {
		flex-wrap: wrap;
		justify-content: center;
	}

	.sitemap {
		width: 100%;
	}

	.footer-social, .footer-address {
		margin: 50px;
	}

}

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

	article.sub {
		display: block;
	}
}



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

	.site-header, .site-footer {
		padding: 20px;
	}

	.site-main {
		padding: 20px 0 0 0;
	}

	.hero {
		margin: -20px;
	}

	.site-logo img {
		width: 200px;
		margin: 40px auto 0 auto;
	}

	button.menu-toggle {
		margin-bottom: 0;
		position: absolute;
		top: 10px;
		left: 0;
		width: 100%;
		text-align: center;
	}

	.site-header {
		display: block;
		padding: 30px 20px;
	}

	.search-lang {
		justify-content: center;
		margin-top: 20px;
	}

	.main-navigation a {
		font-family: 'Calibre Light', 'Helvetica Neue', sans-serif;
		margin-bottom: 0;
		width: calc(100% - 30px);
	}

	.main-navigation.toggled #primary-menu {
		font-size: 1.2rem;
	}

	.main-navigation .sub-menu a {
		font-size: 0.9rem;
		margin: 7px 0;
	}

	.main-navigation br {
		content: '';
	}

	#primary-menu > li {
		border-bottom: 1px solid #babcc3;
        padding:10px 0;
	}

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

    .main-navigation.toggled .menu-wrapper {
		top: 180px;
		min-height: calc(100vh - 180px);
		align-content: flex-start;
	}

    .toggle-submenu {
		display: block;
		border: 0;
		right: 0;
		top: 15px;
		margin-top: 0;
		padding: 0;
		height: 25px;
		position: absolute;
		color: #fff;

	}
    .toggle-submenu:after {
    	content: "";
    	font-size: 1rem;
    	display: block;
        height: 25px;
        width: 25px;
        position: absolute;
        line-height: 1;
        top:0;
        right: 0;
        background: url(img/nuoli.svg) no-repeat top center;
        background-size: contain;

    }
    .focus .toggle-submenu:after {
    	transform: rotate(90deg);
    }

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

	.main-navigation.toggled > div {
		left: 0;
		top: 170px;
	}

	.main-navigation.toggled #primary-menu {
		margin: 20px 20px 50px 20px;
		display: block;
		padding: 0;
		text-align: left;
		border-bottom: 0;
	}

	.main-navigation.toggled .extras {
		display: block;
		justify-content: space-between;
		margin: 0 20px;
	}

	.extras li {
		margin-right: 5px;
	}

	.main-navigation.toggled .site-address {
		margin-top: 40px;
		font-size: 0.5rem;
		text-align: left;
	}

	.footer-logo img {
		margin: 50px 20px;
	}

	.sitemap ul, .footer-links-wrapper {
        display: block;
        text-align: center;

	}

	#sitemap > li {
		padding-right: 0;
	}
	
	.footer-social, .footer-address {
		margin: 50px auto;
	}

	#wpadminbar {
		display: none;
	}

	.hero p {
		font-size: 1.46rem;
	}

	.featured .post, .home-grid, .sold-rights ul, .links ul,
	.title-wrapper, .links h2, .sold-rights h2, aside .content-wrapper {
		display: block;
	}

	.featured .post img {
	    max-width: 100%;
	}

	.title-wrapper {
		text-align: center;
	}

	.title-wrapper h2 {
		margin-right: 0;
	}

	.home-news h2 {
		margin: 80px 0 40px;
	}

	.home-grid .post {
		width: 100%;
	}

	.links li {
		max-width: 100%;
	}

	.links li + li {
		margin-left: 0;
	}
	
	/*
	.title-selection-box {
	    flex-basis: 100%;
	    margin-bottom: 10%;
	}
	*/

}

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

	html {
		font-size: 22px
	}

	.modal-overlay {
		padding: 20px;
	}

	.closebutton {
		height: 40px;
		width: 40px;
		position: absolute;
		left: 40px;
		top: 20px;
	}

	.closebutton:before, 
	.closebutton:after {
		height: 40px;
	}

	.modal-body form {
		margin: 0 0 0 50px;
		width: calc(100% - 80px);
	}

	.modal-body .search-field {
		font-size: 1.6rem;
		width: calc(100% - 20px);
		margin-top: -6px;
	}

	button.search-submit {
		width: 40px;
		height: 40px;
	}

	.search-submit img {
		width: 40px;
		height: 40px;
	}
    .hero {
    	padding: 10% 40px;
    	margin: -20px 0;
    }
    .content-wrapper, .breadcrumbs {
    	padding: 0 20px;
    }

    .home-news h2 {
    	margin: 50px 0 20px;
    }

    .sold-rights, .links, .social-feeds {
    	padding: 20px 0
    }

    .post {
		margin-bottom: 30px;
	}
	.breadcrumbs {
		margin-top: 0px;
		font-size: 0.6rem;
		padding-bottom: 20px;
	}
	.sub-page-menu  { 
	    display: none;  
		padding: 20px;
		font-size: 0.7rem;
	}

	.entry-content {
		padding-bottom: 50px
	}

	article {
		margin-top: 50px;
	}
	.entry-meta, figcaption {
		font-size: 0.7rem;
	}

	figcaption {
		margin: 5px 0;
	}
	.site-footer {
		font-size: 0.7rem;
	}

	.news-columns, .grant-link, article.sub, .contact-wrapper,
	.people, .publications, .videos {
		display: block;
	}
	
	.entry-content 	.videos .video {
	  padding-bottom: 56.25%;	
	}

	.translators .translator {
		flex-basis: calc(50% - 20px);
	}

	.grant-link {
		padding: 30px 0;
	}

	.grant-link h2, .grant-link .periods {
		margin-bottom: 20px
	}

	.wide-table .has-fixed-layout {
		table-layout: auto;
		overflow-x: auto;	
	}
	
	.wide-table .has-fixed-layout td {
        min-width: 50px; 
        word-break: initial;
	}

}



/* Tables for smartphones (portrait and landscape) */

@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) {
	tr.rowset {
		border-bottom: 10px solid #FDC6C5;
	}
}


@media only screen and (max-device-width: 768px) and (min-device-width: 300px) {

/* Force table to not be like tables anymore korjaus*/ 
		.parent-pageid-870 table, .parent-pageid-870 table td,
		.parent-pageid-875 table, .parent-pageid-875 table td ,
		.parent-pageid-1021 table, .parent-pageid-1021 table td { 
			display: block; 
		}
		
		/* Hide table headers (but not display: none;, for accessibility) */
		.parent-pageid-870 thead tr,
		.parent-pageid-875 thead tr,
		.parent-pageid-1021 thead tr { 
			position: absolute;
			top: -9999px;
			left: -9999px;
		}
		
		.parent-pageid-870 tr,
		.parent-pageid-875 tr, 
		.parent-pageid-1021 tr  { 
			border-bottom: 10px solid #FDC6C5; 
		}
		
		.parent-pageid-870 td,
		.parent-pageid-875 td,
		.parent-pageid-1021 td { 
			/* Behave  like a "row" */
			position: relative;
			padding-left: 50%; 
		}
		
		.parent-pageid-870 td:before,
		.parent-pageid-875 td:before,
		.parent-pageid-1021 td:before { 
			/* Now like a table header */
			position: absolute;
			/* Top/left values mimic padding */
			top: 6px;
			left: 6px;
			width: 45%; 
			padding-right: 10px; 
			white-space: nowrap;
		}
	
		/*
		Make sure Grant rows have height
		*/
	
		.parent-pageid-870 td:nth-of-type(6),
		.parent-pageid-875 td:nth-of-type(6),
		.parent-pageid-1021 td:nth-of-type(6),
		.parent-pageid-870 td:nth-of-type(7),
		.parent-pageid-875 td:nth-of-type(7),
		.parent-pageid-1021 td:nth-of-type(7) {
			/* height: 15px !important; */
		}
		
		/*
		Label the data
		*/
		.parent-pageid-870 td:nth-of-type(1):before,
		.parent-pageid-875 td:nth-of-type(1):before,
		.parent-pageid-1021 td:nth-of-type(1):before { 
			content: "Applicant"; }
		.parent-pageid-870 td:nth-of-type(2):before,
		.parent-pageid-875 td:nth-of-type(2):before,
		.parent-pageid-1021 td:nth-of-type(2):before { 
			content: "Work"; }
		.parent-pageid-870 td:nth-of-type(3):before,
		.parent-pageid-875 td:nth-of-type(3):before,
		.parent-pageid-1021 td:nth-of-type(3):before { 
			content: "Author"; }
		.parent-pageid-870 td:nth-of-type(4):before,
		.parent-pageid-875 td:nth-of-type(4):before,
		.parent-pageid-1021 td:nth-of-type(4):before { 
			content: "Translator"; }
		.parent-pageid-870 td:nth-of-type(5):before,
		.parent-pageid-875 td:nth-of-type(5):before,
		.parent-pageid-1021 td:nth-of-type(5):before { 
			content: "Language"; }
		.parent-pageid-870 td:nth-of-type(6):before,
		.parent-pageid-875 td:nth-of-type(6):before,
		.parent-pageid-1021 td:nth-of-type(6):before { 
			content: "Translation grant (\20AC)"; }
		.parent-pageid-870 td:nth-of-type(7):before,
		.parent-pageid-875 td:nth-of-type(7):before,
		.parent-pageid-1021 td:nth-of-type(7):before { 
			content: "Printing grant (\20AC)"; }

}
