/*!
Theme Name: VYL
Author: La&La & Days Agency
Author URI: https://lala.fi
Description: VYL ry:n WordPress-teema
Version: 1.08
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;
}

/*--------------------------------------------------------------
# Fonts
--------------------------------------------------------------*/

/* instrument-serif-regular - latin_latin-ext */
@font-face {
  font-display: swap; 
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/instrument-serif-v4-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* instrument-serif-italic - latin_latin-ext */
@font-face {
  font-display: swap; 
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/instrument-serif-v4-latin_latin-ext-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* instrument-sans-regular - latin_latin-ext */
@font-face {
  font-display: swap; 
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/instrument-sans-v1-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* instrument-sans-italic - latin_latin-ext */
@font-face {
  font-display: swap; 
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/instrument-sans-v1-latin_latin-ext-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* instrument-sans-500 - latin_latin-ext */
@font-face {
  font-display: swap; 
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/instrument-sans-v1-latin_latin-ext-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* instrument-sans-500italic - latin_latin-ext */
@font-face {
  font-display: swap; 
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 500;
  src: url('fonts/instrument-sans-v1-latin_latin-ext-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* instrument-sans-600 - latin_latin-ext */
@font-face {
  font-display: swap; 
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/instrument-sans-v1-latin_latin-ext-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* instrument-sans-600italic - latin_latin-ext */
@font-face {
  font-display: swap; 
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 600;
  src: url('fonts/instrument-sans-v1-latin_latin-ext-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* instrument-sans-700 - latin_latin-ext */
@font-face {
  font-display: swap; 
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/instrument-sans-v1-latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* instrument-sans-700italic - latin_latin-ext */
@font-face {
  font-display: swap; 
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 700;
  src: url('fonts/instrument-sans-v1-latin_latin-ext-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Variables
--------------------------------------------- */
:root {
    --width-main: 1440px;
    --width-content: 800px;
    --padding-main: 60px;
    --padding-header: 32px;
    --color-main: #00402D;/* sammal */
    --color-accent: #4C3DE3;/* vesi */
    --color-1: #E0D9CF;/* maa */
    --color-2: #DEFFAB;/* silmu */
    --color-3: #F4FFE3;/* silmu 2 */
    --color-4: #396A5C;/* sammal 2 */
    --color-5: #C7DCFF;/* sade */
    --color-6: #E0ECFF;/* tihku */
    --color-7: #3AC276;/* lehti */
    --color-8: #F2EFEA;/* maa 2 */
    --font-family-sans: 'Instrument Sans', sans-serif;
    --font-family-serif: 'Instrument Serif', serif;
    --font-size-p: 1.8rem;
    --line-height-p: calc(2.6 / 1.8);
    --letter-spacing-p: 0.01em;
    --font-size-h1: 6rem;
    --line-height-h1: calc(6.5 / 6);
    --letter-spacing-h1: 0;
    --font-size-h2: 2.4rem;
    --line-height-h2: calc(3.3 / 2.6);
    --letter-spacing-h2: 0.04em;
    --font-size-h3: 2rem;
    --line-height-h3: calc(2.7 / 2.1);
    --letter-spacing-h3: 0;
    --font-size-h4: 2.1rem;
    --line-height-h4: calc(2.9 / 2.1);
    --letter-spacing-h4: 0.02em;
    --font-size-list-title: 2.3rem;
    --line-height-list-title: calc(3 / 2.4);
}

/* Colors
--------------------------------------------- */
.color-1 {
    background-color: var(--color-1);
}

.color-2 {
    background-color: var(--color-2);
}

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

.color-4 {
    background-color: var(--color-4);
}

.color-5 {
    background-color: var(--color-5);
}

.color-6 {
    background-color: var(--color-6);
}

.color-7 {
    background-color: var(--color-7);
}

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

body, button, input, select, optgroup, textarea {
    color: var(--color-main);
    font-family: var(--font-family-sans);
    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-weight: 400;
	margin-top: 2.22em;
}

h1 {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-h1);
    line-height: var(--line-height-h1);
    letter-spacing: var(--letter-spacing-h1);
    text-align: center;
    margin: 0 0 40px;
}

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

h2 strong {
	font-weight: 400;
}

.entry-content h2, 
.page-template-page-front .site-main .vapaa-nosto h2,
.page-template-page-front .site-main .lala-links h2 {
	text-transform: uppercase;
	font-family: var(--font-family-sans);
}

.page-template-page-front .site-main .vapaa-nosto h2,
.page-template-page-front .site-main .lala-links h2 {
	font-size: 3.5rem;
	letter-spacing: var(--letter-spacing-h2);
	line-height: var(--line-height-h2);
}


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

h3 strong {
	font-weight: 500;
}

h4 {
	font-weight: 500;
}

.lala-grid h2, .lala-grid h3, .search-results h2 {
    font-size: var(--font-size-list-title);
    font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	margin: 0;
}

.search-results h2 {
	margin-bottom: 5px;
}

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

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

blockquote, blockquote p {
    margin: 40px var(--padding-main);
    font-family: var(--font-family-serif);
    font-size: 2.7rem;
    font-style: italic;
}

blockquote cite {
    font-family: var(--font-family-sans);
    font-style: normal;
    font-size: var(--font-size-p);
    margin: 0 var(--padding-main);
}

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

b, strong {
    font-weight: 600;
}

.wp-block-lala-blocks-lala-ingressi {
	font-size: 2rem;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

.wp-block-lala-blocks-lala-infobox-with-title {
	background: var(--color-1);
	padding: var(--padding-header);
	margin: 2.22em 0;
}
.wp-block-lala-blocks-lala-infobox-with-title h2 {
	font-size: 1.9rem;
	margin-top:0;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

h2:empty {
	display: none;
}

.wp-block-lala-blocks-lala-infobox-with-title p {
	font-size: 1.8rem;
	letter-spacing: 0.01em;
	margin: 0 0 20px 0;
}

:where(.wp-block-file) {
	margin-bottom: 40px;
}

/* Icons */

@font-face {
      font-family: 'lala_icons';
      src: url('icons/lala_icons.eot?82877183');
      src: url('icons/lala_icons.eot?82877183#iefix') format('embedded-opentype'),
           url('icons/lala_icons.woff?82877183') format('woff'),
           url('icons/lala_icons.ttf?82877183') format('truetype'),
           url('icons/lala_icons.svg?82877183#lala_icons') format('svg');
      font-weight: normal;
      font-style: normal;
    }


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

.icon-arrow-right:before, 
.wp-block-button__link:after,
.lala-button:after,
.nav-previous a:after,
a:not([href^="#"],[href^="/"],[href^="javascript"],[href^="tel"],[href*="localhost"],[href*="www.vyl.fi"],[href*="u79114.www2.webdomain.fi"]
)::after {
	content: '\e800'; 
	font-weight: 700;
	font-size: 75%;
	vertical-align: 2px;
	margin-left: 5px;
} 
.icon-arrow-left:before,
.nav-next a:before { 
	content: '\e807'; 
	font-weight: 700;
	margin-right: 5px;
	font-size: 75%;
	vertical-align: 2px;
	
} 
.icon-arrow-down:before { content: '\e809'; }
.icon-arrow-up:before { content: '\e80b'; } 

.icon-right-open-big:before {
    content: '\e805';
}

.icon-left-open-big:before {
    content: '\e801';
}

.icon-down-open-big:before {
    content: '\e802';
}

.icon-up-open-big:before {
    content: '\e803';
}

.icon-x-twitter:before, .social a[href*="twitter.com"]:before  {
    content: '\e804';
}

.icon-globe:before {
    content: '\e806';
}

.icon-link:before {
    content: '\e80a';
}

.icon-search:before {
    content: '\e900';
}

.icon-link-ext:before {
    content: '\f08e';
}

.icon-twitter:before {
    content: '\f099';
}

.icon-facebook:before, .social a[href*="facebook.com"]:before {
    content: '\f09a';
}

.icon-linkedin:before, .social a[href*="linkedin.com"]:before {
    content: '\f0e1';
}

.icon-angle-left:before {
    content: '\f104';
}

.icon-angle-right:before {
    content: '\f105';
}

.icon-angle-up:before {
    content: '\f106';
}

.icon-angle-down:before {
    content: '\f107';
}

.icon-youtube:before, .social a[href*="youtube.com"]:before {
    content: '\F16A';
}

.icon-instagram:before, .social a[href*="instagram.com"]:before {
    content: '\f16d';
}

.icon-file-pdf:before {
    content: '\f1c1';
}

.icon-file-word:before {
    content: '\f1c2';
}

.icon-file-excel:before {
    content: '\f1c3';
}

.icon-file-powerpoint:before {
    content: '\f1c4';
}

.icon-file-image:before {
    content: '\f1c5';
}

.icon-file-archive:before {
    content: '\f1c6';
}

.icon-pinterest:before, .social a[href*="pinterest.com"]:before {
    content: '\f231';
}

.icon-vimeo:before, .social  a[href*="vimeo.com"]:before {
    content: '\f27d';
}

.icon-mail:before { content: '\e808'; } 


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

hr, .wp-block-separator {
    background-color: var(--color-main);
    border: 0;
    height: 1px;
    margin: 50px 0;
}

ul, ol {
    margin: 0 0 2.22em 2em;
	padding: 0;
}

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%;
	word-break:normal;
}

.wp-block-table th, .wp-block-table td,
.wp-block-table.is-style-stripes td, .wp-block-table.is-style-stripes th {
	border: none;
	border-bottom: 1px solid;
	padding: 15px;
	font-size: 1.6rem;
	font-weight: 500;
	width: auto;
}

.wp-block-table thead,
.wp-block-table.is-style-stripes {
	border: none;
}

.wp-block-table th {
	background: var(--color-2);
	text-transform: uppercase;
	text-align: left;
	letter-spacing: 0.02em;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: transparent;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(even) {
	background: var(--color-8)
}

details {
	margin-bottom: 10px;
}

details summary {
	background: var(--color-8);
	padding: 15px;
	position: relative;
}

details > * {
	padding: 10px;
}

details summary:after {
	content: "";
	position: absolute;
	right: 15px;
	top: 15px;
	width: 13px;
	height: 13px;
	border-top: 1px solid;
	border-right: 1px solid;
	transform: rotate(135deg);
}

details summary div > * {
	margin: 0;
}


.wp-block-columns {
	margin-top: 50px;
}

/* Links
--------------------------------------------- */
a {
    color: var(--color-main);
    text-decoration: underline;
}

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

a:hover {
    transition: 0.5s color;
}

a:focus {
	outline-offset: 2px;
}

.site-footer a:focus {
	outline-color: inherit;
}

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

a:not([href^="#"],[href^="/"],[href^="javascript"],[href^="tel"],[href*="localhost"],[href*="www.vyl.fi"],[href*="u79114.www2.webdomain.fi"])::after {
  background: var(--color-main);
	color: #fff;
	padding: 3px 5px 2px 3px;
	font-size: 45%;
	font-weight: 900;
	display: inline-block;
	line-height: 1;
	margin-left: 3px;
	vertical-align: 3px;
	width: 15px;
	height: 14px;
	text-decoration: none;
}

a:not([href^="#"],[href^="/"],[href^="javascript"],[href^="tel"],[href*="localhost"],[href*="www.vyl.fi"],[href*="u79114.www2.webdomain.fi"]
):hover::after  {
	background: var(--color-accent);
}

a.lala-button:not([href^="#"],[href^="/"],[href^="javascript"],[href^="tel"],[href*="localhost"],[href*="www.vyl.fi"],[href*="u79114.www2.webdomain.fi"])::after,
a.wp-block-button__link:not([href^="#"],[href^="/"],[href^="javascript"],[href^="tel"],[href*="localhost"],[href*="www.vyl.fi"],[href*="u79114.www2.webdomain.fi"])::after  {
	transform: rotate(-45deg);
	font-size: 70%;
	background: transparent;
	vertical-align:initial;
	color: inherit;
}

.social a:after, .gallery a:after, 
.wp-block-gallery a:after, .wp-block-image a:after {
	content:none !important;
}

/* Forms
--------------------------------------------- */
.wp-block-buttons {
	margin-bottom: 40px;
}

button, input[type="button"], 
input[type="reset"], 
input[type="submit"], 
.lala-button, 
.wp-block-button__link, 
.page-template-page-front .lala-links .lala-button,
.page-template-page-front .lala-links .wp-block-button__link,
.wp-block-file__button,
.nav-links a {
    border: none;
    border-color: var(--color-main);
    border-radius: 0;
    background: var(--color-main);
    color: #fff;
    line-height: 1;
    padding: 1em;
	font-size: 1.4rem;
	text-transform: uppercase;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-decoration: none;
}

.entry-content form button, 
.entry-content form input[type="submit"],
.event-register-link {
    width: 100%;
    display: block;
}

form p {
	margin-bottom: 20px;
}

button:hover, 
input[type="button"]:hover, 
input[type="reset"]:hover, 
input[type="submit"]:hover, 
.lala-button:hover,
.wp-block-button__link:hover,
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:hover,
.page-template-page-front .lala-links .lala-button:hover,
.page-template-page-front .lala-links .wp-block-button__link:hover {
    background: var(--color-accent);
    color: #fff;
}

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,
.lala-button:focus,
.wp-block-button__link:focus,
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:focus,
.page-template-page-front .lala-links .lala-button:focus,
.page-template-page-front .lala-links .wp-block-button__link:focus{
    outline-offset: 10px;
}

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-main);
    border: 1px solid var(--color-main);
    border-radius: 0;
    padding: 3px;
	display: block;
	margin-top: 5px;
	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-accent);
	border: 1px solid transparent;
	outline: 1px solid var(--color-accent);
}

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

textarea {
    width: 100%;
}

.lianamailer-formfield-error {
	margin-bottom: 20px;
	color: red;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/
/* Header
--------------------------------------------- */
.global-header {
    position: relative;
    font-size: 1.3rem;
    padding: var(--padding-header);
	min-height: 106px;
}

.global-header p, .global-header h1 {
    padding: 0;
    margin: 0;
    line-height: 0;
    text-align: center;
}

.global-header a {
    text-decoration: none;
}

.main-site-logo {
    position: absolute;
    left: var(--padding-header);
    top: var(--padding-header);
}

.main-site-logo img {
    width: 63px;
    max-width: 100%;
}

.main-site-title img {
    display: inline-block;
	margin-top: 18px;
}

.global-functions {
    position: absolute;
    right: var(--padding-header);
    top: var(--padding-header);
    text-align: right;
}

.global-functions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

.search-form {
    display: flex;
}

.search-form label {
    display: block;
}

button.search-submit {
    background: transparent;
    color: var(--color-main);
    padding: 0;
}

input[type="search"].search-field::placeholder {
	color: var(--color-main);
} 

input[type="search"].search-field {
    -webkit-appearance: none;
    background-color: transparent;
	font-size: 1.3rem;
	color: var(--color-main);
	width: 50px;
	margin-top: 0;
	text-transform: uppercase;
}

.search-form input[type="search"].search-field:active,
.search-form input[type="search"].search-field:focus {
    outline: none;
	border-bottom: 1px solid var(--color-main);
	width: 100px;
}

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

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

.site-languages li {
    display: inline;
}

/* fixattu header joka ilmestyy kun skrollaa ylos. kommentoi esiin myos 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;
}
*/
/* Main content */
.main-width {
    max-width: var(--width-main);
    margin: 0 auto;
    padding: var(--padding-main) 0;
}

/* Footer */

.site-footer {
    background: var(--color-main);
    color: var(--color-2)
}

.site-footer h2 {
	text-transform: uppercase;
	font-size: 2rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	margin: 0 0 var(--padding-header);
}

.site-info {
    display: flex;
    max-width: var(--width-main);
    margin: 0 auto;
    padding: var(--padding-main);
    font-size: 1.6rem;
    justify-content: space-between;
    align-items: flex-start;
}
.site-info > * {
	margin-right: 10px;
}

.site-info p, .site-info li {
    font-size: 1.6rem;
}

.footer-1 {
    flex-basis: 50%;
}

.site-footer a {
    color: inherit;
}

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

.footer-4 a {
    font-family: var(--font-family-serif);
    text-decoration: none;
    font-size: 3.2rem;
    /* color: var(--color-3); */
}

.footer-4 a:after {
    content: '\e800';
    font-size: 2.3rem;
}

.footer-5 {
	padding: 0 var(--padding-main);
}

.footer-5 section {
	border-top: 1px solid;
	padding: var(--padding-main) 0;
}

.footer-5 .gallery img {
	filter: brightness(0) invert(1);
}

.footer-5 .gallery .gallery-item {
	display: flex;
	align-items: center;
}

.social a {
	text-decoration: none;
}

.social li {
	display: inline-block;
}

.grecaptcha-badge {opacity:0}

/* Cookies */

#cmplz-cookiebanner-container .cmplz-cookiebanner.cmplz-bottom {
    margin: 0;
    width: 100%;
    max-width: 100%;
}
.cmplz-cookiebanner .cmplz-header {
    grid-template-columns: 200px 1fr 100px;
}
.cmplz-cookiebanner .cmplz-title, 
.cmplz-cookiebanner .cmplz-close,
.cmplz-cookiebanner .cmplz-logo {
    display: none;
}    
.cmplz-cookiebanner .cmplz-categories .cmplz-category { 
	background-color: #fff
}

.cmplz-cookiebanner .cmplz-message p {
	font-size: 1.5rem;
	margin-bottom: 0;
}

.cmplz-subtitle {
	margin-bottom: 1em;
}

@media (min-width: 1024px) {
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
    min-width: 220px !important;
    width: 100%;
}
}
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
    font-weight: 900;
}
.cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-banner-checkbox input.cmplz-consent-checkbox:focus + .cmplz-label:before {
	box-shadow: none;
	outline-offset: 3px;
  outline: dotted 2px var(--main-color);
}

.cookies-per-purpose {
	border: 1px solid;
	margin-bottom: 40px;
}

.cookies-per-purpose h4 {
	margin: 0;
}

#cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-categories .cmplz-category .cmplz-category-header .cmplz-icon.cmplz-open,
.cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-category-header .cmplz-icon.cmplz-open {
	display: none;
}

#cmplz-manage-consent-container.cmplz-manage-consent-container .cmplz-categories .cmplz-category .cmplz-category-header,
.cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-category-header {
	padding: 0 !important;
}

/* Navigation
--------------------------------------------- */
.main-navigation {
    display: block;
    width: 100%;
    background: var(--color-5);
}

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

.main-navigation .featured-menu-item {
	display: none;
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 1000;
	max-width: 660px;
}

.featured-menu-item > * {
	padding: var(--padding-main);
	flex-basis: 100%;
}

.featured-menu-item-text {
	padding-right: 0;
}

.featured-menu-item-image {
	padding-left: 40px;
}

.featured-menu-item .featured-menu-item-text a {
	display: inline-block;
}

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

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

.main-navigation .sub-menu .sub-menu,
.main-navigation .sub-menu .toggle-submenu {
    display: none !important;
}	

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

.main-navigation li {
    z-index: 1;
    padding: 20px;
}

.main-navigation li li {
	padding: 0;
	margin-bottom: 8px;
}

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

.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 {
    background-color: var(--color-5);
    width: 100%;
    left: 0;
    min-height: 100vh;
    padding-left: 0;
    padding-right: 0;
    z-index: 1;
}

.admin-bar .main-navigation.toggled > div {
	top: calc(32px + 67px);
}

.main-navigation.toggled #primary-menu > li > a {
    padding: var(--padding-main);
}

.main-navigation.toggled ul {
	min-height: auto;
}

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

button.menu-toggle {
	position: absolute;
	right: var(--padding-header);
	z-index: 3;
	border: none;
	border-radius: 0;
	background: transparent;
	min-width: initial;
	width: 14px;
	height: 11px;
	border-radius: 0;
	border: 1px solid var(--color-main);
	border-left: none;
	border-right: none;
	padding: 0;
}

.admin-bar button.menu-toggle {
	top: 72px;
}

.menu-toggle:hover, .menu-toggle:focus {
	border-color: var(--color-accent);
	cursor: pointer;
}

.menu-toggle:focus {
	
}

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

.menu-toggle:before {
	content: "";
	width: 14px;
	border-top: 1px solid var(--color-main);
	height: 1px;
	position: absolute;
	left: 0;
	top: 4px;
}

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

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


.main-navigation.toggled li {
	position: relative;
	width: 100%;
	padding: 0;
}

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

.toggle-submenu, .toggle-submenu:hover {
    display: block;
    width: 50px;
    height: 50px;
    right: 10px;
    top: 8px;
    position: absolute;
	background: transparent;
	color: var(--color-main);
}

.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:before {
	color: #fff;
}

.focus .toggle-submenu:after {
	display: none;
}

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

.comment-navigation .nav-links, 
.posts-navigation .nav-links, 
.post-navigation .nav-links {
    display: flex;
	justify-content: center;
	margin: var(--padding-main);
}

.nav-links a {
	margin: 20px;
	display: block;
}

.comment-navigation .nav-previous, 
.posts-navigation .nav-previous, 
.post-navigation .nav-previous {  
	order: 1;
}

.comment-navigation .nav-next, 
.posts-navigation .nav-next, 
.post-navigation .nav-next {
    
}

/* Front page elements */
.lala-flexible {
    display: flex;
	padding: var(--padding-main);
}

.lala-flexible > * {
    flex-basis: 100%;
	display: flex;
	align-items: center;
}

.lala-flexible > *:first-child {
	padding-right: calc(var(--padding-main) / 2);
}

.lala-flexible > *:nth-child(2) {
	padding-left: calc(var(--padding-main) / 2);
}

.julkaisunosto .lala-flexible-right {
	flex-basis: 55%;
}

.lala-flexible-wrapper:nth-of-type(odd) .lala-flexible > *:first-child {
    order: 1;
	padding-left: calc(var(--padding-main) / 2);
	padding-right: 0;
}
.lala-flexible-wrapper:nth-of-type(odd) .lala-flexible > *:nth-child(2) {
	padding-right: calc(var(--padding-main) / 2);
	padding-left: 0;
}

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

.lala-hero {
    background: var(--color-1);
    padding: 0 var(--padding-main);
}

.lala-hero .lala-flexible-right {
	padding: 0;
	margin-right: calc(var(--padding-main) * -1);
	display: flex;
	align-items: center;
}

.lala-hero .lala-flexible-image,
.lala-hero .lala-flexible-image img {
	height: 100%;
}

.lala-hero .lala-flexible-image img {
	object-fit: cover;
}

.lala-hero .lala-flexible-text {
	padding: calc(var(--padding-main) / 2 ) var(--padding-main) 0 10px;
	
}

.kuvio figure {
	margin: 0;
}

.kuvio .lala-flexible-image {
	position: relative;
}

.kuvio .lala-flexible-image svg{
	position: absolute;
	left: 0;
	top: 0;
	max-width: 100%;
	display: block;
}

.kaksi-nostoa .lala-flexible .lala-flexible-text {
	padding: var(--padding-main);
	background: #fff;
}

.page-template-page-front .site-main h2 {
    font-family: var(--font-family-serif);
    font-size: 7.8rem;
    line-height: 1.02;
    margin: 0 0 25px 0;
	letter-spacing: 0;
}

.page-template-page-front .site-main .lala-hero h2 {
	margin: var(--padding-main) 0;
}

.page-template-page-front .site-main p {
    font-size: 1.9rem;
}

.lala-hero .lala-button,
.lala-hero .wp-block-button__link {
	margin-bottom: var(--padding-main);
}

.lala-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--padding-main);
}

.lala-grid .post-image {
    position: relative;
}

.lala-grid .post-thumbnail img {
	aspect-ratio: 1 !important;
	object-fit: cover;
}

.lala-grid .post-thumbnail:empty {
	/*background: var(--color-4);*/
	background-image: url(img/kuvitus1.png);
	background-size: cover;
	padding-bottom: 100%;
}
/*
.lala-grid a:nth-of-type(4n+2) .post-thumbnail:empty {
	background: var(--color-5);
}

.lala-grid a:nth-of-type(4n+3) .post-thumbnail:empty {
	background: var(--color-6);
}

.lala-grid a:nth-of-type(4n+4) .post-thumbnail:empty {
	background: var(--color-7);
} */

.lala-flexibles .lala-flexibles-title {
	margin-bottom: var(--padding-header);
	flex-basis: 55%;
}

.lala-flexibles .lala-recent-posts, .lala-links {
	padding: var(--padding-main);
}

.lala-events-list {
	display: flex;
}

.lala-events-list .events-list {
	flex-basis: 100%;
}

.lala-events-list .events-list p {
	color:inherit;
	font-size: 1.5rem;
}

.lala-flexibles .lala-events-list > * {
	margin: 0 var(--padding-main);
}

.lala-flexibles .events-list a:hover {
	color: #fff;
	border-color: var(--color-main);
}

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

.lala-grid .entry-meta {
    text-align: left;
    position: absolute;
    bottom: 0;
    background: var(--color-2);
    padding: 10px;
}

.lala-grid > * {
    background: #fff;
    text-decoration: none;
}

.lala-grid .post-title {
    padding: 20px;
}

.page-template-page-front .lala-button,
.featured-menu-item .lala-button,
.page-template-page-front .wp-block-button__link,
.featured-menu-item .wp-block-button__link ,
.nav-links a {
    border: 1px solid;
    border-radius: 0;
    background: transparent;
    color: inherit;
    line-height: 1;
    padding: 10px;
}

.page-template-page-front .lala-button:after,
.featured-menu-item .lala-button:after,
.page-template-page-front .wp-block-button__link:after,
.featured-menu-item .wp-block-button__link:after {
	margin-left: 5px;
	font-size: 80%;
	font-weight: 900;
	vertical-align: 2px;
} 

.page-template-page-front a.lala-button:not([href^="#"],[href^="/"],[href^="javascript"],[href^="tel"],[href*="localhost"],[href*="www.vyl.fi"],[href*="u79114.www2.webdomain.fi"])::after,
.page-template-page-front a.wp-block-button__link:not([href^="#"],[href^="/"],[href^="javascript"],[href^="tel"],[href*="localhost"],[href*="www.vyl.fi"],[href*="u79114.www2.webdomain.fi"])::after {
	color: inherit;
}

.page-template-page-front .lala-button:hover,
.featured-menu-item .lala-button:hover,
.page-template-page-front .wp-block-button__link:hover,
.featured-menu-item .wp-block-button__link:hover,
.nav-links a:hover {
	color: var(--color-accent);
}
.lala-links {
	display: flex;
	justify-content: space-between;
	align-content: center;
	align-items: center;
}

.lala-links .lala-flexibles-title {
	flex-basis: auto;
	margin: 0;
}

.lala-links .lala-flexibles-title h2  {
	margin: 20px 0;
}

.lala-links-grid {
	text-align: right;
	flex-basis: auto;
}

.lala-links a.lala-button,
.lala-links a.wp-block-button__link {
	margin: 20px;
}



/* Posts and pages
--------------------------------------------- */
.lala-breadcrumbs {
    background: var(--color-2);
    padding: 20px;
    padding-left: var(--padding-main);
    font-size: 1.4rem;
    text-transform: uppercase;
	color: var(--color-4);
	font-weight: 500;
	letter-spacing: 0.05em;
}

.lala-breadcrumbs a {
    text-decoration: none;
    /* color: var(--color-main); */
}

.lala-breadcrumbs .icon-arrow-right:before {
	font-size: 60%;
	margin-left: 0;
	vertical-align: 2px;
	font-weight: 900;
	color: var(--color-main);
}

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

.blog .lala-grid, .archive .lala-grid {
	padding-left: var(--padding-main);
	padding-right: var(--padding-main);
}

article {
    max-width: var(--width-main);
    margin: 0 auto;
    padding: var(--padding-main);
}

.entry-header {
    padding: 0;
}

.single .post-thumbnail {
    margin-top: var(--padding-main);
}

.single-tapahtuma .post-thumbnail {
	margin-bottom: var(--padding-header);
}

.post-thumbnail img {
    width: 100%;
    display: block;
}

.single-post .post-thumbnail img,
.page .post-thumbnail img {
	aspect-ratio: 1320 / 500;
	object-fit: cover;
}

.entry-meta {
    text-align: center;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.04em;
    font-size: 1.3rem;
	font-family: var(--font-family-sans);
}

.entry-meta span {
    margin-right: 20px;
}
.entry-meta span:last-child {
	margin-right: 0;
}

.content-area {
    display: flex;
    margin-top: 40px;
    margin-bottom: 80px;
}

.subpage-menu {
    width: 280px;
    padding-right: var(--padding-main);
}

.page-content, .entry-content {
    width: 100%;
    max-width: var(--width-content);
    margin: 0 auto;
}

.subpage-menu + .entry-content, .subpage-menu + .page-content {
    margin: 0;
}

.entry-footer {
    border-top: 1px solid;
    text-transform: uppercase;
    display: flex;
}

.entry-footer > * {
    flex-basis: 50%;
}

.entry-footer h2 {
    font-size: 1.9rem;
}

.entry-footer p {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.04em;
	margin-right: 20px;
}

.entry-share a {
    text-decoration: none;
}

.subpage-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
	font-size: 2rem;
}

.subpage-menu li {
	margin-bottom: 8px;
	line-height: 1.3
}

.subpage-menu ul ul {
    margin-left: 20px;
    font-size: 1.5rem;
	margin-top: 10px;
}

.subpage-menu .current-menu-item > a {
    text-decoration: none;
	color: var(--color-4);
}

/* Consistent top and bottom margin */
.entry-content > *:last-child, 
.entry-content > *:last-child > *:last-child, 
.entry-content > *:last-child > *:last-child > *:last-child,
.wp-block-column > *:last-child {
    margin-bottom: 0;
}

.entry-content > *:first-child, 
.entry-content > *:first-child > *:first-child, 
.entry-content > *:first-child > *:first-child > *:first-child,
.wp-block-column > *:first-child {
    margin-top: 0;
}

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

/* Events */

.event-actions {
	margin-bottom: 30px;
}

dl.event-details {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
    font-size: 1.6rem;
}

dt, dd {
    padding: 0.5em 0;
    border-bottom: 1px solid;
}

dt {
    flex-basis: 30%;
    margin: 0;
    font-weight: 600;
}

dd {
    flex-basis: 70%;
    margin: 0;
}

.events-list {
    border-bottom: 1px solid;
}

.events-list a {
    display: flex;
    border-top: 1px solid;
    text-decoration: none;
}

.events-list a > * {
    padding: 15px 0;
}

.events-list .event-time {
    flex-basis: 300px;
    padding-right: 20px;
    text-transform: uppercase;
}

.events-list .entry-meta {
    text-align: left;
}

.events-list .event-place {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.events-list .event-place > * {
	margin-top: 5px;
}

.events-list .event-title {
    width: 100%;
}

.events-list h3, .events-list h2 {
    font-size: var(--font-size-list-title);
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
}

.events-list h3, .events-list h2, .events-list p {
    margin: 0;
}

.event-title p {
    text-transform: uppercase;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.04em;
}


/* People */

.page-template-page-people .entry-content {
	text-align: center;
}

.people {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
	text-align: left;
}

.people h2, .featured-link-title {
	font-size: 3.2rem;
	font-family: var(--font-family-serif);
	letter-spacing: 0.01em;
	margin: 20px 0;
	text-transform: none;
	line-height: 1.03;
}

.people p {
	font-size: 1.9rem;
	margin-bottom: 20px;
}

.people p.description {
	font-size: 1.6rem;
	margin-bottom: 0;
}

/* Search */

.search h1 .entry-meta {
	margin-bottom: 20px;
	font-style: normal;
}

.search h1 {
	font-style: italic;
}

.entry-header .search-form {
	margin: 0 0 40px 0;
	justify-content: center;
}

.entry-header .search-form input[type="search"].search-field {
	font-size: inherit;
	width: auto;
	border-bottom: 1px solid var(--color-1);
	margin-right: 20px;
}

a.post-link {
	text-decoration: none;
}

.search-results.entry-content .entry-meta {
	text-align: left;
}

.search-results a.post-link {
	padding: 25px 0;
	border-top: 1px solid;
	display: block;
}


/* 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;
}
*/
/* Comments
--------------------------------------------- */
.comment-content a {
    word-wrap: break-word;
}

.bypostauthor {
    display: block;
}

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

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

figure {
	margin-bottom: 40px;
}

figcaption {
	font-size: 1.6rem;
	color:var(--color-4);
}

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

.wp-block-gallery.has-nested-images figure.wp-block-image {
	flex-grow: 0;
}	

.logot.wp-block-gallery.has-nested-images {
	align-items: center;
	align-content: center;
	
}

.logot.wp-block-gallery.has-nested-images figure.wp-block-image {
	padding: 40px;
	align-items: center;
}

.logot.wp-block-gallery.has-nested-images figure.wp-block-image img {
	max-height: 100px;
	width: auto !important;
	max-width: 200px;
	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: #fff;
	border: 1px solid;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.3);
    clip: auto !important;
    clip-path: none;
    color: var(--color-main);
    display: block;
    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: 1441px) {
	.lala-hero {
	    padding: 0;
		max-width: 100%;
	}

	.lala-hero .lala-flexible-text {
		padding: 0 var(--padding-main);
		max-width: 600px;
	}

	.lala-hero .lala-flexible-left {
		justify-content: end;
	}

	.lala-hero .lala-flexible-right {
		padding: 0;
		margin-right: 0;
	}
	
	.lala-hero .lala-flexible-image {
		width: 100%;
		max-height: 700px;
	}
	
	.lala-hero .lala-flexible-image img {
		display: block;
		object-fit: cover;
	}

}

@media screen and (min-width: 920px) {
    .toggle-submenu, .menu-toggle {
        display: none;
    }

    .main-navigation ul#primary-menu {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
    }

    .main-navigation ul#primary-menu > li {
    }

	.main-navigation ul#primary-menu > li:hover {
	    background: var(--color-accent);
	}

	.main-navigation ul#primary-menu > li.menu-item-has-children:hover:after {
	    background: var(--color-6);
		content: "";
		width: 36px;
		height: 36px;
		position: relative;
		display: block;
		bottom: -55px;
		z-index: 100;
		transform: rotate(45deg);
		margin-left: calc(50% - 18px);
		margin-top: -36px
	}

	.main-navigation ul#primary-menu > li:hover > a {
		color: #fff;
	}

	.main-navigation ul#primary-menu > li:hover > a:hover {
		text-decoration: underline;
	}

	.main-navigation ul ul {
		padding: var(--padding-main);
	}

    .main-navigation li:hover > a {
    }

	.main-navigation:not(.toggled) ul li > ul, 
	.main-navigation ul li > ul {
		height: 300px;
	}

    .main-navigation:not(.toggled) ul li:hover > ul, 
	.main-navigation ul li.focus > ul {
        left: 0;
        position: absolute;
        background-color: var(--color-6);
        /* min-height: 478px; */
        height: 478px;
        transition: 0.3s height;
    }
	.main-navigation:not(.toggled) ul li:hover .featured-menu-item,
	.main-navigation ul li.focus .featured-menu-item {
		display: flex;
	}
	
	.mobile {
    	display: none;
	}
}

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

	.site-info {
		flex-wrap: wrap;
	}
	.footer-1 {
		flex-basis: 100%;
		margin: var(--padding-main) 0;
	}

}


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

	.global-header {
		min-height: 66px;
	}
    
	.desktop, .main-navigation .mobile {
		display: none;
	}

	button.menu-toggle {
		top: 45px;
	}
	
	.main-navigation.toggled .mobile {
    	display: block;
	}

	.global-functions {
		position: static;
		text-align: left;
		padding: 10px 20px;
	}

	.global-functions .search-form {
		padding-top: 40px;
	}

	.global-functions .search-form label {
		flex-basis: 100%;
	}

	.global-functions input[type="search"].search-field {
		width: 100%;
		border-bottom: 1px solid;
	}

	.main-navigation.toggled .primary-menu-container {
	    top: 84px;
	}
	.main-navigation.toggled #primary-menu > li > a {
		padding: 20px;
	}

	.main-navigation ul {
		font-size: 1.7rem;
	}

	.main-navigation li.focus > a {
		background: var(--color-accent);
		color: #fff;
	}

	.main-navigation .sub-menu li.focus > a {
		background: transparent;
		color: inherit;
	}


	.main-site-title img {
		max-width: 200px;
		margin-top: 10px;
		margin-left: 20px;
	}

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

	.lala-flexible, .lala-events-list {
		flex-wrap: wrap;
	}

	.lala-flexibles .lala-flexibles-title {
		flex-basis: 100%;
	}

	.lala-flexible > * {
		margin: 20px 0;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.lala-flexible .lala-flexible-left {
		order: 0 !important;
	}

	.lala-hero .lala-flexible-right {
	    margin: 0 -20px 0 -20px;
		flex-basis: calc(100% + 40px);
	}

	.lala-hero .lala-flexible-right img {
		width: calc(100% + 40px);
	}

	.julkaisunosto .lala-flexible-left {
		order: 2 !important;
	}

	.julkaisunosto .lala-flexible-right {
		flex-basis: 100%;

	}

	.kaksi-nostoa .lala-flexible .lala-flexible-text {
		padding: 40px var(--padding-main);
	}

	.lala-flexibles .lala-events-list .events-list {
		margin-top: 30px;
	}

	.events-list a {
		display: block;
		margin-top: 0px;
	}

	.events-list .event-time > *, .event-place > * {
		display: inline-block;
	}

	.event-place > * {
		margin: 0 20px 0 0;
	}

	.events-list .event-time {
		margin-right: 10px;
		padding-right: 0;
		padding-bottom: 0;
	}

	.events-list h3, .events-list h2 {
		margin: -5px 0 5px 0;
	}

	dt, dd {
		font-size: 1.3rem;
		flex-basis: 50%;
	}

	dl.event-details {
		margin-bottom: 20px;
	}

	.lala-grid {
	    grid-template-columns: repeat(2, 1fr);
	}
	.lala-links {
		display: block;
	}

	.lala-links-grid {
		text-align: left;
	}

    .lala-links a.lala-button,
	.lala-links a.wp-block-button__link {
		display: block;
		margin: 0 0 20px 0;
	}

	.site-info {
		display: block;
		text-align: center;
	}

	.footer-5 {
		text-align: center;
	}
}

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

	:root {
        --padding-main: 20px;
        --padding-header: 20px;
        --font-size-p: 1.5rem;
        --font-size-h1: 4.4rem;
        --font-size-h2: 2.2rem;
        --font-size-h3: 1.8rem;
        --font-size-h4: 1.8rem;
        --font-size-list-title: 2rem;
    }

	h1, h2, h3, h4, h5, h6 {
	    margin-top: 1.35em;
	}

	p, ul, ol {
		margin-bottom: 1em;
	}

	.wp-block-table th, 
	.wp-block-table td, 
	.wp-block-table.is-style-stripes td, 
	.wp-block-table.is-style-stripes th {
		font-size: 1.3rem;
	}

	figure {
		margin-bottom: 20px;
	}

	button.menu-toggle {
		top: 35px;
	}

	hr, .wp-block-separator {
		margin: 40px 0;
	}

	.main-navigation.toggled > div {
	    top: 56px;
	}
	
	.lala-grid, .people {
	    grid-template-columns: repeat(1, 1fr);
	}

	.lala-grid h2, .lala-grid h3 {
		margin: 0;
	}

	.page-template-page-front .site-main h2 {
		font-size: var(--font-size-h1);
	}

	.page-template-page-front .lala-events-list h2,
	.page-template-page-front .lala-recent-posts h2{
		margin-top: 20px;
	}

	.page-template-page-front .site-main .vapaa-nosto h2, 
	.page-template-page-front .site-main .lala-links h2 {
		font-size: 2.8rem;
	}

	.page-template-page-front .site-main p {
		font-size: 1.7rem;
	}

	.events-list .event-title p {
		font-size: 1.3rem;
	}

	.events-list .event-place {
		font-size: 1.1rem;
	}

	.lala-breadcrumbs {
		font-size: 1.1rem;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.content-area {
		flex-wrap: wrap;
		margin-bottom: 20px;
	}

	.content-area > .subpage-menu {
		order: 1;
		background: var(--color-2);
		margin-top: 50px;
		width: calc(100% + 40px);
		padding: var(--padding-main);
		margin: 40px -20px -40px -20px;
	}

	.entry-title {
		margin: 0.7em 0;
	}

	article .post-thumbnail {
		margin-top: 40px;
	}

	.wp-block-lala-blocks-lala-ingressi {
		font-size: 1.7rem;
	}

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

	.single-post .post-thumbnail img, .page .post-thumbnail img {
	    aspect-ratio: 335 / 180;
	    object-fit: cover;
	}

}	
