/*!
Theme Name: Third Rock Theme
Author: La&La
Author URI: https://lala.fi
Version: 1.0.9
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 {
	outline: 1px dotted ButtonText;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

html {
	box-sizing: border-box;
}

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


html {
	scroll-behavior: smooth;
}


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

:root {
	--width-page: 1054px;
	--width-content: 800px;
	--padding-page: 36px;
	--padding-content: 50px;
	--padding-header: 50px;
	--padding-box: 42px;
	--padding-menu: 38px;
	--margin-menu-item: 16px;
	--margin-entry-content: 75px;
	--margin-quote: 110px;
	--gap-menu: 40px;
	--height-button: 39px;
	--gap-page-v: 48px;
	--gap-page-v-big: 100px;
	--gap-page-h: 26px;
	--margin-hr: 59px;
	--gap-filter: 20px;
	
	--color-text: #2A1238;
	--color-background: #fff;
	--color-hover: #000;
	--color-grey-dark: #E2DDDB;
	--color-grey-dark-transparent: #E2DDDBF0; /* 94 = F0 */
	--color-grey-light: #F5F1EB;
	--color-grey-light-transparent: #F0ECE7F0;
	--color-violet: #41314E;
	--color-green: #C4FFDD;
	--color-light-green: #EEFEF4;
	--color-other-green: #E4F5F3;
	--color-light-violet: #CCC2D4;
	
	--font-family-p: 'Quasimoda', sans-serif;
	--font-family-h: 'Quasimoda', sans-serif;
	
	--font-size-p: 2rem;
	--line-height-p: calc(3 / 2);
	--letter-spacing-p: 0;
	
	--font-size-p-small: 1.6rem;
	--line-height-p-small: calc(2.0 / 1.5);
	--letter-spacing-p-small: 0;
	
	--line-height-p-small-list: calc(2.2 / 1.5);
	
	--font-size-h1: 6rem;
	--line-height-h1: calc(6 / 6);
	--letter-spacing-h1: 0;
	
	--font-size-h2-big: 5rem;
	--line-height-h2-big: calc(6 / 5);
	--letter-spacing-h2-big: 0;
	
	--font-size-h2: 3rem;
	--line-height-h2: calc(3 / 3);
	--letter-spacing-h2: 0;
	
	--font-size-h3: 2.6rem;
	--line-height-h3: calc(3.0 / 2.6);
	--letter-spacing-h3: 0;
	
	--font-size-ingressi: 3.5rem;
	--line-height-ingressi: calc(4.5 / 3.5);
	--letter-spacing-ingressi: 0;
	
	--font-size-quote: 2.6rem;
	--line-height-quote: calc(3.0 / 2.6);
	--letter-spacing-quote: 0;
	
	--font-size-lang: 1.5rem;
	--line-height-lang: calc(2.5 / 1.5);
	--letter-spacing-lang: 0;
	
	--font-size-menu: 2.6rem;
	--line-height-menu: 1.2;
	--letter-spacing-menu: 0;
	
	--font-size-submenu: 1.6rem;
	--line-height-submenu: 1.2;
	--letter-spacing-submenu: 0;
	
	--font-size-button: 1.2rem;
	--line-height-button: calc(1.8 / 1.2);
	--letter-spacing-button: 0;
	
	--font-weight-light: 300;
	--font-weight-regular: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	
}

@media screen and (max-width: 1300px) {	
	:root {
		--font-size-menu: 2rem;
		--gap-menu: 20px;
	}
}

/* mobile typography */
@media screen and (max-width: 919px) {	
	:root {
		
		--padding-page: 0;
		--padding-header: 26px;
		--padding-box: 20px;
		--padding-header: 20px;
		--gap-page-v: 48px;
		--gap-page-v-big: 100px;
		--gap-page-h: 18px;
		--margin-entry-content: 50px;
		
		--font-size-p: 1.8rem;	
		--font-size-h1: 4.4rem;		
		--font-size-h2: 3rem;	
		--font-size-h2-big: 4rem;	
		--font-size-h3: 2.4rem;	
		--font-size-ingressi: 2.5rem;
		--font-size-menu: 2.6rem;
		
		
		
	}
}


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

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

::selection {
	background-color: var(--color-light-violet);
}

/* Webfonts */

@font-face {
   font-family: 'Quasimoda';
   src: url('fonts/Quasimoda-Light.woff2') format('woff2'),
		url('fonts/Quasimoda-Light.woff') format('woff');
   font-weight: 300;
   font-style: normal;
   font-display: swap;
}

@font-face {
   font-family: 'Quasimoda';
   src: url('fonts/Quasimoda-LightItalic.woff2') format('woff2'),
		url('fonts/Quasimoda-LightItalic.woff') format('woff');
   font-weight: 300;
   font-style: italic;
   font-display: swap;
}

@font-face {
   font-family: 'Quasimoda';
   src: url('fonts/Quasimoda-Regular.woff2') format('woff2'),
		url('fonts/Quasimoda-Regular.woff') format('woff');
   font-weight: 400;
   font-style: normal;
   font-display: swap;
}

@font-face {
   font-family: 'Quasimoda';
   src: url('fonts/Quasimoda-Italic.woff2') format('woff2'),
		url('fonts/Quasimoda-Italic.woff') format('woff');
   font-weight: 400;
   font-style: italic;
   font-display: swap;
}

@font-face {
   font-family: 'Quasimoda';
   src: url('fonts/Quasimoda-Medium.woff2') format('woff2'),
		url('fonts/Quasimoda-Medium.woff') format('woff');
   font-weight: 500;
   font-style: normal;
   font-display: swap;
}

@font-face {
   font-family: 'Quasimoda';
   src: url('fonts/Quasimoda-MediumItalic.woff2') format('woff2'),
		url('fonts/Quasimoda-MediumItalic.woff') format('woff');
   font-weight: 500;
   font-style: italic;
   font-display: swap;
}

@font-face {
   font-family: 'Quasimoda';
   src: url('fonts/Quasimoda-Semibold.woff2') format('woff2'),
		url('fonts/Quasimoda-Semibold.woff') format('woff');
   font-weight: 600;
   font-style: normal;
   font-display: swap;
}

@font-face {
   font-family: 'Quasimoda';
   src: url('fonts/Quasimoda-SemiboldItalic.woff2') format('woff2'),
		url('fonts/Quasimoda-SemiboldItalic.woff') format('woff');
   font-weight: 600;
   font-style: italic;
   font-display: swap;
}

@font-face {
  font-family: 'lala_social';
  src: url('fonts/lala_social.eot?1361915');
  src: url('fonts/lala_social.eot?1361915#iefix') format('embedded-opentype'),
	   url('fonts/lala_social.woff2?1361915') format('woff2'),
	   url('fonts/lala_social.woff?1361915') format('woff');
  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('../font/lala_social.svg?1361915#lala_social') format('svg');
  }
}
*/
[class^="icon-"]:before, [class*=" icon-"]:before {
  font-family: "lala_social";
  font-style: normal;
  font-weight: normal;
  speak: never;

  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-share:before { content: '\e800'; } /* 'ÃƒÆ’Ã‚Â®Ãƒâ€šÃ‚Â ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬' */
.icon-tiktok:before { content: '\e803'; } /* 'ÃƒÆ’Ã‚Â®Ãƒâ€šÃ‚Â Ãƒâ€ Ã¢â‚¬â„¢' */
.icon-link:before { content: '\e804'; } /* 'ÃƒÆ’Ã‚Â®Ãƒâ€šÃ‚Â ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¾' */
.icon-email:before { content: '\e805'; } /* 'ÃƒÆ’Ã‚Â®Ãƒâ€šÃ‚Â ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦' */
.icon-linkedin-1:before { content: '\e806'; } /* 'ÃƒÆ’Ã‚Â®Ãƒâ€šÃ‚Â ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ' */
.icon-bluesky:before { content: '\e80c'; } /* 'ÃƒÆ’Ã‚Â®Ãƒâ€šÃ‚Â Ãƒâ€¦Ã¢â‚¬â„¢' */
.icon-facebook-1:before { content: '\f09a'; } /* 'ÃƒÆ’Ã‚Â¯ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€¦Ã‚Â¡' */
.icon-youtube-play:before { content: '\f16a'; } /* 'ÃƒÆ’Ã‚Â¯ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦Ãƒâ€šÃ‚Âª' */
.icon-whatsapp:before { content: '\f232'; } /* 'ÃƒÆ’Ã‚Â¯Ãƒâ€¹Ã¢â‚¬Â Ãƒâ€šÃ‚Â²' */
.icon-snapchat-circled:before { content: '\f2ab'; } /* 'ÃƒÆ’Ã‚Â¯Ãƒâ€¦Ã‚Â Ãƒâ€šÃ‚Â«' */
.icon-snapchat:before { content: '\f2ac'; } /* 'ÃƒÆ’Ã‚Â¯Ãƒâ€¦Ã‚Â Ãƒâ€šÃ‚Â¬' */
.icon-flickr:before { content: '\f303'; } /* 'ÃƒÆ’Ã‚Â¯Ãƒâ€¦Ã¢â‚¬â„¢Ãƒâ€ Ã¢â‚¬â„¢' */
.icon-flickr-circled:before { content: '\f304'; } /* 'ÃƒÆ’Ã‚Â¯Ãƒâ€¦Ã¢â‚¬â„¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¾' */
.icon-vimeo-1:before { content: '\f306'; } /* 'ÃƒÆ’Ã‚Â¯Ãƒâ€¦Ã¢â‚¬â„¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ' */
.icon-vimeo-circled:before { content: '\f307'; } /* 'ÃƒÆ’Ã‚Â¯Ãƒâ€¦Ã¢â‚¬â„¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¡' */
.icon-x-twitter:before { content: '\f309'; } /* 'ÃƒÆ’Ã‚Â¯Ãƒâ€¦Ã¢â‚¬â„¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â°' */
.icon-facebook:before { content: '\f30c'; } /* 'ÃƒÆ’Ã‚Â¯Ãƒâ€¦Ã¢â‚¬â„¢Ãƒâ€¦Ã¢â‚¬â„¢' */
.icon-facebook-circled:before { content: '\f30d'; } /* 'ÃƒÆ’Ã‚Â¯Ãƒâ€¦Ã¢â‚¬â„¢Ãƒâ€šÃ‚Â' */
.icon-pinterest-1:before { content: '\f312'; } /* 'ÃƒÆ’Ã‚Â¯Ãƒâ€¦Ã¢â‚¬â„¢ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢' */
.icon-pinterest-circled:before { content: '\f313'; } /* 'ÃƒÆ’Ã‚Â¯Ãƒâ€¦Ã¢â‚¬â„¢ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œ' */
.icon-linkedin-2:before { content: '\f318'; } /* 'ÃƒÆ’Ã‚Â¯Ãƒâ€¦Ã¢â‚¬â„¢Ãƒâ€¹Ã…â€œ' */
.icon-linkedin-circled:before { content: '\f319'; } /* 'ÃƒÆ’Ã‚Â¯Ãƒâ€¦Ã¢â‚¬â„¢ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢' */
.icon-instagram:before { content: '\f32d'; } /* 'ÃƒÆ’Ã‚Â¯Ãƒâ€¦Ã¢â‚¬â„¢Ãƒâ€šÃ‚Â­' */
.icon-behance:before { content: '\f34e'; } /* 'ÃƒÆ’Ã‚Â¯Ãƒâ€šÃ‚ÂÃƒâ€¦Ã‚Â½' */


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);
	font-weight: var(--font-weight-medium);
}

h1, .h1,
h2, .h2, .h2-big, p.tagline,
h3, .h3 {
	margin-top: 1em;
	font-family: var(--font-family-h);
	clear: both;
	font-weight: var(--font-weight-light);
	margin-bottom: 0.75em;
}

p.tagline,
h2:not(.h2-big):not(.h1), .h2,
h3, .h3 {
	font-weight: var(--font-weight-medium);
}

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

p.tagline,
h2, .h2 {
	font-size: var(--font-size-h2);
	line-height: var(--line-height-h2);
	letter-spacing: var(--letter-spacing-h2);
}

h2.wp-block-heading, h3.wp-block-heading {
	margin-top: 2em;
	margin-bottom: 1em;
}

.page-template-page-palvelu p.tagline {
	text-align: center;
	margin-top: var(--margin-entry-content);
}

h2.h2-big {
	font-size: var(--font-size-h2-big);
	line-height: var(--line-height-h2-big);
	letter-spacing: var(--letter-spacing-h2-big);
}

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

h3.wp-block-heading {
	font-weight: var(--font-weight-semibold);
	font-size: var(--font-size-p);
	margin-bottom: 1.8em;
}

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

details summary {
	text-decoration: underline;
	text-underline-offset: 0.1em;
}

.wp-block-footnotes,
.wp-block-list,
figcaption,
blockquote cite,
.wp-block-table,
label,
.lala-cta-box p,
.site-footer p,
.entry-meta-author,
.entry-meta-author p,
.entry-meta,
.lala-services p,
.home .lala-archive-post p {
	font-size: var(--font-size-p-small);
	line-height: var(--line-height-p-small);
	letter-spacing: var(--letter-spacing-p-small);
}

.site-footer p {
	line-height: var(--line-height-lang);
}


.wp-block-list {
	line-height: var(--line-height-p-small-list);	
}


.wp-block-list,
figcaption,
blockquote cite,
label {
	font-weight: var(--font-weight-semibold);
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child,
p:first-child {
	margin-top: 0;
}

.menu-paavalikko-container .sub-menu {
	font-size: var(--font-size-submenu);
	line-height: var(--line-height-submenu);
	letter-spacing: var(--letter-spacing-submenu);
	font-weight: var(--font-weight-medium);
}

.menu-paavalikko-container {
	font-size: var(--font-size-menu);
	line-height: var(--line-height-menu);
	letter-spacing: var(--letter-spacing-menu);
	font-weight: var(--font-weight-semibold);
}

.site-languages {
	font-size: var(--font-size-lang);
	line-height: var(--line-height-lang);
	letter-spacing: var(--letter-spacing-lang);
	text-transform: uppercase;
	font-weight: var(--font-weight-semibold);
}

.wp-block-file__button,
.wp-block-table thead th,
.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation,
.lala-breadcrumbs,
input[type="submit"],
.wp-block-button a,
.lala-button {
	font-size: var(--font-size-button);
	line-height: var(--line-height-button);
	letter-spacing: var(--letter-spacing-button);
	text-transform: uppercase;
	font-weight: var(--font-weight-semibold);
}

.site-main .comment-navigation a,
.site-main .posts-navigation a,
.site-main .post-navigation a,
.lala-breadcrumbs a {
	text-decoration: none;	
}

.wp-block-lala-blocks-lala-ingressi {
	font-size: var(--font-size-ingressi);
	line-height: var(--line-height-ingressi);
	letter-spacing: var(--letter-spacing-ingressi);
	font-weight: var(--font-weight-light);
	text-align: center;
}

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

.entry-content blockquote {
	margin: var(--margin-quote) auto;
	max-width: 600px;
}

blockquote p {
	font-size: var(--font-size-quote);
	line-height: var(--line-height-quote);
	letter-spacing: var(--letter-spacing-quote);
	font-weight: var(--font-weight-semibold);
	text-align: center;
	margin: 0;
}

blockquote cite {
	margin-top: var(--gap-page-h);
	text-align: center;
	font-style: normal;
}
blockquote em {
	font-style: normal;
}

.wp-block-pullquote {
	padding-top: 0;
	padding-bottom: 0;
}

address {
	margin: 0 0 1.5em;
}

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

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

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

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

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: var(--color-background);
	overflow-wrap: break-word;
	word-wrap: break-word;
	-ms-word-break: break-all;
	word-break: break-word;
}

hr,
.wp-block-separator {
	border-top: 1px solid var(--color-text);
	margin-top: var(--margin-hr);
	margin-bottom: var(--margin-hr);
	border-bottom: 0;
}

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

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

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

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

figure {
	margin: 1em 0;
}

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

/* Links
--------------------------------------------- */
a {
	color: var(--color-text);
	text-underline-offset: 0.1em;
}

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

a:hover,
a:focus,
a:active {
	color: var(--color-text);
	text-decoration-thickness: 2px;
}

.site-footer a:hover,
.site-footer a:focus,
.site-footer a:active {
	color: #fff;
}

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

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

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

/* Forms
--------------------------------------------- */
.wp-block-file__button,
.wp-block-button a,
a.lala-button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: none;
	border-radius: 0;
	background: var(--color-green);
	padding: 0.8em 2em 0.8em;
	min-height: var(--height-button);
	display: inline-flex;
	align-items: center;
	text-align: center;
	cursor: pointer;
	text-decoration: none;
	max-width: 240px;
	color: var(--color-text);
}

.wp-block-file__button:hover,
.wp-block-button a:hover,
a.lala-button:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.wp-block-button a:active,
a.lala-button:active,
.wp-block-button a:focus,
a.lala-button: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 {
	background: var(--color-light-violet);
}

:where(.wp-block-file__button):is(a):active, :where(.wp-block-file__button):is(a):focus, :where(.wp-block-file__button):is(a):hover, :where(.wp-block-file__button):is(a):visited {
  color: var(--color-text);
}


p:has(input[type="submit"]) {
	display: flex;
	justify-content: center;
}

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-radius: 0;
	padding: 3px;
	margin-top: 0.5em;
	min-height: 51px;
	width: 100%;
}

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: var(--color-hover);
}

select {
	border: 1px solid var(--color-text);
}

/* select custom styles */
/*
select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url(img/arrow_down.svg);
	background-repeat: no-repeat;
	background-size: 13px;
	background-position: calc(100% - 10px) center;
	background-color: transparent;
	box-sizing: border-box;
	max-width: 300px;
	width: 100%;
	padding-right: 25px;
	margin-right: 0.5em;
	color: black;
	border: 2px solid black;
	background-color: transparent;
	border-radius: 0;
	padding: 11px 15px;
	font-style: italic;
}
*/

textarea {
	width: 100%;
}

/* checbox & radio custom styles */


input[type=radio],
input[type=checkbox] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

input[type=radio]+span,
input[type=checkbox]+span {
	position: relative;
	padding-left: 50px;
	margin-bottom: 12px;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	line-height: 2em;
}

input[type=radio]+span::before,
input[type=checkbox]+span::before {
	content: "";
	position: absolute;
	left: 0;
	height: 30px;
	width: 30px;
	background-color: #fff;
	border: none;
}

input[type=radio]+span::before {
	border-radius: 100%;
}

input[type=radio]+span::after,
input[type=checkbox]+span::after {
	content: "";
	position: absolute;
	display: none;
    top: 2px;
	left: 7px;
	width: 16px;
	height: 16px;
	background-color: #000;
}

input[type=radio]+span::after {
	border-radius: 100%;
}

input[type=radio]:checked+span::after,
input[type=checkbox]:checked+span::after {
  display: block;
}

.wpcf7-list-item {
	display: block !important;
	margin: 0 !important;	
}

.wpcf7-spinner {
	width: 0;
	margin: 0 ;
}

form.submitting .wpcf7-spinner {
	 width: 24px;
	 margin: 0 24px;
}

.wpcf7 form .wpcf7-response-output {
	margin: 1em 0 !important;
	border: 1px solid var(--color-text) !important;
	font-size: var(--font-size-p-small);
	line-height: var(--line-height-p-small);
	letter-spacing: var(--letter-spacing-p-small);
	font-weight: var(--font-weight-semibold);
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--color-text) !important;
}

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

.site {
	background-color: var(--color-background);
	position: relative;
	padding: var(--padding-page);
}

.site-main, .site-footer {
	max-width: var(--width-page);
	margin-left: auto;
	margin-right: auto;
}

.site-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: calc(var(--gap-menu) - 10px);
}

.lala-padding-content {
	padding: var(--padding-content);
}

.wp-block-contact-form-7-contact-form-selector,
.lala-box {
	padding: var(--padding-box);
}

.lala-nosto_harmaa .lala-button,
.lala-box > .lala-button {
	margin-bottom: calc( -1 * ( calc( var(--padding-box) + 0.5 * var(--height-button) ) ) );	
}

.lala-nosto_harmaa .lala-button {
	max-width: 300px;
}

.lala-center {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.lala-services-header {
	max-width: 460px;
	margin-left: auto;
	margin-right: auto;	
}

.lala-services-header h2 {
	margin-bottom: 1em;	
}

.entry-header h1 {
	margin-top: var(--margin-entry-content);
}

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

.lala-featured-articles,
.lala-experts,
.lala-cta-box:not(.lala-cta-box-form):not(.lala-cta-box-button):not(.lala-cta-box-newsletter),
.entry-content > .wp-block-image.alignwide, .entry-content > .wp-block-image.alignfull {
	max-width: none;
}

.lala-bg-grey-dark {
	background-color: var(--color-grey-dark);
}

.lala-bg-grey-dark-transparent {
	background-color: var(--color-grey-dark-transparent);
}

.wp-block-contact-form-7-contact-form-selector,
.lala-bg-grey-light {
	background-color: var(--color-grey-light);
}

.lala-bg-grey-light-transparent {
	background-color: var(--color-grey-light-transparent);
}

.lala-nosto {
	margin-top: var(--gap-page-v);
}

.lala-nosto-texts {
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: var(--gap-page-h);
}

.lala-nosto-texts p,
.lala-nosto-texts h2 {
	margin: 0;
}

.lala-nosto img {
	width: 100%;
	object-fit: cover;
	object-position: center;
}

.lala-center p {
	margin-bottom: 2em;
}

.lala-center h2 {
	margin-bottom: 0.5em;
}

.lala-nosto:not(.lala-nosto-kuva) .lala-nosto-text {
	text-align: center;
	align-items: center;
	flex-direction: column;
}

.lala-nosto-kuva .lala-nosto-texts,.lala-nosto_harmaa .lala-nosto-texts {
	flex-direction: column;
	align-items: flex-start;
	gap: var(--gap-page-h);
}

.lala-nosto_harmaa .lala-nosto-texts {
	align-items: center;
	text-align: center;
}

.lala-nosto_liila {
	background-color: var(--color-violet);
	color: #fff;
} 

.lala-nosto_harmaa {
	margin-top: calc(120px + var(--gap-page-v));
	background-color: var(--color-grey-light);
	position: relative;
	padding: 0;
}

.lala-nosto_harmaa .lala-nosto-texts-outer {
	position: absolute;
	top: -120px;
	width: 100%;
	display: flex;
	justify-content: center;
}

.lala-nosto_harmaa .lala-nosto-texts {
	background-color: var(--color-grey-light);
	width: 556px;
	padding: var(--padding-box);
}


.lala-nosto-kuva {
	display: flex;
	gap: var(--gap-page-h);
}

.lala-nosto-kuva:not(.lala-nosto_harmaa) > * {
	flex: 1 1 0;
	width: 0;
}

.lala-front-posts {
	margin-top: var(--gap-page-v);
	display: flex;
	gap: var(--gap-page-h);
}

.lala-front-posts > * {
	flex: 1 1 0;
	width: 0;
	background-color: var(--color-grey-light);
}

.lala-front-posts article {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.lala-front-posts .entry-meta {
	margin-bottom: var(--gap-page-h);
}

.entry-meta-author {
	display: flex;
	gap: var(--gap-page-h);
	align-items: center;
}

/*
.lala-featured-articles-loop .entry-meta-author {
	display: none;
}
*/

.lala-front-posts .entry-meta-author {
	margin-top: var(--gap-page-v);
}

.lala-empty-author-img,
.entry-meta-author img {
	width: 190px;
	height: 190px;
	object-fit: cover;
	object-position: top;
	border-radius: 100%;
	background-color: var(--color-grey-dark);
	flex-shrink: 0;
}

.entry-meta-name {
	text-transform: uppercase;
	margin-bottom: 0.5em;
}

.lala-entry-meta-author-texts {
	display: flex;
	flex-direction: column;
	gap: 1em;
	align-items: flex-start;
}

.entry-excerpt p {
	margin-bottom: 0;
}

.lala-archive-post  .lala-button {
	margin-top: 2em;
}

.wp-block-lala-blocks-lala-ingressi { 
	margin-bottom: var(--margin-entry-content);	
}

.lala-cta-box {
	margin-top: var(--gap-page-v);
	margin-bottom: var(--gap-page-v-big) !important;
}

.lala-cta-box-contact {
	display: flex;
	gap: var(--gap-page-h);
}

.lala-cta-box-contact > * {
	flex: 1 1 0;
	width: 0;
} 

.lala-cta-box-contact .lala-cta-text > * {
	max-width: 400px;
}

.lala-cta-box-form, .lala-cta-box-newsletter {
	text-align: center;
	padding-top: var(--gap-page-v)
}

.lala-cta-box-form form, .lala-cta-box-newsletter form  {
	text-align: left;
	margin: var(--gap-page-v);
}

.lala-experts {
	display: flex;
	grid-template-columns: 1fr 1fr;
	gap: var(--gap-page-v-big);
	flex-wrap: wrap;
	justify-content: flex-start;
}

.lala-experts > * {
	flex-basis: 40%;
	flex-grow: 1;
}

.lala-cat-filter {
	display: flex;
	justify-content: center;
	gap: var(--gap-filter);
	flex-wrap: wrap;
}

.lala-featured-articles {
	margin-top: var(--gap-page-v-big);
	margin-bottom: 	var(--gap-page-v-big);
}

.lala-featured-articles .lala-box {
	background: var(--color-light-violet);
}

.lala-featured-articles > h2 {
	text-align: center;
}

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


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

.site-header {
	display: flex;
	justify-content: space-between;
	min-height: 170px;
	align-items: center;
	padding: var(--padding-header);
	position: relative;
}

.site-title {
	width: 164px;
}

.site-logo img {
	width: 164px;
	max-width: 100%;
	display: block;
}

.site-title {
	margin: 0;
}

.lala-menu-and-actions {
	width: 100%;
	margin-top: var(--gap-page-v);
}

.lala-menu-and-actions > * {
}

.lala-menu-and-lang {
	display: flex;
}

.site-languages {
	min-width: 100px;
}

.lala-search {
	justify-content: flex-end;
}

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

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

button.search-submit {
	border: none;
	padding: 0;
	background-color: transparent;
	min-height: auto;
}

.search-form {
	display: flex;
	padding: 0.5em;
}

.search-form:has(.search-field:not(:placeholder-shown)),
.search-form:has(.search-field:focus) {
	background-color: #fff;
}


.search-form label {
	display: block;
}

input[type="search"].search-field {
	-webkit-appearance: none;
	background-color: transparent;
	margin-top: 0;
	min-height: auto;
}

input[type="search"].search-field:not(:placeholder-shown),
input[type="search"].search-field:focus {
	/*border-bottom: 1px solid var(--color-text);*/
}

input[type="search"].search-field:focus {
	outline: none;
}

.site-languages ul {
	list-style: none;
	margin: 0;
	padding: 0;
	margin-top: 3px;
}

.menu-toggled .site-languages ul {
	width: 100%;
	text-align: center;
}

.site-languages li {
	display: inline;
}

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

.lala-scrolled-up .site-header {
	margin-top: 0;
}
*/


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

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

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

.main-navigation.toggled ul li.focus ul {
	position: static;
	float: none;
	text-align: center;
	padding: 0 15px 15px;
}

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

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

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

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

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

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

.site-title a,
.site-languages a,
.main-navigation a {
	display: block;
	text-decoration: none;
}

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

.main-navigation a:hover {
	text-decoration: underline;
} 

.main-navigation a:not([href]):hover {
	text-decoration: none;
}

.main-navigation .nav-menu > .menu-item > a {	
	padding-bottom: var(--margin-menu-item);
}

.main-navigation.toggled .nav-menu > .menu-item > a {	
	padding-bottom: 0;
}

.main-navigation li.current-menu-item > a,
.main-navigation li.current-menu-ancestor > a {
	text-decoration: underline;
}

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

.main-navigation.toggled > div {
	position:absolute;
	top: 170px;
	background-color: var(--color-background);
	width: 100%;
	left: 0;
	padding-left: 0;
	padding-right: 0;
	z-index: 1;
	padding-bottom: var(--gap-page-v-big);
}

.main-navigation.toggled ul.nav-menu {
	margin-top: 150px;
	text-align: center;
}

.main-navigation.toggled .nav-menu > li > a {
	padding-left: var(--padding-page);
	padding-right: var(--padding-page);
}

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

button.menu-toggle {
	z-index: 3;
	border: none;
	border-radius: 0;
	background: 0 0;
	color: var(--color-text);
	line-height: inherit;
	padding: 0;
	width: auto;
	position: absolute;
	top: calc(50% - 10px);
	right: var(--padding-header);
	box-shadow: none;
	cursor: pointer;
	min-height: auto;
}

.menu-toggle::after {
	display: block;
	content: '';
	width: 34px;
	height: 20px;
	background-repeat: no-repeat;
	vertical-align: middle;
	background-image: url(img/valikko.svg);
	background-size: contain;
}

.toggled .menu-toggle:after {
	background-image: url(img/sulje.svg);
}

.toggle-submenu {
	display: inline-block;
	position: relative;
	width: 50px;
	height: 50px;
	right: 0px;
	top: -7px;
	background: transparent;
	color: var(--color-text);
	padding: 0;
	margin-right: -50px;
}
.toggle-submenu:hover,
.toggle-submenu:active,
.toggle-submenu:focus {
	background: transparent;
}
.toggle-submenu::before {
	position: absolute;
	content: '';
	width: 15px;
	height: 1px;
	border-top: 1px solid;
	display: block;
	right: 16px;
}
.toggle-submenu::after {
	position: absolute;
	content: '';
	width: 1px;
	height: 15px;
	border-left: 1px solid;
	display: block;
	right: 23px;
	top: 18px;
}
.focus .toggle-submenu::after {
	content: none;	
}


.lala-search {
	display: none;
}
.menu-toggled .lala-search {
	display: block;
	position: absolute;
	z-index: 2;
	bottom: -130px;
	left: calc(50% - 110px);
	width: 220px;
}
.menu-toggled .lala-search .search-field {
	padding-left: 10px;
	border-left: solid 1px var(--color-text);	
}

body:not(.menu-toggled) .lala-search input.search-field::placeholder {
	color: transparent;
}

/* Uncomment this to hide language selection: */
/*
.site-languages {
	display: none !important;
}
*/

.site-languages {
	display: none;
}
.menu-toggled .site-languages {
	display: flex;
	position: absolute;
	z-index: 2;
	bottom: -60px;
	left: calc(50% - 100px);
	width: 200px;
}

.lala-menu-and-actions {
	width: auto;
}

.menu-toggled .site-logo {
	
}

@media screen and (min-width: 1010px) {
	
	.lala-search {
		display: flex;
	}
	.site-languages {
		display: block;
	}
	
	.lala-menu-and-actions {
		width: 100%;
	}
	
	.toggle-submenu, .menu-toggle  {
		display: none;
	}

	.main-navigation ul.nav-menu {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: var(--gap-menu);
		width: 100%;
	}
	
	.main-navigation ul.nav-menu > li {

	}
	
	.main-navigation ul.nav-menu > li:hover {
		
	}
	
	.main-navigation ul ul {
		min-width: 210px;
		padding: var(--padding-menu); 
	}
	
	.main-navigation li:hover > a {
		
	}
	.main-navigation:not(.toggled) ul li:hover > ul,
	.main-navigation ul li.focus > ul {
		left: 0;
	}
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
	margin: var(--gap-page-v) var(--padding-box) var(--gap-page-v);
}

.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  {
	margin-top: 2em;
}

.lala-breadcrumbs ol {
	display: flex;
	justify-content: center;
	align-items: center;
	list-style: none;
	gap: 0.5em;
	margin: 0;
	padding: 0;
}

/*
.lala-breadcrumbs ol li + li::before {
	content: '\2192';
	margin-right: 0.5em;
}
*/

.lala-breadcrumbs ol li a::before{
	content: '<';
	margin-right: 0.5em;
}

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

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

/* Front page elements */

.lala-front {
	padding-top: 194px;
}

.lala-front > *,
.lala-front {
	position: relative;
}

.lala-background {
	position: absolute;
	top: -60px;
	
}

.lala-background-image {
	width: calc(100% + 200px);
	margin-left: -100px;
}

.lala-background img {
	mix-blend-mode: darken;
	
}	

.lala-hero {
	width: 584px;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	
}

.lala-hero-text p {
	margin-bottom: 2em;
}

.lala-hero-text h2 {
	margin-top: 0.25em;
	margin-bottom: 0.75em;
}

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

.lala-services-container {
	margin-top: 164px;
	width: 100%;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.lala-services-header p {
	margin: 0;
}

.lala-services {
	
}

.lala-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 60px;
}

.lala-grid-centered {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	column-gap: 90px;
	row-gap: 50px;
	margin-top: 50px;
	margin-bottom: 50px;
}

.lala-grid-centered > * {
	width: 258px;
}


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

.wp-block-table thead {
	text-align: left;
	border-bottom: 1px;
}

.wp-block-table td, .wp-block-table th {
	border-left: none;
	border-right: none;
	padding: 4px;
}

.wp-block-table th {
	border-top: none;	
	padding: 4px;
}

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

.post,
.page {
	
}

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

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

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

.lala-archive-post-archive .lala-archive-post {
	display: flex;
	flex-wrap: wrap;
    padding-bottom: var(--gap-page-v);
}

.lala-archive-post-archive .lala-archive-post > * {
	flex: 1 1 0;
	width: 0;
}

.lala-archive-post-archive .lala-archive-post > .entry-meta {
	flex-basis: 100%;
	margin-bottom: var(--gap-page-h);
}

.lala-archive-post-archive .lala-archive-post > .entry-header > * {
	margin-right: var(--gap-page-v);	
}

.lala-archive-post-archive {
	margin-top: var(--gap-page-v);
	background-color: var(--color-grey-light);	
	position: relative;
}

.lala-archive-post-archive.lala-category-uutinen {
	background-color: var(--color-light-green);
}
.lala-archive-post-archive.lala-category-haastattelu {
	background-color: var(--color-light-green);
}
.lala-archive-post-archive.lala-category-asiakastarina {
	background-color: var(--color-other-green);
}
.lala-archive-post-archive.lala-category-nakemys {
	background-color: var(--color-light-violet);
}
.lala-archive-post-archive.lala-category-oppi {
	background-color: var(--color-violet);
	color: #fff;	
}

.lala-archive-post-archive .lala-archive-post .entry-excerpt,
.lala-archive-post-archive .lala-archive-post .entry-header {
	width: 50%;
}

.lala-archive-post-archive .lala-archive-post .entry-footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    border-bottom: calc(1 * (var(--height-button) )) solid #fff;
    margin-top: var(--height-button);
}

.lala-archive-post-archive .lala-archive-post .lala-button {
    bottom: calc(-0.5 * (var(--height-button) ));
    position: absolute;
}
.single .post-thumbnail {
	margin-top: var(--gap-page-v);
}

#lala-share-links {
	text-align: center;
	margin-top: var(--gap-page-v);
	margin-bottom: var(--gap-page-v);
}

#lala-share-links a {
	text-decoration: none;	
}

.single .entry-footer {
	
}

.wp-block-image {
	margin-top: var(--gap-page-v);
	margin-bottom: var(--gap-page-v);
}

.wp-block-footnotes {
	padding-top: 1em;
	border-top: solid 1px var(--color-text);
}

.single .entry-header .entry-meta {
	text-align: center;
}

.archive-description {
	margin-bottom: var(--gap-page-v);
}

.lala-author-articles {
	text-align: center;
}

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

/* Complianz
--------------------------------------------- */

.cmplz-cookiebanner .cmplz-message p {
  font-size: 15px;
}

 /* All buttons */
.cmplz-btn{
  text-align: center;
  justify-content: center;
  font-size: var(--font-size-button) !important;
  line-height: var(--line-height-button);
  letter-spacing: var(--letter-spacing-button);
  text-transform: uppercase;
  font-weight: var(--font-weight-semibold);
  
}

@media (max-width: 768px) {
  .cmplz-cookiebanner .cmplz-buttons {
	align-items: center;
  }
}


/* Footer
--------------------------------------------- */

.site-footer {
	background-color: grey;
	margin-top: var(--gap-page-v-big);
	padding: var(--padding-box);
	background-color: var(--color-violet);
	color: #fff;
}

.site-info-texts {
	width: 100%;
	display: flex;
	gap: var(--gap-page-h);
}

.site-info-texts > * {
	flex: 1 1 0;
	width: 0;
}

.site-info-texts .widget {
	margin-top: 40px;
}


.site-info-logo img {
	max-width: 130px;
}

.site-info-logos {
	display: flex;
	gap: var(--padding-box) !important;
}

.site-info-logos img {
	display: block;
	height: 90px !important;
	width: auto;
	object-fit: contain;
	object-position: center;
	margin-top: var(--gap-page-v);
}


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

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
}

.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 {
	margin-bottom: 1.5em;
	max-width: 100%;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.gallery-caption {
	display: block;
}

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

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

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

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

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

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

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--color-background);
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	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;
}

/* Mobile version
--------------------------------------------- */

@media screen and (max-width: 1023px) {
	.lala-experts {
	}
	
	.lala-experts > * {
		flex-basis: 100%;
		justify-content: flex-start;
	}
}

@media screen and (max-width: 919px) {
	
	.site-title {
		width: 80px;
	}
	.site-logo {
		display: flex;
		justify-content: center;
		width: 100%;
	}
	.lala-background {
		top: 19px;	
	}
	.lala-front {
		padding-top: 90px;
		overflow: hidden;
	}
	.lala-services-container {
		margin-top: 100px;
		
	}
	.lala-services-container,
	.lala-nosto_liila {
		padding: calc(2* var(--padding-box));
	}
	.lala-grid-centered {
		row-gap: 10px;
		margin-top: 50px;
		margin-bottom: 50px;
	}
	.lala-nosto-texts {
		gap: 35px;
		flex-wrap: wrap;
		justify-content: center;
		text-align: center;
	}
	.lala-services-container .lala-button {
		margin-bottom: calc( -1.25 * ( calc( var(--padding-box) + 0.5 * var(--height-button) ) ) );
	}
	.lala-front-posts {
		flex-wrap: wrap;
	}
	.lala-front-posts > * {
		flex-basis: 100%;
	}
	.entry-meta-author {
		flex-wrap: wrap;
	}
	.lala-box {
		padding: calc(1.5 * var(--padding-box)) var(--padding-box);
	}
	.lala-nosto-kuva {
		flex-wrap: wrap;
	}
	.lala-nosto-kuva:not(.lala-nosto_harmaa) .lala-nosto-texts {
		justify-content: flex-start;
		text-align: left;
	}
	.lala-nosto-kuva:not(.lala-nosto_harmaa) > * {
		flex-basis: 100%;
	}
	.lala-nosto-kuva:not(.lala-nosto_harmaa) > img {
		order: -1;
	}
	.lala-nosto_harmaa {
		margin-top: var(--gap-page-v);
	}
	.lala-nosto_harmaa .lala-nosto-texts-outer {
		position: static;
	}
	.lala-nosto_harmaa .lala-nosto-texts {
		padding: 0;
		width: auto;
	}
	.lala-nosto_harmaa .lala-button {
		position: relative;
		z-index: 1;
	}
	.site-footer {
		padding: var(--gap-page-v) var(--padding-box);
	}
	.site-info-texts {
		flex-wrap: wrap;
		text-align: center;
		justify-content: center;
		gap: var(--gap-page-v);
	}
	.site-info-texts p {
		margin-bottom: 0;	
	}
	.site-info-texts > * {
		flex-basis: 100%;
	}
	
	.site-info-texts .widget {
		margin-top: 0;
	}

	.site-info-logos {
		flex-wrap: wrap;
		justify-content: center;
	}
	.site-info-logos a {
	}
	.site-info-logos img {
		height: 50px !important;
	}
	.entry-header > *, .entry-content > *, .entry-footer > * {
		margin-left: var(--padding-box);
		margin-right: var(--padding-box);
	}
	.lala-box .entry-footer > *,
	.lala-featured-articles,
	.lala-cta-box {
		margin-left: auto;
		margin-right: auto;
	}
	.lala-archive-post-archive .lala-archive-post .entry-excerpt, .lala-archive-post-archive .lala-archive-post .entry-header {
		flex-basis: 100%;
	}
	
	.lala-archive-post > .entry-header > * {
		margin-right: auto;
		margin-left: auto;
	}
	.lala-cta-box-contact {
		flex-wrap: wrap;
	}
	.lala-cta-box-contact > * {
		flex-basis: 100%;
	}
	.lala-cat-filter {
		flex-wrap: wrap;
	}
	.entry-content blockquote {
		padding-left: var(--padding-box);
		padding-right: var(--padding-box);
	}
	#cmplz-manage-consent .cmplz-btn.cmplz-manage-consent {
		padding: 5px 10px;
		height: auto;
		min-height: auto;
		right: 20px;
	}
	
}

@media screen and (max-width: 615px) {
	.lala-hero {
		margin-left: var(--padding-box);
		margin-right: var(--padding-box);
		max-width: calc(100% - 2 * var(--padding-box));
	}
	.entry-meta-author {
		flex-wrap: wrap;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.lala-front-posts .entry-meta-author {
		align-items: flex-start;
		text-align: left;
	}
	
	.lala-entry-meta-author-texts {
		align-items: center;
	}
	.wp-block-table {
		overflow: scroll;
	}
	.wp-block-table > table {
		min-width: 640px;
	}
	.lala-background-image {
	  width: 200%;
	  margin-left: -50%;
	}
}
