/*!
Theme Name: Ruuhkavuodet
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: ruuhkavuodet
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Ruuhkavuodet is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/



/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

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

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

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.4em 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
--------------------------------------------------------------*/

:root {
    --grid-gap: 10px;
    --grid-padding: clamp(15px, 1.5vw, 20px);
    --heading-1-size: clamp(1.6rem, 2.0vw, 2.5rem);
    --heading-2-size: clamp(1.2rem, 1.5vw, 1.3rem);
    --heading-3-size: clamp(1.0rem, 1.0vw, 1.1rem);
    --body-font: 'Montserrat', sans-serif;
    --condensed-font: 'Roboto Condensed', sans-serif;
    --article-font: 'Roboto', sans-serif;
    --color-1: #bf9550;
    --color-1-dark: #bf9550;
    --color-2: #436b5c; /* Kotimaan helmet */
    --color-2-dark: #436b5c;
    --color-3: #b7bf96; /* Uutiskirje */
    --color-3-dark: #535b32;
    --color-4: #e8e2db; /* Kaupallinen yhteistyö */
    --color-4-dark: #4e473f;
}
@media screen and (min-width: 768px) {
    :root {
        --grid-gap: 15px;
    }
}
@media screen and (min-width: 1024px) {
    :root {
        --grid-gap: 20px;
    }
}
/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
    color: #fff;
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.7;
}

@media screen and (prefers-color-scheme: light)  {
    body,
    button,
    input,
    select,
    optgroup,
    textarea {
        color: #111;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    clear: both;
    line-height: 1.2;
    margin-bottom: 0.6em;
}
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5 {
    margin-top: 1.5em;
}
h1,
.h1 {
    font-size: var(--heading-1-size);
}
h2,
.h2 {
    font-size: var(--heading-2-size);
}
h3,
.h3 {
    font-size: var(--heading-3-size);
}
.archive h1 {
    font-size: var(--heading-2-size);
}
.entry-title .cat,
.entry-header .cat{
    color: #bf9550;
    text-transform: uppercase;
    font-family: var(--condensed-font);
    font-weight: bold;
}
.site-footer .wp-block-heading {
    color: #d80;
}
p {
    margin-bottom: 1.5em;
}

h1:first-child,
h2:first-child,
h3:first-child,
p:first-child {
    margin-top: 0;
}
p:last-child {
    margin-bottom: 0;
}

.has-medium-font-size {
    font-size: clamp(1.0rem, 1.2vw, 1.2rem) !important;
}
dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

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

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

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

mark,
ins {
	text-decoration: none;
}

big {
	font-size: 125%;
}

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

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

ul,
ol {
    margin: 0 0 1.5em 0em;
    padding-left: 1.5em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

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

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: 0;
}
.entry-content figure {
    margin: 5px auto;
}
figcaption {
    opacity: 0.6;
    font-size: smaller;
    padding: 5px 0;
    line-height: 1.3;
}
.post-thumbnail figcaption {
    padding: 5px 15px;
}
table {
	margin: 0 0 1.5em;
	width: 100%;
}
@media screen and (min-width: 768px) {
    .post-thumbnail figcaption {
        padding: 5px 0;
    }
}
@media screen and (prefers-color-scheme: light)  {
    body {
        background: #f5f5f5;
    }
    .entry-title .cat,
    .entry-header .cat {
        color: #a50;
    }
}
@media screen and (min-width: 1024px) {
    .archive h1 {
        font-size: var(--heading-1-size);
    }
}

/* Links
--------------------------------------------- */
a {
    color: inherit;
    text-decoration: underline;
}

a:visited {
    opacity: 0.8;
}

a:hover,
a:focus,
a:active {
    opacity: 0.8;
}
/*
a:focus {
	outline: thin dotted;
}
*/
a:hover,
a:active {
    outline: 0;
}
.entry-content a {
    text-decoration-color: #bf9550;
    text-decoration-thickness: 3px;
    text-decoration-skip-ink: none;
    text-underline-offset: 3px;
}
@media screen and (prefers-color-scheme: light)  {
    a {
        color: #111;
        text-decoration: underline;
    }
    .entry-content a {
        text-decoration-color: #bf9550;
        text-decoration-thickness: 3px;
        text-decoration-skip-ink: none;
        text-underline-offset: 3px;
    }
}
/* Forms
--------------------------------------------- */
a.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    border: 1px solid #fff;
    border-radius: 10px;
    background: #000;
    color: #fff;
    line-height: 1;
    padding: 0.8em;
    transition: all .2s;
    text-decoration: none;
    transform: translateZ(0);
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 0.05em;
    padding-left: 1.5em;
    padding-right: 1.5em;

}
a.button:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
a.button:focus,
button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus {
	background: #000;
        transform: scale(1.05) translateZ(0);
}

/*
button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}
*/
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    color: #111;
    border: 2px solid #ccc;
    border-radius: 0px;
    padding: 0.5em 1.0em;
    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: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

@media screen and (prefers-color-scheme: light)  {
    a.button,
    button,
    input[type="button"],
    input[type="reset"],
    input[type="submit"] {
        border: 1px solid #000;
        
        background: #000;
        color: #fff;
        

    }
}

.site-header .search-form {
    display: flex;
    position: relative;
    height: 50px;
}
.site-header .search-form label {
    max-width: 0;
    overflow: hidden;
    display: block;
    position: absolute;
    right: 0;
    transition: all .3s;
}
.site-header .search-form.expanded label {
    max-width: 60vw;
    width: 60vw;
}
.site-header .search-field {
    min-height: 50px;
    padding-left: 15px;
    background: #202020;
    width: 100%;
    color: #fff;
    padding-right: 60px;
}
.site-header .search-field:focus {
    color: #fff;
}
.site-header .search-submit {
    font-size: 0;
    border: none;
    border-radius: 0;
}
.site-header .search-field:focus {
    outline: 1px solid;
}
input.error, 
textarea.error {
    border-color: red;
    
}
#primary .search-form {
   display: flex;
   align-items: center;
   gap: 15px;
   margin-bottom: 50px;
}
#primary .search-form label {
    flex-grow: 2;
}
#primary .search-field {
    min-height: 50px;
    width: 100%;
    font-size: 1.1rem;
    padding: 10px 15px;
}
#primary .search-submit {
    min-height: 50px;
    padding-left: clamp(20px, 3vw, 40px);
    padding-right: clamp(20px, 3vw, 40px);
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: bold;
}
.site-header .search-submit,
.site-header .search-submit:hover,
.site-header .search-submit:focus {
    min-height: 50px;
    width: 50px;
    position: absolute;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='a' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38.63 38.637'%3E%3Ccircle cx='17.387' cy='17.694' r='13.478' fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3'/%3E%3Cline x1='27.395' y1='27.703' x2='35.408' y2='35.715' fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 30px 30px;
    border: none;
    right: 0;
    transform: none;
}
.search-results h2 {
    font-size: var(--heading-2-size);
    margin-bottom: 0.5rem;
}
.search-results article {
    margin-bottom: 25px;
}
.search-results article p {
    margin-top: 0.5rem;
}
@media screen and (min-width: 1024px) {
    .site-header .search-form.expanded label, 
    .site-header .search-form label {
        max-width: 250px;
        width: 50vw;
    }
    .site-header .search-form .search-field,
    .site-header .search-form .search-field:focus,
    .site-header .search-form .search-field:hover {
        background: transparent;
        border-color: #fff;
        padding-right: 50px;
        color: #fff;
    }
}
@media screen and (min-width: 768px) {
    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 {
        border: 1px solid #ccc;
    }
    



}


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

#primary {
    min-height: 60vh;
}
.site-header {
    background: #202020;
    color: #fff;

}
.site-branding {
    flex-grow: 2;
    display: flex;
    
    flex-direction: column;
    padding-left: 3vw;
}

.site-description {
    display: block;
    margin: 0;
    font-weight: 100;
    margin-top: -15px;
}
.site-header-wrapper {
    display: flex;
    padding: 10px 15px;
    column-gap: 2vw;
    align-items: center;
    max-width: 1355px;
    margin: 0 auto;
    justify-content: space-between;
    flex-wrap: wrap;
}
.site-title {
    margin: 0;
    padding: 0;
}
.site-footer {
    background: #202020;
    color: #fff;
    min-height: 200px;
    padding: 15px;
}

.custom-logo {
    width: 35vw;
    max-width: clamp(160px, 160px + 10vw, 300px);
    display: block;
}



.wrapper {
    display: flex;
    gap: 25px;
    max-width: 1355px;
    /* padding: 15px; */
    margin: 0 auto;
    flex-direction: column;
}

.page:not(.home) .wrapper {
    max-width: 1040px;
}

.padder {
    padding: 0 15px;
}
.single article:not(.grid-item) .entry-header {
    margin-bottom: 25px;
}
/*
.single .site-sidebar > * {
    padding: 20px;
    background: #333;
}
*/
.single .entry-header .cats {
    color: #d80;
}
.single .entry-header .cats a {
    text-decoration: none;
    color: #d80;
    font-weight: bold;
    text-transform: uppercase;
    font-family: var(--condensed-font);
}
section > .site-main {
    padding-top: 25px;
    width: 100%;
}
.pagination {
    margin: 40px auto;
    text-align: center;
}
.nav-links a, 
.nav-links span {
    display: inline-block;
    padding: 4px 6px;
}
.footer-columns {
    gap: 30px;
}
.footer-wrapper {
    max-width: 1320px;
    margin: 15px auto;
}
.site-info {
    text-align: center;
    margin: 40px auto 0 auto;
    
}
.site-footer ul.menu {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-left: -8px;
}
.site-footer ul.menu a {
    display: inline-block;
    padding: 4px 8px;
}
.site-footer a {
    color: #fff;
}
.wp-block-social-links .wp-social-link svg {
    height: 1.5em;
    width: 1.5em;
}
.single .entry-content {
    font-family: var(--article-font);
}
.single .entry-content li {
    margin-bottom: 0.7rem;
}
@media screen and (prefers-color-scheme: light)  {
    /*
    .single .site-sidebar > * {
        background: #fff;
    }*/
    .single .entry-header .cats,
    .single .entry-header .cats a {
        color: #a50;
    }
    
    .site-header,
    .site-footer {
        background: #000;
    }
}
@media screen and (min-width: 768px) {
    .site-branding {
        flex-direction: row;
        align-items: center;
        gap: 25px;
        padding-left: 0;
    }
    .site-description {
        font-size: 1.3rem;
        margin-top: calc(0.3rem + 0.5vw);
    }
    .padder {
        padding: 0;
    }
    .site-footer,
    .wrapper {
        padding: 20px;
    }
    #primary > section:first-child > .site-main,
    .home section.featured-section > .site-main{
        padding-top: 0;
    }
    .site-header-wrapper {
        padding: 15px 20px;
    }
    .footer-columns {
        display: flex;
        gap: 12%;
        justify-content: space-between;
    }
    .footer-columns > * {
        flex-basis: 25%;
    }
}
@media screen and (min-width: 1024px) {
    .wrapper {
        padding: 25px;
        flex-direction: row;
    }
    .site-footer {
        padding: 25px;
    }
    .site-header-wrapper {
        padding: 15px 25px;
    }
    #primary {
        padding-top: calc(2vh);
        padding-bottom: calc(3vh);
    }
    .columns-2 .site-main {
        flex-grow: 2;
        
    }
    .site-sidebar {
        width: 25%;
        font-size: smaller;
        max-width: 300px;
        flex-shrink: 0;
    }


    .single .entry-content,
    .single .entry-footer,
    .single #comments,
    .single #post-actions {
        max-width: 728px;
        margin: 30px auto;
    }
}
@media screen and (min-width: 1200px) {
    .site-sidebar {

        font-size: initial;

    }
    
}

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





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

#mobile-navigation {
    position: fixed;
    left: 0;
    width: 100%;
    top: 0;
    background: #000;
    
    padding: 0 5px;
    box-shadow: inset 0 -2px 0px 0px #333, 0 0 200px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    display: none;
    max-height: 0;
    transition: all .3s;
    overflow: hidden;
}
#mobile-navigation a {
    padding: 15px 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    font-family: var(--condensed-font);
}
.scrolled #mobile-navigation {
    max-height: 80px;
}
.mobile-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-navigation .heateor_sss_sharing_ul a > span {
    width: 30px !important;
    height: 30px !important;
}
.custom-share .web-share,
.web-share .heateor_sss_sharing_container {
    display: none;
}
#main-navigation {
    position: sticky;
    top: 0;
    background: #000;
    box-shadow: inset 0 -2px 0px 0px #333, 0 0 200px rgba(0, 0, 0, 0.1);
    
    z-index: 9999;
    

}
#main-navigation > div {
    overflow: auto;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.single #main-navigation {
    position: relative;
}
.single #mobile-navigation {
    display: block;
}
#main-navigation a,
#top-navigation ul.menu > li > a {
    color: #fff;
    
}
#top-navigation {
    width: 100%;
}
#main-navigation > div,
#mobile-navigation > div {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 5px;
}
.main-navigation {
    display: block;
    width: 100%;
    
}
.main-navigation a {
    padding: 6px;
}
.main-navigation ul {
    display: none;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

#main-navigation > div::-webkit-scrollbar {
  display: none;
}
#main-navigation ul.menu {
    display: flex;
    width: max-content;
}
#main-navigation ul.menu > li > a {
    white-space: nowrap;
    font-weight: 600;
    padding: 15px 10px;

    font-family: var(--condensed-font);
}
#top-navigation ul.menu {
    padding-top: 20px;
    padding-bottom: 10px;
}
#top-navigation ul.menu > li > a {
    font-weight: 600;
    /*
    padding: 15px 10px;
    */
}
#main-navigation ul.menu > li.current-menu-item > a  {
    box-shadow: inset 0 -3px 0px 0px #dd9933;
}
.main-navigation ul ul {
    display: none;
}

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

.main-navigation ul ul a {
    padding: 6px 12px;
    color: #fff;
}


.main-navigation li {
	position: relative;
}

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

/* Small menu. */
.menu-toggle,
.menu-toggle:focus,
.menu-toggle:hover {
    border: none;
    width: 50px;
    height: 50px;
    position: relative;
    background: transparent;
}
.menu-toggle .icon {
    width: 30px;
    height: 30px;
    position: absolute;
    left: 10px;
    top: 10px;
}
.menu-toggle .icon span {
    display: block;
    position: absolute;
    width: 30px;
    height: 3px;
    border-radius: 2px;
    background: #fff;
    transition: all .2s;
    opacity: 1;
    left: 0;
}
.menu-toggle .icon span:nth-child(1) {
    top: 5px;
}
.menu-toggle .icon span:nth-child(2) {
    top: calc(50% - 1.5px);
}
.menu-toggle .icon span:nth-child(3) {
    bottom: 5px;
}
.menu-toggled .menu-toggle .icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 13px;
}
.menu-toggled .menu-toggle .icon span:nth-child(2) {
    width: 0;
    left: 50%;
    opacity: 0;
}
.menu-toggled .menu-toggle .icon span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 14px;
}
.menu-toggle:hover,
.menu-toggle:focus {
    transform: none;
}
.sub-menu-toggle {
    border: none;
    background: transparent;
    position: absolute;
    right: auto;
    width: 25px;
    height: 25px;
    padding: 3px;
    border-radius: 0;
    top: 5px;
    margin-left: 5px;
}
.sub-menu-toggle:hover,
.sub-menu-toggle:focus {
    background: transparent;
    transform: none;
}
.sub-menu-toggle span:nth-child(1) {
    display: block;
    width: 19px;
    height: 3px;
    position: absolute;
    background: #fff;
    border-radius: 2px;
    top: 11px;
    left: 3px;
}
.sub-menu-toggle span:nth-child(2) {
    display: block;
    width: 3px;
    height: 0;
    left: 11px;
    top: 12px;
    position: absolute;
    background: #fff;
    border-radius: 2px;
    transition: all .2s;
}
.sub-menu-toggle[aria-expanded="false"] span:nth-child(2) {
    height: 19px;
    top: 3px;
}
#main-navigation .sub-menu-toggle {
    display: none;
}
a#back-link {
    padding-left: 35px;
    background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='a' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12.904 22.807'%3E%3Cpolyline points='11.404 1.5 1.5 11.404 11.404 21.307' fill='none' stroke='%23dd8800' stroke-linecap='round' stroke-linejoin='round' stroke-width='3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 0.8rem;
    background-position: 10px center;
    color: #fff;
}

#main-navigation:after {
    content: "";
    display: block;
    position: absolute;
    right: 0;
    width: 70px;
    top: 0;
    bottom: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 100%);
    opacity: 1;
    z-index: 1;
    transition: all .3s;
}
#main-navigation.scroll-end:after {
    opacity: 0;
}
#main-navigation:before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    width: 70px;
    top: 0;
    bottom: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    z-index: 1;
    transition: all .3s;
}
#main-navigation.scrolled:before {
    opacity: 1;
}
@media screen and (min-width: 601px) {
    .admin-bar #mobile-navigation {
        top: 46px;
    }
}
@media screen and (min-width: 768px) {
    #main-navigation .menu-main-menu-container {
        padding: 0 10px;
    }
}
@media screen and (prefers-color-scheme: light)  {
    #main-navigation {
        background: #fff;
        box-shadow: inset 0 -2px 0px 0px #ddd, 0 0 200px rgba(0, 0, 0, 0.1);
    }
    #main-navigation ul.menu > li.current-menu-item > a  {
        /*
        box-shadow: inset 0 -2px 0px 0px #333;
        */
    }
    #mobile-navigation {
        background: #fff;
        box-shadow: inset 0 -2px 0px 0px #ddd, 0 0 200px rgba(0, 0, 0, 0.1);
        
    }
    #main-navigation a {
        color: #111;
    }
    .sub-menu-toggle {
        color: #000;
    }
    a#back-link {
        color: #000;
        background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='a' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12.904 22.807'%3E%3Cpolyline points='11.404 1.5 1.5 11.404 11.404 21.307' fill='none' stroke='%23aa5500' stroke-linecap='round' stroke-linejoin='round' stroke-width='3'/%3E%3C/svg%3E");
    }

    #main-navigation:after {
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 100%);
    }

    #main-navigation:before {
        background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%);

    }
}
@media screen and (min-width: 783px) {
    .admin-bar #mobile-navigation,
    .admin-bar.scrolled #main-navigation {
        top: 32px;
    }
}
@media screen and (min-width: 1024px) {

    .menu-toggle {
            display: none;
    }
    .main-navigation ul ul a {
        width: 200px;
    }
    .main-navigation ul {
            display: flex;
    }
    #main-navigation {
        overflow: visible;
        
    }
    #main-navigation > *,
    #mobile-navigation > * {
        padding: 0 15px;
    }
    #main-navigation > div {
        overflow: visible;
    }
    #top-navigation {
        width: max-content;
    }
    #top-menu {
        display: block !important;
    }
    #top-menu li {
        display: inline-block;
    }
    #top-navigation ul.menu > li > a {
        font-weight: 600;
        padding: 15px 10px;
    }
    #top-navigation ul.menu {
        padding-top: 0;
        padding-bottom: 0;
    }
    .sub-menu-toggle {
        display: none;
    }
    .main-navigation ul ul {
        box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
        position: absolute;
        top: calc(100% - 3px);
        left: -999em;
        z-index: 99999;
        display: flex;
        flex-direction: column;
        background: #333;
        padding: 6px;
    }
    .main-navigation li:focus-within ul {
        display: block;
    }
    .main-navigation ul ul li:hover > ul,
    .main-navigation ul ul li:focus-within > ul {
        left: auto;
    }

    .main-navigation ul li:hover > ul,
    .main-navigation ul li:focus-within > ul {
        left: auto;
    }
    #top-navigation ul li:hover > ul,
    #top-navigation ul li:focus-within > ul {
        left: auto;
        right: 0;
    }
    #main-navigation ul.menu > li > a,
    #mobile-navigation a {
        font-family: var(--body-font);
    }
}

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

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}
.comment-form p {
    margin-bottom: 0.5em;
}
ol.comment-list {
    list-style: none;
    margin: 0;
    
}
#comments {
    margin-top: 30px;
    margin-bottom: 35px;
}
#comments ol {
    padding: 0;
    list-style: none;
}
#comments article {
    padding: 15px;
    margin-bottom: 15px;
}
#comments article:has(.reply) {
    margin-bottom: 50px;
    position: relative;
}
#comments article:has(+ #respond) {
    margin-bottom: 15px;
}
#comments article:has(+ #respond) .reply {
    display: none;
} 
#comments .reply {
    bottom: -30px;
    position: absolute;
}
#respond {
    margin-bottom: 50px;
}
#cancel-comment-reply-link {
    display: inline-block;
    margin-left: 10px;
    font-weight: 400;
    text-decoration: underline;
    font-size: 1.0rem;
}
li.comment {
    padding: 0;
}
li.comment article{
    
    background: #444;
    
    border-radius: 0 15px 15px 15px;
}
li.comment.bypostauthor article {
    background: #666;
    border-radius: 15px 0 15px 15px;
}
li.comment .says {
    display: none;
}
.comment a {
    text-decoration: none;
}
.comment .comment-reply-link {
    display: inline-block;
    margin-top: 5px;
    text-decoration: underline;
}
.comment-meta:after {
    content: "";
    display: block;
    clear: both;
}
.comment-meta {
    margin-bottom: 15px;
}
.comment-meta .comment-author {
    float: left;
    width: 40%;
}
.comment-meta .comment-metadata {
    float: right;
    width: 50%;
    text-align: right;
}
#comments-wrapper {
    display: none;
}
.comment-form-author input,
.comment-form-email input {
    width: 80%;
}
#post-actions {
    margin-bottom: 35px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    backface-visibility: hidden;
    flex-wrap: wrap;
    flex-direction: column;
}

button#show-comments {
    white-space: nowrap;
}
button#show-comments .icon {
    position: relative;
    backface-visibility: hidden;
    width: 40px;
    display: inline-block;
/*
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 32.1 27.9' style='enable-background:new 0 0 32.1 27.9;' xml:space='preserve'%3E%3Cpath fill='%23ffffff' d='M9,6.6h12.8c0.4,0,0.6-0.3,0.6-0.6c0-0.4-0.3-0.6-0.6-0.6l0,0H9c-0.4,0-0.6,0.3-0.6,0.6 C8.4,6.3,8.7,6.6,9,6.6z'/%3E%3Cpath fill='%23ffffff' d='M23.6,9.6h-12c-0.4,0-0.6,0.3-0.6,0.6c0,0.4,0.3,0.6,0.6,0.6h12c0.4,0,0.6-0.3,0.6-0.6 C24.3,9.9,24,9.6,23.6,9.6L23.6,9.6z'/%3E%3Cpath fill='%23ffffff' d='M20.2,14H9c-0.4,0-0.6,0.3-0.6,0.6s0.3,0.6,0.6,0.6h11.2c0.4,0,0.6-0.3,0.6-0.6S20.6,14,20.2,14z'/%3E%3Cpath fill='%23ffffff' d='M27.6,0H4.5C2.1-0.1,0.1,1.8,0,4.1v12.7c0.1,2.4,2.1,4.2,4.5,4.1h13.7l9.9,6.9V21 c2.2-0.1,4-1.9,4.1-4.1V4.1C32,1.8,30-0.1,27.6,0z M30.2,16.9c-0.1,1.3-1.2,2.3-2.6,2.2h-1.6v5.1l-7.3-5.1H4.5 c-1.3,0.1-2.5-0.9-2.6-2.2V4.1C2,2.8,3.2,1.8,4.5,1.9h23.2c1.3-0.1,2.5,0.9,2.6,2.2L30.2,16.9z'/%3E%3C/svg%3E%0A");
*/
}
button#show-comments .icon:after {
    content: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 32.1 27.9' style='enable-background:new 0 0 32.1 27.9;' xml:space='preserve'%3E%3Cpath fill='%23ffffff' d='M9,6.6h12.8c0.4,0,0.6-0.3,0.6-0.6c0-0.4-0.3-0.6-0.6-0.6l0,0H9c-0.4,0-0.6,0.3-0.6,0.6 C8.4,6.3,8.7,6.6,9,6.6z'/%3E%3Cpath fill='%23ffffff' d='M23.6,9.6h-12c-0.4,0-0.6,0.3-0.6,0.6c0,0.4,0.3,0.6,0.6,0.6h12c0.4,0,0.6-0.3,0.6-0.6 C24.3,9.9,24,9.6,23.6,9.6L23.6,9.6z'/%3E%3Cpath fill='%23ffffff' d='M20.2,14H9c-0.4,0-0.6,0.3-0.6,0.6s0.3,0.6,0.6,0.6h11.2c0.4,0,0.6-0.3,0.6-0.6S20.6,14,20.2,14z'/%3E%3Cpath fill='%23ffffff' d='M27.6,0H4.5C2.1-0.1,0.1,1.8,0,4.1v12.7c0.1,2.4,2.1,4.2,4.5,4.1h13.7l9.9,6.9V21 c2.2-0.1,4-1.9,4.1-4.1V4.1C32,1.8,30-0.1,27.6,0z M30.2,16.9c-0.1,1.3-1.2,2.3-2.6,2.2h-1.6v5.1l-7.3-5.1H4.5 c-1.3,0.1-2.5-0.9-2.6-2.2V4.1C2,2.8,3.2,1.8,4.5,1.9h23.2c1.3-0.1,2.5,0.9,2.6,2.2L30.2,16.9z'/%3E%3C/svg%3E%0A");
    position: absolute;
    height: 28px;
    width: 28px;
    right: 2px;
    top: calc(50% - 11px);
}
button.web-share-button .icon:after {
    content: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 20 24' style='enable-background:new 0 0 20 24;' xml:space='preserve'%3E%3Cpath fill='%23fff' d='M15.849,4.976h-4.473v1.482h4.551c1.014-0.078,1.95,0.702,2.028,1.716l-0.078,8.981 c-0.078,1.014-0.936,1.794-2.027,1.716H4.074c-1.014,0.078-1.95-0.702-2.028-1.716V8.173C2.124,7.159,3.06,6.38,4.074,6.458h4.551 V4.976H4.074C2.202,4.898,0.642,6.38,0.564,8.173v8.903c0.078,1.872,1.638,3.275,3.509,3.197l12.165,0.078 c1.716-0.078,3.119-1.482,3.197-3.197V8.173C19.28,6.38,17.72,4.898,15.849,4.976z'/%3E%3Cpath fill='%23fff' d='M13.131,2.936l-2.8-2.8c-0.043-0.043-0.095-0.077-0.152-0.101c-0.114-0.047-0.243-0.047-0.358,0 C9.764,0.059,9.712,0.093,9.669,0.137l-2.8,2.8c-0.183,0.183-0.183,0.479,0,0.662C6.961,3.689,7.081,3.735,7.2,3.735 S7.44,3.689,7.531,3.598l2.001-2.001v10.746c0,0.258,0.209,0.468,0.468,0.468s0.468-0.209,0.468-0.468V1.597l2.001,2.001 C12.56,3.689,12.68,3.735,12.8,3.735s0.239-0.046,0.331-0.137C13.314,3.415,13.314,3.119,13.131,2.936z'/%3E%3C/svg%3E%0A");
    position: absolute;
    height: 24px;
    width: 20px;
    right: 14px;
    top: calc(50% - 12px);
}
button.web-share-button {
    padding-right: 42px;
    padding-top: 10px;
}
.mobile-navigation button.web-share-button {
    padding-top: 0.6em;
    padding-bottom: 0.6em;
}
a.button.share {
    min-width: 43px;
    position: relative;
    backface-visibility: hidden;
}
a.button.share.facebook .icon {
    display: inline-block;
    transform: scale(1.8);
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns:serif='http://www.serif.com/' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 32 32' style='enable-background:new 0 0 32 32;' xml:space='preserve'%3E%3Cpath fill='%23ffffff' d='M22.2,17.6l0.7-4.9h-4.7V9.6c0-1.3,0.7-2.6,2.7-2.6H23V2.8c0,0-1.9-0.3-3.8-0.3c-3.8,0-6.3,2.3-6.3,6.5v3.7H8.8v4.9h4.3 v11.7c0.9,0.1,1.7,0.2,2.6,0.2c0.9,0,1.8-0.1,2.6-0.2V17.6H22.2z'/%3E%3C/svg%3E%0A");
}
a.button.share.x .icon {
    display: inline-block;
    transform: scale(1.8);
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' id='a' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 32 32' style='enable-background:new 0 0 32 32;' xml:space='preserve'%3E%3Cpath fill='%23ffffff' d='M23.4,4.3h4l-8.7,9.9L29,27.7h-8l-6.2-8.2l-7.2,8.2h-4l9.3-10.6L3,4.3h8.2l5.6,7.5L23.4,4.3L23.4,4.3z M22.1,25.3h2.2 L10,6.5H7.6L22.1,25.3L22.1,25.3z'/%3E%3C/svg%3E");
}
@media screen and (prefers-color-scheme: light)  {
    

    li.comment article {
        background: #fff;
    }
    li.comment.bypostauthor article {
        background: #ddd;
    }
    a.button.share {
        min-width: 43px;
        background: #fff;
        color: #111;
        border-color: #111;
        
    }

    a.button.share.facebook .icon {
        background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns:serif='http://www.serif.com/' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 32 32' style='enable-background:new 0 0 32 32;' xml:space='preserve'%3E%3Cpath fill='%23000' d='M22.2,17.6l0.7-4.9h-4.7V9.6c0-1.3,0.7-2.6,2.7-2.6H23V2.8c0,0-1.9-0.3-3.8-0.3c-3.8,0-6.3,2.3-6.3,6.5v3.7H8.8v4.9h4.3 v11.7c0.9,0.1,1.7,0.2,2.6,0.2c0.9,0,1.8-0.1,2.6-0.2V17.6H22.2z'/%3E%3C/svg%3E%0A");
    }
    a.button.share.x .icon {
        background-image: url("data:image/svg+xml,%3Csvg version='1.1' id='a' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 32 32' style='enable-background:new 0 0 32 32;' xml:space='preserve'%3E%3Cpath fill='%23000000' d='M23.4,4.3h4l-8.7,9.9L29,27.7h-8l-6.2-8.2l-7.2,8.2h-4l9.3-10.6L3,4.3h8.2l5.6,7.5L23.4,4.3L23.4,4.3z M22.1,25.3h2.2 L10,6.5H7.6L22.1,25.3L22.1,25.3z'/%3E%3C/svg%3E");
    }
}
@media screen and (min-width: 768px) {
    li.comment article {
        padding: 25px;
    }
}
@media screen and (prefers-color-scheme: light) and (min-width: 1024px)  {
    .main-navigation ul ul a {
        color: #000;
    }
    .main-navigation ul ul {
        background: #fff;
    }
}
/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}



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

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

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

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

.bypostauthor {
	display: block;
}

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

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

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
    display: block;
    width: fit-content;
    margin-left: -4%;
}
@media screen and (min-width: 768px) {
    .custom-logo-link {
        margin-left: 0;
    }
    
}
/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.gallery-caption {
	display: block;
}

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

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

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

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

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

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

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

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}
/*
.single article:not(.grid-item) .post-thumbnail {
    width: 100vw;
    margin-left: -25px;
}
*/
.post-thumbnail > * {
    width: 100%;
    display: block;
}


.featured-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.featured-wrapper {
    display: grid;
    grid-template-rows: auto 1fr 1fr 1fr;
    gap: var(--grid-gap);
}

.archive .featured-wrapper {
    padding-bottom: 25px;
}
.featured-wrapper article:first-child {
    position: relative;
    width: 100%;
    
}
.featured-wrapper a {
    position: relative;
}
.featured-wrapper article:first-child a {
    color: #fff;
}
.featured-wrapper article.item-1 .entry-title {
    font-size: var(--heading-1-size);
    font-weight: 800;
    line-height: 1.1;
}
.featured-wrapper article:first-child .entry-title .cat {
    color: #fa0;
    display: block;
    font-size: 1.0rem;
    margin-bottom: 0.4rem;
}
.featured-wrapper article:first-child .post-thumbnail {
    min-width: 100%;
    height: 100%;
    aspect-ratio: 3/2;
}
.featured-wrapper article:first-child .post-thumbnail > * {

}
.featured-wrapper article:first-child .post-thumbnail:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 70%;
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
}
.featured-wrapper article:first-child .entry-header {
    position: absolute;
    padding: 15px;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.featured-wrapper > *:not(first-child) {
    display: flex;
}
.featured-wrapper > *:not(first-child) .entry-header {
    padding: 15px;
}
.featured-wrapper .g,
.featured-wrapper .g-single {
    width: 100%;
    margin: 0 !important;
    overflow: visible;
}
.featured-wrapper .g article {
    height: 100%;
    display: flex;
}
.featured-wrapper .g .entry-meta {
    margin-top: 10px;
}
@media screen and (min-width: 768px) {
    .single article:not(.grid-item) .post-thumbnail,
    .post-thumbnail {
        width: 100%;
        margin-left: auto;
    }
    .featured-section {
        flex-direction: row;
    }
    .featured-wrapper {
        height: 100%;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto min-content;
        
    }

    .featured-wrapper article:first-child {
        grid-column: 1 / -1;
        min-height: 50vh;
    }

    .featured-wrapper article:first-child .post-thumbnail {
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        aspect-ratio: auto;
    }
    .featured-wrapper article:first-child .post-thumbnail > * {
        width: 100%;
        height: 100%;
    }
    .featured-wrapper > *:not(:first-child){
        /*
        width: calc(50% - ( var(--grid-padding) / 2));
        */

    }
    .featured-wrapper .grid-item a {
        flex-direction: column-reverse;
    }

    .featured-wrapper article:first-child .entry-header {
        padding: 25px;
    }
    .archive .featured-wrapper article:first-child .entry-header {
        padding: 20px;
    }
    .archive .featured-wrapper {
        grid-template-rows: 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr;
        height: auto;
        
    }
    .archive .featured-wrapper article:first-child {
        grid-column: initial;
        grid-row: 1 / 4;
    }
    .archive .featured-wrapper article:not(:first-child) a {
        flex-direction: row-reverse;
    }
    .archive .featured-wrapper article:not(:first-child) .post-thumbnail {
        aspect-ratio: 1/1;
        max-width: 30%;
        min-width: 30%;
        margin-left: 0;
    }
    .archive .featured-wrapper article:first-child .entry-title {
        font-size: var(--heading-2-size);
    }
}


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


}

.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
}
.grid-item {
    
}
.grid-item .entry-title {
    margin: 0;
    font-size: var(--heading-3-size);
}
.grid-item .post-thumbnail > * {
    
    object-fit: cover;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    position: absolute;
    transition: transform .3s;
    transform: scale(1.0);
}
.grid-item .post-thumbnail {
    min-width: 35%;
    max-width: 35%;
    position: relative;
    padding-top: 20%;
    aspect-ratio: auto;
    transition: all .3s;
    opacity: 0.9;
    overflow: hidden;
}
.grid-item a {
    display: block;
    width: 100%;
    display: flex;
    flex-direction: row;
    text-decoration: none;
    transition: all .2s;
    justify-content: space-between;
    height: 100%;
    background: #333;
    color: #fff;
}
.grid-item a:hover,
.grid-item a:focus {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    opacity: 1;
}
.grid-item a:hover .post-thumbnail,
.grid-item a:focus .post-thumbnail {
    opacity: 1;
}
.grid-item a:hover .post-thumbnail > *,
.grid-item a:focus .post-thumbnail > * {
    transform: scale(1.02);
}
.grid-item .entry-header {
    padding: var(--grid-padding);
}
button.load-more {
    background: #000;
    border-color: #f5f5f5;
    display: block;
    margin: 25px auto 60px auto;
    position: relative;
}
button.load-more[disabled]:after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 14'%3E%3Ccircle fill='%23CCCCCC' stroke='%23CCCCCC' stroke-width='2' r='5' cx='10' cy='7'%3E%3Canimate attributeName='opacity' calcMode='spline' dur='1.0' values='1;0;1;' keySplines='.5 0 .5 1;.5 0 .5 1' repeatCount='indefinite' begin='-.4'%3E%3C/animate%3E%3C/circle%3E%3Ccircle fill='%23CCCCCC' stroke='%23CCCCCC' stroke-width='2' r='5' cx='25' cy='7'%3E%3Canimate attributeName='opacity' calcMode='spline' dur='1.0' values='1;0;1;' keySplines='.5 0 .5 1;.5 0 .5 1' repeatCount='indefinite' begin='-.2'%3E%3C/animate%3E%3C/circle%3E%3Ccircle fill='%23CCCCCC' stroke='%23CCCCCC' stroke-width='2' r='5' cx='40' cy='7'%3E%3Canimate attributeName='opacity' calcMode='spline' dur='1.0' values='1;0;1;' keySplines='.5 0 .5 1;.5 0 .5 1' repeatCount='indefinite' begin='0'%3E%3C/animate%3E%3C/circle%3E%3C/svg%3E");
    position: absolute;
    width: 50px;
    height: 14px;
    bottom: -30px;
    left: calc(50% - 25px);
}


.grid-item figcaption {
    display: none;
}
@media screen and (min-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr 1fr;
    }
    .grid-item .post-thumbnail {
        min-width: 100%;
        aspect-ratio: 16/9;
        padding-top: 0;
    } 
    .grid-item .post-thumbnail > * {
        position: relative;
    }
    .grid-item a { 
        justify-content: start;
        flex-direction: column-reverse;
    }
}
@media screen and (min-width: 1024px) {
    .post-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .grid-item .post-thumbnail {
        

    } 
}
@media screen and (prefers-color-scheme: light)  {
    .grid-item a {
        background: #fff;
        color: #111;
    }


}


.popular {
    
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    width: 100vw;

    
}
.fit-height .popular:has(li:nth-child(10)) {
    height: 100%;
}

.category .fit-height .popular:has(li:nth-child(7)) {
    height: 100%;
}
.popular ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    flex-grow: 2;
    justify-content: stretch;
    gap: 0;
}

.popular li:nth-child(n+6) {
    display: none;
}
.popular li {
    display: block;
    position: relative;
    counter-increment: inst;
        
    padding-left: 1.7rem;
    flex-grow: 1;
}
.popular li::before {
    content: counter(inst);
    font-size: 1.3rem;
    font-weight: bold;
    position: absolute;
    top: 0.1rem;
    width: 1.5rem;
    text-align: center;
    left: 0.0rem;
    display: block;
    color: #d80;
}

.popular a {
    text-decoration: none;
    display: block;
    line-height: 1.3;
    padding: 0.5rem;
    width: fit-content;
    color: #fff;
}
@media screen and (min-width: 768px) {
    .popular {

        padding: 0;
        width: auto;
        margin-left: 0;
        background: transparent;
    }
    .popular li:not(:last-child)::after {
        display: block;
        content: "";
        border-left: 1px solid #666;
        position: absolute;
        top: 1.8rem;
        left: 0.75rem;
        bottom: -0.4rem;

    }
    .popular li {
        display: block !important;
    }

}
@media screen and (prefers-color-scheme: light)  {
    
    .popular {
        background: transparent;
    }
    .single .popular {
        padding: 15px;
        background: #fff;
    }
    .popular li {
        display: block !important;
    }
    .popular li:not(:last-child)::after {
        border-color: #ccc;
    }
    .popular a { 
        color: #000;
    }
    .popular li::before {
        color: #a50;
    }
}
@media screen and (min-width: 1200px) {
    /*
    .popular ol {
        gap: 5px;
    }
    .fit-height .popular ol {
        gap: 0;
    }
    */
    .popular li {
        margin-bottom: 0.5rem;
    }

    .popular a {
        padding: 0.3rem;
    }
    .popular li::before {
        top: -0.05rem;
    }
}
.entry-meta {
    opacity: 0.7;
}
.grid-item .entry-meta {
    
    font-size: smaller;
    margin-top: 5px;
}

.cat-links {
    margin: 20px 0;
}

.tags-links {
    margin: 20px 0;
}
.tags-links a {
    display: inline-block;
    background: #444;
    border-radius: 1.0rem;
    padding: 0.3rem 0.8rem;
    margin-right: 0.3rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: #fff;
}

@media screen and (prefers-color-scheme: light)  {
    .cat-links a {
        color: #a50;
    }
    .tags-links a {
        background: #a50;
    }
    
}


.nosto {
    margin-top: clamp(30px, 4vw, 50px);
    margin-bottom: clamp(30px, 4vw, 50px);
    background: #2e271f;
    padding: clamp(20px, 3vw, 35px) 15px;
    
}
.nosto .site-main {
    width: 100%;
}
.nosto h2 {
    font-weight: 300;
    font-size: var(--heading-1-size);
}
.kaupallinen-yhteistyo .grid-item {
    margin-left: 0;
}
/*
.kaupallinen-yhteistyo .grid-item .entry-meta {
    display: none;
}
*/
.kaupallinen-yhteistyo .grid-item a {
    flex-direction: row-reverse;
    background: var(--color-4-dark);
}
.nosto ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 5px;

    width: 100%;
}
.nosto ul.menu a {
    font-size: larger;
    font-weight: bold;
    text-decoration-color: #bf9550;
    text-decoration-thickness: 3px;
    text-decoration-skip-ink: none;
    text-underline-offset: 3px;
}
@media screen and (min-width: 768px) {
    .kaupallinen-yhteistyo .grid-item a {
        flex-direction: column-reverse;
    }
    .kaupallinen-yhteistyo {
        padding-left: 0;
        padding-right: 0;
    }
    .nosto ul.menu {
        flex-direction: row;
        column-gap: 2vw;
        row-gap: 1vw;
        
    }
    .nosto ul.menu li {
        
    }
}
@media screen and (prefers-color-scheme: light)  {
    .nosto {
        background: #fff;
    }
    .kaupallinen-yhteistyo .grid-item a {
        background: var(--color-4);
    }
}


.category-header {
    display: flex;
    column-gap: 15px;
    row-gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 0.8em;
    align-items: baseline;
}

.category-header h1 {
    margin-bottom: 0;
    
}
.category-header a {
    text-decoration: none;
    font-family: var(--condensed-font);
    color: #fff;
}
@media screen and (prefers-color-scheme: light)  {
    .category-header a {
        color: #000;
    }
}
@media screen and (min-width: 1024px) {
    .category-header a {
        font-family: var(--body-font);
    }
}


.wp-block-latest-posts.wp-block-latest-posts__list {
    margin-left: 0;
}
.wp-block-latest-posts__post-date {
    opacity: 0.7;
}
.wp-block-latest-posts__post-title {
    font-size: var(--heading-3-size);
    font-weight: 600;
}
.wp-block-latest-posts.wp-block-latest-posts__list li {
    margin-bottom: 10px;
}


.banner:has(*) {
    max-width: 980px;
    margin: 0 auto;
}
.banner a,
.banner img {
    display: block;
}
.banner a:hover,
.banner a:focus {
    opacity: 1;
}
/*
.g:not(:has(a)) {
    display: none;
}
*/

.g-col:only-child { 
    float: none;
}

.g {
    margin: clamp(20px, 3vw, 30px) auto !important;
}
.g-1 {
    margin: 0 !important;
}
.g-1 div[id^="nm"]:not(div[id^="nm-1x1"])[data-strongbox-ready="1"]  {
    margin: clamp(20px, 3vw, 30px) auto !important;
}
div[id^="nm"] {
    transition: margin .5s;
}
.forminator-label {
    color: #fff !important;
}


@media screen and (prefers-color-scheme: light)  {
    .forminator-label {
        color: #000 !important;
    }
}

#wpadminbar {
    z-index: 999999;
}

.uutiskirje {
    background: var(--color-3-dark);
    padding: clamp(30px, 4vw, 50px) 0;
}
.uutiskirje .wp-block-heading,
.uutiskirje p {
    margin-bottom: 15px;
    margin-top: 0;
}
.uutiskirje .forminator-ui {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.uutiskirje .forminator-ui .forminator-response-message {
    width: 100%;
    text-align: center;
    font-weight: bold;
}
.uutiskirje .forminator-row:not(.forminator-row-last) {
    flex-grow: 1;
    width: 80%;
}
.uutiskirje .wrapper {
    max-width: 600px;
    flex-direction: column;
    gap: 0;
    padding: 15px;
}
.uutiskirje .forminator-button-submit {
    
    padding-left: 25px;
    padding-right: 25px;
    min-height: 48px;
}
.uutiskirje input[type="email"] {
    border: 1px solid #fff;
    min-height: 48px;
}
.forminator-response-message ul {
    list-style: none;
}
@media screen and (min-width: 768px) {
    .uutiskirje .forminator-ui {
        flex-direction: row;
        column-gap: 0px;
        align-items: flex-start;
    }
    .uutiskirje .forminator-button-submit {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
    .uutiskirje input[type="email"] {
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
    }

}
@media screen and (prefers-color-scheme: light)  {
    .uutiskirje {
        background: var(--color-3);
        
    }
}

.description {
    line-height: 1.2;
    margin: 0.3em 0;
}
article.item-1 .description {
    font-weight: 500;
}
article:not(.item-1) .description {
    font-size: smaller;
}