/*!
Theme Name: Nokturno
Author: La&La
Author URI: https://lala.fi
*/

/*
Layout: https://www.figma.com/file/6aoFdLoP7h9sQFL3FaGgfU/Desktop
*/

/*--------------------------------------------------------------
>>> 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;
	-webkit-text-size-adjust: 100%;
}

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

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

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

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

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	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;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
body,
button,
input,
select,
optgroup,
textarea {
	color: #000;
	font-family: 'Open Sans', sans-serif;
	font-size: 16px;
	font-size: 1rem;
	line-height: 1.625;
	letter-spacing: 0.015em;
}

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

h1 {
	font-size: 36px;
	font-size: 2.25rem;
	overflow-wrap: break-word;
	word-wrap: break-word;
	-ms-word-break: break-all;
	word-break: break-word;

}

h2 {
	font-size: 24px;
	font-size: 1.5rem;
}

.home h1,
h1.page-title
 {
	text-transform: uppercase;
}

p {
	margin-bottom: 1.5em;
}

p.lead-paragraph {
	font-size: 18px;
	font-size: 1.125rem;
	font-weight: bold;
}

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

blockquote {
    font-family: 'Barlow', sans-serif;
    font-size: 1.2rem;
    margin: 2rem;
    padding: 0.5rem 1.5rem;
    color: #6F675D;
    border-left: 5px solid #F2F0ED;
}
blockquote *:first-child {
    margin-top: 0;
}
blockquote *:last-child {
    margin-bottom: 0;
}

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

/* Icons */

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

.icon-twitter:before { content: '\f099'; } 
.icon-facebook:before { content: '\f09a'; } 
.icon-linkedin:before { content: '\f0e1'; } 
.icon-github:before { content: '\f113'; }
.icon-doc-inv:before { content: '\f15b'; }
.icon-youtube:before { content: '\f167'; }
.icon-instagram:before { content: '\f16d'; } 
.icon-file-pdf:before, a[href$=".pdf"]:before { content: '\f1c1'; } 
.icon-file-word:before, a[href$=".doc"]:before { content: '\f1c2'; } 
.icon-file-excel:before, a[href$=".xls"]:before, a[href$=".xlsx"]:before { content: '\f1c3'; } 
.icon-file-powerpoint:before, a[href$=".ppt"]:before { content: '\f1c4'; } 
.icon-file-image:before { content: '\f1c5'; }
.icon-file-archive:before, a[href$=".zip"]:before, a[href$=".gzip"]:before { content: '\f1c6'; } 
.icon-file-audio:before, a[href$=".mp3"]:before, a[href$=".m4a"]:before { content: '\f1c7'; } 
.icon-file-video:before, a[href$=".mp4"]:before { content: '\f1c8'; }
.icon-pinterest:before { content: '\f231'; }
.icon-vimeo:before { content: '\f27d'; }
.icon-facebook-squared:before { content: '\f308'; }

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/

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

body {
	background: #fff;
}

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

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

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

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

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

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

figure {
	margin: 0 0 1em 0;
	text-align: center;
}

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

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #6F675D;
	border-radius: 2px;
	background: #6F675D;
	color: #fff;
	font-size: 24px;
	font-size: 1.5rem;
	text-transform: uppercase;
	line-height: 1.5;
	padding: 5px 24px;
}

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: #000;
	border: 1px solid #BEBAB4;
	font-size: 24px;
	font-size: 1.5rem;
	border-radius: 2px;
	padding: 5px 10px;
}

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

.works-search {
	margin-bottom: 33px;
}

.works-search {
	display: flex;
	justify-content: space-between;
}

.works-search label {
	flex-grow: 1;
	margin-right: 18px;
	
}

.page-template-page-teokset input+label {
	color: #6F675D;
	margin-left: 3px;
	text-transform: lowercase;
}

.works-search label input {
	width: 100%
}

.page-template-page-teokset form {
	display:block;
	width: 100%;
}
	

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

/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a {
	color: #6F675D;
	text-decoration: none;
  transition: color 0.25s ease-out;
}

a:visited {
	color: #6F675D;
}

.site-footer a,
.site-footer a:visited {
	color: #fff; 
}

a:hover,
a:focus,
a:active,
a:hover .cat-post-tax-tag  {
	color: #D49B48;
}

a:focus {
	outline: thin dotted;
}

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

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.main-navigation {
	clear: both;
	display: block;
	width: 100%;
	
	font-family: 'Barlow', sans-serif;
	text-transform: uppercase;
	font-size: 20px;
	font-size: 1.25rem;
}

.main-navigation .wpml-ls-item {
	text-transform: lowercase;
}

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

/*
.main-navigation a {
	color: #6F675D;
}
*/

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

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

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

.main-navigation ul ul a {
	width: 200px;
}

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

.main-navigation .nokturno-dice a {
	background-image: url(img/noppa.svg);
	background-repeat: no-repeat;
	background-position: center left;
	background-size: 22px;
	padding-left: 25px;
}

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

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	float: left;
	width: 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}

.nav-right, .cat-post-widget .cat-post-footer-link {
	float: right;
	text-align: right;
}

/* branding */

.site-branding {
	font-family: 'Barlow', sans-serif;
	text-transform: lowercase;
	margin-top: 70px;
}

.site-branding h2.site-title {
	font-weight: normal;
	font-size: 42px;
	font-size: 2.625rem;
}

.site-branding a {
	text-decoration: none;
	color: #000;
}

.site-branding > div {
	width: 100%;
	display: flex;
	justify-content: center;
}

.site-logo {
	width: 100px;
}

.site-logo .site-title {
	line-height: 0;
}

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

.site-title + p {
	margin: 0;
	line-height: 1;
	font-size: 22px;
	font-size: 1.375rem;
}

.site-description {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	margin-left: 45px;
}

.site-description .site-title {
	margin-bottom: 8px;
	margin-top: -10px;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/

/* prevent focus ring when using mouse */
body.using-mouse :focus {
	outline: none;
}

/* 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: 14px;
	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. */
#content[tabindex="-1"]:focus {
	outline: 0;
}

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

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

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

/*--------------------------------------------------------------
# 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 0.5em;
	padding-bottom: 1.5em;
	overflow: auto;
	border-bottom: solid 1px #BEBAB4;
}

footer .widget {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}

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

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

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/

#page {
	/*
	position: relative;
	*/
}

.site-content {
	max-width: calc(736px + 64px);
	margin: 25px auto 55px;
	padding: 0 32px;
}

.page-template-page-teokset .site-content, 
.home .site-content, 
.site-header, .site-info {
	max-width: calc(1120px + 64px);
	margin: 25px auto 110px;
	padding: 0 32px;
}

.site-info { 
	margin-top: 29px;
	margin-bottom: 33px;
}

/* two columns */
.page-template-page-teokset .site-content form, 
.home .site-content {
	display: flex;
	justify-content: space-between;
}

.home .page-header h1,
.entry-header h1,
h1.page-title,
.page-template-page-numerot .entry-header h2,
.category-numerot .entry-header h2,
.category-editorials .entry-header h2 {
	margin-top: 0;
}

.single-post .entry-header h1,
.blog .entry-header h1,
.blog .entry-header h2,
.category .entry-header h2,
.entry-header h1,
.page-template-page-numerot .entry-header h2 {
	margin-bottom: 0;
}	

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

.blog article {
	
}

.category article + article,
.blog article + article,
.page-template-page-numerot article.post + article.post {
	margin-top: 35px;
	padding-top: 35px;
	border-top: solid 1px #BEBAB4;
}

aside section:first-of-type h2 {
	margin-top: 10px;
}

/*
.archive .page-header {
	padding-bottom: 10px;
	border-bottom: solid 1px #BEBAB4;
	margin-bottom: 35px;
}
*/

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

.post,
.page {
	margin: 0 0 0;
}

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

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

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

/* front page */

.page-template-page-teokset .content-area, 
.home .content-area {
	flex-grow: 1;
}

.page-template-page-teokset .works-filters,
.home .widget-area {
	max-width: 352px;
	margin-left: 32px;
	flex-grow: 1;
}



/* works */


.single-work .work header {
	margin-bottom: 80px;
	max-width: calc(1120px);
    margin-left: auto;
    margin-right: auto;
}

.single-work .site-content {
	margin: 25px auto 110px;
	max-width: 100%;
	padding: 0;
}

.centering-wrapper {
	padding: 0 32px;
}

.work {
	clear: both;
}

.work header {
	background-color: #F2F0ED;
	padding: 27px 32px;
	margin-bottom: 33px;
	
}


.work header h2 {
	margin-top: 0;
	margin-bottom: 0;
}

.work .entry-meta {
	margin-top: 1px;
}

.work header > :last-child {
	margin-bottom: 0;
}

.work header .entry-excerpt {
	margin-top: 19px;
	border-top: 1px solid #BEBAB4;
	padding-top: 19px;
	overflow:auto;
}

.work header .entry-excerpt p:first-of-type {
	margin-top: 0;
}

.work header .entry-excerpt p:last-of-type {
	margin-bottom: 0;
}

.work header .entry-excerpt img {
	max-width: 128px;
	float: left;
	margin-right: 21px;
	margin-top: 5px;
}

.work header .entry-categories {
	margin-top: 21px;
	clear: both;
	color: #6F675D;
}

.entry-published p {
	text-align: right;
	font-style: italic;
	margin-bottom: 0;
}
/*
.entry-categories, .entry-meta, .entry-published {
	color: #6F675D;
}
*/

.title-description {
	font-size: 18px;
	font-size: 1.125rem;
	text-transform: uppercase;
}

.work-category {
	text-transform: lowercase;
	font-style: italic;
}

.tax-header {
	border-bottom: 1px solid #BEBAB4;
	margin-bottom: 30px;
	padding-bottom: 10px;
}

.pagination {
	/* display: flex; */
	/* justify-content: space-between; */
	position: relative;
	text-align: center;
}

.page-numbers {
	margin: 0 5px;
}

.pagination .prev {
	position: absolute;
	left: 0;
}

.pagination .next {
	position: absolute;
	right: 0;
}

/* work contents */

.work .entry-content > div {
	margin-bottom: 32px;
}

.work .entry-content.content-width-,
.work .entry-content.content-width-default{
	max-width: 1184px;
	padding: 0 32px;
	margin-left: auto;
	margin-right: auto;
}

.work .entry-content.content-width-full {
	width: 100%;
}

.work .entry-content.content-width-narrow {
	max-width: 800px;
	padding: 0 32px;
	margin-left: auto;
	margin-right: auto;
}

.work-content-html, 
.work-content-title, 
.work-content-image,
.work-content-embed,
.work-content-audio,
.work-content-file,
.work-content-video {
	text-align: center;
}

.work-content-file {
	font-size: 1.3rem;
}

.widget-title {
	text-transform: uppercase;
}

/*
.textwidget p:last-child a:last-child, .cat-post-widget .cat-post-footer-link {
	display: block;
	text-align: right;
}
*/

.cat-post-widget ul {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

.cat-post-widget li {
	margin-bottom: 1em;
}

.cat-post-tax-tag {
	font-weight: bold;
	color: #000;
}

.custom-html-widget h2 {
	text-align: center;
}
.nokturno-logos a {
	display: block;
	margin: 49px auto 0;
	text-align: center;
}

footer {
	background-color: #6F675D;
}

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

.site-info {
	font-family: 'Barlow', sans-serif;
	color: #fff;
}

/* posts */

.single-post .entry-header,
.page-template-page-numerot .entry-header,
.blog .entry-header,
.page-template-page-numerot .category-paakirjoitus .entry-header {
	margin-bottom: 20px;
}	

.editorial-content > h2 {
	text-transform: uppercase;
}	

.post .entry-categories {
	display: inline-block;
}

.post .posted-on + .entry-categories::before {
	content: '|';
	color: #6F675D;
}

/* digital recidency */

.digital-recidencies {
	text-align: center;
}

.digital-recidencies ul {
	margin-top: 1em;
	list-style: none;
	font-size: 20px;
	font-size: 1.25rem;
	display: inline-block;
	margin-left: 0;
	padding-left: 0;
	text-align: left;
}

.digital-recidencies li {
	margin-bottom: 1em;
}

/* authors */

.author-letter {
	border-bottom: solid 1px #BEBAB4;
	margin-bottom: 0.5em;
	padding-bottom: 0.2em;
	line-height: 40px;
}

.author-letter-authors {
	display: flex;
	flex-wrap: wrap;
	/*justify-content: space-between;*/
}

.author-letter-authors::after {
  content: "";
  flex: auto;
}

.author-letter-author {
	width: 184px;
	height: 48px;
	line-height: 1.1;
}

/* Dictionary */

.page-template-page-sanakirja article .entry-content {
	font-weight: bold;
	font-size: 20px;
	font-size: 1.25rem;
}

.work-categories > section {
	margin-top: 3.5em;
}

.work-categories h2 {
	font-family: 'Barlow', sans-serif;
  font-size: 32px;
  font-size: 2rem;
	padding-bottom: 0.3em;
  border-bottom: solid 1px #BEBAB4;
}

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

.work-categories h3 {
	font-size: 24px;
	font-size: 1.5rem;
	margin-bottom: 0.5em;
}
.work-categories-credits {
	text-align: right;
	font-style: italic;
	padding-top: 0.5em;
	border-top: solid 1px #BEBAB4;
}


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

.bypostauthor {
	display: block;
}

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

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

iframe {
    border: none;
}

/* 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;
	font-family: Barlow;
	font-size: 16px;
	font-size: 1rem;
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
	margin-bottom: 1.5em;
}

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

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-caption {
	display: block;
}

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

/*
.menu-toggle {
	display: none;
}

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

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


	.menu-toggle {
		display: none;
	}

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

@media (max-width: 1023px) {
	
	/* Small menu. */
	.menu-toggle {
		display: block;
	}

	button.menu-toggle {
		position: relative;
	  border: none;
	  background: transparent;
	  padding: 0;
		z-index: 1;
		float: right;
	}

	.menu-toggle {
	  width: 36px;
	  height: 30px;
	  position: relative;
	  -webkit-transform: rotate(0deg);
	  -moz-transform: rotate(0deg);
	  -o-transform: rotate(0deg);
	  transform: rotate(0deg);
	  -webkit-transition: .5s ease-in-out;
	  -moz-transition: .5s ease-in-out;
	  -o-transition: .5s ease-in-out;
	  transition: .5s ease-in-out;
	  cursor: pointer;
	}

	.menu-toggle span {
	  display: block;
	  position: absolute;
	  height: 5px;
	  width: 100%;
	  background: #6F675D;
	  border-radius: 0;
	  opacity: 1;
	  left: 0;
	  -webkit-transform: rotate(0deg);
	  -moz-transform: rotate(0deg);
	  -o-transform: rotate(0deg);
	  transform: rotate(0deg);
	  -webkit-transition: .25s ease-in-out;
	  -moz-transition: .25s ease-in-out;
	  -o-transition: .25s ease-in-out;
	  transition: .25s ease-in-out;
	}

	.menu-toggle span:nth-child(1) {
	  top: 0px;
	  -webkit-transform-origin: left center;
	  -moz-transform-origin: left center;
	  -o-transform-origin: left center;
	  transform-origin: left center;
	}

	.menu-toggle span:nth-child(2) {
	  top: 12px;
	  -webkit-transform-origin: left center;
	  -moz-transform-origin: left center;
	  -o-transform-origin: left center;
	  transform-origin: left center;
	}

	.menu-toggle span:nth-child(3) {
	  top: 24px;
	  -webkit-transform-origin: left center;
	  -moz-transform-origin: left center;
	  -o-transform-origin: left center;
	  transform-origin: left center;
	}

	.toggled .menu-toggle span:nth-child(1) {
	  -webkit-transform: rotate(45deg);
	  -moz-transform: rotate(45deg);
	  -o-transform: rotate(45deg);
	  transform: rotate(45deg);
	  top: -1px;
	  left: 4px;
	}

	.toggled .menu-toggle span:nth-child(2) {
	  width: 0%;
	  opacity: 0;
	}

	.toggled .menu-toggle span:nth-child(3) {
	  -webkit-transform: rotate(-45deg);
	  -moz-transform: rotate(-45deg);
	  -o-transform: rotate(-45deg);
	  transform: rotate(-45deg);
	  top: 24px;
	  left: 4px;
	}
	
	.main-navigation ul {
		position: absolute;
		top: 0;
		left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #FDF1DF;
		padding: 76px 32px 16px 32px;
    width: 100vw;
		transform: none;
		transition: transform 0.3s ease-in;
		box-shadow: 0 2px 3px #0002;
		
		transform-origin: 0% 0%;
		transform: translate(-100%, 0);
		transition: transform 0.2s ease-out, background-color 0.4s ease-in;
	}
	
	.main-navigation.toggled ul {
		
		transform: none;
		transition: transform 0.3s ease-in;
	}
	
	.main-navigation ul li {
		margin-bottom: 16px;
	}
	
	.page-template-page-teokset .site-content form, 
	.home .site-content {
		flex-wrap: wrap;
	}
	.page-template-page-teokset .works-filters,
	.home .widget-area {
		max-width: none;
		margin-left: 0;
		margin-top: 32px;
	}
	.page-template-page-teokset .works-filters .widget {
    width: calc(50% - 16px);
		min-width: 320px;
    float: right;
	}
	
	.page-template-page-teokset .works-filters .widget:first-of-type {
		float: left;
	}
	
	.widget {
	    margin: 0 0 0em;
	    padding-bottom: 1em;
	}
	
	aside section:first-of-type h2 {
    margin-top: 0.83em;
	}
	
}

@media (max-width: 703px) {
	.page-template-page-teokset .works-filters .widget {
		float: left;
	}
	
	
	.site-branding > div {
		flex-direction: column;
		align-items: center;
	}
	
	.site-description {
        align-items: center;
        margin-left: 0;
	}
		
	.site-description * {
		text-align:  center;
	}
	
	.site-logo {
	   margin-bottom: 30px;
	}
	
	.page-template-page-teokset .site-content, 
	.single-work .site-content, 
	.home .site-content, 
	.site-header, .site-info {
        margin-bottom: 55px;
	}
	
	.page-template-page-teokset .site-content, 
	.home .site-content, 
	.site-content, 
	.site-header, .site-info,
	.centering-wrapper,
	.work .entry-content.content-width-,
	.work .entry-content.content-width-default,
	.work .entry-content.content-width-narrow {
        padding: 0 16px;
	}
	
	.work .entry-header {
		padding-left: 16px;
		padding-right: 16px;
	}

	.page-numbers {
		margin: 0 2px;
	}

	.author-letter-author {
        height: 40px;
	}
	
	.works-search {
        flex-wrap: wrap;
	}
	
	.works-search input, .works-search label {
		width: 100%;
		margin-right: 0;
	}
	
	.works-search input[type=search] {
		margin-bottom: 16px;
	}
	
	.page-template-page-teokset .works-filters .widget {
		width: 100%;
		min-width: unset;
	 }
	
	aside .widget:first-of-type {
        border-top: solid 1px #BEBAB4;
	}
	
	.site-info .widget {
		width: 100%;
	}


}

