/*
Theme Name: Päkä Rehu
Theme URI: https://sivututka.fi
Author: Sivututka Oy
Author URI: https://sivututka.fi
Description: Theme for Päkä Rehu WordPress project.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: sivututka-starter
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize
# Typography
# Elements
# Forms & Buttons
# Navigation
	## Links
	## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Content
	## Posts and pages
	## Comments
	## Search & 404
# Infinite scroll
# Media
	## Images & SVG
	## Captions
	## Galleries
# Container
# Media queries
--------------------------------------------------------------*/

/*
# Normalize
============================================================= */
/* normalize.css v8.0.0 | Original & Documentation: github.com/necolas/normalize.css */

html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
}

h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

a {
	background-color: transparent;
}

abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

b,
strong {
	font-weight: 700;
}

code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

small {
	font-size: 80%;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

img {
	border-style: none;
}

button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

button,
input {
	overflow: visible;
}

button,
select {
	text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

fieldset {
	padding: 0.35em 0.75em 0.625em;
}

legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

progress {
	vertical-align: baseline;
}

textarea {
	overflow: auto;
}

[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

details {
	display: block;
}

summary {
	display: list-item;
}

template {
	display: none;
}

[hidden] {
	display: none;
}

/*
# Typography
============================================================= */
body,
optgroup {
	color: var(--harmaa);
	font-family: 'Catamaran', sans-serif;
	font-size: 16px;
	font-size: 1rem;
	line-height: 1.5;
	font-weight: 300;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5 {
	clear: both;
	color: var(--oranssi);
	font-weight: 400;
	margin: 1em 0;
	font-family: 'Domine', serif;
}

h1,
.h1 {
	color: var(--oranssi);
	font-size: clamp(32px, 2.4vw, 45px);
	line-height: 1.25;
	margin: 0 0 1em 0;
	font-weight: 700;
	text-transform: none;
}

h2,
.h2 {
	font-size: clamp(26px, 1.9vw, 36px);
	line-height: 1.25;
	font-weight: 700;
}

h3,
.h3 {
	font-family: 'Catamaran', sans-serif;
	color: var(--harmaa);
	font-size: clamp(22px, 1.4vw, 27px);
	line-height: 1.25;
	font-weight: 600;
}

h4,
.h4 {
	font-size: 18px;
    text-transform: uppercase;
	line-height: 1.5;
	margin: 1em 0 0.5em 0;
	color: var(--harmaa);
	font-family: 'Catamaran', sans-serif;
	font-weight: 500;
}

h5,
.h5,
h6,
.h6 { 
	font-size: 1.375em;
	line-height: 1.5;
	margin: 1em 0 0.5em 0;
	color: var(--harmaa);
	font-family: 'Catamaran', sans-serif;
	font-weight: 500;
}

p {
	font-size: 18px;
	margin: 0 0 1em 0;
	line-height: 1.5;
	font-weight: 400;
}

li {
	font-size: 18px;
	line-height: 1.5;
	font-weight: 400;
}

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

blockquote {
	border-left: 2px solid #ccc;
	margin: 0 0 1.25em 0;
	padding: 0 0 0 1em;
	font-style: italic;
}

address {
	margin: 0 0 1.5em;
}

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

code, kbd, tt, var {
	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
	font-size: 15px;
	font-size: 0.9375rem;
}

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

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

big {
	font-size: 125%;
}

/*
# Elements
============================================================= */
html {
	box-sizing: border-box;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}

body {
	background: #fff;
}

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

ul, ol {
	margin: 0 0 1.25em 0;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

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

dt {
	font-weight: bold;
}

dd {
	margin: 0 1.5em 1.5em;
}

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

figure {
	margin: 0;
}

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

th, td {
	text-align: left;
}

/*
# Forms & Buttons
============================================================= */
.button,
a.button,
a.button:visited,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	display: inline-block;
	background: transparent;
	color: var(--oranssi);
	font-size: 1.125em;
	line-height: 1;
	padding: 0.875em 1.5em;
	text-decoration: none;
	font-weight: 700;
	cursor: pointer;
	border: 2px solid var(--oranssi);
	box-sizing: border-box;
	position: relative;
}

.button:hover,
a.button:hover,
a.button:focus,
button:focus,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	background: var(--oranssi);
	color: #fff;
}

.button:active,
a.button:active,
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,
select,
.select-selected {
	font-size: 1em;
	line-height: 1.5;
	border: 2px solid #aaa;
	padding: 0.5em 1em;
	border-radius: 3px;
	width: 100%;
	max-width: 100%;
	display: block;
	margin: 0.1em 0;
	background: #fff; 
	box-sizing: border-box;
	color: #222;
}

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 {
	border: 2px solid #888;
	color: #555; 
	outline: none;
}

textarea {
	width: 100%;
}

.floating-label {
	display: none;
	position: absolute;
	top:0;
	z-index: 9;
	left: 0.75em;
	font-size: 0.67em;
	transform: translate(0,-50%);
	padding: 0 0.75em;
	background: #fff;
	line-height: 110%;
}

/* Custon select style */

.custom-select1 {
	position: relative;
}

.custom-select1:after {
	content: '';
	position: absolute;
	top: 50%;
	right: 0.75em;
	transform: translateY(-75%) rotateZ(45deg);
	padding: 0.1875em;
	border-right: 0.125em solid #555;
	border-bottom: 0.125em solid #555;
}

.custom-select {
	position: relative;
}

.custom-select select {
	display: none;
}

.custom-select select {
	position: relative;
	-webkit-appearance: none;
	-moz-appearance: none;
}

.custom-select select::-ms-expand {
	display: none;
}

.select-selected {
	background-color: transparent;
	cursor: pointer;
	color: #444;
}

.select-arrow-active {
	border: 2px solid #555;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.select-selected:after {
	position: absolute;
	content: "";
	background-image: url(images/selectnuoli.svg);
	top: 0;
	right: 0;
	width: 40px;
	height: 100%;
	background-position: center center;
	background-repeat: no-repeat;
	transition: all .25s ease;
}

.select-selected.select-arrow-active:after {
	transform: rotate(180deg);
}

.select-items div {
	color: #ffffff;
	padding: 0.5em 1.1em;
	border: 1px solid transparent;
	border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
	cursor: pointer;
}

.select-items {
	position: absolute;
	background-color: #555;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 99;
}

.select-hide {
	display: none;
}

.select-items div:hover,
.same-as-selected {
	background-color: rgba(0, 0, 0, 0.1);
}

/* Gravity forms styles */

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

.gfield {
	margin: 0 0 1em 0;
}

.ginput_container {
	position: relative;
}

.hidden_label label.gfield_label {
	display: none;
}

.validation_error,
.gform_confirmation_message {
	color: #790000;
	padding: 0.5em 0;
	border-bottom: 2px solid #790000;
	border-top: 2px solid #790000;
	margin: 1em 0;
	text-align: center;
	font-weight: 700;
}

.gform_confirmation_message {
	border-bottom: 2px solid #56a700;
	border-top: 2px solid #56a700;
	color: #56a700;
}

.validation_message {
	color: #790000;
}

.gfield_error {
	padding: 0.5em 0;
	border-top: 1px solid #790000;
	border-bottom: 1px solid #790000;
	background: rgba(0,0,0,0.03);
}

.gfield_error .gfield_label {
	color: #790000;
}

.gfield_required {
	color: #790000;
	padding: 0 0 0 0.25em;
}

/* Custom and accessible radio and checkbox inputs */

.gfield_checkbox li,
.ginput_container_consent,
.gfield_radio li {
	cursor: pointer;
	position: relative;
	padding: 0;
	display: inline-block;
	margin: 0 2em 0.75em 0;
}

.ginput_container_consent {
	display: block;
}

.gfield_checkbox li input,
.ginput_container_consent input,
.gfield_radio li input {
	position: absolute;
	margin-left: 6px;
	right: 0;
	width: auto;
	opacity: 0;
}

.gfield_checkbox label,
.ginput_container_consent label,
.gfield_radio label {
	margin: 0.8em 0;
	cursor: pointer;
	position: relative;
	padding: 0 0 0 40px;
	z-index: 1;
	display: inline-block;
}

.gfield_checkbox li:hover label:before,
.gfield_checkbox li input:focus + label::before,
.ginput_container_consent:hover label:before,
.ginput_container_consent input:focus + label::before,
.gfield_radio li:hover label:before,
.gfield_radio li input[type="radio"]:focus + label::before {
	border: 2px solid #555;
	outline: rgba(0,0,0,0.5) dotted 1px;
}

.gfield_checkbox li label:before,
.gfield_checkbox li label:after,
.ginput_container_consent label:before,
.ginput_container_consent label:after,
.gfield_radio li label:before,
.gfield_radio li label:after {
	transition: all .1s ease;
}

.gfield_checkbox li label:before,
.ginput_container_consent label:before,
.gfield_radio li label:before {
	content: '';
	background: transparent;
	border-radius: 3px;
	border: 2px solid #aaa;
	cursor: pointer;
	display: inline-block;
	height: 30px;
	position: absolute;
	top: 50%;
	left: 0;
	margin: 0;
	width: 30px;
	box-sizing: border-box;
	transform: translate(0,-50%);
	background-repeat: no-repeat;
	background-size: 14px 12px;
	background-position: center center;
}

.gfield_checkbox input:checked,
.ginput_container_consent input:checked,
.gfield_radio input:checked {
	background: #aaa;
}

.gfield_checkbox input:checked+label:before,
.ginput_container_consent input:checked+label:before,
.gfield_radio input:checked+label:before {
	border: 2px solid #555;
	background-color: #555;
}

.gfield_checkbox li:after,
.ginput_container_consent:after,
.gfield_radio li:after {
	content: "";
	position: absolute;
	height: 30px;
	width: 30px;
	top: 50%;
	left: 0;
	background-image: none;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 14px 12px;
	transform: translate(0,-50%);
}

.gfield_checkbox input:checked+label:before,
.ginput_container_consent input:checked+label:before,
.gfield_radio input:checked+label:before {
	background-image: url(images/check.svg);
}

.gfield_radio li label:before {
	border-radius: 50%;
}

/* Social share style */

.social-link,
a.social-link {
	padding: 0.5em 1em;
	color: #fff;
	font-size: 1em;
	margin: 0 5px 5px 0;
	cursor: pointer;
	-moz-background-clip: padding;
	-webkit-background-clip: padding-box;
	display: inline-block;
	text-decoration: none;
}

.social-link:hover,
.social-link:active,
a.social-link:hover {
	color: #fff;
	text-decoration: none;
}

.social-twitter {
	background: #00aced;
}

.social-twitter:hover,
.social-twitter:active {
	background: #0084b4;
}

.social-facebook {
	background: #3B5997;
}

.social-facebook:hover,
.social-facebook:active {
	background: #2d4372;
}

.social-pinterest {
	background: #bd081c;
}

.social-pinterest:hover,
.social-pinterest:active {
	background: #980515;
}

.social-linkedin {
	background: #0074A1;
}

.social-linkedin:hover,
.social-linkedin:active {
	background: #006288;
}

a.social-whatsapp {
	background: #43d854;
	display: none;
}

a.social-whatsapp:hover,
a.social-whatsapp:active {
	background: #009688;
}

.social-email {
	background: #0166ff;
}

.social-email:hover,
.social-email:active {
	background: #024bbb;
}

.social-social {
	text-align: left;
	display: inline-block;
	position: relative;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	font-size: 1em;
}

.social-share-title {
	display: block;
	margin: 3em 0 1em 0;
}


/*
# Navigation
============================================================= */

/*
## Links
============================================================= */
a:focus {
	outline: thin dotted;
}

a:hover, a:active {
	outline: 0;
	text-decoration: none;
}

/*
## Menus
============================================================= */
.main-navigation {
	clear: both;
	display: block;
	width: auto;
	z-index: 9;
	position: relative;
}

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

.main-navigation ul ul {
	position: absolute;
	top: -999px;
	left: 50%;
	transform: translate(-50%,0);
	z-index: 999;
	background: var(--oranssi);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease 0.2s;
	flex-direction:column;
}

.main-navigation ul ul:before {
	content: "";
    border-style: solid;
    border-width: 0 .5em .5em;
    border-color: transparent transparent #3b3b3b;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%,-95%);
}

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

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

.main-navigation ul ul a,
.main-navigation ul ul a:visited {
	width: 200px;
	font-weight: 400;
    padding: 0.5em 1em;
    font-size: 0.875em;
	color:#fff;
}

.main-navigation ul ul a:hover {
	background-color: var(--tummaoranssi);
	color: #fff;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul,
.main-navigation ul ul.submenu-toggled {
	top: 100%;
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.main-navigation li {
	position: relative;
}

.main-navigation a,
.main-navigation a:visited {
	display: block;
	text-decoration: none;
	padding: 1em;
	font-size: 1.125em;
	color: var(--harmaa);
	transition: all 0.2s ease;
}

.main-navigation a:hover,
.main-navigation li.current_page_item > a,
.main-navigation.toggled a:hover {
	color: #43b4d6;
}

.main-navigation li.menu-item-has-children {
	margin: 0 0.8em 0 0;
}

.dropdown-toggle {
	position: absolute;
	top: 50%;
	right: 0;
	height: 13px;
	width: 13px;
	background-color: transparent;
	color: transparent;
	line-height: 0;
	padding: 0;
	transform: translate(0,-50%);
	transition: all 0.2s ease;
	outline-style: none;
	border: none;
}

.dropdown-toggle path {
	fill: #111;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
	background-color: transparent;
}

.dropdown-toggle:hover path,
.dropdown-toggle-toggled path {
	fill: #43b4d6;
}

.dropdown-toggle-toggled {
	transform: rotate(180deg) translate(0,50%);
}

/* Small menu */
.menu-toggle {
	display: none;
	background: transparent;
	padding: 0;
	outline: none;
	position: relative;
    width: 40px;
    height: 24px;
	z-index: 999999;
	border: none;
}

.menu-toggle:hover,
.menu-toggle:focus {
	background: transparent;
}

.hamburger-inner {
	top: 50%;
	transform: translate(0,-50%);
}

.hamburger-inner,
.hamburger-inner:after,
.hamburger-inner:before {
	position: absolute;
	width: 40px;
	height: 4px;
	transition-timing-function: cubic-bezier(.55,.055,.675,.19);
	transition-duration: .22s;
	transition-property: transform;
	border-radius: 4px;
	background-color: var(--oranssi);
	display: block;
}

.hamburger-inner:after,
.hamburger-inner:before {
	display: block;
	content: "";
}

.hamburger-inner:after {
	bottom: -10px;
	transition: bottom .1s ease-in .25s,transform .22s cubic-bezier(.55,.055,.675,.19);
}

.hamburger-inner:before {
	top: -10px;
	transition: top .1s ease-in .25s,opacity .1s ease-in;
}

.main-navigation.toggled .menu-toggle .hamburger-inner {
	transition-delay: .12s;
	transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
	transform: rotate(225deg);
	background: #fff;
}

.main-navigation.toggled .menu-toggle .hamburger-inner:before {
	top: 0;
	transition: top .1s ease-out,opacity .1s ease-out .12s;
	opacity: 0;
}

.main-navigation.toggled .menu-toggle .hamburger-inner:after {
	bottom: 0;
	transition: bottom .1s ease-out,transform .22s cubic-bezier(.215,.61,.355,1) .12s;
	transform: rotate(-90deg);
	background: #fff;
}

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

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

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

/*
# 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: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

#content[tabindex="-1"]:focus {
	outline: 0;
}

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

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

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

/*
# Clearings
============================================================= */
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: "";
	display: table;
	table-layout: fixed;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}

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

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

/*
# Content
============================================================= */

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

.hentry {
	margin: 0 0 1.5em;
}

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

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

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

.post {
	margin: 5em 0;
}

/*
## Comments
============================================================= */

.comment-list {
	padding: 0;
}

.comment-body {
	background: #f1f1f1;
	padding: 1.5em;
	margin: 1.5em 0 0 0;
}

.children .comment-body {
	margin: 0.5em 0 0 0;
}

.comment-meta {
	margin: 0 0 1em 0;
}

.comment-author {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.comment-author * {
	margin: 0 5px 0 0;
}

.comment-author img {
	border-radius: 50%;
	margin: 0 10px 0 0;
}

.comment-metadata a {
	color: #777;
}

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

.bypostauthor {
	display: block;
}

/*
## Search & 404
============================================================= */

.error-404 .page-content,
.page-search,
.no-results {
	text-align: center;
}

.search-form {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.search-form input[type="search"] {
	margin: 0;
}

.search-form input[type="submit"] {
	padding: 0.5em 2em;
	margin: 0 0 0 1em;
	border-radius: 3px;
}

.page-search .entry-summary {
	margin: 0;
}

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

.page-search h2 {
	margin: 0.5em 0;
}

.page-search .posts-navigation {
	margin: 3em 0 0 0;
}

.page-search article {
	margin: 5em 0;
}

.page-search article:first-of-type {
	margin-top: 0;
}

/*
# Infinite scroll
============================================================= */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

.infinity-end.neverending .site-footer {
	display: block;
}

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

embed,
iframe,
object {
	max-width: 100%;
}

.custom-logo-link {
	display: inline-block;
}

/*
## Images & SVG
============================================================= */

#sivututka-svg-logokuva {
	display: block;
	transition: all 0.2s ease;
}

#sivututka-svg-logokuva path,
#sivututka-svg-logokuva ellipse {
	fill: #111;
}

#sivututka-svg-logo path,
#sivututka-svg-logo ellipse {
	fill: #999;
}

#sivututka-svg-logo:hover path {
	fill: #111;
}

#sivututka-svg-logo:hover ellipse,
#sivututka-svg-logokuva:hover ellipse {
	fill: #43b4d6;
}

.fa-chevron-down {
	fill: #111;
}

/*
## 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.375em 0;
}

.wp-caption-text {
	text-align: center;
	font-style: italic;
}

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

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

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

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

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

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

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

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

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

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

.gallery-caption {
	display: block;
}

/*
# Containers
============================================================= */

.container {
	position: relative;
	max-width: 75em; /* 1200px */
	margin: 0 auto;
	padding: 0 2em;
	box-sizing:border-box;
}

.container-narrow {
	max-width: 750px;
	margin: 0 auto;
}

/*
# Default styles
============================================================= */

/*
## Header
============================================================= */

.site-header {
	z-index: 99999;
}

.site-header-wrapper { 
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 0;
	transition: all 0.2s ease;
}

.site-branding {
	padding:0 2em 0 0;
	box-sizing:border-box;
}

.site-title {
	margin:0;
}

.site-title a {
	display:block;
}

.site-title img {
	display:block;
}

.site-branding svg {
	width: 14em;
	height: 1.45em;
	display: block;
}

/*
## Hero
============================================================= */

.entry-header {
	padding: 12em 0 3em 0;
	background-color: transparent;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.entry-header h1 {
	margin: 0;
	max-width: 700px;
}

/*
## Footer
============================================================= */

.site-footer {
	padding: 4em 0 2em 0;
	margin: 4em 0 0 0;
	border-top: 1px solid var(--oranssi);
}

.footer1 {
	display: flex;
	flex-wrap: wrap;
}

.footer11 {
	width: 40%;
}

.footer12 {
	width: 60%;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	flex-direction: column;
}

.footer12 div {
	text-align: right;
	padding: 0 0 2em 4em;
}

.footer12 a,
.footer12 a:visited {
	color: var(--harmaa);
	text-decoration: none;
}

.footer12 a:hover {
	color: var(--harmaa);
	text-decoration: underline;
}

.footer12 ul {
	list-style-type: none;
	margin: 1.5em 0 0 0;
	padding: 0;
}

.footer11 svg {
	width: 200px;
	height: 21px;
	display: block;
}

.footer111 {
	margin: 3em 0 0 0;
}

.site-footer p {
	font-size: 1em;
	margin: 0 0 0.5em 0;
}

.topscroll {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 45px;
	height: 45px;
	background: #999;
	cursor: pointer;
	padding: 0;
	transition: all 0.2s ease;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	border: none;
}

.topscroll-show {
	opacity: 1;
	visibility: visible;
}

.topscroll span {
	background: #fff;
	width: 12px;
	height: 3px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-3px,-50%) rotate(45deg);
	transition: all 0.2s ease;
}

.topscroll span:last-of-type {
	transform: translate(-10px,-50%) rotate(-45deg);
}

.topscroll:hover span {
	top: 40%;
}

/*
## Posts list
============================================================= */

.post-list {
	margin: 5em 0;	
}

.post-list-header {
	margin:0 0 1em 0;	
}

.post-list-title {
	margin: 0.3em 0 0 0;
}

.post-list-thumb img {
	display: block;
}


/*
## Animations
============================================================= */

/*
# Media queries
============================================================= */

/* Largest Devices, Wide Screens, 1401px -> */
@media only screen and (min-width: 87.5625em) {

}

/* Larger Devices, Wide Screens, Up to 1400px */
@media only screen and (max-width: 87.5em) {

	.container {
		max-width: 63.75em;
	}
	
}

/* Large Devices, Wide Screens, Up to 1200px */
@media only screen and (max-width: 75em) {
	
	body {
		font-size:95%;
	}

}

/* Medium Devices, Desktops, Up to 992px */
@media only screen and (max-width: 62em) {
	
	body {
		font-size:90%;
	}
	
	
}

/* Small Devices, Tablets, Up to 768px */
@media only screen and (max-width: 48em) {
	
	body {
		font-size: 85%;
	}
	
	a.social-whatsapp {
		display: inline-block;
	}
	
	.social-social {
		padding: 0;
	}
	
	.social-social:before {
		left: -20px;
	}
	
}

/* Small Devices, Tablets, Up to 600px */
@media only screen and (max-width: 37.5em) {

	/* Mobile navigation begins*/
	.menu-toggle {
		display: block;
	}

	.main-navigation ul.nav-menu {
		visibility: hidden;
		background: #333;
		display: block;
		max-height: 100%;
		height: 100vh;
		overflow: auto;
		clip: auto;
		position: fixed;
		top: 0;
		right: 0;
		max-width: 90%;
		min-width: 15em;
		padding: 5em 0 1em 0;
		opacity: 0;
		box-sizing: border-box;
		z-index: 99999;
		transform: translate(100%,0);
	}

	.main-navigation li { display:none; }

	.dropdown-toggle {
		width:2.875em;
		height:2.875em;
		transform: translate(0,-50%);
	}

	.main-navigation.toggled ul.nav-menu {
		visibility: visible;
		opacity: 1;
		transform: translate(0,0);
	}

	.main-navigation.toggled li {
		float:none;
	}

	.main-navigation.toggled li.menu-item-has-children {
		margin:0;
	}

	.main-navigation.toggled a,
	.main-navigation.toggled ul ul a {
		color:#fff;
		padding: 0.7em 2em;
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.main-navigation.toggled ul ul {
		position: relative;
		top: 0;
		left: 0;
		transform: none;
		opacity: 1;
		visibility: visible;
		overflow: hidden;
		max-height: 0;
	}

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

	.main-navigation.toggled ul ul.submenu-toggled {
		max-height:500px;
	}

	.main-navigation.toggled ul ul:before {
		content: none;
	}

	.main-navigation.toggled .dropdown-toggle {
		top: 0.4em;
		right: 1.25em;
		transform: none;
		background-color: #444;
		background-image: none;
		height: 2em;
		width: 2em;
	}

	.dropdown-toggle path {
		fill: #fff;
	}

	.dropdown-toggle:hover path,
	.dropdown-toggle-toggled path {
		fill: #43b4d6;
	}

	.dropdown-toggle-toggled svg {
		transform: rotate(180deg);
	}

	.no-scroll { 
		overflow: hidden;
	}
	/* Mobile navigation ends */

}

/* Extra Small Devices, Phones, Up to 480px */ 
@media only screen and (max-width: 30em) {
	
	body {
		font-size: 80%;
	}
	
	.container {
		padding: 0 1em;
	}
	
	.search-form label {
		width: 100%;
	}
	
	.search-form input[type="search"] {
		width: 100%;
		margin:0 0 0.5em 0;
	}

	.search-form input[type="submit"] {
		padding: 1em 2em;
		margin: 0;
		width: 100%;
		box-sizing: border-box;
	}
	
}

/* Custom, iPhone Retina, Up to 320px */ 
@media only screen and (max-width: 20em) {
	
	body {
		font-size: 70%;
	}
	
}