/*!
Theme Name: Kiinaseura
Theme URI: https://kiinaseura.fi/
Author: wrkshp
Author URI: https://wrkshp.fi/
Description: Description
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: kiinaseura
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

Kiinaseura 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 */
    height:100%;
}

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

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

body {
	margin: 0;
    min-height: 100%;
    display:flex;
    flex-direction:column;
}
footer {
    margin-top:auto;
    align-self:flex-end;
}

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

/*--------------------------------------------------------------
# Mini (Typography) Reset
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
}
/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-size: 16px;
	font-size: 1rem;
	line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
	clear: both;
}

p {
	/* margin-bottom: 0.5em; /* 1.5 */
}

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

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", Courier, monospace;
	font-size: 15px;
	font-size: 0.9375rem;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code, kbd, tt, var {
	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
	font-size: 15px;
	font-size: 0.9375rem;
}

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

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

big {
	font-size: 125%;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
html {
	box-sizing: border-box;
}

*,
*:before,
*:after {
	/* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
	box-sizing: inherit;
}

body {
	background: #f4f4f4;
	/* Fallback for when there is no custom background color defined. */
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

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

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

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

dt {
	font-weight: bold;
}

dd {
	margin: 0 1.5em 1.5em;
}

img {
	height: auto;
	/* Make sure images are scaled correctly. */
	max-width: 100%;
	/* Adhere to container width. */
}

figure {
	margin: 1em 0;
	/* Extra wide images within figure tags don't overflow the content area. */
}

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

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

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

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: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a {
	color: #2C3C6E; /* color: #A92940; */
    text-decoration: none;
}

a:visited {
	color: #2C3C6E;
}

a:hover, a:focus, a:active {
	color: #EF5939; /* color: #E0062C; */
}

a:focus {
	outline: thin dotted;
}

a:hover, a:active {
	outline: 0;
}
a.btn {
	border-radius: 1.5rem;
	font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
	padding: .6em 2em;
    transition: all 0.3s ease-in-out 0s;
    display:inline-block;
    margin:0.6rem;
}
a.btn.blue-on-red {
	background: #EF5939;
	color: #2E364F;
}
a.btn.red-on-blue {
	background: #2E364F;
	color: #EF5939;
}
a.btn:hover {
    color:#fff;
    transform:scale(1.1)!important;
}
.front-only {
    display:none!important;
}
.home .front-only {
    display:inline-block!important;
}
.home .not-on-front {
    display:none!important;
}
/* #about a {
	color: #E0062C; 
    text-decoration: none;
}

#about a:visited {
	color: #E0062C;
}

#about a:hover, #about a:focus, #about a:active {
	color: #DF8C00;
} */
/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/

.main-navigation {
	display: flex;
	width: 100%;
    align-items:flex-end;
    padding: 36px 1rem 1rem 100px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}
.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}
.main-navigation ul ul {
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 999;
}
.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: 250px;
}

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

.main-navigation li {
	float: left;
	position: relative;
}
.main-navigation a {
	display: block;
	text-decoration: none;
}
button.menu-toggle, span.btn-search {
    border: none;
	border-radius: 0;
	background: transparent;
	color: #EF5939;
	font-size: 1rem;
	line-height: 1;
    margin-top: 12px;
}
button.menu-toggle {
    position:fixed;
    top:0;
    right:0;
    cursor: pointer;
    z-index: 9999;
}
button.menu-toggle:hover, span.btn-search:hover {
	color: #FF3050; /* color: #FFAE26; */
}
span.btn-search {
    right:48px;
}
.btn-search:hover {
    cursor: pointer;
    opacity: .6;
}
nav.scrollhide-nav {
    display: flex;
    justify-content: space-between;
}
.scrollhide-nav > div {
}
.scrollhide-nav {
    position: fixed;
    right: 0;
    top: 0;
    left: 0;
    transition: -webkit-transform 1s cubic-bezier(0.86, 0, 0.07, 1);
    transition: transform 1s cubic-bezier(0.86, 0, 0.07, 1);
    transition: transform 1s cubic-bezier(0.86, 0, 0.07, 1), -webkit-transform 1s cubic-bezier(0.86, 0, 0.07, 1);
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    z-index:999;
    width:100%;
    min-height:100px;
    background-image: url(pix/header-sin.png);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    margin: 0;
}
.home .scrollhide-nav {
    width:100%;
    height:50vh;
    background-image: url(pix/front-header.png);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    margin: 0;
}
.scrollhide-nav.hidden {
  -webkit-transform: translateY(-100%);
      -ms-transform: translateY(-100%);
          transform: translateY(-100%);
}
#menu-primary {
    flex-direction: column;
    justify-content: center;
    align-items:center;
}
#menu-footer {
    display:flex;
    list-style-type: none;
    align-items:center;
    flex-direction: column;
    align-content:center;
    justify-content:center;
}
.main-navigation.toggled ul {
    width: 100%;
    position: absolute;
    top: 60px;
    z-index: 999;
    left: 0;
    transition: -webkit-transform 1s cubic-bezier(0.86, 0, 0.07, 1);
    transition: transform 1s cubic-bezier(0.86, 0, 0.07, 1);
    transition: transform 1s cubic-bezier(0.86, 0, 0.07, 1), -webkit-transform 1s cubic-bezier(0.86, 0, 0.07, 1);
    background-image: url(pix/header-sin.png);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    margin: 0;    
    padding:1rem 1rem 4rem 1rem;
}
.home .main-navigation.toggled ul {
    height: 50vh;
    top: 20px;
    padding:0;
}
.brandbar {
    width: 80px;
    height: auto;
    z-index: 9999;
    top: 0;
    transition: all .5s ease;
    min-height: 60px;
}
#wrks-search {
    width:auto;
    /* float:right; */
    margin-right: 1rem;
}
#brand {
    position:relative;
    width:50px;
    height:50px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url(pix/sinetti-pun.png);
    margin:1rem;
}
.home #brand {
    display:none;
}
.site-main .comment-navigation, .site-main
.posts-navigation, .site-main
.post-navigation {
	margin: 0 0 1.5em;
	overflow: hidden;
}

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

@media (orientation: portrait) and (min-width: 768px) {
	.home .main-navigation.toggled ul {
        height: 30vh;
    }
    .home .scrollhide-nav {
    height:30vh;
    }
}
@media screen and (min-width: 1024px) {
	.home .main-navigation.toggled ul {
        height: auto;
        top: 20px;
        padding:1rem 1rem 4rem 1rem;
    } 
    .home .scrollhide-nav {
        width:100%;
        height:100px;
        background-image: url(pix/header-sin.png);
    }
    .home #brand {
        display:block;
    }
    #menu-primary, #menu-footer {
        flex-direction: row;
    }
    .menu-toggle, .mobile-only {
		display: none;
	}
    #menu-primary li, #menu-footer li {
        margin-right:2rem;
    }
	.main-navigation ul {
		display: flex;
	}
    .scrollhide-nav {
        min-height:150px;
    }
}
#wrks-search {
    width:auto;
	cursor: pointer;
    z-index: 99999;
}
/* @ Search Form */
.searchform {
	position: relative;
    width: 190px;
	margin: 3px 0 3px 0;
	display: inline-block
}
.searchfield {
    border-radius: 3px;
    height: 23px;
    padding: 5px 5px 5px 12px;
    margin: 0;
    cursor: default;
    line-height: 1.2em;
    transition: all .7s;
    text-indent: 15px;
    box-sizing: border-box;
    width: 100%; 
}
.searchfield:focus {
	cursor: text;
	box-shadow: none;
	background-color:#fff;
	color:#000;
}
#searchform {
    /*height: 40px;
    line-height: 40px;  
    vertical-align: top;
    margin-bottom: 0;
    position: absolute;
    display: inline-block;  */
    font-size: 12px;
    right:9px;
    top:8px;
}
#searchform fieldset {
    padding: 0;
    margin: 0;
    border: 0;
    position:fixed;
    right:48px;
    display:flex;
    flex-direction: row;
    justify-content:flex-end;
    align-items:center;
}
#searchform form {
    margin: 0 0 21.7px
}
#searchform input {
    margin: 0;
    margin-top:10px;
    padding: 0; 
    width: 0;
    background: transparent;
    -webkit-transition: width .5s ease-in-out;
    -moz-transition: width .5s ease-in-out;
    -ms-transition: width .5s ease-in-out;
    transition: width .5s ease-in-out;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.5);
}
#searchform focus {
				box-shadow: none;
}
#searchform.has-focus input {
				width: 200px;
}
#searchform.has-focus .btn-search{
				color: #FF3050;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	/* Above WP toolbar. */
}

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

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}

.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}

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

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: "";
	display: table;
	table-layout: fixed;
}

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

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
	margin: 0 0 1.5em;
	/* Make sure select elements fit in widgets. */
}

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

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

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

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

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

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

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

.bypostauthor {
	display: block;
}

/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	/* Theme Footer (when set to scrolling) */
	display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

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

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

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

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

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

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

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
	margin-bottom: 1.5em;
    grid-column:3 / 6;
}
.gallery-columns-1 {
    grid-column:4;
}

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

/*--------------------------------------------------------------
# KIINASEURA.FI -tyylit
--------------------------------------------------------------*/
body {
    margin:0;
    padding:0;
    font-family: brandon-grotesque, sans-serif;
    font-weight:400;
}
.brandbar a {
    display:flex;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
}
section.content {
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
}
@media (min-width: 1024px) {
    section.slider_wrapper {
        position: relative;
        height: 100vh;
    }
    #slider {
        height:100vh;
    }
    #headboard {
        left: 0;
        right: 0;
        text-align: center;
        z-index:999;
        cursor: pointer;
    }
    section.content {
        margin: 4em auto;
        height:90vh;
    }
}

#headboard span {
    margin:0;
    padding:0;
    line-height:1;
    text-transform: uppercase;
    color: #404040;
    font-weight:300;
    display: block;
}
 .sy-pager, .sy-controls, .sy-slides-wrap:hover .sy-controls {
    display:none!important;
}
.content div.info  {
    text-align:center;
    z-index:9999;
}
.info h2 {
    font-size:1.2em;
    width:25ch;
}
@media (min-width: 768px) {
    #billboard h1,#billboard h2 {
        font-size: 1.5rem;
    }
    .info h2 {
        font-size:1.7em;
        width:30ch;
    }
}
@media (min-width: 1024px) {
    #billboard h1,#billboard h2 {
        font-size: 2.5rem;
    }
    .info h2 {
        font-size:2em;
        width:36ch;
    }
}
@media (min-width: 1200px) {
    #billboard h1,#billboard h2 {
        font-size: 3.5rem;
    }
    .info h2 {
        font-size:2.5em;
        width:40ch;
    }
}
footer ul {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    justify-items: center;
    list-style-type: none;
    flex-flow:column wrap;
    text-align:center;
    -webkit-margin-before: 0;
    -webkit-margin-after: 0;
    -webkit-margin-start: 0;
    -webkit-margin-end: 0;
    -webkit-padding-start: 0;
    margin:3rem 0 1rem;
    padding: 0;
}
footer ul li span {
    font-weight:500;
    font-size:1.2em;
}
footer ul li span em {
    font-style: normal;
    font-weight: 700;
    display:block;  
}
@media (min-width: 768px) {

}
@media (min-width: 1024px) {
   
}

/* ============ WP Grid Base ================== */

#main {
    grid-template-columns: 6vw 1fr 6vw; 
    grid-gap: 0;
} 
.search-results h1, section.no-results {
    grid-column: 2 / 3;
}
section.loopwrap {
    grid-column: 2 / 3;
}
#front-loop {
    margin-top:2rem;
}
body.single, body.page {
    display:grid;
    grid-template-rows: -webkit-min-content -webkit-min-content auto;
    grid-template-rows: min-content min-content auto;
    grid-gap: 0;
}
.single header, .page header  {
    grid-row: 1
}
.single #content, .page #content {
    grid-row: 2
}
.single footer, .page footer {
    grid-row: 3
}
.single article, .page article, #contact-local {
    display:grid;
    grid-template-columns: 1fr minmax(24ch, 40ch) 1fr; 
    grid-gap: 0;
    grid-column:2;
} 
.single .article-body {
    grid-column:2;
}
.single .article-body.tiistai {
    grid-template-columns: 1fr 2fr; 
    grid-row-gap: 1rem;
    grid-column: 1/4;
}
#main, #moretwo {
    display: grid;
    grid-template-columns: 5vw 1fr 5vw; 
    grid-gap: 0;
    /* grid-row-gap: 3rem; */
}
#contact {
    display: grid;
    grid-template-columns: 5vw 1fr minmax(24ch, 40ch) 1fr 5vw; 
    grid-gap: 0;
    /* grid-row-gap: 3rem; */
}
section#kuv-banner {
    grid-column: 1 / 4;
    display:flex;
    align-items: center;
}
section#about, section#featured {
    grid-column: 1 / 4;
   /* display:flex;
    flex-direction: column;
    align-items: center; */
}
#featured article {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-content:center;
    text-align: center;
    padding:2rem 5vw;
}
#about .featured, #featured .featured {
    grid-column: 1 / 5;
    grid-row:1;
}
#kuv-banner .content {
    grid-column: 2;
    margin: 0 5vw;
}
#about .title, #featured .title {
    grid-column: 1;
}
#about .content, #featured .content {
    grid-column: 2;
    text-align:center;
}
#about .title, #about .title a, #featured .title, #kuv-banner .content {
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-content:center;
    align-items:center;
}
#about .logo, #featured .logo {
    width:150px;
    height:150px;
    background-image: url(pix/sinetti-pun.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
section#front-loop, section#category-loop, section#more, div.loopwrap, #contact {
    grid-column: 2 / 3;
}
section#more-loop {
    grid-column: 2 / 3;
    margin-top:2rem;
}
#moretwo, #contact {
    grid-column: 1 / 4;
    width:100%;
    background-repeat: no-repeat;
    background-position: top center;
    margin: 0;
    padding-top:120px;
} 
#moretwo {
    background-image: url(pix/one-cream.png);
    background-size: cover;
    padding-bottom: 150px;
} 
#contact {
    background-image: url(pix/three-w-c.png);
    background-size: cover;
    margin-top:-120px;
} 
ul.le-loop {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    align-items: start; 
    grid-gap: 2rem;
    list-style: none;
    margin: 0;
    -webkit-margin-start: 0;
    -webkit-padding-start: 0;
    -moz-padding-start: 0;
}
#more-loop ul.le-loop {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    align-items: start; 
    grid-gap: 2rem;
    list-style: none;
    margin: 0;
    -webkit-margin-start: 0;
    -webkit-padding-start: 0;
    -moz-padding-start: 0;
}
.le-loop li {
    display:flex;
    flex-direction:column;
    align-content: flex-start;
    justify-content:center;
    padding-top: 1rem; 
}
.single article {
    grid-row:1;
    grid-template-rows: -webkit-min-content -webkit-min-content auto auto;
    grid-template-rows: min-content min-content auto auto;
    grid-column:2;
    grid-row-gap:1rem;
}
.single article h4.topic {
    grid-row:1;
    margin-top: 2rem;
}
.single article h1.entry-title {
    grid-row:3;
    grid-column: 1 / 4;
}
.single article .post-thumbnail {
    grid-row:2;
    grid-column: 1 / 4;
}
.single article .article-body {
    grid-template-rows: 1;
    grid-column: 1 / 4;
    grid-row:4;
}
article.category-kirjasuosituksia{
    min-height:60vh;
}
article.category-kirjasuosituksia .post-thumbnail img {
    max-width:300px;
}
h4.topic, .article-body h4 {
    grid-column: 1 / 4;
}
#contact h4.topic {
    grid-column: 2 / 4;
}
#contact .article-body {
    grid-column: 2 / 4;
    grid-row: 2;
}
.page-id-2300 .entry-content {
    grid-column: 1 / 4;
    grid-row: 2;
}
#contact-local h4.topic, #contact-local .entry-content {
    grid-column: 1 / 4;
}
article.tiistai {
    margin-bottom:2rem;
}
.wp-block-image {
    grid-template-rows: 1;
    grid-column: 1 / 4;
}
.wp-block-embed, .wp-block-file, .single-post .article-body > a, .article-body > div {
    grid-column: 1/4;
}
.wp-block-image img {
    grid-column: 1 / 4;
}
.wp-block-image figcaption {
    grid-column: 1 / 4;
}
.wp-block-image.pquote img, .wp-block-image.pquote figcaption {
    grid-column: 1 / 4;
    grid-row:1
}
.nav-links {
    display:grid;
    grid-template-columns: 40% 1fr 40%; 
    grid-template-rows: -webkit-min-content -webkit-min-content 4rem auto;
    grid-template-rows: min-content min-content 4rem auto;
    grid-gap: 0;
}
footer {
    margin-top:1rem;
}
.single article h1 {
    grid-row: 2;
    grid-column: 1 / 4; 
    margin: 0;
    line-height: 1.1;
}
article.tiistai h1.entry-title, article.tiistai .entry-content, .tiistai-info {
    grid-column: 1 / 4;
}
.single .tiistai.landscape h1 {
    grid-row: 1;
}
.single .tiistai.portrait h1 {
    grid-row: 1;
}
.single .thmb-img {
    width:100%;
    height:50vh;
    position:relative;
    grid-row: 1;
    grid-column: 1 / 4;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 3rem 0 1rem 0;
}
.single .tag-hca .thmb-img {
    height:30vh;
    background-size: contain;
}
.tiistai-info .thmb-img {
    width:100%;
    height:0;
    padding:50% 0;
    position:relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0 0 1rem 0;
}
.single .article-body, #contact-local .article-body, #contact-local .entry-content, .page-id-2300 .entry-content, .page # > article .article-body {
    grid-row: 3 / 5;
    grid-column:1 / 4; /* grid-column: 4; */
    grid-template-rows: 1;
}
.single .article-body h2, .single .article-body h3, .single .article-body h4, .single .article-body h5, .single .article-body p {
    grid-column:1 / 4;
}
.single .wp-block-gallery, .wp-block-cover, .single .wp-block-media-text, .single .wp-block-gallery.columns-1 {
    grid-column:1 / 4;
    margin: 1rem 0;
}
.page #main > article h1, .page #main > article h2, .page #main > article h3, .page #main > article h4, .page #main > article h5, .page #main > article h6, .page #main > article p, .page #main > article table, .page #main > article .wp-block-image, .page #main > article .napit {
    grid-column:1 / 4;
} 
#contact-local .entry-content, .page-id-2300 .entry-content {
    display:flex;
    flex-direction:column;
    width:100%;
}
#contact-local .entry-content td, .page-id-2300 .entry-content td {
    padding-bottom:1rem;
}
.single #main > * {
    grid-column:2;
}
.single artcicle > * {
    grid-column:1 / 4;
}
.error-404 header {
    grid-column:1 / 3;
    margin:5vw;
    text-align: center;
}
@media (min-width: 500px) {
    .single .thmb-img {
        margin-top:0;
    } 
}
@media (min-width: 767px) {
   .tiistai .article-body{
        grid-gap: 1rem;
    }
    .single .tag-hca .thmb-img {
        height:40vh;
    }
}
@media (min-width: 1024px) {
    /* .single article, .single .article-body, .page article, .page .article-body, #contact {
        grid-template-columns: 5vw 1fr 1fr minmax(50ch, 75ch) 1fr 1fr 5vw; 
        grid-gap: 20px;
    } */
    section#kuv-banner {
        grid-column: 1 / 4;
        display:grid;
        grid-gap: 2rem;
        grid-template-columns:5vw 1fr 1fr 5vw;
        align-items: center;
    }
    #kuv-banner .content {
        margin: 0;
    }
    .single .article-body.tiistai {
        display:grid;
    }
    article.tiistai .tiistai-info {
        grid-column: 1;
    }
    .tiistai-info {
        grid-column: 1;
        grid-row: 1;
    }
    article.tiistai .entry-content {
        grid-column:2;
        grid-row: 1;
    }
    #contact-local .entry-content {
        grid-column: 2;
    }
    .single article, .page article, #contact-local {
        display:grid;
        grid-template-columns: 1fr minmax(50ch, 75ch) 1fr; 
        grid-column-gap: 20px;
    } 
    #contact {
        display:grid;
        grid-template-columns: 5vw 1fr minmax(50ch, 75ch) 1fr 5vw; 
        grid-column-gap: 20px;
    } 
    #contact .article-body, .page-id-2300 .entry-content {
        grid-column: 3;
    }
    .single article, .page #main > article {
        grid-row: 1;
    }
    .single article .post-thumbnail {
        grid-column: 2 / 4;
    }
    .single .article-body, #contact-local .article-body {
        grid-row: 3 / 5;
        grid-column: 1 / 4; 
        grid-template-rows: 1;
    }
  
    .single article h1, .page #main > article h1, article .entry-content {
        grid-row: 2;
        grid-column: 1 / 4; /* grid-column: 3 / 6; */
    }
    /* h4.topic {
        grid-column: 3 / 4;
    } 
    .wp-block-image, .wp-block-file, .single-post .article-body > a, .article-body > div {
        grid-column: 3 / 5; 
    }  */
    .single .thmb-img {
        grid-column: 1 / 4; /* grid-column: 3 / 6; */
    }
    .single .tag-hca .thmb-img {
        height:70vh;
    }
    .single .article-body h2, .single .article-body h3, .page .article-body h3, .single .article-body h4, .page .article-body h4, .page .article-body table, .single .article-body h5, .single .article-body p {
        grid-column:4;
    }
    .page #main > article h2, .page #main > article h3, .page #main > article h4, .page #main > article h5, .page #main > article h6, .page #main > article p, .page #main > article table, .page #main > article .wp-block-image, .page #main > article .napit {
        grid-column:4;
    }
    .single .article-body {

    }
    .single article .post-thumbnail {
        grid-column: 1;
        grid-row:4;
        justify-self: end;
    }
    .single article h6 {
        grid-column:3;
    }
    .single .wp-block-gallery, .wp-block-cover {
        grid-column:3 / 6;
    }
    .single .wp-block-media-text, .single .wp-block-gallery.columns-1 {
        grid-column:4;
    }

    .le-loop li {
        padding-top: 2rem; 
    }
    .single artcicle > * {
        grid-column:2;
    }
    .single article .article-body, .page article .article-body {
        grid-column: 2;
        grid-row:4;
    }
    article.category-kirjasuosituksia .post-thumbnail img {
        max-width:100%;
    }
}
@media (min-width: 1280px) {
    section#kuv-banner {
        grid-column: 1 / 4;
        display:grid;
        grid-gap: 2rem;
        grid-template-columns:5vw 1fr 2fr 5vw;
        align-items: center;
    }
    section#about, section#featured, #featured article {
        grid-column: 1 / 4;
        display:grid;
        grid-gap: 2rem;
        grid-template-columns:1fr 2fr;
        align-items: center;
    }
}
@media (min-width: 1366px) {
    .single .article-body.tiistai {
        grid-template-columns: 1fr 1fr 3fr 2fr; 
        display:grid;
    }
    article.tiistai .tiistai-info {
        grid-column: 2;
        grid-row: 1;
    }
    article.tiistai .entry-content {
        grid-column:3;
        grid-row: 1;
    }

}
@media (min-width: 1500px) {
   #main, #moretwo {
        grid-template-columns: 10vw 1fr 10vw; 
        grid-gap: 0;
    } 
    .home section#about {
        grid-template-columns:10vw 1fr 1fr 10vw;
        }
    .home section#about .title {
        grid-column: 2;
    }
.home section#about .content {
        grid-column: 3;
    }
    #contact {
        grid-template-columns: 10vw 1fr minmax(50ch, 75ch) 1fr 10vw; 
    } 
}
.article-body > * {
    z-index:1;
}

.block-editor-page .wp-block-media-text .has-large-font-size {
    font-size:16px!important;
}
#contact .article-body {
    display:block;
}
/* ============ WP tyylit ================== */

h1, h2 {
    color:#404040;
}
#front-loop {
    margin: 2rem 0;
}
/* #about {
    background-color: #2E364F;
    min-height:30vh; 
}*/
#about, #featured {
    background-image: url(pix/section-sin.png);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    min-height: 30vh;
    padding-top:3rem;
    padding-bottom:3rem;
}
#about {
    background-color: #EF5939;
}
#featured {
    margin-top:-100px;
}
#featured .featured {
    background-image: url(pix/default.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 50vh;
    padding: 0;
    margin: 0;
}
#featured.seura .featured {
    background-image: url(pix/paikallis.jpg);
}
#featured.paikallis .featured {
    background-image: url(pix/paikallis.jpg);
}
#featured.lehti .featured {
    background-image: url(pix/lehti.jpg);
}
#featured article {
    min-height:40vh;
}
#kuv-banner {
    background-color: #EF5939;
    min-height:50vh;
    margin-bottom: 2rem;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
div.feature-img {
    width:100vw;
    height:100vw;
    background-position: center;
    background-size: cover;
}
div.entry-thumb {
    background-position: center;
    background-size: cover;
    background-color:#00B7B7;
    width:80%;
    padding:40% 0;
    border-radius:50%;
    height:0;
    margin:0 auto;
}
.le-loop li:nth-child(even) div.entry-thumb {
    border-radius:0;
} 
div.entry-content {
    /* width:80%; */
    margin: 0 auto;
    margin-bottom: 1rem;
    text-align: left;
}
.entry-content p:first-child {
    margin-top:0;
}
header.entry-header {
    width:100%;
    margin:0 auto;
}
.thmb-wrap {
    position: relative;
}
.flagg {
    width:100%;
    height:6.5em;
    position:absolute;
    bottom: 0;
    left: 0;
    /*border-radius:50%;
    background:#EF5939; */
    background-image: url(pix/flagg.png);
    background-repeat: no-repeat;
    background-position: top left;
    background-size: cover;
    color:#fff;
    display:flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    padding:1rem;
}
.flagg span.title {
    font-weight: 500;
}
.flagg span {
    align-self: center;
    font-weight: 500;
    font-size:1.5em;
    line-height:1;
}
.flagg span.title {
    font-weight: 400;
    font-size:1.5em;
    text-transform: uppercase;
}
.flagg span em {
    display:block;
    font-size:0.8em;
    font-weight: 500;
    text-transform: uppercase;
    font-style:normal;
}
.tiistai-info {
    width:100%;
    background:#EF5939;
    padding:1.5rem;
}
.tiistai-info span {
    color:#fff;
    display:block;
}
@media (min-width: 768px) {
    .flagg {
       
    }
    .flagg span {
    }
}
@media (min-width: 1024px) {
    .flagg {
        
    }
    .flagg span {
    }
}
@media (min-width: 1366px) {
    .flagg {
        
    }
    .flagg span {
    }
}
@media (min-width: 1500px) {
   
}
/* .single .nav-links {
    display:flex;
    justify-content: space-between;
    align-content: center;
    align-items:center;
} */
.nav-links > div a {
    display:flex;
    align-content: center;
    align-items:center;
    font-size:.8rem;
    line-height: 1.2em;
    min-height:2rem;
}
.nav-links > div a em {
    display:block;
    font-style: normal;
}
.single div.nav-next {
    grid-column: 1 / 2;
    grid-row: 2;
    text-align:left;
}
.single div.nav-previous {
    grid-column: 3 / 4;
    grid-row: 2;
    text-align:right;
}
.single div.nav-previous a {
    justify-content: flex-end;
}
.single div.nav-next a {
    justify-content: flex-start;
}
.nav-previous a:after, .nav-next a:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size:2rem;
}
.nav-previous a:after {
    content: "\f061";
    padding-left:1rem;
}
.nav-next a:before {
    content: "\f060";   /* "\f053" */
    padding-right:1rem;
}
.nav-previous b, .nav-next b  {
    padding-right:0.5rem;
}
@media only screen and (orientation: landscape) {
    div.feature-img {
        width:100vw;
        height:70vh;
        background-position: center;
        background-size: cover;
    }
}
section.divider {
}
footer {
width:100%;
    min-height:120px;
    background-image: url(pix/footer.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    margin: 0;
    margin-top: 120px;
    color:#2E364F;
} 
div.post-nav {
    position:fixed;
    width:100%;
    top:50vh;
    left:0;
    right:0;
    display:flex;
    justify-content: space-between;
    z-index:0;
}
.next-post {
    justify-content: flex-start;
    padding-left: 1vw;
}
.prev-post {
    justify-content: flex-end;
    padding-right: 1vw;
}
.post-nav i {
    font-size: calc(.5rem + 3vw);
}
/*--------------------------------------------------------------
## kiinaseura TYPOGRAPHY
--------------------------------------------------------------*/
body {
	font-style: normal;
	font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
    font-weight:700;
}
h6 {
    font-weight:500;
}
#menu-primary li a, #menu-footer li a   {
    text-transform:uppercase;
    color:#EF5939;
    font-weight:700;
    font-size:1rem;
    letter-spacing: 0.025em;
}
#menu-footer li a   {
    color:#2C3C6E;
}
#menu-primary ul li a, #menu-footer ul li a {
    font-weight:400!important;
}
#menu-primary li a:hover {
    color:#FF3050;
}
#menu-footer li a:hover {
    color:#F7F7F7;
}
#about, #about h1, #featured, #featured h1, #featured article p {
    color:#EF5939;
}
#about .content p, #featured .content p {
    margin:.5em 5vw;
    font-size:1.2em;
    text-align:center;
}
.featured .content p:first-of-type {
    margin-top:1.5rem!important;
}
.featured .content p:last-of-type {
    margin-bottom:1.5rem!important;
}
.home #about .content p:nth-of-type(3), .home #about .content p:nth-of-type(4) {
    display:none;
}
.article-body p, .entry-content p {
	font-weight: 400;
	line-height: 1.6em;
    font-size:1.4em;
    margin-bottom:0.5em;
}
.entry-content p {
    font-size:1.2em;
    word-break: break-word;
}
.tiistai .entry-content p {
    font-size:1.5em;
}
h4.aika {
    color: #EF5939;
}
.article-body p strong {
    font-weight: 500;
	line-height: 1.6em;
}
.article-body p.kirjoittaja {
    font-weight: 500;
    text-transform: uppercase;
}
.article-body p.pieni {
    font-weight: 500;
    font-size:1rem;
}
.article-body p.ingressi {
    font-weight: 500;
    color: #EF5939;
    font-size: 1.6em;
    line-height: 1.4em;
}
.article-body p a {
    font-weight:700;
    font-size:0.8em;
    text-transform: uppercase;
    word-break: break-word;
    line-height: 0.5em;
}
.article-body blockquote p {
	font-style: normal;
	font-weight: normal;
}
/* .sticky:first-of-type .entry-content p {
    font-size:1.5em;
} */
body .pl-fixed-top {
    background-color: #FFFFFF;
    box-shadow: none;
}
h1, h2, h3, h4, h5, h6, .loop-menu .categories {
    line-height: 1.2em;
    margin: .6em 0;
    text-rendering: optimizelegibility;
}
h1 {
    font-size: calc(1.5rem + 2vw);  /* font-size:1.5em; */
}
#about h1, #featured h1 {
    font-size: calc(1.4rem + 1vw);  /* font-size:1.5em; */
}
h3 {
    font-size:2em;
}
h4 {
    font-size:1.6em;
}
h5, h6 {
    font-size:1.4em;
}
h4.loop-title, h4.topic, .tiistai-info h4 {
    font-weight:900;
    color:#EF5939;
    text-transform: uppercase;
    letter-spacing:0.05em;
}
.tiistai-info h4 {
    color:#FFF;
}
h2, h3.subhead {
    font-size: calc(1rem + 2vw);/* font-size:2.4em; */
}
#kuv-banner {
    text-align:center;
    color:#2C3C6E;
}
#kuv-banner h2 {
    font-size: calc(1rem + 3vw);/* font-size:2.4em; */
    color:#2C3C6E;
}
#kuv-banner p {
    font-size: 1.5em;
}
#kuv-banner a {
    margin-top:1rem;
}
/* .single article h2 {
    font-size: calc(1.5rem + 2vw);
    font-weight: 400;
    margin-top: 0;
} */
h1.site-title em, h1.site-title em {
    font-style: normal;
    color:#E0062C;
    font-size:1.5em;
    line-height:1.2em;
    display:block;
}
h1.entry-title i {
    font-style: normal;
    font-weight: 400;
    display:block;
   /* color:#E63359; */
}
h1.entry-title em, h2.entry-title em, h3.subhead, .le-loop h2 i {
    font-style:normal;
    display: block;
    font-weight: 400;
}
h1.entry-title em {
    font-size:0.8em;
    color:#EF5939;
}
.brandbar span {
    font-size: 0.9rem;/* font-size: calc(1rem + 1.8vw);  */
    color:#EF5939;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight:500;
    display:none;
}
.home .brandbar span {
    display:block;
}
.le-loop h2, .le-loop h3 {
    font-size: calc(1.3rem + 1vw);
    padding: 0; 
}
#more-loop .le-loop h2 {
    font-size: calc(1rem + 0.7vw);
}
blockquote {
    color:#666;
}
/*.article-body p a:after {
    content: "\f03e";
    font-family: 'Font Awesome 5 Free';
    padding:0 0.5em;
}
.article-body p strong a:after {
    content: "\f0a9";
}
.article-body p strong a {
    font-weight: normal;
} */
.wp-block-media-text p {
    font-family: objektiv-mk2, sans-serif;
    font-weight:400;
    font-size:1.5em;
}
figcaption, figcaption em, figcaption i {
    font-weight:400;
    font-style:normal;
    font-size:1em;
    text-align: left;
}
figcaption i:before, figcaption i:before, figcaption em:before, figcaption em:before {
	content: "\f030";
    font-family: 'Font Awesome 5 Free';
    padding:0 1em 0 0;
}
.gallery figcaption  { 
	margin:1em 0 0 0;
}
.pquote figcaption {
    color:#fff;
    text-align: right!important;
    width:40%;
    margin: 0 2rem 2rem 60%;
}
.tiistai-info span {
    font-size: 1.1em;
    font-weight:700;
    text-transform: uppercase;
}
.tiistai-info span em {
    font-style:normal;
    font-size: 1.3em;
    font-weight:400;
    text-transform: none;    
    padding-left:1rem;
}
div.napit {
    margin:2rem 0;
    display:flex;
    flex-direction: row;
    justify-content: space-evenly;
}
table.align-top td {
    vertical-align:top;
}
table tr {
    border-bottom:1px #404040 solid!important;
    border-bottom-style:solid!important;
    border-bottom-width:1px!important;
}
.mediakortti th {
    text-align: left;
    font-size: 1.2em;
}
@media (min-width: 768px) {
        }
@media (min-width: 1024px) {
    #about .content p, #featured .content p {
        margin:.5em 0;
        font-size:1.5em;
        
}
        }
@media (min-width: 1280px) {
    #about .content p, #featured .content p {
        text-align:left;
    }
}


/*=================== FOOTER + cover stuff ====================*/



/* =========== ETUSIVU ============================= */
#masthead {
    position:relative;
    width:100%;
    height:120px;
    margin: 0;
}
.home #masthead {
    height:50vh;
}
#kiinaseura-head {
    width:90vw;
    height:100%;
    display:flex;
    justify-content: center;
    align-items:center;
    align-content:center;
    text-align: center;
    margin:0 0 1rem 0;
    padding:0;
    
}
@media (orientation: portrait) and (min-width: 768px) {
    .home #masthead {
        height:30vh;
    }
}
@media (min-width: 1024px) {
    .home #masthead {
        height:120px;
    }
}
@media (min-width: 1360px) {
    #kiinaseura-head {
        width:80vw;
    }
}
.le-loop h2 {
    text-align: left;
    margin:1rem auto 0.5rem auto;
}
.thmb-wrapper {
    position:relative;
}
.thmb-wrap {
}

#front-loop li.category-kirjasuosituksia h2:before {
    content:"kirjasuositus";
    font-size: 0.5em;
    font-weight: 400;
    color:#EF5939;
    text-transform: uppercase;
}
/*.flag {
    position:absolute;
    bottom:2rem;
    left:1rem;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    width: 0;
    height: 5rem;
    border: 3rem solid #1abc9c;
    border-top: 0 solid;
    border-bottom: 2rem solid rgba(0,0,0,0);
    color: rgba(0,0,0,1);
    -o-text-overflow: clip;
    text-overflow: clip;
    border-radius:2px;
}
.le-loop li.sticky:first-of-type .flag {
    height: 10rem;
    border: 6rem solid #1abc9c;
    border-bottom: 4rem solid rgba(0,0,0,0);
    border-radius:4px;
}
.le-loop li.sticky:first-of-type .flag {
    content:"vanhaa";
    color:#FFF;
}
.le-loop li.sticky:first-of-type .flag::after {
    content:"uutta";
    color:#FFF;
} */

/* =========== KUVA ja kuvateksti=================== */

.gallery img {
    border: none!important;}

.gallery-item {
    text-align:left !important;}

body .pl-thumbnails .thumbnail, body .gallery .gallery-icon a, .pl-thumbnail {
    display: block;
    padding: 0;
    line-height: 21.7px;
    border: none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;}

body .pl-thumbnails .thumbnail[href]:hover, body .gallery .gallery-icon a[href]:hover,
.pl-thumbnail[href]:hover {
    border-color: #00B7B7;
    -webkit-box-shadow: 0 1px 4px rgba(0, 183, 183, 0.25);
    -moz-box-shadow: 0 1px 4px rgba(0, 183, 183, 0.25);
    box-shadow: 0 1px 4px rgba(0, 183, 183, 0.25)
}

#slb_viewer_wrap .slb_slideshow {
    display:none!important;
}
#slb_viewer_wrap .slb_theme_slb_default .slb_controls .slb_close .slb_template_tag {
    background:url("pix/ui_close.png") 0 0 no-repeat!important;
}
body .pl-thumbnails .thumbnail, body .gallery .gallery-icon a, .pl-thumbnail {
    display: block;
    padding: 0;
    line-height: 21.7px;
    border: none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}
body .pl-thumbnails .thumbnail[href]:hover, body .gallery .gallery-icon a[href]:hover,
.pl-thumbnail[href]:hover {
    border-color: #00B7B7;
    -webkit-box-shadow: 0 1px 4px rgba(0, 183, 183, 0.25);
    -moz-box-shadow: 0 1px 4px rgba(0, 183, 183, 0.25);
    box-shadow: 0 1px 4px rgba(0, 183, 183, 0.25);
}
.gallery .gallery-item {
    text-align:left!important;
}
.gallery-columns-1 .gallery-item {
}

.gallery-columns-2 .gallery-item {
    width:49%!important;
    margin-right:1%!important;
}
.gallery-columns-2 .gallery-item {
    width:49%!important;
    margin-right:1%!important;
}
.gallery-columns-3 .gallery-item {
    width:32%!important;
    margin-right:1%!important;}

.gallery-columns-4 .gallery-item, .gallery-columns-5 .gallery-item, .gallery-columns-6 .gallery-item, .gallery-columns-7 .gallery-item, .gallery-columns-8 .gallery-item, .gallery-columns-9 .gallery-item {
        float: none;
        display: table;
        margin-top: 10px;
        text-align: center;        
        position: relative;
        width: 99%!important;
}
.gallery-columns-5 .gallery-icon, .gallery-columns-6 .gallery-icon, .gallery-columns-7 .gallery-icon {
        float: left !important;
}
.gallery-columns-4 .gallery-icon {
        width:40%;
}
.gallery-columns-5 .gallery-icon {
        width:50%;
}
.gallery-columns-6 .gallery-icon {
        width:56%;
}
.gallery-columns-7 .gallery-icon {
        width:66%;
}
.gallery-columns-8 .gallery-icon {
        width:76%;
}
.gallery-columns-9 .gallery-icon {
        width:33%;
}
.gallery-columns-4 .gallery-caption, .gallery-columns-5 .gallery-caption, .gallery-columns-6 .gallery-caption, .gallery-columns-7 .gallery-caption, .gallery-columns-8 .gallery-caption, .gallery-columns-9 .gallery-caption {
        float: left;
        position: absolute;
        bottom:0;
        padding-left:1em;
}
.gallery-columns-4 .gallery-caption {
        left:40%;
        width: 40%;
}
.gallery-columns-5 .gallery-caption {
        left:50%;
        width: 40%;
}
.gallery-columns-6 .gallery-caption {
        left:56%;
        width: 40%;
}
.gallery-columns-7 .gallery-caption {
        left:66%;
        width: 34%;
}
.gallery-columns-8 .gallery-caption {
        left:76%;
        width: 24%;
}
.gallery-columns-9 .gallery-caption {
        left:33%;
        width: 40%;
}
dd.gallery-caption em {
    font-size:0.8em;
    text-transform: uppercase; 
    font-style:normal;
}
dd.gallery-caption em:before {
    content: "\f030";
    font-family: 'Font Awesome 5 Free';
    padding:0 1em;
}
.wp-caption {
    margin-left: 0px;
    margin-right:0px;
    text-align: left;
    padding: 0;
    border: none;
    border-radius: 0px;
    max-width: 98%;
    margin-bottom: 1em;
    background-color: transparent !important;
}
.wp-caption.alignleft {
    margin-left: 0px;
    margin-right: 2em;	
}
.wp-caption img {
    -moz-box-sizing: none;
    background: none;
	padding:0;
}
img.alignnone {
    margin-left: 0px;
    margin-right: 0px;
}
img.alignleft {
    margin-left: 0px;
    margin-right: 2em;
}
#gallery .gallery-caption {
    margin-left: 0;
}
body .pl-thumbnails:after, body .gallery:after {
    display: none;
}

select, textarea, input[type="text"], input[type="password"], input[type="datetime"],
input[type="datetime-local"], input[type="date"], input[type="month"],
input[type="time"], input[type="week"], input[type="number"], input[type="email"],
input[type="url"], input[type="search"], input[type="tel"], input[type="color"],
.uneditable-input {
    display: inline-block;
    height: 32.55px;
    padding: 4px 6px;
    margin-bottom: 9px;
    font-size: 14px;
    line-height: 21.7px;
    color: #555;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px
}
input, textarea, .uneditable-input, .add-on {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box
}
input {
    width: 220px
}
textarea {
    width: 100%;
    height: auto
}
textarea, input[type="text"], input[type="password"], input[type="datetime"],
input[type="datetime-local"], input[type="date"], input[type="month"],
input[type="time"], input[type="week"], input[type="number"], input[type="email"],
input[type="url"], input[type="search"], input[type="tel"], input[type="color"],
.uneditable-input {
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
    -webkit-transition: border linear .2s, box-shadow linear .2s;
    -moz-transition: border linear .2s, box-shadow linear .2s;
    -ms-transition: border linear .2s, box-shadow linear .2s;
    transition: border linear .2s, box-shadow linear .2s
}
textarea:focus, input[type="text"]:focus, input[type="password"]:focus,
input[type="datetime"]:focus, input[type="datetime-local"]:focus,
input[type="date"]:focus, input[type="month"]:focus, input[type="time"]:focus,
input[type="week"]:focus, input[type="number"]:focus, input[type="email"]:focus,
input[type="url"]:focus, input[type="search"]:focus, input[type="tel"]:focus,
input[type="color"]:focus, .uneditable-input:focus {
    border-color: rgba(82, 168, 236, 0.8);
    outline: 0;
    outline: thin dotted \9;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(82, 168, 236, .6);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(82, 168, 236, .6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(82, 168, 236, .6)
}