/*
Theme Name: Lala 2026
Author: La&La
Author URI: https://lala.fi
Version: 1.0.0
Text Domain: lala


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 {
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

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

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

html {
	box-sizing: border-box;
}

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


html {
	scroll-behavior: smooth;
}


/* Variables
--------------------------------------------- */

:root {	
	--width-page: 1700px;
	--width-content: 1600px;
	--width-front-page: calc(var(--width-page) - 2 * var(--padding-page));
	--width-post: 800px;
	--padding-page: 80px;
	--padding-header: 20px;
	--padding-menu: 20px;
	--gap-elements: 62px;
	
	--gap-front-page-items: 100px;
	--width-front-page-item: calc( ( var(--width-front-page) - ( 2 * var(--gap-front-page-items) ) ) / 3);
	--padding-front-page-items: calc(var(--gap-front-page-items) / 2);
	
	--item-skew-deg: 12deg;

	--header-height: 100px;
	--menusize: 4px;
	--menuheight: 40px;
	
	/* season #20 */
	--color-background-1: #bce4e5;
	--color-background-2: #fff3f5;
	--color-background-1: #dcefef;
	--color-background-2: #ffffff;
	--color-background-3: #FED6D7;
	--color-background-4: #bce4e5;
	--color-background-5: #FEEBEC;
	--color-item: #ffffff;
	--color-logo: #FFAE0C;
	--color-accent-1: #ff5858;
	--color-accent: #D33E4D;
	--color-accent: #5B5F97;
	--color-textlink: #5B5F97;
	--color-text: #5A5F6A;
	--color-text: #484b54;
	--color-background: var(--color-background-1);
	--gradient-background: linear-gradient(to bottom, var(--color-background-1), var(--color-background-2), var(--color-background-3), var(--color-background-2), var(--color-background-1));
	--gradient-background: linear-gradient(to bottom, var(--color-background-1), #eff9f9, var(--color-background-3));
	--color-hover: var(--color-text);
	--color-submenu: #fff;
	
	--font-family-p: 'Fira Sans', sans-serif;
	--font-family-h: 'Fira Code', sans-serif;
	--font-family-em: 'Google Sans Code', sans-serif;
	
	--font-size-p: 1.8rem;	
	--line-height-p: 1.5em;
	--letter-spacing-p: 0.02em;
	
	--font-size-h1: 7.5rem;	
	--line-height-h1: 0.9;
	--letter-spacing-h1: -0.02em;
	
	--font-size-h2: 4.5rem;	
	--line-height-h2: calc(3.7 / 3.2);
	--letter-spacing-h2: -0.05em;
	
	--font-size-h3: 3rem;	
	--line-height-h3: calc(3.0 / 2.6);
	--letter-spacing-h3: -0.02em;
	
	--font-size-tag: 2.6rem;
	--line-height-tag: calc(3.0 / 2.6);
	--letter-spacing-tag: 0.02em;
	
}

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

/* Easy font sizes */
html {
	font-size: 62.5%; /* 1rem = 10px */
}

/* Webfonts */


body,
button,
input,
select,
optgroup,
textarea {
	color: var(--color-text);
	font-family: var(--font-family-p);
	font-size: var(--font-size-p);
	line-height: var(--line-height-p);
	letter-spacing: var(--letter-spacing-p);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-family-h);
	clear: both;
	font-weight: 400;
	margin: 2em 0 1em 0;
}

h1 {
	font-size: var(--font-size-h1);
	line-height: var(--line-height-h1);
	letter-spacing: var(--letter-spacing-h1);
	text-align: center;
}

.page-id-572 h1 {
	text-align: left;
}

h1.entry-title::first-letter {
	text-transform: capitalize;
}

h2 {
	font-size: var(--font-size-h2);
	line-height: var(--line-height-h2);
	letter-spacing: var(--letter-spacing-h2);
	/* text-transform: uppercase; */
	/* font-weight: 200; */
}

.entry-content h2:not(.has-text-align-center):before {
	content: "";
	display: list-item;
	list-style-type:square;
	list-style-position: inside;
	float: left;
	margin-right: -20px;
}

h3, .lala-archive h2 {
	font-size: var(--font-size-h3);
	line-height: var(--line-height-h3);
	letter-spacing: var(--letter-spacing-h3);
}

p {
	font-size: var(--font-size-p);
	line-height: var(--line-height-p);
	letter-spacing: var(--letter-spacing-p);
	margin: 0 0 1em 0;
}

.front-page-item-tag .front-page-item-inner {
	font-size: var(--font-size-tag);
	line-height: var(--line-height-tag);
	letter-spacing: var(--letter-spacing-tag);
}

dfn,
em,
i {
	font-style: italic;
	font-family: var(--font-family-em);
	
}

blockquote {
	margin: 1.5em 0;
	font-family: var(--font-family-em);
}

.entry-content blockquote p,
.entry-content blockquote cite {
	padding: 0 4em;
}

.entry-content blockquote cite {
	font-style: normal;
	font-family: var(--font-family-p);
	font-size: 90%;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: var(--font-family-h);
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: var(--font-family-h);
}

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

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

big {
	font-size: 125%;
}

.entry-content > .wp-block-lala-blocks-lala-ingressi {
	font-size: 150%;
	font-family: var(--font-family-em);
	font-style: italic;
	max-width: 1200px;
	margin-bottom: 2em;
	margin-left: 0;
}

.page-template-page-narrow .entry-content > .wp-block-lala-blocks-lala-ingressi {
	margin-left: auto;
}



/* Elements
--------------------------------------------- */
body {
	background: #fff;
	overflow-wrap: break-word;
	word-wrap: break-word;
	-ms-word-break: break-all;
	word-break: break-word;
}

hr {
	background-color: var(--color-text);
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

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

ul {
	list-style:square;
}

ol {
	list-style: decimal;
}

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

dl {
	margin: 2em 0;
}

dt {
	font-weight: 500;
	text-transform: uppercase;
	font-size: 90%;
	letter-spacing: 0.05em;
}

dd {
	margin: 0 0 1.5em;
}

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

img {
	height: auto;
	max-width: 100%;
}
		
figure {
	margin: 2em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
	font-family: var(--font-family-h);
}

.wp-block-table td, .wp-block-table th {
	text-align: left;
	background: var(--color-background-2);
	border: 10px solid var(--color-background-1);
}

 .wp-block-table th {
	 font-weight: 500;
	 letter-spacing: 0.05em;
 }

.wp-block-table thead {
	border-bottom: 1px solid;
	text-transform: uppercase;
	font-weight: 400;
}

:where(.wp-block-columns.is-layout-flex) {
    gap: 7em;
}

:where(.wp-block-columns) {
	margin-bottom: 0;
}

#anchor-links {
	max-width: 1200px;
	margin-left: 0;
}

ul#toc {
	margin-left: 0;
	padding-left: 0;
	font-family: var(--font-family-h);
}

ul#toc li {
	display: inline-block;
	margin: 10px;
}

ul#toc li:before {
	content:"";
	width: 10px;
	height: 10px;
	background: var(--color-text);
	display: inline-block;
	margin-right: 15px;
	vertical-align: 2px;
}

.wp-block-footnotes {
	font-size: 80%;
}

/* Links
--------------------------------------------- */
a {
	color: var(--color-textlink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

a:hover,
a:focus,
a:active {
	color: var(--color-hover);
}

/* keep deafult focus for accessibility but give it a bit more spece */
a:focus {
	outline: 2px dashed;
	outline-offset: 2px;
}

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

/* Social links */

@font-face {
  font-family: 'lala_social';
  src: url('fonts/lala_social.eot?26347201');
  src: url('fonts/lala_social.eot?26347201#iefix') format('embedded-opentype'),
	   url('fonts/lala_social.woff2?26347201') format('woff2'),
	   url('fonts/lala_social.woff?26347201') format('woff'),
	   url('fonts/lala_social.ttf?26347201') format('truetype'),
	   url('fonts/lala_social.svg?26347201#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('fonts/lala_social.svg?1361915#lala_social') format('svg');
  }
}
*/
[class^="icon-"]:before, [class*=" icon-"]:before,
[class^="icon-"]:before, [class*=" icon-"]:before,
.icon-ext-link:before, a:not([href^="#"],[href^="/"],[href^=javascript],[href^=tel],[href*=localhost],[href*="lala.fi"]):after, a.wp-block-button__link:not([href^="#"],[href^="/"],[href^=javascript],[href^=tel],[href*=localhost],[href*="lala.fi"]):after  {
  font-family: "lala_social";
  font-style: normal;
  font-weight: normal;
  speak: never;

  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .5em;
  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: .5em;

  /* you can be more comfortable with increased icons size */
   font-size: 150%;

  /* Font smoothing. That was taken from TWBS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Uncomment for 3D effect */
  /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}

.icon-share:before { content: '\e800'; }
.icon-tiktok:before, .social a[href*="tiktok.com"]:before { content: '\e803'; }
.icon-link:before { content: '\e804'; } 
.icon-email:before, .icon-mail:before { content: '\e805'; } 
.icon-linkedin:before, .social a[href*="linkedin.com"]:before { content: '\e806'; }
.icon-bluesky:before, .social a[href*="bsky.app"]:before  { content: '\e80c'; }
.icon-youtube:before, .social a[href*="youtube.com"]:before { content: '\f16a'; } 
.icon-spotify:before, .social a[href*="spotify.com"]:before { content: '\f1bc'; } 
.icon-whatsapp:before { content: '\f232'; } 
.icon-snapchat-circled:before { content: '\f2ab'; }
.icon-snapchat:before { content: '\f2ac'; } 
.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-x-twitter:before, .social a[href*="twitter.com"]:before { content: '\f309'; }
.icon-facebook:before, .social a[href*="facebook.com"]:before { content: '\f30c'; }
.icon-pinterest:before, .social a[href*="pinterest.com"]:before { content: '\f312'; }
.icon-pinterest-circled:before { content: '\f313'; }
.icon-linkedin-circled:before { content: '\f319'; }
.icon-instagram:before, .social a[href*="instagram.com"]:before { content: '\f32d'; } 
.icon-behance:before, .social a[href*="behance.net"]:before { content: '\f34e'; }

.icon-ext-link:before, a:not([href^="#"],[href^="/"],[href^=javascript],[href^=tel],[href*=localhost],[href*="lala.fi"]):after, a.wp-block-button__link:not([href^="#"],[href^="/"],[href^=javascript],[href^=tel],[href*=localhost],[href*="lala.fi"]):after { 
	content: '\e80d'; 
	font-size: 90%;
	text-decoration: none;
}

.lala-share-links a {
	text-decoration: none;
	margin-top: 1em;
	display: inline-block;
}


#lala-native-share-link,
#lala-share-links {
	display: none;
}

/* Forms
--------------------------------------------- */
a.lala-button,
.wp-block-button__link,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-file__button,
.search .nav-links a {
	font-family: var(--font-family-h);
	text-transform: uppercase !important;
	font-size: 1.5rem !important;
	letter-spacing: 0.1em  !important;
	font-weight: 400 !important;
	border: none  !important;
	border-radius: 0 ;
	background: var(--color-accent);
	line-height: 1;
	padding: 0.7em 2em 0.6em 3em!important;
	min-height: 35px !important;
	height: 35px !important;
	display: inline-flex;
	align-items: center;
	text-align: center;
	cursor: pointer;
	color: #fff;
	text-decoration: none;
	clip-path: polygon(
		calc(1 * var(--pixelxmulti) * var(--pixelsize)) 0px,
		calc(1 * var(--pixelxmulti) * var(--pixelsize)) calc(1 * var(--pixelymulti) * var(--pixelsize)),
		0 calc(1 * var(--pixelymulti) * var(--pixelsize)),
		0px 100%,
		100% 100%,
		100% 0px
	) !important;
}

a.lala-button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.wp-block-file__button:hover {
	background: var(--color-text) !important;
	color: #fff !important;
}

a.lala-button:active,
a.lala-button:focus,
.wp-block-button__link:active,
.wp-block-button__link:focus,
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,
.wp-block-file__button:active;
.wp-block-file__button:focus {
	background: var(--color-text) !important;
	color: #fff !important;
}

.gform-theme--framework .gfield--input-type-datepicker.gfield--datepicker-custom-icon .ginput_container_date button.gform-datepicker-toggle.gform-theme-button.gform-datepicker-toggle--default, .gform-theme--framework .gfield--input-type-datepicker.gfield--datepicker-default-icon .ginput_container_date button.gform-datepicker-toggle.gform-theme-button.gform-datepicker-toggle--default {
	background: none !important;
	padding-right: 0 !important;
}

.gform-theme--framework .gform_validation_errors .gform-icon {
	display: none !important;
}

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: var(--color-text);
	border:none;
	border-bottom: 2px solid var(--color-accent) !important;
	border-radius: 0;
	padding: 3px 10px;
	height: 35px;
	box-shadow: none !important;
	font-family: var(--font-family-h) !important;
}

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 {
	outline: none !important;
	border: 2px dashed var(--color-logo) !important;

}

select {
	border: none;
	padding: 3px 10px;
	height: 35px;
	font-family: var(--font-family-h);
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url(img/triangle-down.svg);
	background-repeat: no-repeat;
	background-size: 40px;
	background-position: calc(100% - 10px) center;
	background-color: #fff;
	box-sizing: border-box;
	max-width: 300px;
	width: 100%;
	padding-right: 25px;
	border-radius: 0;
}

.gfield-choice-input {
	background: var(--color-accent) !important;
}

.gfield-choice-input:before {
	color: #fff !important;
}

input.gfield-choice-input[type=radio]:before {
	background-color: #fff !important;
}

textarea {
	width: 100%;
	font-family: var(--font-family-h);
}

label, legend {
	font-family: var(--font-family-h) !important;
	line-height: 1.1 !important;
}

.searchandfilter ul {
	margin-left: 0;
	padding-left: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	font-family: var(--font-family-h);
}

.searchandfilter li {
	margin-bottom: 10px;
}

.gform-theme--framework .gf_progressbar {
    background-color: var(--color-background-3) !important;
    border-radius: 0 !important;
}

.gform-theme--framework .gf_progressbar .gf_progressbar_percentage {
	border-radius: 0 !important;
}

.gform-theme--framework .gf_progressbar .gf_progressbar_percentage {
	block-size: 20px !important;
}

.gfield_description {
	font-size: 80%  !important;
	font-family: var(--font-family-em)  !important;
}

.gform-theme--foundation .gform_page_footer {
	justify-content: space-between;
	margin-top: var(--padding-page) !important;
}

.gform-theme--framework .gfield--type-choice .gfield_checkbox, .gform-theme--framework .gfield--type-choice .gfield_radio {
	margin-top: var(--padding-header);
	margin-bottom: var(--padding-header)
}


.rangeslider.gfield--type-choice  {
	/* max-width: 700px; */
}

.rangeslider.gfield--type-choice .gfield_radio {
	background: var(--color-background);
	justify-content: space-between;
	text-transform: uppercase;
} 

.rangeslider.gfield--type-choice .gfield_radio label {
	font-size: 80%;
	position: relative;
	bottom: -40px;
	left: -33px;
	line-height: 1;
	
}

.rangeslider .gfield_radio div:last-child {
	text-align: right;
	display: flex;
	justify-content: end;
}

.rangeslider .gfield_radio div:nth-child(2) {
	width: auto;
	text-align: center;
}

.rangeslider.gfield--type-choice .gfield_radio div:nth-child(2) label {
	left: -28px;
}

.rangeslider .gfield_radio div:last-child input {
	order: 2;
}

.rangeslider .gfield_radio div:last-child label {
	order: 1;
	left:auto;
	right: -23px;
}

.rangeslider .gchoice {
	width: 160px;
}

.rangeslider input[type=radio]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)),
.rangeslider input[type=radio]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *))::before {
	border-radius: 0 !important;
	height: 25px !important;
	border: 0 !important;
	border:3px solid var(--color-accent) !important;
	background: #fff !important
}

.rangeslider input[type=radio]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *))::before {
	width: 100% !important;
	height: 20px;
	inline-size: 25px !important;
	background:var(--color-accent) !important;
	border:3px solid var(--color-accent) !important;
}

.gform-theme--framework .gform_validation_errors {
	border: 3px solid var(--color-accent) !important;
	background: transparent !important;
}

.gform-theme--framework .gform_validation_errors .gform_submission_error,
.gform-theme--framework .gform-field-label>.gfield_required:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework.gform_editor legend.gform-field-label>span>.gfield_required:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)),
.gform-theme--framework .gfield_validation_message:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)) {
	color: var(--color-textlink) !important;
}

.gform-theme--framework .gform_validation_errors:focus {
	outline: 3px solid var(--color-accent) !important;
}

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

html {
	background-color: var(--color-background-1);
}

body {
	
}

.site {
	position: relative;
}

.site-header, .site-footer {
	padding-left: var(--padding-page);
	padding-right: var(--padding-page);
	font-family: var(--font-family-h);
}

.site-footer {
	background: var(--color-background-1);
	background: linear-gradient(var(--color-background-3), var(--color-background-4));
	padding: 80px var(--padding-page);
}

.site-main {
	background: var(--gradient-background);
}

.site-main > * {
	max-width: var(--width-page);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--padding-page);
	padding-right: var(--padding-page);
}

.page-template-page-front .site-main {
	max-width: 100%;
}

.post-thumbnail,
.entry-header > *, .entry-content > *, .entry-footer > * {
	max-width: var(--width-content);
	margin-left: auto;
	margin-right: auto;
}

.page-template-page-narrow .post-thumbnail,
.page-template-page-narrow .entry-header > *, .page-template-page-narrow .entry-content > *, .page-template-page-narrow .entry-footer > * {
	max-width: var(--width-post);
}

.lala-archive .post-thumbnail,
.lala-archive .entry-header > *, .lala-archive .entry-content > *, .lala-archive .entry-footer > * {
	max-width: var(--width-page);
}

.entry-content > .wp-block-image.alignwide, .entry-content > .wp-block-image.alignfull {
	max-width: none;
}

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


/* Header
--------------------------------------------- */

.site-header {
	padding: var(--padding-header) var(--padding-header) 0;	
	padding-bottom: 80px;
	background: linear-gradient(var(--color-background-5), var(--color-background-1));
}

.site-header .site-header-top {
	display: flex;
	justify-content: space-between;
	min-height: var(--header-height);
	align-items: self-start;
	text-transform: uppercase;
	font-weight: 400;
}

.site-title {
	width: 50px;
	line-height: 0;
}

.site-title a {
	color: var(--color-accent);
}

.site-title svg {
	max-width: 100%;
	height: auto;
}

.site-languages a {
	background: var(--color-accent);
	color: var(--color-background-2);
	padding: 4px;
	text-transform: lowercase;
	font-size:1.6rem;
	text-decoration: none;
}

.site-languages .current-lang a {
	background: var(--color-background-2);
	color: var(--color-text);	
}

input[type="search"] {
	border: none;
}

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

.search-form {
	display: flex;
	margin: 0;
	align-items:center;
}

.search-form label {
	display: block;
}

input[type="search"].search-field {
	-webkit-appearance: none;
	background-color: transparent;
	/* border-bottom: 3px solid var(--color-text); */
	width: 160px;
}

.search-form button {
	border: 0;
	color: var(--color-accent);
	padding: 0 0 3px 0!important;
	width: 25px;
	height: 25px !important;
	clip-path: none;
	background: transparent;
	min-height: 25px !important;
	clip-path: none !important;
}

.search-form button:hover,
.search-form button:active{
	background: transparent !important;
	color: var(--color-text) !important
}

.search-form button svg {
	height: 20px;
}

.site-header input[type="search"],
.site-header input[type="search"]::placeholder {
	color: var(--color-text);
	padding: 0;
	font-size: 1.5rem;
	height: 30px;
	border-bottom: none !important;
}

.site-header input[type="search"]::placeholder {
	
}

input[type="search"].search-field:not(:placeholder-shown),
input[type="search"].search-field:focus {
	outline: 0;
	border: none !important;
	border-bottom: 2px dashed var(--color-accent) !important;
}

input[type="search"].search-field:focus::placeholder {
	color: transparent;
}
.site-languages ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-languages li {
	display: inline;
}


/* Footer */

.site-footer .site-info {
	text-align: center;
	max-width: var(--width-page);
	margin: 0 auto;
	border-top: 20px solid var(--color-background-2);
	padding: var(--padding-page) 0 0;
} 

.site-footer .site-logo svg {
	width: 80px;
	height: auto;
	margin-bottom: 2em;
	color: var(--color-accent);
}

.site-footer .site-info > * {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}


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

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

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	margin-left: calc(var(--padding-page) - var(--padding-header));
    margin-right: calc(var(--padding-page) - var(--padding-header));
	padding-left: 0;
}

.main-navigation ul ul {
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	background-color: var(--color-background);
}

.main-navigation.toggled ul li.focus ul {
	float: none;
	margin-left: 1em;
}

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

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

.main-navigation ul li.focus > ul {
	display: block;
	position: static;
}

.main-navigation ul li.focus > ul li {
	display: list-item;
}

.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

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

.main-navigation li {
	position: relative;
	z-index: 1;
}

.main-navigation ul li {
	line-height: 1.75;
}

.main-navigation a {
	text-decoration: none;
	background: var(--color-accent);
	transition: top 0.1s ease;
	position: relative;
	color: var(--color-background-2);
	padding: 5px 15px 2px 30px;
	display: block;
	font-size: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	clip-path: polygon(
		calc(1 * var(--pixelxmulti) * var(--pixelsize)) 0px,
		calc(1 * var(--pixelxmulti) * var(--pixelsize)) calc(1 * var(--pixelymulti) * var(--pixelsize)),
		0 calc(1 * var(--pixelymulti) * var(--pixelsize)),
		0px 100%,
		100% 100%,
		100% 0px
	);
  );
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation a:active {
	position: relative;
	top: -2px;
	transition: top 0.3s ease;
	border: none;
	border-bottom: 2px solid var(--color-accent);
	margin-bottom: -2px;
}

.main-navigation a:focus {
	border-bottom: none;
}

.main-navigation a:focus:active {
	border: none;
}

.main-navigation li.current-menu-item > a,
.main-navigation li.current-menu-ancestor > a,
.single-tyonayte li.menu-item-3221 > a {
	background: var(--color-background-2);
	color: var(--color-text);
}
.main-navigation li.current-menu-item > a:hover,
.main-navigation li.current-menu-ancestor > a:hover,
.single-tyonayte li.menu-item-3221 > a:hover {
	top:0;
	border: none;
	margin-bottom: 0;
}

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

.main-navigation.toggled > div {
	position:absolute;
	top: 0;
	background-color: var(--color-background);
	width: 100%;
	left: 0;
	min-height: 100vh;
	padding-left: 0;
	padding-right: 0;
	z-index: 1;
}

.main-navigation.toggled ul ul a {
    width: 100%;
}

button.menu-toggle {
	position: absolute;
	z-index: 3;
	border: none;
	border-radius: 0;
	color: var(--color-accent);
	line-height: inherit;
	padding: 0;
	width: var(--menuheight) !important;
	min-width: var(--menuheight) !important;
	height: var(--menuheight) !important;
	top: var(--padding-header);
	left: calc(50% - 0.5 * var(--menuheight));
	box-shadow: none;
	padding: 0 !important;
	cursor: pointer;
	background: transparent !important;
	min-width: initial;
	border-radius: 0;
	border-top: var(--menusize) solid var(--color-accent) !important;
	border-bottom: var(--menusize) solid var(--color-accent) !important;
	clip-path:none !important;
}

.menu-toggle:hover, .menu-toggle:focus {
	cursor: pointer;
	background: transparent !important;
}

.menu-toggled .menu-toggle {
	border: none !important;
	z-index: 1000;
}

.menu-toggle:before {
	content: "";
	width: 41px;
	border-top: var(--menusize) solid var(--color-accent);
	height: 0;
	position: absolute;
	right: 0;
	top: calc(0.5 * var(--menuheight) - 1.5*var(--menusize));
}

.menu-toggled .menu-toggle:before, 
.menu-toggled .menu-toggle:after {
	position: absolute;
	content: "";
	border: none;
	content: ' ';
	height: calc(1.5 * var(--menuheight));
	width: var(--menusize);
	background-color: var(--color-accent);
	transform: rotate(45deg);
	transform-origin:center;
	left: calc(0.5 * var(--menuheight));
	top: 0;
	transition: transform 0.5s ease;
}

.menu-toggled .menu-toggle:after{	
	transform: rotate(-45deg);
	left: unset;
	right: calc(0. * var(--menuheight));
	top: 0;
}

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

button.menu-toggle:focus {
	outline: none;
}
.toggle-submenu {
  width: 16px;
  height: 16px;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  margin-left: 0.5em;
  display: inline-flex;
  justify-content: center;
}

.toggle-submenu[aria-expanded=true] .icon-minus, 
.toggle-submenu[aria-expanded=false] .icon-plus {
	display: block;
}

.toggle-submenu[aria-expanded=false] .icon-minus, 
.toggle-submenu[aria-expanded=true] .icon-plus {
	display: none;
}

@media screen and (min-width: 960px) {
	
	.menu-toggle, .main-navigation .search-form  {
		display: none;
	}

	.main-navigation ul.nav-menu {
		display: flex;
		justify-content: space-around;
		gap: 3em;
		align-items: center;
		/* width: 100%; */
		border-bottom: var(--color-background-2) solid 20px;
	}
	
	.main-navigation ul.nav-menu > li {

	}
	
	.main-navigation ul.nav-menu > li:hover {
		
	}
	
	.main-navigation ul ul {
		opacity: 0;
		background-color: var(--color-submenu);
		min-width: 210px;
		padding: var(--padding-menu); 
		box-shadow: -7px 7px 10px var(--color-text);
		transition: opacity 250ms;
	}
	
	.main-navigation ul li:hover ul,
	.main-navigation ul li.focus ul {
		left: 0;
		opacity: 1;
		position: absolute;
	}
	
	.main-navigation ul li:hover > ul li,
	.main-navigation ul li.focus > ul li {
		display: list-item;
	}
}


.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 auto;
	padding-top: var(--padding-page);
}

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

.lala-breadcrumbs ol {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	list-style: none;
	gap: 0.5em;
	margin: 0;
	padding: 0;
	font-size: 90%;
	font-family: var(--font-family-h);
}

.lala-breadcrumbs ol li + li::before {
	content: '';
	margin-right: 0.5em;
	width: 6px;
	height: 6px;
	background: var(--color-text);
	display: inline-block;
	vertical-align: middle;
}

ul.lala-sub-menu {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.lala-sub-menu .lala-sub-menu {
	margin-left: 1em;
}


/* Posts and pages
--------------------------------------------- */

.lala-archive {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--gap-elements);
}

.lala-archive .entry-wrapper {
	background: #fff;
	padding: var(--padding-front-page-items);
	color: var(--color-text);
}

body:not(.search) .lala-archive .tyonayte .entry-wrapper {
	padding: 0 0 var(--padding-front-page-items);
}

.lala-archive a:hover .entry-wrapper {
	/* background: rgb(255,243,245); */
}

body:not(.search) .lala-archive .tyonayte .entry-header,
body:not(.search) .lala-archive .tyonayte .entry-content {
	padding: 0 var(--padding-front-page-items);
}

.lala-archive .tyonayte img {
	width: 100%;
	display: block;
}

.lala-archive .tyonayte figure {
	position: relative;
	display: block;
	z-index: 0;
}
.lala-archive .tyonayte figure::after {
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background: #fff;
	background: linear-gradient(0deg,rgba(255, 255, 255, 1), rgba(255, 255, 255, 0) 30%);
	display: block;
}

.lala-archive .tyonayte:hover figure::after {
	/* background: var(--color-background-2); */
	/* background: linear-gradient(0deg,rgba(255, 243, 245, 1), rgba(255, 243, 245, 0) 30%); */
}


.lala-archive h2 {
	margin-top: 0;
	color: var(--color-textlink);
}

.lala-archive a {
	text-decoration: none;
}

.lala-archive a:hover h2 {
	margin-top: 0;
	color: var(--color-text);
	text-decoration: underline;
	text-underline-offset: 5px;
}

.more-content {
	margin-top: var(--gap-elements);
}

.archive-description {
	max-width: 900px;
	margin: 0 auto var(--padding-page);
}

.tyonaytteet-tags {
	background: #fff;
	padding: var(--padding-page);
	margin-bottom: var(--padding-page);
}

.archive-description p {
	font-family: var(--font-family-em);
	text-align: center;
	font-size: 130%;
	margin: 0;
}

/* Front page elements */

.front-page-items {
	display: grid;
	gap: 70px var(--gap-front-page-items);
	grid-template-columns: repeat(2, 1fr);
}

.front-page-item {
	display: block;
	/* height: var(--width-front-page-item); */
	overflow: hidden;
	filter: drop-shadow(10px 14px 30px #00000011);
	display: flex;
	grid-row: span 2;
	background: var(--color-background-2);
	transition: all 0.25s ease;
}

.front-page-item blockquote {
	margin-left: 0;
	margin-right: 0;
}

.front-page-item blockquote p {
	font-family: var(--font-family-em);
}

/*
.front-page-item-tag .front-page-item-inner {
	background: var(--color-item);
}
*/



:root {	
	--pixelsize: 15px;
	--pixelymulti: 1;	
	--pixelxmulti: 1;	
}

/* https://pixelcorners.lukeb.co.uk/ */
.pixel-corners-1 {
	clip-path: polygon(
		calc(1 * var(--pixelxmulti) * var(--pixelsize)) 0px,
		calc(1 * var(--pixelxmulti) * var(--pixelsize)) calc(1 * var(--pixelymulti) * var(--pixelsize)),
		0 calc(1 * var(--pixelymulti) * var(--pixelsize)),
		0px 100%,
		100% 100%,
		100% 0px
	);
}
.pixel-corners-2,:root :where(p.has-background) {
	clip-path: polygon(
		calc(2 * var(--pixelxmulti) * var(--pixelsize)) 0px,
		calc(2 * var(--pixelxmulti) * var(--pixelsize)) calc(1 * var(--pixelymulti) * var(--pixelsize)),
		calc(1 * var(--pixelxmulti) * var(--pixelsize)) calc(1 * var(--pixelymulti) * var(--pixelsize)),
		calc(1 * var(--pixelxmulti) * var(--pixelsize)) calc(2 * var(--pixelymulti) * var(--pixelsize)),
		0 calc(2 * var(--pixelymulti) * var(--pixelsize)),
		0px 100%,
		100% 100%,
		100% 0px
	);
}


.wp-block-lala-blocks-lala-infobox,
.pixel-corners-2.pixel-corners-rotate-90 {
	clip-path: polygon(
		0px 0px,
		0px 100%,
		100% 100%,
		100% calc(2 * var(--pixelymulti) * var(--pixelsize)),
		calc(100% - 1 * var(--pixelxmulti) * var(--pixelsize)) calc(2 * var(--pixelymulti) * var(--pixelsize)),
		calc(100% - 1 * var(--pixelxmulti) * var(--pixelsize)) calc(1 * var(--pixelymulti) * var(--pixelsize)),
		calc(100% - 2 * var(--pixelxmulti) * var(--pixelsize)) calc(1 * var(--pixelymulti) * var(--pixelsize)),
		calc(100% - 2 * var(--pixelxmulti) * var(--pixelsize)) 0px
	);
}

.pixel-corners-3,
.tyonaytteet-tags,
.wp-block-lala-blocks-lala-infobox-with-title {
	clip-path: polygon(
		calc(3 * var(--pixelxmulti) * var(--pixelsize)) 0px,
		calc(3 * var(--pixelxmulti) * var(--pixelsize)) calc(1 * var(--pixelymulti) * var(--pixelsize)),
		calc(2 * var(--pixelxmulti) * var(--pixelsize)) calc(1 * var(--pixelymulti) * var(--pixelsize)),
		calc(2 * var(--pixelxmulti) * var(--pixelsize)) calc(2 * var(--pixelymulti) * var(--pixelsize)),
		calc(1 * var(--pixelxmulti) * var(--pixelsize)) calc(2 * var(--pixelymulti) * var(--pixelsize)),
		calc(1 * var(--pixelxmulti) * var(--pixelsize)) calc(3 * var(--pixelymulti) * var(--pixelsize)),
		0px calc(3 * var(--pixelymulti) * var(--pixelsize)),
		0px 100%,
		100% 100%,
		100% 0px
	);
}

.wp-block-lala-blocks-lala-infobox-with-title,
.pixel-corners-3.pixel-corners-rotate-90 {
	clip-path: polygon(
		0px 0px,
		0px 100%,
		100% 100%,
		100% calc(3 * var(--pixelymulti) * var(--pixelsize)),
		calc(100% - 1 * var(--pixelxmulti) * var(--pixelsize)) calc(3 * var(--pixelymulti) * var(--pixelsize)),
		calc(100% - 1 * var(--pixelxmulti) * var(--pixelsize)) calc(2 * var(--pixelymulti) * var(--pixelsize)),
		calc(100% - 2 * var(--pixelxmulti) * var(--pixelsize)) calc(2 * var(--pixelymulti) * var(--pixelsize)),
		calc(100% - 2 * var(--pixelxmulti) * var(--pixelsize)) calc(1 * var(--pixelymulti) * var(--pixelsize)),
		calc(100% - 3 * var(--pixelxmulti) * var(--pixelsize)) calc(1 * var(--pixelymulti) * var(--pixelsize)),
		calc(100% - 3 * var(--pixelxmulti) * var(--pixelsize)) 0px
	);
}

.pixel-corners-3.pixel-corners-rotate-180,
.lala-archive .entry-wrapper {
	clip-path: polygon(
		0px 0px,
		0px 100%,
		calc(100% - 3 * var(--pixelxmulti) * var(--pixelsize)) 100%,
		calc(100% - 3 * var(--pixelxmulti) * var(--pixelsize)) calc(100% - 1 * var(--pixelymulti) * var(--pixelsize)),
		calc(100% - 2 * var(--pixelxmulti) * var(--pixelsize)) calc(100% - 1 * var(--pixelymulti) * var(--pixelsize)),
		calc(100% - 2 * var(--pixelxmulti) * var(--pixelsize)) calc(100% - 2 * var(--pixelymulti) * var(--pixelsize)),
		calc(100% - 1 * var(--pixelxmulti) * var(--pixelsize)) calc(100% - 2 * var(--pixelymulti) * var(--pixelsize)),
		calc(100% - 1 * var(--pixelxmulti) * var(--pixelsize)) calc(100% - 3 * var(--pixelymulti) * var(--pixelsize)),
		100% calc(100% - 3 * var(--pixelymulti) * var(--pixelsize)),
		100% 0px
	);
}




/*
.pixel-corners-rotate-90,
.lala-archive > *:nth-of-type(even) .entry-wrapper,
.wp-block-lala-blocks-lala-infobox-with-title,
.wp-block-lala-blocks-lala-infobox {
	transform: scaleX(-1);
}

.pixel-corners-rotate-90 > *,
.lala-archive > *:nth-of-type(even) .entry-wrapper > *,
.wp-block-lala-blocks-lala-infobox-with-title > *,
.wp-block-lala-blocks-lala-infobox > *,
.wp-block-lala-blocks-lala-infobox-with-title:before,
.wp-block-lala-blocks-lala-infobox:before {
	transform: scaleX(-1);
}
*/

/* https://css-generators.com/svg-to-css/ */
.front-page-item-kuvitus > *::after {
	/* content: ''; */
	/* width: 75%; */
	/* clip-path: shape(from 72.27% 45.8%,line to 72.27% 41.6%,line to 61.2% 41.6%,line to 61.2% 37.5%,line to 66.67% 37.5%,line to 66.67% 29.1%,line to 72.27% 29.1%,line to 72.27% 25%,line to 88.93% 25%,line to 88.93% 20.8%,line to 94.53% 20.8%,line to 94.53% 0%,line to 88.93% 0%,line to 88.93% 4.1%,line to 83.33% 4.1%,line to 83.33% 8.3%,line to 77.87% 8.3%,line to 77.87% 12.5%,line to 83.33% 12.5%,line to 83.33% 16.6%,line to 77.87% 16.6%,line to 77.87% 20.8%,line to 72.27% 20.8%,line to 72.27% 16.6%,line to 66.67% 16.6%,line to 66.67% 12.5%,line to 61.2% 12.5%,line to 61.2% 8.3%,line to 66.67% 8.3%,line to 66.67% 4.1%,line to 61.2% 4.1%,line to 61.2% 8.3%,line to 55.6% 8.3%,line to 55.6% 4.1%,line to 44.53% 4.1%,line to 44.53% 8.3%,line to 38.93% 8.3%,line to 38.93% 4.1%,line to 33.33% 4.1%,line to 33.33% 8.3%,line to 38.93% 8.3%,line to 38.93% 12.5%,line to 33.33% 12.5%,line to 33.33% 16.6%,line to 27.87% 16.6%,line to 27.87% 20.8%,line to 22.27% 20.8%,line to 22.27% 16.6%,line to 16.67% 16.6%,line to 16.67% 8.3%,line to 22.27% 8.3%,line to 22.27% 4.1%,line to 16.67% 4.1%,line to 16.67% 0%,line to 11.2% 0%,line to 11.2% 4.1%,line to 5.6% 4.1%,line to 5.6% 0%,line to 0% 0%,line to 0% 4.1%,line to 5.6% 4.1%,line to 5.6% 20.8%,line to 11.2% 20.8%,line to 11.2% 25%,line to 27.87% 25%,line to 27.87% 29.1%,line to 33.33% 29.1%,line to 33.33% 37.5%,line to 38.93% 37.5%,line to 38.93% 41.6%,line to 27.87% 41.6%,line to 27.87% 45.8%,line to 16.67% 45.8%,line to 16.67% 50%,line to 11.2% 50%,line to 11.2% 54.1%,line to 5.6% 54.1%,line to 5.6% 58.3%,line to 0% 58.3%,line to 0% 70.8%,line to 5.6% 70.8%,line to 5.6% 75%,line to 16.67% 75%,line to 16.67% 79.1%,line to 27.87% 79.1%,line to 27.87% 83.3%,line to 33.33% 83.3%,line to 33.33% 91.6%,line to 22.27% 91.6%,line to 22.27% 95.8%,line to 11.2% 95.8%,line to 11.2% 100%,line to 33.33% 100%,line to 33.33% 95.8%,line to 38.93% 95.8%,line to 38.93% 91.6%,line to 44.53% 91.6%,line to 44.53% 83.3%,line to 38.93% 83.3%,line to 38.93% 79.1%,line to 33.33% 79.1%,line to 33.33% 75%,line to 27.87% 75%,line to 27.87% 70.8%,line to 22.27% 70.8%,line to 22.27% 66.6%,line to 16.67% 66.6%,line to 16.67% 62.5%,line to 22.27% 62.5%,line to 22.27% 58.3%,line to 33.33% 58.3%,line to 33.33% 54.1%,line to 44.53% 54.1%,line to 44.53% 50%,line to 55.6% 50%,line to 55.6% 54.1%,line to 66.67% 54.1%,line to 66.67% 58.3%,line to 77.87% 58.3%,line to 77.87% 62.5%,line to 83.33% 62.5%,line to 83.33% 66.6%,line to 77.87% 66.6%,line to 77.87% 70.8%,line to 72.27% 70.8%,line to 72.27% 75%,line to 66.67% 75%,line to 66.67% 79.1%,line to 61.2% 79.1%,line to 61.2% 83.3%,line to 55.6% 83.3%,line to 55.6% 91.6%,line to 61.2% 91.6%,line to 61.2% 95.8%,line to 66.67% 95.8%,line to 66.67% 100%,line to 88.93% 100%,line to 88.93% 95.8%,line to 77.87% 95.8%,line to 77.87% 91.6%,line to 66.67% 91.6%,line to 66.67% 83.3%,line to 72.27% 83.3%,line to 72.27% 79.1%,line to 83.33% 79.1%,line to 83.33% 75%,line to 94.53% 75%,line to 94.53% 70.8%,line to 100% 70.8%,line to 100% 58.3%,line to 94.53% 58.3%,line to 94.53% 54.1%,line to 88.93% 54.1%,line to 88.93% 50%,line to 83.33% 50%,line to 83.33% 45.8%,line to 72.27% 45.8%,close,move to 77.87% 0%,line to 77.87% 4.1%,line to 83.33% 4.1%,line to 83.33% 0%,line to 77.87% 0%,close); */
	background: black;
	height: 100%;
	width: 75%;
}


/*
.front-page-item-tag {
	background: transparent;
	border: var(--padding-front-page-items) solid;
	border-image: repeating-linear-gradient(-30deg, var(--color-item), transparent, var(--color-item) 120px) 60;
}
*/

.front-page-item-padding {
	padding: var(--padding-front-page-items);
}

.front-page-item-skew {
	transform: skew(calc(-1 * var(--item-skew-deg)));
}


.front-page-item-skew .front-page-item-inner > *  {
	transform: skew(var(--item-skew-deg));
}


.front-page-item-tag.front-page-item-skew {
	transform: skew(var(--item-skew-deg));
}


.front-page-item-tag.front-page-item-skew .front-page-item-inner > * {
	transform: skew(calc(-1 * var(--item-skew-deg)));
}


/*
.front-page-item-tag.front-page-item-skew:nth-of-type(3n + 1) {
	transform: skew(var(--item-skew-deg)) rotate(4deg);
}

.front-page-item-tag.front-page-item-skew:nth-of-type(3n + 2) {
	transform: skew(var(--item-skew-deg)) rotate(-4deg);
}
*/

.front-page-item > * {
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.front-page-item a {
	text-decoration: none
}

.front-page-item p {
	font-family: var(--font-family-h);
	letter-spacing: -0.02em;;
	font-size: 1.55rem;
	line-height: 1.3;
}

.front-page-item h2 {
	font-size: 3.2rem;
}

.front-page-item-free_content_box h2 {
	font-family: var(--font-family-em);
	font-size: 150%;
}

.front-page-item-tag > * {
	justify-content: center;
}

.front-page-item-project > * {
	justify-content: flex-start;
}

.front-page-item :first-child {
	margin-top: 0;
}

.front-page-item :last-child {
	margin-bottom: 0;
}


.front-page-item-free_content_box,
.front-page-item-tag {
	--border-width: var(--pixelsize);
	background-position: 0 100%;
	background-size: 100% var(--border-width);
	background-repeat: no-repeat;
	background-image: repeating-linear-gradient(90deg, var(--border-color) 0px, var(--border-color) var(--border-dash-width), transparent var(--border-dash-width), transparent calc(var(--border-dash-width) + var(--border-gap-width) ) );
}


.front-page-item-free_content_box {
	--border-dash-width: calc(1.5 * var(--border-width));
	--border-gap-width: calc(1.5 * var(--border-width));
	--border-color: var(--color-background-3);
	height: auto;
	padding: var(--padding-front-page-items) calc(0.8 * var(--padding-front-page-items));
}

.front-page-item-tag {
	--border-dash-width: var(--border-width);
	--border-gap-width: var(--border-width);
	--border-color: var(--color-background);
	height: calc(var(--width-front-page-item) / 2.7 - ( var(--gap-front-page-items) / 2 ) );
	grid-row: span 1;
	text-decoration: none;
	padding: 0 20px;
	text-align: center;
	font-family: var(--font-family-h);
}

.front-page-item-tag:focus,
.front-page-item-project a:focus{
	border: 2px dashed;
}

.front-page-item-tag:active,
.front-page-item-project a:active {
	border: none;
}

.front-page-item-tag .front-page-item-inner {
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding-bottom: 10px;
}

.front-page-item-tag:hover {
	background-color: var(--color-background-5);
}

.front-page-item-project,
.front-page-item.two-columns {
	grid-column: span 2;
}

.front-page-item.three-columns {
	grid-column: span 3;
}

.project-content,
.front-page-item-project a {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
}

.front-page-item-project img {
	/* width: 100%; */
	/* height: 100%; */
	/* object-fit: cover; */
	object-position: top left;
}

.project-content::after {
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background: #ffffff;
	background: linear-gradient(0deg,rgba(255, 255, 255, 1) 20%, rgba(255, 255, 255, 0) 60%);
}

a:hover .project-content::after {
	background: rgb(255,243,245);
	background: linear-gradient(0deg,rgb(255 243 245) 20%, rgba(255, 255, 255, 0) 60%);
}

.front-page-item-project h2 {
	position: absolute;
	bottom: 1em;
	z-index: 2;
	font-size: 3rem;
	text-transform: none;
	font-weight: 400;
	margin: var(--padding-front-page-items);
}


.ribbon {
	position: absolute;
	height: calc(3 * var(--pixelsize));
	display: flex;
	align-items: center;
	width: 130px;
	padding: 0 0 0 42px;
	background-color: var(--color-background-4);
	top: 0;
	right: 0;
	z-index: 1000;
	clip-path: polygon(
		calc(2 * var(--pixelxmulti) * var(--pixelsize)) 0px,
		calc(2 * var(--pixelxmulti) * var(--pixelsize)) calc(1 * var(--pixelymulti) * var(--pixelsize)),
		calc(1 * var(--pixelxmulti) * var(--pixelsize)) calc(1 * var(--pixelymulti) * var(--pixelsize)),
		calc(1 * var(--pixelxmulti) * var(--pixelsize)) calc(2 * var(--pixelymulti) * var(--pixelsize)),
		0 calc(2 * var(--pixelymulti) * var(--pixelsize)),
		0px 100%,
		100% 100%,
		100% 0px
	);
}

a:hover .ribbon {
	background-color: var(--color-background-3);
}

.ribbon-text {
	text-transform: uppercase;
	font-size: 1.4rem;
	color: var(--color-text);
	z-index: 1001;
	letter-spacing: 0.1em;
	line-height: 0
}

.front-page-item-kuvitus,
.front-page-item-free-content {
	justify-content: flex-start;
}

.front-page-item-kuvitus {
	/* mix-blend-mode: multiply; */
	background-color: transparent;
	filter: none;
	overflow: visible;
}

.front-page-item-kuvitus img {
	width: 100%;
}

.front-page-item-tag-link {
	text-align: center;
}

.front-page-item.front-page-item-free-content > p:only-child {
	width: 100%;
	height: 100%;
}

.front-page-item.front-page-item-free-content > p:only-child > img:only-child {
	width: 100%;
	height: 100%;
	display: block;	
	object-fit: cover;
	object-position: center;
}

.front-page-item-logo {
	background: transparent;
	align-items: flex-start;
	margin: 0;
	width: 100%;
	text-align:center;
}

.front-page-item-logo > * {
	height: auto;
}

.front-page-item-logo svg path {
	fill: var(--color-logo);	
}

.front-page-item-logo svg:last-of-type,
.front-page-item-logo:hover svg:first-of-type {
	display: none;
}

.front-page-item-logo:hover svg:last-of-type {
	display: block;
}

.lala-hero-image .post-thumbnail img {
	width: 100%;
}


.lala-recent-posts .post-thumbnail img {
	width: 100%;
}

.lala-flexible {
	display: flex;
}

.lala-flexible > * {
	flex-basis: 100%;
}

.lala-flexible:nth-of-type(2n) > *:first-child {
	order: 1;
}

.lala-flexible-image img {
	width: 100%;
}

.lala-follower {
	display: none;
	position: absolute;
	z-index: 2;
	top: -200px;
	left: 0;
	/*filter: drop-shadow(rgba(0, 0, 0, 0.4) 4px 4px 4px);*/
	width: 365px;
}
.lala-follower.follower-turn {
	transform: scaleX(-1);
}
.lala-follower div {
	display: flex;
	gap: 35px;	
}

.front-page-item-kuvitus img {
	display: block;
}

.lala-game-start,
.lala-score {
	position: fixed;
	bottom: var(--padding-menu);
	right: var(--padding-menu);
	display: none;
	gap: 8px;
	background-color: transparent;
	padding: 0;
}

.lala-game-start {
	display: none;
}

.logged-in .lala-game-start {
	display: flex;
}

.lala-game-start img,
.lala-score .lala-score-heart img {
	width: 65px;
	height: 60px;
}

.lala-game-start:hover img {
	width: 78px;
	height: 72px;
}

.lala-score .lala-score-heart img:last-child {
	display: none;	
}

.lala-score .lala-score-heart.found img:last-child {
	display: inline;	
}
.lala-score .lala-score-heart.found img:first-child {
	display: none;	
}

.front-page-item-kuvitus {
	position: relative;
}

.front-page-item-kuvitus:has(img.found)::before {
	position: absolute;
	top: 0;
	right: 0;
	content: '';
	width: 130px;
	height: 120px;
	background-image: url(img/heart.svg);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.lala-score div.lala-score-points-1 { background-image: url(img/1.svg); }
.lala-score div.lala-score-points-2 { background-image: url(img/2.svg); }
.lala-score div.lala-score-points-3 { background-image: url(img/3.svg); }
.lala-score div.lala-score-points-4 { background-image: url(img/4.svg); }
.lala-score div.lala-score-points-5 { background-image: url(img/5.svg); }
.lala-score div.lala-score-points-6 { background-image: url(img/6.svg); }
.lala-score div.lala-score-points-7 { background-image: url(img/7.svg); }
.lala-score div.lala-score-points-8 { background-image: url(img/8.svg); }
.lala-score div.lala-score-points-9 { background-image: url(img/9.svg); }
.lala-score div.lala-score-points-0 { background-image: url(img/0.svg); }


.sticky {
	display: block;
}

.post,
.page {
	
}

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

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

.entry-meta, .entry-tags {
	text-align: center;
	margin-bottom: var(--padding-page);
	font-weight: 500;
	text-transform: uppercase;
	font-size: 90%;
	letter-spacing: 0.05em;
}

.entry-tags, .search .entry-meta {
	margin-bottom: 0.3em;
	display: block;
	text-align: left;
}

.entry-footer {
	margin: var(--padding-page) 0;
}

.wp-block-lala-blocks-lala-infobox-with-title,
.wp-block-lala-blocks-lala-infobox {
	background: #fff;
	padding: var(--padding-header) calc(var(--padding-header) * 2);
	margin: 2em auto;
	position: relative;
	border-bottom: 10px dashed var(--color-background-3);
	max-width: 600px;

}

.wp-block-column .wp-block-lala-blocks-lala-infobox-with-title,
.wp-block-column .wp-block-lala-blocks-lala-infobox {
	margin-left: 0;
}

.wp-block-lala-blocks-lala-infobox-with-title p,
p.wp-block-lala-blocks-lala-infobox {
	font-size: 85%;
	font-family: var(--font-family-h);
	letter-spacing: var(--letter-spacing-tag);
}

.wp-block-lala-blocks-lala-infobox-with-title:before,
.wp-block-lala-blocks-lala-infobox:before {
	content:"i";
	position: absolute;
	left: 0;
	top: 0;
	background: var(--color-background-1);
	padding: 4px 8px;
	display: block;
	font-size: 120%;
	font-family: var(--font-family-h);
}

.wp-block-lala-blocks-lala-infobox-with-title  h2,
.wp-block-lala-blocks-lala-infobox-with-title  h3 {
	margin-top: 10px;
	text-transform: uppercase;
	font-size: 120%;
	font-weight: 400;
	display: block;
}

.entry-content .wp-block-lala-blocks-lala-infobox-with-title  h2:before {
	display: none;
}

/* Consistent top and bottom margin */

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

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

.single-tyonayte .post-thumbnail {
	position: relative;
	margin-bottom: ;
	margin-top: calc(1.5 * var(--padding-page));
	text-align: center;
	max-width: 1000px;
}

.single .entry-content > *,
.single .entry-footer > * {
	max-width: var(--width-post);
}

.single-tyonayte .post-thumbnail img {
	border: 60px  solid;
	position: relative;
}

.single-tyonayte .post-thumbnail:before {
	content: "";
	width: 160px;
	height: 130px;
	display: block;
	position: absolute;
	top: -130px;
	left: calc(50% - 110px);
	z-index: 100;
	/* border-left: 10px solid; */
	/* border-bottom: 10px solid; */
	transform: rotate(-45deg);
	transform-origin:top;
}

.single-tyonayte  .post-thumbnail:after {
	content: "";
	width: 0;
	height: 0;
	border-left: 8vw solid transparent;
	border-right: 8vw solid transparent;
	/* border-bottom: 8vw solid ; */
	position: absolute;
	bottom: -5vw;
	left: calc(50% - 8vw);
} 

/* Load more functionality */

.lala-more-posts {
	text-align: center;
	margin-top: var(--padding-front-page-items);
}

.lala-load-more .lala-load-more-load,
.lala-load-more .lala-load-more-loading,
.lala-load-more .lala-load-more-no-more {
	display: none;
}

.lala-load-more:not(.lala-loading):not(.lala-loading-all-loaded) .lala-load-more-load {
	display: inline;
}

.lala-load-more.lala-loading .lala-load-more-loading {
	display: inline;
}

.lala-load-more.lala-loading-all-loaded .lala-load-more-no-more {
	display: inline;
}


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

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-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, figcaption {
	margin-bottom: 1.5em;
	max-width: 100%;
	margin: 0.8075em 0;
	font-size: 80%;
}

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

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	background: none;
	color: inherit;
	margin-bottom: 0;
	max-height: none;
	overflow:initial;
	padding: 10px 0 0 0;
	position: static;
	text-align: left;
	text-shadow: none;
}

.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image figcaption {
	position: absolute;
	background: #fff;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before {
	display: none;
}



/* Galleries
--------------------------------------------- */
.gallery, .wp-block-gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 60px 40px !important;
}

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

/* Block gallery */

.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	width: calc(50% - 40px);
}

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

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

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

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

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

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

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

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

.wp-block-gallery.caption {
	display: block;
}

.wp-lightbox-overlay .scrim {
	background-color: var(--color-yellow) !important;
	opacity: 0.9 !important;
}

/*--------------------------------------------------------------
# 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: var(--color-background);
	clip: auto !important;
	clip-path: none;
	color: var(--color-text);
	display: block;
	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) {	

	.front-page-items {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.front-page-item:nth-child(2) {
		/* grid-column: span 2; */
	}	

}

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

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

}

@media screen and (max-width: 1308px) {
	.main-navigation ul.nav-menu {
		gap: 0.2em;
		justify-content: space-between;
	}
	.main-navigation a {
		
	}
}

@media screen and (max-width: 1199px) {
	:root {	
		--padding-page: 30px;
		--padding-header: 20px;
		--padding-menu: 20px;
		--gap-elements: 62px;
		
		--gap-front-page-items: 70px;
		--width-front-page-item: calc( ( var(--width-front-page) - ( 2 * var(--gap-front-page-items) ) ) / 3);
		--padding-front-page-items: 50px;
		
		--font-size-p: 1.8rem;	
		--font-size-h1: 7rem;	
		--font-size-h2: 4rem;	
		--font-size-h3: 3rem;	
		--font-size-tag: 2rem;
		
	}

	.front-page-items, .lala-archive {
		max-width: 750px;
		margin-left: auto;
		margin-right: auto;
	}

	h1 {
		margin-top: 1em;
		margin-bottom: 0.8em
	}
	
}

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

	:root {
		--pixelsize: 10px;
	}

	.site-header {
		padding-bottom: 0;
	}

	.site-header .site-header-top {
		min-height: 0;
	}

	/* fixattu header joka ilmestyy kun skrollaa. kommentoi esiin myos navigation.js:ssa.  */
	
	.site-header {
		width: 100%;
		position: fixed;
		left: 0;
		z-index: 1;
		margin-top: calc(-1 * var(--header-height)); 
		transition: margin-top .2s ease-in-out, background-color .2s ease-in-out;
	}

	.menu-toggled .site-header {
		height: 100vh;
		top: 0;
	}
	
	.lala-scrolled-up .site-header {
		margin-top: 0;
	}

	.site-main {
		padding-top: calc(1.2 * var(--header-height));
	}

	.site-title svg {
		height: calc(1.15 * var(--menuheight));
	}

	.site-languages a {
		height: var(--menuheight);
		display: inline-flex;
		align-items: center;
	}
	.main-navigation ul {
		margin-left: 0
	}
	
	.main-navigation ul li {
		margin: var(--padding-menu);
		text-align: center;
	}

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

	.main-navigation a {
		font-size: 1.8rem;
	}

	.main-navigation ul.nav-menu  {
		margin-top: 140px
	}
	.search-form {
		display: none;
	}

	.menu-toggled .main-navigation  {
		display: flex;
		justify-content: center;
	}

	.menu-toggled .main-navigation .search-form {
		position: absolute;
		display: flex;
		z-index: 10000;
		bottom: var(--padding-header);
	}

	.menu-toggled .site-main {
		display: none;
	}
	
}

@media screen and (max-width: 769px) {
	:root {	
	--padding-page: 20px;
	--padding-header: 20px;
	--padding-menu: 20px;
	--gap-elements: 62px;
	
	--gap-front-page-items: 70px;
	--width-front-page-item: calc( ( var(--width-front-page) - ( 2 * var(--gap-front-page-items) ) ) / 3);
	--padding-front-page-items: 40px;
	
	--font-size-p: 1.5rem;	
	--font-size-h1: 4rem;	
	--font-size-h2: 3rem;	
	--font-size-h3: 2.5rem;	
	--font-size-tag: 2rem;
	
	}

	.desktop {
		display: none;
	}

	.smaller-in-mobile {
		max-width: 300px;
	}

	h1 {
		text-align: left;
	}

	.front-page-item:nth-child(2) {
		grid-column: 1;
	}
	
	.front-page-items, .lala-archive {
		grid-template-columns: repeat(1, 1fr);
		gap: 50px 0;
		max-width: 320px;
		margin-left: auto;
		margin-right: auto;
	}

	.front-page-items > * {
		grid-column:1;
		width: 100%;
	}

	.front-page-item-tag {
		height: auto;
		padding: var(--padding-page);
	}

	:where(.wp-block-columns.is-layout-flex) {
		gap: 0;
	}
	.wp-block-column > *:last-child,
	.wp-block-column > *:last-child > *:last-child,
	.wp-block-column > *:last-child > *:last-child > *:last-child,
	ul#toc {
	  margin-bottom: 0;
	}

	.entry-content > .wp-block-columns:first-child .wp-block-column:first-child h2 {
		margin-top: 1em;
	}

	.wp-block-spacer {
		height: 40px !important;
	}

	.site-footer .site-logo svg {
		margin: 40px 0;
		width: 60px
	}

	.project-content {
		padding-bottom: 50px;
		background: #fff;
	}

	.front-page-item-project h2 {
		font-size: 2.5rem;
	}

	:root .has-text-align-center, :root .has-text-align-right  {
		text-align: left;
	}


	.wp-block-column figure:last-child {
		margin-bottom: 2em
	}

	.searchandfilter ul {
		justify-content: flex-start;
	}

	.gform-theme--framework .gfield_list_group_item::before:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)), .gform-theme--framework .gform-field-label:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)) {
		font-size: var(--font-family-p) !important;
	}

	.rangeslider .gchoice {
		width: 33%;
	}
	

}

