/*!
Theme Name: Kauneimmat kirjat
Author: Dog Design & La&La
Author URI: https://lala.fi
Description: Kauneimmat kirjat - WordPress-teema
Version: 1.2.4
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: kk

Kauneimmat kirjat 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;
}

/* Ilmoittautumislomake */

.wpcf7-form label {
	display: block;
}
.wpcf7-form-control-wrap {
	display: block;
}
.wpcf7-form-control-wrap input[type=text],
.wpcf7-form-control-wrap input[type=email],
.wpcf7-form-control-wrap input[type=tel] {
	width: 100%;
}
.wpcf7-form-control-wrap {
  margin-top: 0.5em;
	margin-bottom: 1.5em;
}
.wpcf7-list-item {
  display: block;
	margin: 0 0 0.75em;
}
.wpcf7-list-item-label {
	margin-left: 0.5em;
}
.wpcf7-form input[type="submit"] {
    text-transform: none;
}
.wpcf7 form .wpcf7-response-output {
    margin: 1em 0 0;
}

.wpcf7 label span.lang-en,
.wpcf7 div.lang-en,
.wpcf7 label span.lang-se,
.wpcf7 div.lang-se {
	display: none;
}
html[lang="en-GB"] .wpcf7 label span.lang-fi,
html[lang="en-GB"] .wpcf7 div.lang-fi,
html[lang="sv-SE"] .wpcf7 label span.lang-fi,
html[lang="sv-SE"] .wpcf7 div.lang-fi {
	display: none;
}
html[lang="sv-SE"] .wpcf7 label span.lang-se {
	display: inline;
}
html[lang="sv-SE"] .wpcf7 div.lang-se {
	display: block;
}
html[lang="en-GB"] .wpcf7 label span.lang-en {
	display: inline;
}
html[lang="en-GB"] .wpcf7 div.lang-en {
	display: block;
}

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

/**
 * @license
 * MyFonts Webfont Build ID 4014635, 2021-02-16T01:23:05-0500
 * 
 * The fonts listed in this notice are subject to the End User License
 * Agreement(s) entered into by the website owner. All other parties are 
 * explicitly restricted from using the Licensed webFonts(s).
 * 
 * You may obtain a valid license at the URLs below.
 * 
 * Webfont: Biotif-Book by Degarism Studio
 * URL: https://www.myfonts.com/fonts/degarism-studio/biotif/book/
 * 
 * Webfont: Biotif-Bold by Degarism Studio
 * URL: https://www.myfonts.com/fonts/degarism-studio/biotif/bold/
 * 
 * 
 * webFonts copyright: Copyright 2021 MyFonts Inc
*/


/* @import must be at top of file, otherwise CSS will not work */
@import url("//hello.myfonts.net/count/3d422b");
  
@font-face {
  font-family: "Biotif-Bold";
  src: url('webFonts/BiotifBold/font.woff2') format('woff2'), url('webFonts/BiotifBold/font.woff') format('woff');
}
@font-face {
  font-family: "Biotif-Book";
  src: url('webFonts/BiotifBook/font.woff2') format('woff2'), url('webFonts/BiotifBook/font.woff') format('woff');
}


html {
	font-size: 13px;
	scroll-behavior: smooth;
}

body,
button,
input,
select,
optgroup,
textarea {
	color: #000;
	font-family: 'Libre Baskerville', serif;
	font-size: 1rem;
	line-height: 1.615;
}

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

h1 {/**/
	font-size: 25px;
	font-size: 1.92rem;
}

/*sadasd
h1:not(.site-title) {
	margin: 53px 0 30px !important;
}

.site-title {
	line-height: 1;
}
*/

h1 {
	margin: 53px 0 30px;
}


h2, .main-navigation h2 {
  font-size: 18px;
  font-size: 1.384rem;
  margin-top: 40px;
  font-family: 'Libre Baskerville', serif;
  text-transform: none
}


h3, .kirja h2 {
	border-top: 1px solid #999;
	border-bottom: 1px solid #999;
	max-width: 230px;
	padding: 10px 0;
	font-size: 1rem;
	margin-top: 1.5em;
}

p {
	margin-bottom: 1.5em;
}

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

.alert {
	color: #913250
}


/* Site structure
--------------------------------------------- */

.site {
	max-width: 1280px;
	padding: 60px;
	margin: 0 auto;
	min-height: 100vh;
}

.site-header {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: flex-start;
	/* margin-top: 60px; */
}

.site-icon {
	max-width: 164px;
	width: 100%;
}

.site-menu {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	max-width: 870px;
	margin-top: 19px;
}

.site-menu-top {
	flex-basis: 100%;
	display:flex;
	justify-content: space-between;
	margin-bottom: 30px;
}

.top-menu {
	/* width: 100%; */
	text-align: right;
}

.main-navigation {
	flex-basis: 100%;
	border-top: 1px solid #999;
	border-bottom: 1px solid #999;
}


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

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

html[lang='sv-SE'] .site-logo {
	max-width: 597px;
}

.site-title {
	margin: 0;
}

.content-wrapper {
	display: flex;
	width: 100%;
	margin-top: 35px;
	align-items: flex-start;
}

.sidebar-left {
    flex-basis: calc(21.20% - 40px);
    border-bottom: 1px solid #999;
    margin-right: 40px;
}

.sidebar-right {
	flex-basis: calc(27.24% - 40px);
	border-bottom: 1px solid #999;
	margin-left: 40px;
}

body:not(.home) .sidebar-right {
	display: none;
}

.site-main {
	flex-basis: 51.20%;
	padding: 5px 45px 0;
	border-right: 1px solid #999;
	border-left: 1px solid #999;
}

body:not(.home) .site-main {
	flex-basis: 100%;
}

.site-info {
	font-size: 9px;
	line-height: 1.55;
	text-transform: uppercase;
	margin-left: 10px;
}

#backtotop {
	display: none;
}

#backtotop img {
    max-width: 25px;
    position: fixed;
    right: 10px;
    bottom: 10px;
}

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

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

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

ul {
	list-style: disc;
	padding-left: 0;
	margin-left: 20px;
}

p + ul {
	margin-top: -15px;
}

ol {
	list-style: decimal;
}

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

dd, dt {
	display: inline-block;
}

.kirja dl + ul {
	margin-top: -1em;
}

.kirja ul {
	margin-left: 0;
	padding: 0;
	list-style: none;
}

dt,
.kirja ul strong {
	font-family: "Biotif-Book", serif;
	text-transform: uppercase;
	font-weight: normal;
}

dd {
	margin-left: 0;
}

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

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

.site-main img {
	max-width: 100%;
	width: auto;
	/*max-height: 270px;*/
	height: auto;
}

/* two images of books */
/*
.kk-images {
	display: flex;
	max-width: 472px;
}
*/

.kk-images img {
	width: auto;
}

figure {
	margin: 1em 0;
}

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

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

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

a:focus {
	outline: thin dotted;
}

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

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"], 
a.button {
	display: block;
	text-decoration: none;
	background: #003647;
	color: #fff;
	text-transform: lowercase;
	padding: 5px 15px;
	font-size: 16px;
	font-size: 1.066rem;
	letter-spacing: 0.02em;
	text-align: center;
    border: 0;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	background: #eb5d45;
}

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 #999;
	border-radius: 0;
	padding: 5px;
	width: 100%; /*huhuu*/
}

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

.search-form {
	display: flex;
}

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

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

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

.site-menu ul, .widget-area ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
	display: flex;
}

.site-menu a {
	color: inherit;
	text-decoration: none;
}

.top-menu ul {
	justify-content: flex-end;
	font-size: 0.69rem;
}

.lang a:hover {
	font-weight: 700;
}

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

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

.lang li {
	margin-left: 3px;
}


/* Social menu */ 

.social {
    margin-top: 10px;
}

@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('../icons/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: 250%; 
 
  /* 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); */
}

.social a:before {
	margin: 0 0 0 8px
}


.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'; font-size: 220%; margin-top: 2px; } 
.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'; } 


.main-navigation {
	font-family: "Biotif-Book", serif;
	text-transform: uppercase;
	font-size: 1.15rem;
	letter-spacing: 0.015em;
	line-height: 1;
	padding: 10px 0;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
	font-family: "Biotif-Bold", serif;
	letter-spacing: -0.013em;
}

.main-navigation ul {
	display: none;
	align-items: end;
	margin: 0;
}

.select-menu {
	display: none;
	border-top: 1px solid #999;
	margin-top: 20px;
	text-align: center;
}

.select-menu ul {
	text-align: center
}

.main-navigation li {
	/* position: relative; */
}


.main-navigation a:hover {
	
}

/* Small menu. */
.menu-toggle {
	display: block;
	background: none;
	border: 0;
}

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

.main-navigation.toggled ul#primary-menu {
	display: block;
}

.menu-toggle {
	padding: 0;
	position: absolute;
	top: 55px;
	right: 0;
	background: transparent;
	min-width: initial;
	width: 33px;
	height: 16px;
	border-radius: 0;
	border: 1px solid #000;
	border-left: none;
	border-right: none;
}

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

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

.menu-toggle:before {
	content: "";
	width: 33px;
	border-top: 1px solid #000;
	height: 3px;
	position: absolute;
	left: 0;
	top: 7px;
}

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

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

}

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

button.menu-toggle:focus {
	outline: 1px dotted #999    ;
}


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

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

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

.post,
.page {
	margin: 0;
}

article {
	border-bottom: 1px solid #999;
	padding-bottom: 40px;
	max-width: 800px;
	/*min-height: 650px;*/
}

article + article.page {
	margin-top: 40px;
}

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

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

.site-main .year {
	margin-bottom: 15px;
}

.kirja + .kirja {
	border-top: 1px solid #999;
	padding: 30px 0 0;
}

.prizes .entry-content > p:last-of-type {
	padding-bottom: 30px;
	margin-bottom: 30px;
	border-bottom: 1px solid #999;
}


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

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */



aside h2 {
	margin-top: 0;
	font-size: 21px;
	font-size: 1.615rem;
}

.widget-area ul {
	margin: 20px 0 40px;
	display: block;
}

aside img {
	display: block;
	margin: 0 0 20px;
}

.sidebar-left img {
	 max-height: 250px;
  width: auto;
}

a.nosto {
	text-decoration: none;
	padding: 20px;
	margin-bottom: 20px;
	min-height: 330px;
}

a.lainaus, a.ilmoitus {
	display: block;
	background: #003647;
	color: #fff;
}

a.blue {
	background: #003647;
	color: #fff;
}

a.orange {
	background: #724441;
	color: #fff;
}

a.green {
	background: #0c342c;
	color: #fff;
}


a.image {
	color: #000;
	background-image: url(img/nosto.png);
	background-size: cover;
}

.nosto .text-1 {
	font-size: 23px;
	font-size: 1.769rem;
	line-height: 1.3;
}

.lainaus .text-2 {
	text-transform: uppercase;
}

.year, .ilmoitus .text-2 {
	border-top: 1px solid #999;
	border-bottom: 1px solid #999;
	display: inline-block;
	min-width: 80px;
	font-family: "Biotif-Book", serif;
	font-size: 1.384rem;
	margin-top: 30px;
	text-transform: uppercase;
}

.year {
	width: 100%;
}

.ilmoitus .text-2 {
    border-top: 1px solid #555 !important;
    border-bottom: 1px solid #555 !important;
    font-size: 1.07rem;
}

aside ul a, .textwidget a {
	color: inherit;
	font-family: "Biotif-Book", serif;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	font-size: 0.92rem;
	text-decoration: none;
}

aside ul a:hover, .textwidget a:hover {
	font-family: "Biotif-Bold", serif;
}
.current_page_item a {
	/*font-weight: bold;*/
}


aside .year {
	margin-top: 0;
}

.year a {
	color: inherit;
	text-decoration: none;
}

a.main-prize img {
	margin-bottom: 20px;
}

.widget {
	margin: 0 0 1.5em;
	border-bottom: 1px solid #999;
	padding-bottom: 20px;
}

.widget:last-of-type {
	border-bottom: 0;
	padding-bottom: 0;
}

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

.widget > div + div {
	margin-top: 40px;	
}

.toggle > a:after {
	content: "";
	width: 0; 
  height: 0; 
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #000;
  display: inline-block;
  margin-left: 5px;
  margin-bottom: 2px;
}

.toggle > a.active:after {
  border-top: 0;
  border-bottom: 7px solid black;
}

.main-navigation.toggled .select-menu ul {
	display: block;
	margin: 20px 0;
}

.main-navigation.toggled ul .toggle .sub-menu,
.toggle .sub-menu  {
	display: none; 
	margin-top: 0;
	width: 100%;
}

.main-navigation.toggled ul.sub-menu.show,
.toggle .sub-menu.show {
	display: block;
}

.main-navigation.toggled ul.sub-menu li {
	width: 100%;
}



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

/* 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;
	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 (min-width: 1200px) {

	.menu-toggle {
			display: none;
	}

	.main-navigation ul {
			display: flex;
			justify-content: space-between;
	}

	.mobile {
		display: none;
	}
}


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

    .desktop {
    	display: none;
    }

    .site {
    	padding: 13px;
    }

    .site-header {
    	display: block;
    	position: relative;
    }

    .site-icon {
    	max-width: 84px;
    	z-index: 1000;
    	position: absolute;
    	left:0;
    	top:0;
    }

    .site-logo {
    	max-width: 211px !important;
    }

    .site-menu {
    	display: block;
    	position: absolute;
    	top: 0;
    	background: #fff;
    	z-index: 1;
    	margin-top: 0;
    	max-width: 100%;
    }


    .site-menu-top {
		flex-basis: 100%;
		display: flex;
		justify-content: flex-end;
		
	}

	.site-menu li {
		margin: 10px 0;
	}

	#top-menu li {
		margin: 10px 5px;
	}

    .main-navigation {
    	border: none;
    }

     .main-navigation.toggled {
     	margin: 50px 0;
     	border-bottom: 1px solid #999;
    }

    .main-navigation.toggled .top-menu ul {
		justify-content: center;
		font-size: 0.69rem;
	}

	.content-wrapper {
		margin-top: 130px;
	}

	.sidebar-right {
	    margin-left: 20px;
	}

	.site-main {
		padding-left: 20px;
		padding-right: 20px;
		/*border-left: 0;*/

	}

	h1.entry-title:not(.year) {
		margin: 0 0 30px;
	}

	



} 


@media screen and (max-width: 700px) {
	
	h1.site-title, p.site-title {
		line-height: 13px;
	} 
	
	/*
	.site-title a img  {
		margin-top: 10px;
	}
	*/

    .content-wrapper {
    	flex-wrap: wrap;
    }

	.sidebar-left, .sidebar-right, .site-main {
		flex-basis: 100%;
		border: 0;
		border-bottom: 1px solid #999;
		margin: 0 0 40px 0;
	}


	.site-main {
		padding-left: 0;
		padding-right: 0;
		margin-bottom: 40px;
	}

	.sidebar-left {
		display: none;
	}

	.main-navigation.toggled .select-menu {
		display: block;
	}


	article {
		border-bottom: 0;
	}

	.site-main img {
		max-width: 290px;
	}



} 
/* huhuu */
@media screen and (max-width: 340px) { 
	.site-logo {
    max-width: 195px !important;
	}
}	


