/*
Theme Name: Theme Ukkonen
Author: Markkinointi Ukkonen
Author URI: https://www.markkinointiukkonen.fi
Description: Markkinointi Ukkosen Teema. Vaatii PHP7:n. ACF PRO files are not to be used or distributed outside of the premium theme/plugin.
Version: 1.5.4
License: GNU General Public License
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: themeukkonen
*/

/* MUUTETTAVAT START */

#main_header.fixed+section#hero > div {
	top: 65px;
}

/* MUUTETTAVAT END */

html, body, section, main, aside, nav, ul {
	margin: 0;
	padding: 0;
}

html, body, div {
	font-size: 18px;
}

body {
	background: #c0c0c0;
	max-width: 100%;
	overflow-x: hidden;
}

section,
main,
aside,
header,
footer {
	display: block;
	box-sizing: border-box;
}

footer {
	color: #fff;
}

a {
	text-decoration: none;
	color: inherit;
}

a:hover {
	text-decoration: underline;
}

p,
a,
span,
h1,
h2,
h3,
h4,
h5,
h6 {
	line-height: 1.5em;
}

#hero h1 {
	margin-bottom: 0;
}

p {
    margin: 1em 0;
}

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

img.aligncenter {
    margin: 0 auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 1em 0 0.5em 0;
	line-height: 1.25em;
}

.osio.isoteksti .rivi > div {
	font-size: 150%;
}

blockquote {
	quotes: '"' '"' '"' '"';
	font-style: italic;
}

blockquote:before {
    content: open-quote;
}

blockquote:after {
    content: close-quote;
}

ul {
    padding-left: 25px;
}

li {
	line-height: 1.5em;
	list-style-position: inside;
}

video {
	width: 100% !important;
	height: auto !important;
}

.testipalikka {
	display: block;
	border: 1px solid #000;
	box-sizing: border-box;
	color: red;
	background: #fff;
}

.alignleft {
    float: left;
    margin: 0.3em 2em 2em 0;
}

.alignright {
    float: right;
    margin: 0.3em 0 2em 2em;
}

.wp-caption-text {
    font-size: 0.9em;
    font-style: italic;
    margin-top: 0.25em;
}

#main_content ol {
    padding-left: 5px;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

.relative {
	position: relative;
}

.nappula,
span.nappula,
a.nappula {
    display: inline-block;
    padding: 1em 2em;
    cursor: pointer;
    text-decoration: none;
	transition: background 0.15s linear;
}

.nappulawrapper {
	display: block;
	margin: 1em 0;
}

.nappulawrapper.tekstinjoukossa {
    display: inline-block;
    margin-left: 1em;
    margin-right: 1em;
}

.nappulawrapper.tekstinjoukossa > a {
    min-width: 174px;
}

.nappulawrapper.vasen {
	text-align: left;
}

.nappulawrapper.keski {
	text-align: center;
}

.nappulawrapper.oikea {
	text-align: right;
}

.slide_rajoittaja,
.big_wrapper,
.overlay_sisalto {
    position: relative;
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
}

.slide_rajoittaja > *:first-child {
	margin-top: 0;
	padding-top: 0;
}

.slide_rajoittaja > *:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
}

.medium_wrapper {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
}

.small_wrapper {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
}

.flexbox {
	display: flex;
}

.flexbox.center {
	justify-content: center;
	align-items: center;
}

.flexbox.wrap {
	flex-wrap: wrap;
}

.flexbox.column {
	flex-direction: column;
}

.flexbox > .grow {
	flex-grow: 1;
}

.flexbox.four_in_row > * {
	width: 25%;
	box-sizing: border-box;
	margin-left: 0;
	margin-right: 0;
}

.flexbox.three_in_row > * {
	width: calc(100% / 3);
	box-sizing: border-box;
	margin-left: 0;
	margin-right: 0;
}

.flexbox.two_in_row > * {
	width: 50%;
	box-sizing: border-box;
	margin-left: 0;
	margin-right: 0;
}

header#main_header.transparent {
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
}

.home header#main_header.transparent {
    position: absolute;
    top: 0;
}

.home #main_header.fixed {
	position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.home #main_header.absolute {
	position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

header#main_header {   
    position: relative;
    z-index: 10;
}

.admin-bar #main_header.fixed {
	top: 32px;
}

#main_header > .big_wrapper {
	display: flex;
}

#main_header > .big_wrapper > #main_logo {
	width: 30%;
	max-width: 30%;
}

#main_header > .big_wrapper > #main_nav {
	flex-grow: 1;
}

.nav_wrapper {
    height: 100%;
}

ul#main_navigation,
ul#mobile_top_navigation {
	flex-wrap: wrap;
    padding-left: 0;
	height: 100%;
}

#main_logo {
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

#main_logo > a {
	padding: 0;
    line-height: initial;
	display: flex;
    align-items: center;
	box-sizing: border-box;
}

#main_logo > a,
#main_logo > a:hover {
	text-decoration: none;
}

/* HERO */
section#hero p {
	margin-top: 0;
	margin-bottom: 0.5em;
}

section#hero h1,
section#hero h2,
section#hero h3,
section#hero h4,
section#hero h5,
section#hero h6 {
	margin-top: 0;
	margin-bottom: 0em;
}

section#hero {
	position: relative;
    margin: 0 auto;
    box-sizing: border-box;
    max-height: 1200px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

section#hero.video,
.home section#hero.video {
	max-height: unset;
}

.home section#hero {
    max-height: calc(100vh - 77px);
}

section#hero > img {
    width: 100%;
    height: auto;
}

section#hero div {
	font-size: inherit;
}

section#hero > div {
    position: absolute;
	top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: flex;
    align-items: center;
    text-align: initial;
    justify-content: center;
    color: #fff;
    line-height: 1em;
	box-sizing: border-box;
	padding: 18px 2em;
}

#hero,
.oletuskuva {
	background-size: cover !important;
	background-position: center !important;
}

/*
.single #hero .artikkeli_paivays,
.oletuskuva h1 {
    text-shadow: 0.08em 0.08em rgba(0,0,0,0.6);
}
*/

/* NAVIGAATIO */
ul.menu {
    padding-left: 0;
    list-style: none;
}

#main_navigation,
#mobile_top_navigation {
	display: flex;
	justify-content: flex-end;
}

#main_navigation > li,
#mobile_top_navigation > li {
	display: block;
	position: relative;
}

#main_navigation > li > a,
#mobile_top_navigation > li > a {
	display: block;
	padding: 1em 0.75em;
}

#main_navigation > li.menu-item-has-children > a:first-child::after {
    content: " \25be";
    float: right;
    display: block;
    position: relative;
    bottom: 2px;
    margin-left: 5px;
}

#main_navigation > li > a,
#mobile_top_navigation > li > a {
    min-height: 100%;
    box-sizing: border-box;
	display: flex;
    align-items: center;
	transition: background 0.15s linear;
	font-size: 1em;
}

#mobile_top_navigation ul.sub-menu,
#top_navigation ul.sub-menu {
    display: none !important;
}

#main_navigation > li:hover > a,
#mobile_top_navigation > li:hover > a,
#main_navigation > li.current-menu-item > a,
#mobile_top_navigation > li.current-menu-item > a {
	text-decoration: none;
}

#main_navigation .sub-menu,
#mobile_top_navigation .sub-menu {
	display: block;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 0;
    margin: 0;
    z-index: 10;
    background: #000;
    font-size: 0.9em;
    min-width: 100%;
    width: auto;
    white-space: nowrap;
    box-sizing: border-box;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s;
}

#main_navigation .sub-menu a,
#mobile_top_navigation .sub-menu a {
	display: block;
	padding: 5px 2em;
	padding-left: 20px;
    padding-right: 20px;
}

#main_navigation .sub-menu a:hover,
#mobile_top_navigation .sub-menu a:hover {
	color: #fff;
	text-decoration: none;
}

#main_navigation .sub-menu li {
	display: block;
}

main#main_content {
    padding: 0 1em;
    margin: 0;
}

main#main_content > .medium_wrapper {
	margin-top: 3.5em;
	margin-bottom: 3.5em;
}

#main_content .medium_wrapper:empty {
    display: none;
}

div#content_wrapper {
    display: flex;
}

main#main_content {
    flex-grow: 1;
}

aside#main_sidecontent {
    width: calc(100% / 4);
    background: #fff;
    padding: 2em;
    border-left: 1px solid rgba(0,0,0,0.25);
}

#footer_top_wrapper {
	padding: 3em 1em 2em 1em;
	box-sizing: border-box;
}

.main_footer_top {
	padding: 0;
}

.main_footer_bottom {
	padding: 0;
}

#footer_bottom_wrapper {
	padding: 2em 1em 2em 1em;
	box-sizing: border-box;
}

footer#main_footer {
	position: relative;
	padding: 0 2em;
}

#footer_wrapper > .widget-container {
	padding: 2em 1em;
	width: auto;
	flex-basis: 0;
	flex-grow: 1;
}

#footer_wrapper > .widget-container:first-of-type {
	padding-left: 0;
}

#footer_wrapper > .widget-container:last-of-type {
	padding-right: 0;
}

footer ul {
    list-style: none;
    padding-left: 0;
	text-align: center;
}

span.post-date {
    display: block;
    font-size: 0.8em;
    line-height: 0.7em;
    font-style: italic;
	margin-bottom: 0.75em;
}

#footer_top_wrapper:empty,
#footer_wrapper:empty,
#footer_bottom_wrapper:empty {
	display: none;
}

#mobile_nav_toggle {
	display: none;
}

.widget-title {
    font-size: 1.3em;
    margin-bottom: 0.5em;
    display: block;
}

section.palkki {
    display: block;
    box-sizing: border-box;
    padding: 2em 1em;
	position: relative;
}

.palkit > section.palkki {
	display: flex;
	padding: 0;
}

.palkit > section.palkki:nth-of-type(2n) {
	flex-direction: row-reverse;
}

.palkki_oikea {
	padding: 200px 50px;
}

.palkki_vasen,
.palkki_oikea {
	display: block;
	width: 50%;
	box-sizing: border-box;
}
.palkki_oikea {
	display: flex;
	align-items: center;
	justify-content: center;
}

.palkki_oikea_wrapper {
	display: block;
	width: 800px;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
}

.palkit > section.palkki h1:first-of-type,
.palkit > section.palkki h2:first-of-type,
.palkit > section.palkki h3:first-of-type,
.palkit > section.palkki h4:first-of-type,
.palkit > section.palkki h5:first-of-type,
.palkit > section.palkki h6:first-of-type {
	text-align: center;
}

section.palkki h1:first-of-type,
section.palkki h2:first-of-type,
section.palkki h3:first-of-type,
section.palkki h4:first-of-type,
section.palkki h5:first-of-type,
section.palkki h6:first-of-type {
	margin-top: 0;
}

.palkki a:not(.nappula) {
    color: inherit;
    font-weight: bold;
}

.mobile_nav_toggle_right {
	cursor: pointer;
}

.overlay {
	position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    box-sizing: border-box;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="submit"],
.wpcf7-form textarea {
    display: block;
    width: 100%;
    padding: 10px 15px;
    font-size: 20px;
    box-sizing: border-box;
    border: 0;
    border-radius: 15px;
}

.wpcf7-form input[type="radio"] {
    font-size: 43px;
    width: 20px;
    height: 20px;
    display: inline-block;
}

.wpcf7-radio span.wpcf7-list-item {
    display: block;
    margin-left: 0;
}

.wpcf7-radio label {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
	cursor: pointer;
}

.wpcf7-submit {
	cursor: pointer;
}

.wpcf7-submit:hover {
	opacity: 0.9;
}

.before_map_widget .textwidget {
    text-align: center;
}

.google-maps {
	max-width:100%;
    position: relative;
    padding-bottom: 20%;
    overflow: hidden;
	margin: 0;
}

.wpcf7-form input[type="checkbox"], .wpcf7-form input[type="radio"] {
	display: inline-block;
	width: auto;
	border: 0;
}

span.wpcf7-list-item {
	margin-left: 0;
}

.youtube_wrapper { position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}

.youtube_wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.woocommerce .woocommerce-breadcrumb a:last-of-type::after {
    content: '';
}

.google-maps iframe {
	pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.woocommerce #main_content h1.page-title {
	display: none;
}

.wpcf7-form input[type="text"], .wpcf7-form input[type="tel"], .wpcf7-form input[type="number"], .wpcf7-form input[type="email"], .wpcf7-form input[type="submit"], .wpcf7-form textarea {
    border: 0;
    border-radius: 0;
	margin: 3px 0 10px 0;
}

.solu .wpcf7-form input[type="text"],
.solu .wpcf7-form input[type="tel"],
.solu .wpcf7-form input[type="number"],
.solu .wpcf7-form input[type="email"],
.solu .wpcf7-form textarea,
.bg_fff .wpcf7-form input[type="text"],
.bg_fff .wpcf7-form input[type="tel"],
.bg_fff .wpcf7-form input[type="number"],
.bg_fff .wpcf7-form input[type="email"],
.bg_fff .wpcf7-form textarea,
.bg_ffffff .wpcf7-form input[type="text"],
.bg_ffffff .wpcf7-form input[type="tel"],
.bg_ffffff .wpcf7-form input[type="number"],
.bg_ffffff .wpcf7-form input[type="email"],
.bg_ffffff .wpcf7-form textarea {
	border: 1px solid #000;
}

.wpcf7-form input[type="submit"] {
	opacity: 1.0 !important;
	transition: 0.25s all;
}

/*
.wpcf7-form input[type="submit"]:hover {
	opacity: 0.75;
}
*/

#main_content hr {
    display: block;
    margin: 50px 0 75px 0;
}

.text_white {
	color: #fff;
}

.v_middle .rivi {
    align-items: center;
}

.rivi {
	display: flex;
	flex-wrap: wrap;
	margin-left: -20px;
	margin-right: -20px;
	box-sizing: border-box;
}

.rivi > * {
	padding: 20px;
	box-sizing: border-box;
}

.rivi > * > h1:first-child,
.rivi > * > h2:first-child,
.rivi > * > h3:first-child,
.rivi > * > h4:first-child,
.rivi > * > h5:first-child,
.rivi > * > p:first-child {
	margin-top: 0;
}

.rivi > * > h1:last-child,
.rivi > * > h2:last-child,
.rivi > * > h3:last-child,
.rivi > * > h4:last-child,
.rivi > * > h5:last-child,
.rivi > * > p:last-child {
	margin-bottom: 0;
}

.solu12 {
	display: block;
	width: 100%;
	max-width: 100%;
}

.solu11 {
	display: block;
	width: calc(100% / 12 * 11);
	max-width: 100%;
}

.solu10 {
	display: block;
	width: calc(100% / 12 * 10);
	max-width: 100%;
}

.solu9 {
	display: block;
	width: 75%;
	max-width: 100%;
}

.solu8 {
	display: block;
	width: calc(100% / 12 * 8);
	max-width: 100%;
}

.solu7 {
	display: block;
	width: calc(100% / 12 * 7);
	max-width: 100%;
}

.solu6 {
	display: block;
	width: 50%;
	max-width: 100%;
}

.solu5 {
	display: block;
	width: calc(100% / 12 * 5);
	max-width: 100%;
}

.solu4 {
	display: block;
	width: calc(100% / 12 * 4);
	max-width: 100%;
}

.solu3 {
	display: block;
	width: 25%;
	max-width: 100%;
}

.solu2 {
	display: block;
	width: calc(100% / 12 * 2);
	max-width: 100%;
}

.solu1 {
	display: block;
	width: calc(100% / 12);
	max-width: 100%;
}

.v_middle {
	display: flex;
	justify-content: center;
	align-items: center;
}

.osio {
	padding-top: 20px;
	padding-bottom: 20px;
}

.osio.big_padding {
	padding-top: 85px;
	padding-bottom: 85px;
}

.osio.nopadding {
	padding-top: 0;
	padding-bottom: 0;
}

.osio.has_overlay {
    position: relative;
}

.osio.has_overlay::after {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: rgba(0,0,0,0.7);z-index: 1;
}

.osio.has_overlay .medium_wrapper {
    z-index: 2;
}

.morelineheight .rivi > div > * {
	line-height: 2em;
}

.lesslineheight .rivi > div > * {
	line-height: 0.8em;
}

.big_wrapper.template_flexible {
    max-width: 100%;
}

.big_wrapper.template_flexible main#main_content {
    padding: 0;
}

.big_wrapper.template_flexible main#main_content > .medium_wrapper {
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

img.wp-post-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.artikkeli a img.wp-post-image  {
	opacity: 1.0;
	transition: 0.25s all;
}

.artikkeli a:hover img.wp-post-image {
	opacity: 0.75;
}

.artikkeli_luelisaa {
    margin: 0;
}

h2.artikkeli_otsikko {
    margin-top: 20px;
	margin-bottom: 0;
}

.single section#hero {
    max-height: 530px;
}

.harmaapalkki ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
}

.harmaapalkki ul a {
    display: block;
    padding: 5px 20px;
	font-size: 15px;
}

.harmaapalkki ul li.current_page_item a,
.harmaapalkki ul li.current_page_parent a,
.harmaapalkki ul li.current-page-ancestor a {
		font-weight: bold;
}

.harmaapalkki {
    background: #dfe0e2;
}

.palvelulistaus span.nappula {
    display: inline-block;
    margin: 10px auto;
    font-size: 14px;
    clear: both;
}

section.palvelulistaus {
    display: block;
    box-sizing: border-box;
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
}

section.palvelulistaus > a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    background: #fff;
    text-decoration: none;
    transition: 0.5s all;
}

a.yksi_palvelulistaus > div {
    display: block;
    flex-grow: 1;
    text-align: center;
    font-size: 24px;
	padding: 20px 40px;
}

.palvelulistaus_otsikko {
	display: block;
}

section.palvelulistaus > a:hover {
    text-decoration: none;
    background: #f6f6f6;
}

section.palvelulistaus > a img {
		opacity: 1.0;
		transition: 0.5s all;
}

section.palvelulistaus > a:hover img {
		opacity: 0.7;
}

section.palvelunostot+#content_wrapper #main_content .medium_wrapper {
    margin-top: 0;
}

.embed-container {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
} 

.embed-container iframe,
.embed-container object,
.embed-container embed { 
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.single #hero h1 {
	margin-bottom: 0 !important;
}

p.artikkeli_paivays {
    font-size: 0.9em;
    font-style: italic;
    margin-top: 0px;
	margin-bottom: 0 !important;
}

/* PALVELUOSIO */
#section-about p.section-description.fs-large,
#section-about .section-header {
	margin-bottom: 0;
}

.palvelut_karuselli {
	display: flex;
	width: 1000px;
	max-width: 100%;
	flex-wrap: wrap;
	justify-content: center;
	box-sizing: border-box;
	position: relative;
	z-index: 2;
	margin: 25px auto;
	padding: 0 0.5%;
}

.palvelut_karuselli > article {
	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0.5%;
	padding: 0;
	background: rgba(255,255,255,0.8);
	border: 1px solid #c0c0c0;
	transition: background-color 0.5s ease;
}

.palvelut_karuselli > article > a {
	text-decoration: none;
}

.palvelut_karuselli > article:hover {
	background: rgba(255,255,255,0.95);
}

.palvelut_karuselli > article:last-of-type {
	border-right: 1px solid #c0c0c0;
}

.palvelut_karuselli > article h1 {
	font-size: 1.2em;
	word-break: break-word;
	overflow-wrap: break-word;
	margin-top: 0;
	text-align: center;
}

.palvelut_karuselli > article h1,
.palvelut_karuselli > article p {
	padding: 15px 25px;
	color: #000;
	margin-bottom: 0;
}

.palvelut_karuselli > article label {
	display: block;
	position: absolute;
	top: 25px;
	right: 0;
	font-size: 13px;
	padding: 0.25em 0.5em;
	text-transform: uppercase;
	margin: 0;
	background: rgba(245, 243, 54, 0.9);
	font-weight: bold;
	color: #000;
}

.img_wrap {
	display: block;
	position: relative;
	overflow: hidden;
	width: 100%;
	margin: 0;
}

.img_wrap img {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	-moz-transition: all 0.3s;
	-webkit-transition: all 0.3s;
	transition: all 0.3s;
}

.palvelut_karuselli > article:hover img,
.img_wrap:hover img {
	-moz-transform: scale(1.1);
	-webkit-transform: scale(1.1);
	transform: scale(1.1);
}

.palvelut_karuselli > article.moodi_center h1 {
	display: flex;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	justify-content: center;
	align-items: center;
	background: rgba(0,0,0,0.3);
	color: #fff;
	font-size: 1.25em;
	transition: background 0.2s linear;
	word-break: break-word;
}

.palvelut_karuselli > .moodi_pyorea {
    width: 250px;
    border: 0 !important;
    margin: 10px 25px;
}

.moodi_pyorea .img_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    max-height: 250px;
    border-radius: 125px;
    overflow: hidden;
}

.moodi_pyorea .img_wrap img {
    width: auto !important;
    max-width: unset !important;
    height: 250px;
}

.palvelut_karuselli > article.moodi_pyorea h1 {
	font-size: 24px;
}

.palvelut_karuselli > article.moodi_pyorea h1 {
	padding-bottom: 0;
}

.overlay.oletus {
	font-size: 1em;
}

#section-about p.section-description.fs-large,
#section-about .section-header {
	margin-bottom: 0;
}

.palvelut_karuselli_free {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	box-sizing: border-box;
	position: relative;
	z-index: 2;
	margin: 1% 0;
	padding: 0 0.5%;
}

.palvelut_karuselli > article {
	position: relative;
	width: 602px;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0.5%;
	padding: 0;
	background: rgba(255,255,255,0.8);
	border: 1px solid #c0c0c0;
	transition: background-color 0.5s ease;
}

.palvelut_karuselli_free > article > a {
	text-decoration: none;
}

.palvelut_karuselli_free > article:hover {
	background: rgba(255,255,255,0.95);
}

.palvelut_karuselli_free > article:last-of-type {
	border-right: 1px solid #c0c0c0;
}

.palvelut_karuselli_free > article h1 {
	font-size: 1.6em;
	margin-top: 0;
	text-align: center;
}

.palvelut_karuselli_free > article h1,
.palvelut_karuselli_free > article p {
	padding: 15px 25px;
	color: #000;
	margin-bottom: 0;
}

.palvelut_karuselli_free > article label {
	display: block;
	position: absolute;
	top: 25px;
	right: 0;
	font-size: 13px;
	padding: 0.25em 0.5em;
	text-transform: uppercase;
	margin: 0;
	background: rgba(245, 243, 54, 0.9);
	font-weight: bold;
	color: #000;
}

.img_wrap {
	display: block;
	position: relative;
	overflow: hidden;
	width: 100%;
	margin: 0;
}

.img_wrap img {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	-moz-transition: all 0.3s;
	-webkit-transition: all 0.3s;
	transition: all 0.3s;
}

.palvelut_karuselli_free > article:hover img,
.img_wrap:hover img {
	-moz-transform: scale(1.1);
	-webkit-transform: scale(1.1);
	transform: scale(1.1);
}

.palvelut_karuselli_free > article.moodi_center h1 {
	display: flex;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	justify-content: center;
	align-items: center;
	background: rgba(0,0,0,0.3);
	color: #fff;
	font-size: 2em;
	transition: background 0.2s linear;
	word-break: break-word;
}

.palvelut_karuselli_free > article.moodi_center:hover h1 {
	background: rgba(0,0,0,0.6);
}

.palvelut_karuselli > article.moodi_center:hover h1 {
	background: rgba(0,0,0,0.6);
}

/* TÄRKEÄT */
#main_header.transparent+section#hero > div {
    top: 0 !important;
}

#tulosta_kaikki,
#nayta_kaikki {
	width: calc(50% - 0.5em);
}

.wp-video {
	width: 100% !important;
	margin: 0.5em auto;
}

/* GALLERIA */
.galleria {
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
	padding-top: 0;
}

.galleria > a {
	display: block;
	width: calc((100% / 4) - 1em);
	margin: 0.5em;
}



/* HINNASTO */
#hinnasto {
	padding-top: 66px;
}

section.hinnasto_otsikot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

a.return_to_top,
a.hinnasto_otsikko {
    display: flex;
	align-items: center;
	justify-content: center;
    background: #000;
    color: #fff;
    padding: 0.25em 0.5em;
    margin: 0.25em;
    border: 1px solid #000;
    width: calc((100% / 3) - 0.5em);
    box-sizing: border-box;
    text-align: center;
    font-size: 0.85em;
	transition: background 0.25s;
}

a.hinnasto_otsikko.full {
    width: calc(100% - 0.5em);
    padding: 0.4em 0.6em;
}

a.return_to_top {
    width: 100%;
    padding: 0.4em 0.6em;
	box-sizing: border-box;
}

a.return_to_top:hover,
a.hinnasto_otsikko:hover {
	background: #91bf87;
	text-decoration: none;
}

.hinnasto_kategoria > h1 {
	font-size: 1.5em;
    padding-bottom: 0.25em;
	margin-top: 0;
	padding-top: 66px;
    border-bottom: 3px solid #91bf87;
}

.hinnasto_kategoria h2 {
	font-size: 1.25em;
}

.hinnasto_kategoria_item {
	margin-bottom: 0.5em;
	border-bottom: 1px solid #f3f3f3;
}

.hinnasto_kategoria_item:last-of-type {
    border-bottom: 0;
}

section#hinnasto {
    display: none;
}

.hinnasto_kategoria_item_price {
    font-size: 1.75em;
    margin: 0;
    padding: 0 0 25px 25px;
    display: block;
}

article.hinnasto_kategoria_item {
    clear: both;
}

article.hinnasto_kategoria_item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 00px;
    padding-bottom: 15px;
}

p.hinnasto_kategoria_item_price {
    order: 1;
    width: 200px;
    text-align: right;
    float: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0 0 0 25px;
}

article.hinnasto_kategoria_item > h2 {
    display: block;
    width: calc(100% - 200px);
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 0;
}

article.hinnasto_kategoria_item > p:last-child {
    display: block;
    width: 100%;
    order: 3;
    margin: 5px 0;
}

article.hinnasto_kategoria_item > p:last-child:empty {
    display: none;
}

/* REFERENSSIT */
article.referenssi {
    display: flex;
	align-items: flex-start;
	padding-bottom: 1.5em;
	margin-bottom: 1.5em;
	border-bottom: 1px solid rgba(0,0,0,0.1);
}

article.referenssi:last-of-type {
	border-bottom: 0;
}

.referenssi_kuva {
    width: 40%;
	min-height: 200px;
}

.referenssi_kuva > img {
	width: 400px;
	max-width: 100%;
	box-sizing: border-box;
	display: block;
}

.referenssi_data {
	width: 60%;
	box-sizing: border-box;
	padding: 0 1.5em 0 1.5em;
}

.referenssi_data h1 {
	margin-top: 0;
	font-size: 25px;
	margin-bottom: 0;
}

.referenssi_data h2 {
	margin: 0.5em 0;
	font-size: 20px;
}

.referenssi_data p {
	margin-bottom: 0;
}

section.lounaspaiva {
    display: none;
    text-align: center;
}

section.lounaspaiva.active {
    display: block;
}

.valitse_paiva {
		display: block;
		width: 100%;
}

.valitsepaiva {
    display: inline-block;
    padding: 0.5em;
    margin: 0.25em;
    border: 1px solid #000;
    background: #000;
    color: #fff;
	cursor: pointer;
	 width: calc((100% / 7) - 0.5em);
    box-sizing: border-box;
    text-align: center;
	text-decoration: none;
}

.valitsepaiva:hover,
.valitsepaiva.active {
	background: #c0c0c0;
    color: #fff;
	text-decoration: none;
}



/* YHTEISTYÖKUMPPANIT */
section#yhteistyokumppanit {
    display: flex;
	flex-wrap: wrap;
}

.yhteistyokumppani {
	justify-content: center;
	align-items: center;
	position: relative;
	width: calc((100% / 3) - 10px);
    display: flex;
	margin: 8px 0;
	min-height: 300px;
	background: rgba(0,0,0,0.1);
	transition: background 0.2s linear;
}

.yhteistyokumppani:hover {
	background: rgba(0,0,0,0.2);
}

.yhteistyokumppani:nth-of-type(2),
.yhteistyokumppani:nth-of-type(3n+2) {
	margin: 8px 15px;
}

.yhteistyokumppani > img {
    padding: 10px 10px 60px 10px;
}

.yhteistyokumppani > span {
	display: block;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	box-sizing: border-box;
	padding: 0.5em;
	background: rgba(0,0,0,0.75);
	color: #fff;
	text-align: center;
}

.woocommerce-LoopProduct-link img {
    max-height: 200px;
}

.woocommerce .products ul.columns-4,
.woocommerce ul.products.columns-4 {
    display: flex;
    flex-wrap: wrap;
	margin-left: -10px;
	margin-right: -10px;
}

.woocommerce ul.products li.product-category a img,
.woocommerce ul.products li.product a img {
    height: 200px;
    object-fit: contain;
    object-position: center;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products li.product-category,
.woocommerce-page ul.products li.product-category {
    padding: 0px;
    box-sizing: border-box;
}


.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link {
    padding: 20px;
    box-sizing: border-box;
    display: block;
    height: 100%;
    padding-bottom: 75px;
    background: #f7f7f7;
    transition: 0.25s background;
}

.woocommerce ul.products li.product-category a,
.woocommerce-page ul.products li.product-category a {
    padding: 20px;
    box-sizing: border-box;
    display: block;
    height: 100%;
    background: #f7f7f7;
    transition: 0.25s background;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link:hover,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link:hover,
.woocommerce ul.products li.product-category a:hover,
.woocommerce-page ul.products li.product-category a:hover {
	background: #e7e7e7;	
}

.woocommerce ul.products.columns-4 li.product,
.woocommerce-page ul.products.columns-4 li.product,
.woocommerce ul.products.columns-4 li.product-category,
.woocommerce-page ul.products.columns-4 li.product-category {
    display: block;
    margin: 0 10px 20px 10px;
    width: calc(25% - 20px);
    text-align: center;
    text-transform: uppercase;
    clear: none !important;
    position: relative;
}

.woocommerce ul.products li.product-category .button,
.woocommerce ul.products li.product .button {
    position: absolute;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
    background: #000;
    color: #fff;
    bottom: 0;
    left: 0;
	transition: 0.25s background;
}

.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
	background: #000;
	transition: 0.25s background;
}

.woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover {
	background: #353535;
}

.woocommerce ul.products li.product-category .button:hover,
.woocommerce ul.products li.product .button:hover {
    background: #353535;
}

.woocommerce ul.products li.product-category .woocommerce-placeholder,
.woocommerce ul.products li.product .woocommerce-placeholder {
    border: 0;
}

@media screen and (max-width: 950px) {
	.woocommerce ul.products.columns-4 li.product-category,
	.woocommerce-page ul.products.columns-4 li.product-category,
	.woocommerce ul.products.columns-4 li.product,
	.woocommerce-page ul.products.columns-4 li.product {
		width: calc((100% / 3) - 20px);
	}
}

@media screen and (max-width: 700px) {
	.woocommerce ul.products.columns-4 li.product-category,
	.woocommerce-page ul.products.columns-4 li.product-category,
	.woocommerce ul.products.columns-4 li.product,
	.woocommerce-page ul.products.columns-4 li.product {
		width: calc(50% - 20px);
	}
}

@media screen and (max-width: 400px) {
	.woocommerce ul.products.columns-4 li.product-category,
	.woocommerce-page ul.products.columns-4 li.product-category,
	.woocommerce ul.products.columns-4 li.product,
	.woocommerce-page ul.products.columns-4 li.product {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}

.woocommerce aside#main_sidecontent {
    margin-top: 3.5em;
}

.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
    background: #000;
    color: #fff;
    border-radius: 0;
    text-align: center;
    box-sizing: border-box;
    transition: 0.25s background;
}

.woocommerce #main_sidecontent #respond input#submit, .woocommerce #main_sidecontent a.button, .woocommerce #main_sidecontent button.button, .woocommerce #main_sidecontent input.button {
    width: 100%;
}

.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
    background: #353535;
    color: #fff;
}

ul.product-categories {
    list-style: none;
    padding-left: 0;
}

ul.product-categories ul.children {
    list-style: none;
    font-size: 0.9em;
    padding-top: 3px;
    padding-bottom: 6px;
    padding-left: 15px;
}

.woocommerce #respond input#submit.disabled, .woocommerce #respond input#submit:disabled, .woocommerce #respond input#submit:disabled[disabled], .woocommerce a.button.disabled, .woocommerce a.button:disabled, .woocommerce a.button:disabled[disabled], .woocommerce button.button.disabled, .woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled], .woocommerce input.button.disabled, .woocommerce input.button:disabled, .woocommerce input.button:disabled[disabled] {
    color: #fff;
}

section.related.products {
    clear: both;
}

#main_sidecontent span.widget-title {
    margin-bottom: 0;
}

#main_sidecontent p {
    margin-top: 0;
}

p.woocommerce-result-count {
    display: none;
}

.woocommerce .woocommerce-ordering {
    display: block;
    float: none;
    width: 100%;
}

.woocommerce .woocommerce-ordering select {
    display: block;
    width: 100%;
    padding: 5px;
    font-size: 20px;
    box-sizing: border-box;
    border: 1px solid #d0d0d0;
}

a.added_to_cart.wc-forward {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background: #000;
    color: #fff;
    font-weight: 700;
    padding: 15px 5px;
}

.blogi {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 2em;
  padding-bottom: 2em;
  border-bottom: 1px solid rgba(0,0,0,0.25);
}

.blogi > a {
  display: block;
  width: 430px;
  max-width: 43%;
  box-sizing: border-box;
  padding-right: 30px;
}

.blogi > a > img {
	display: block;
	opacity: 1;
	transition: opacity 0.2s linear;
}

.blogi > a:hover > img {
	opacity: 0.85;
}

.blogi_data {
  display: block;
  box-sizing: border-box;
  width: 570px;
  max-width: 57%;
}

.blogi_data h1 {
	margin-top: 0;
}

#hero .nappula {
    margin-top: 30px;
    padding: 15px 40px;
    text-shadow: none;
}

/* WOOCOMMERCE */
.qty {
    font-size: 19px;
    padding: 6px;
}

.product_meta {
	display: none;
}

.kuvaus {
	display: block;
	clear: both;
}

#coupon_code {
    font-size: 20px;
    width: auto;
}

.value select {
    width: 100%;
    font-size: 18px;
    margin-top: 6px;
}

.woocommerce .woocommerce-breadcrumb {
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    box-sizing: border-box;
    background: #ffd639;
    display: block !important;
    width: 100%;
    padding: 5px 25px;
    color: #000;
}

.woocommerce-breadcrumb::before {
    display: block;
    content: '';
    left: -100vw;
    top: 0;
    height: 100%;
    width: 100vw;
    background: #ffd639;
    position: absolute;
    z-index: -9;
}

.woocommerce-breadcrumb::after {
    display: block;
    content: '';
    right: -100vw;
    top: 0;
    height: 100%;
    width: 100vw;
    background: #ffd639;
    position: absolute;
    z-index: -9;
}

.woocommerce #main_content {
	padding-top: 35px;
}

.woocommerce .woocommerce-breadcrumb a {
    position: relative;
    margin-right: 5px;
}

li.current-cat a {
    font-weight: bold;
}

section#heroslider.slider {
	display: block;
}

#heroslider.slider .slide,
#heroslider.slider img {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.slide_link {
	display: block;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.slide_content {
	display: flex;
	position: absolute;
	flex-direction: column;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	padding: 25px;
	justify-content: center;
	align-items: center;
	background: rgba(0,0,0,0);
}

section#heroslider .slide_content p {
	margin-top: 0;
	margin-bottom: 0;
	color: #fff;
	font-size: 40px;
	line-height: 45px;
	text-align: center;
}

section#heroslider span.nappula {
	display: block;
	margin: 1em auto;
}

.slick-dots {
    bottom: 25px;
}

.slick-dots li button::before {
    font-size: 20px !important;
}

.slick-dots li button::before,
.slick-dots li button::after {
	color: #fff !important;
}

.slick-prev.slick-arrow {
    left: 25px;
    z-index: 10;
}

.slick-next.slick-arrow {
    right: 25px;
    z-index: 10;
}

.slick-prev, .slick-next {
	width: 35px;
	height: 35px;
}

.slick-prev::before, .slick-next::before {
    font-size: 35px !important;
}

div.wpcf7-response-output {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
}

div.wpcf7-mail-sent-ok {
    background: #3c823c;
    color: #fff;
}

div.wpcf7-validation-errors, div.wpcf7-acceptance-missing {
    background: #de3f34;
    color: #fff;
    font-weight: bold;
    border: 0;
}

.fullwrapper {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

#main_navigation > li.ostoskori > a.ikoni {
    padding-left: 45px;
    background-image: url(/wp-content/themes/themeukkonen/images/ostoskori_ikoni.png);
    background-size: 20px;
    background-position: left 1em center;
    background-repeat: no-repeat;
}

#main_navigation > li.ostoskori > a.nimi strong {
	padding-left: 3px;
}

main#main_content > .medium_wrapper:empty {
    margin: 0 !important;
}

.woocommerce #respond input#submit.alt.disabled, .woocommerce #respond input#submit.alt.disabled:hover, .woocommerce #respond input#submit.alt:disabled, .woocommerce #respond input#submit.alt:disabled:hover, .woocommerce #respond input#submit.alt:disabled[disabled], .woocommerce #respond input#submit.alt:disabled[disabled]:hover, .woocommerce a.button.alt.disabled, .woocommerce a.button.alt.disabled:hover, .woocommerce a.button.alt:disabled, .woocommerce a.button.alt:disabled:hover, .woocommerce a.button.alt:disabled[disabled], .woocommerce a.button.alt:disabled[disabled]:hover, .woocommerce button.button.alt.disabled, .woocommerce button.button.alt.disabled:hover, .woocommerce button.button.alt:disabled, .woocommerce button.button.alt:disabled:hover, .woocommerce button.button.alt:disabled[disabled], .woocommerce button.button.alt:disabled[disabled]:hover, .woocommerce input.button.alt.disabled, .woocommerce input.button.alt.disabled:hover, .woocommerce input.button.alt:disabled, .woocommerce input.button.alt:disabled:hover, .woocommerce input.button.alt:disabled[disabled], .woocommerce input.button.alt:disabled[disabled]:hover {
	background-color: #000;
}

a.reset_variations {
    background: #000;
    color: #fff;
    padding: 5px;
    display: inline-block;
    text-decoration: none;
    transition: 0.25s background;
}

a.reset_variations:hover {
    background: #353535;
}

.wpcf7-not-valid-tip {
    background: #dc3232;
    color: #fff;
    padding: 5px 10px;
    box-sizing: border-box;
    display: block;
    margin-top: -10px;
    margin-bottom: 10px;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output {
    background: #ffb900;
    color: #000;
    padding: 5px 15px;
    box-sizing: border-box;
    display: block;
    margin: 0;
    text-align: center;
}

.etusivupalkki {
    display: flex;
    padding: 50px;
    margin-top: -135px;
    z-index: 2;
    position: relative;
    background: #000;
    color: #fff;
    box-sizing: border-box;
    align-items: center;
}

.etusivupalkki_vasen {
    display: block;
    width: calc(100% - 200px);
    font-size: 1.25em;
    box-sizing: border-box;
    padding-right: 125px;
}

.etusivupalkki_oikea {
    display: block;
    width: 200px;
    box-sizing: border-box;
}

.etusivupalkki_oikea .nappula {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.etusivupalkki p {
    margin: 0;
}

/* MEDIA MIN-WIDTH */
@media screen and (min-width:1000px) {
	.main_footer_top,
	.main_footer_bottom {
		padding-left: 0;
		padding-right: 0;
	}
}

@media screen and (min-width:1051px) {
	.home.admin-bar #main_header.absolute {
		top: 32px;
	}

	#main_navigation > li:hover > .sub-menu,
	#mobile_top_navigation > li:hover > .sub-menu {
		max-height: 100vh;
		transition: max-height 0.6s ease-in;
	}
	
	.home.admin-bar header#main_header.transparent {
		top: 32px;
	}

	#main_nav {
		display: block !important;
	}
	
	#mobile_nav_toggle {
		display: none !important;
	}
	
	#main_navigation,
	#mobile_top_navigation {
		display: flex !important;
	}
	
	section#hero {
		background: none !important;
	}
	
	#mobile_top_navigation {
		display: none !important;
	}
}

/* MEDIA MAX-WIDTH */
@media screen and (max-width:1600px) {
	.palvelut_karuselli_free > article.moodi_center h1 {
		font-size: 1.5em;
	}

	.palvelut_karuselli > article.moodi_center h1 {
		font-size: 1.5em;
	}
}

@media screen and (max-width:1200px) {
	.palvelut_karuselli_free > article.moodi_center h1 {
		font-size: 1.25em;
	}

	.palvelut_karuselli > article.moodi_center h1 {
		font-size: 1.25em;
	}

	.wp-video {
		width: calc((100% / 2) - 1em) !important;
		margin: 0.5em;
		float: left;
	}
	
	.page-id-143 h3 {
		clear: both;
	}
}

@media screen and (max-width:1150px) {
	.galleria > a {
		width: calc((100% / 3) - 1em);
	}
}

@media screen and (max-width:1100px) {
	.palvelut_karuselli_free > article.moodi_center h1 {
		font-size: 1em;
	}

	.palvelut_karuselli > article.moodi_center h1 {
		font-size: 1em;
	}
}

@media screen and (max-width:1050px) {
	#hero h1 {
		text-align: center;
		margin-bottom: 0 !important;
	}

	#hero h2 {
		margin-bottom: 0 !important;
	}
	
	h1, h2, h3, h4, h5, h6, li, p {
		word-break: break-word;
		overflow-wrap: break-word;
	}
	
	.slick-dots {
		bottom: 10px;
	}

	.slick-dots li button::before {
		font-size: 10px !important;
	}

	
	.slick-dots li button::before {
		font-size: 15px !important;
	}
	
	section#heroslider .slide_content p {
		line-height: 33px;
	}
	
	#main_logo > a > img {
		max-height: 90px;
	}
	
	.main_footer_top,
	.main_footer_bottom {
		padding: 1em;
	}
	
	div#footer_wrapper {
		padding: 0;
	}
	
	.palkit > section.palkki,
	.palkit {
		display: block;
	}
	
	.palkki {
		height: auto !important;
	}
	
	.palkki_vasen {
		width: 100%;
		height: 50vh;
	}
	
	.palkki_vasen,
	.palkki_oikea {
		display: block;
		width: 100%;
	}
	
	.palkki_oikea {
    	padding-top: 50px;
    	padding-bottom: 50px;
	}

	.palvelut_karuselli > .moodi_pyorea {
		width: 200px;
	}

	.moodi_pyorea .img_wrap {
		height: 200px;
		max-height: 200px;
		border-radius: 100px;
	}

	.moodi_pyorea .img_wrap img {
		height: 200px;
	}
	
	.palvelut_karuselli > article.moodi_pyorea h1 {
		font-size: 20px;
	}

	.yhteistyokumppani,
	.yhteistyokumppani:nth-of-type(2),
	.yhteistyokumppani:nth-of-type(3n+2) {
		width: calc((100% / 2) - 20px);
		margin: 10px;
	}

	.rivi {
    	margin-left: 0;
    	margin-right: 0;
	}
	
	section.palvelulistaus > a {
		display: block;
		text-align: center;
		margin-bottom: 50px;
		padding-bottom: 23px;
		border-bottom: 1px solid #000;
	}

	section.palvelulistaus > a:last-of-type {
		border-bottom: 0;
	}
	
	#main_navigation .sub-menu,
	#mobile_top_navigation .sub-menu {
		position: initial !important;
		border-left: 0;
		border-right: 0;
		border-bottom: 0;
		border-top: 0;
	}
	
	.current-menu-item > ul.sub-menu,
	.current-menu-parent > ul.sub-menu,
	.current_page_ancestor > ul.sub-menu,
	.current_page_item > ul.sub-menu,
	ul.sub-menu.auki {
		max-height: unset !important;
		transition: max-height 0.6s ease-in;
	}
	
	 
	
	.harmaapalkki {
		display: none !important;
	}
	
	#main_navigation .current-menu-item.menu-item-has-children .sub-menu {
		display: block;
	}
	
	.widget-title {
		font-size: 1.25em;
	}
	
	#hero h1 {
		text-align: center;
	}
	
	#main_nav {
		display: none;
	}
	
	#main_navigation,
	#mobile_top_navigation {
		display: block !important;
	}
	
	.transparent {
		color: #000;
	}
	
	#mobile_nav_toggle {
		display: flex !important;
		justify-content: flex-end;
		align-items: center;
		width: 100%;
		box-sizing: border-box;
		padding: 20px 0.5em 20px 0.5em;
		height: 79px;
		max-width:50%;
	}
	
	.mobile_nav_toggle_left {
		margin-right: 0.5em;
	}
	
	.bar1, .bar2, .bar3 {
		width: 35px;
		height: 5px;
		background-color: #000;
		margin: 6px 0;
		transition: 0.4s;
	}
	
	.change .bar1 {
		-webkit-transform: rotate(-45deg) translate(-9px, 6px);
		transform: rotate(-45deg) translate(-8px, 7px);
	}
	
	.change .bar2 {
		opacity: 0;
	}
	
	.change .bar3 {
		-webkit-transform: rotate(45deg) translate(-8px, -8px);
		transform: rotate(45deg) translate(-8px, -8px);
	}
	
	#mobile_nav_toggle > img {
		display: block;
		margin: 0 auto;
	}

	#main_header.fixed+section#hero > div {
		top: 0 !important;
	}
	
	.flexbox {
		flex-wrap: wrap;
	}
	
	.flexbox.four_in_row > * {
		width: 50%;
	}
	
	.flexbox.three_in_row > *,
	.flexbox.two_in_row > * {
		width: 100%;
	}
	
	#main_header {
		position: relative !important;
	}
	
	#main_header > .big_wrapper {
		flex-direction: column;
	}
	
	div#content_wrapper {
		flex-wrap: wrap;
	}
	
	main#main_content,
	aside#main_sidecontent {
		width: 100%;
	}
	
	aside#main_sidecontent {
		border-left: 0;
    	border-top: 1px solid rgba(0,0,0,0.25);
	}
	
	#main_header > .big_wrapper > #main_logo,
	#main_header > .big_wrapper > #main_nav	{
		width: 100%;
		max-width:100%;
	}
	
	#main_header > .big_wrapper > #main_logo {
		justify-content: space-between;
		align-items: center;
		padding: 0.25em 1em;
	}
	
	#main_logo > a {
		width: 70%;
		padding-left: 0;
		box-sizing: border-box;
		display: flex;
		justify-content: flex-start;
		align-items: center;
	}
	
	#main_logo > span#mobile_nav_toggle {
		width: 50%;
	}
	
	section#hero {
		background-size: cover;
	}
	
	section#hero > .ylakuva {
		display: none !important;
	}
	
	section#hero > div {
		position: initial;
		width: 100%;
		box-sizing: border-box;
		min-height: 20vh;
	}
	
	.hinnasto_kategoria_item {
			display: flex;
			flex-direction: column;
	}
	
	.hinnasto_kategoria_item * {
		order: 98;
	}

	article.hinnasto_kategoria_item > h2 {
		order: 0;
		width: 100%;
	}
	
	p.hinnasto_kategoria_item_price {
		order: 99;
		float: none;
		margin-left: 0;
		text-align: center;
		font-weight: bold;
		margin-bottom: 0px;
		padding: 0;
	}

	.etusivupalkki {
        width: calc(100% - 60px);
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width:1000px) {
	#footer_wrapper {
		flex-wrap: wrap;
	}
	
	#footer_wrapper > .widget-container {
		flex-basis: auto;
		width: 50%;
	}
	
	#footer_wrapper > .widget-container:first-of-type {
		padding-left: 1em;
	}
	
	#footer_wrapper > .widget-container:last-of-type {
		padding-right: 1em;
	}
}

@media screen and (max-width:992px) {
	.google-maps {
		padding-bottom: 50%;
	}
}

@media screen and (max-width:900px) {
	.palvelut_karuselli_free {
		flex-wrap: wrap;
	}
	
	.palvelut_karuselli_free > article {
		width: 99%;
		max-width:99%;
	}
	
	.palvelut_karuselli_free > article.moodi_center h1 {
		font-size: 1.5em;
	}

	.img_wrap {
		max-height: 150px;
		overflow: hidden;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	
	.palvelut_karuselli_free > article:nth-of-type(3) {
		clear: both;
	}
	
	.palvelut_karuselli_free:after {
		clear: both;
		content: '';
		display: block;
	}
	
	.palvelut_karuselli_free > article p {
		min-height: 130px;
	}
	
	.img_wrap img {
		width: 100%;
		height: auto;
	}

	.blogi {
		flex-direction: column;
	}
	
	.blogi > a,
	.blogi_data {
		width: 100%;
		max-width:100%;
		padding-right: 0;
	}
	
	.blogi > a {
		margin-bottom: 1em;
	}
	.blogi > a > img {
		display: block;
		margin: 0 auto;
	}

	.palvelut_karuselli {
		flex-wrap: wrap;
	}
	
	.palvelut_karuselli > article {
		width: 99%;
		max-width:99%;
	}
	
	.palvelut_karuselli > article.moodi_center h1 {
		font-size: 1.5em;
	}

	.img_wrap {
		max-height: 150px;
		overflow: hidden;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	
	.palvelut_karuselli > article:nth-of-type(3) {
		clear: both;
	}
	
	.palvelut_karuselli:after {
		clear: both;
		content: '';
		display: block;
	}
	
	.palvelut_karuselli > article p {
		min-height: 130px;
	}
	
	.img_wrap img {
		width: 100%;
		height: auto;
	}

    .etusivupalkki {
        display: block;
    }

    .etusivupalkki_vasen {
        width: 100%;
        padding-right: 0;
        text-align: center;
    }

    .etusivupalkki_oikea {
        width: 100%;
        margin-top: 30px;
    }
}

@media screen and (max-width:800px) {
	.slick-dots {
		display: none !important;
	}
	
	.overlay_sisalto {
		max-width:100%;
		overflow-wrap: break-word;
	}

	section#hero > div.overlay {
		padding-left: 10px;
		padding-right: 10px;
		font-size: 1em !important;
	}
}

@media screen and (max-width:700px) {
	.yhteistyokumppani,
	.yhteistyokumppani:nth-of-type(2),
	.yhteistyokumppani:nth-of-type(3n+2) {
		width: calc(100% - 20px);
		margin: 10px auto;
	}
}

@media screen and (max-width:800px) {
	.solu1,
	.solu2,
	.solu3,
	.solu4,
	.solu5,
	.solu6,
	.solu7,
	.solu8,
	.solu9,
	.solu10,
	.solu11,
	.solu12 {
		display: block;
		width: 100%;
	}

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

	.palvelut_karuselli > .moodi_pyorea {
		width: 150px;
	}

	.moodi_pyorea .img_wrap {
		height: 150px;
		max-height: 150px;
		border-radius: 75px;
	}

	.moodi_pyorea .img_wrap img {
		height: 150px;
	}
	
	.palvelut_karuselli > article.moodi_pyorea h1 {
		font-size: 18px;
	}
}

@media screen and (max-width:650px) {
	.palvelut_karuselli > article {
		position: relative;
		width: 100%;
		max-width:100%;
		float: none;
		box-sizing: border-box;
		border: 1px solid #c0c0c0 !important;
	}

	.palvelut_karuselli_free > article {
		position: relative;
		width: 100%;
		max-width:100%;
		float: none;
		box-sizing: border-box;
		border: 1px solid #c0c0c0 !important;
	}
}

@media screen and (max-width:600px) {
	#main_navigation .sub-menu a {
		padding-left: 3em;
		white-space: initial;
	}

	#footer_wrapper > .widget-container {
		flex-basis: auto;
		width: 100%;
	}

	.flexbox.four_in_row > * {
		width: 100%;
	}
	
	#main_navigation,
	#mobile_top_navigation {
		flex-direction: column;
	}
	
	#main_navigation .sub-menu a,
	#mobile_top_navigation .sub-menu a {
		padding: 5px 2em;
		padding-left: 2em;
		padding-right: 2em;
	}
	
	.alignleft,
	.alignright {
		width: 100% !important;
		float: none;
		margin: 2em 0;
		text-align: center;
	}
	
	div#footer_wrapper {
		padding: 2em 0;
	}
	
	#footer_wrapper > .widget-container,
	footer#main_footer {
		padding: 0 1em;
	}

	.galleria > a {
		width: calc((100% / 2) - 1em);
	}

	article.referenssi {
		flex-direction: column;
	}
	
	.referenssi_kuva,
	.referenssi_data {
		width: 100%;
	}
	
	.referenssi_data {
		padding: 0 0.5em 0 0.5em;
	}
	
	.referenssi_kuva > img {
		margin: 0 auto 1em auto;
	}
	
}

@media screen and (max-width:512px) {
	.valitsepaiva {
			width: calc((100% / 4) - 0.5em);
	}
	
	.valitsepaiva:nth-of-type(5),
	.valitsepaiva:nth-of-type(6),
	.valitsepaiva:nth-of-type(7) {
			width: calc((100% / 3) - 0.5em);
	}
}

@media screen and (max-width:400px) {
	.yhteistyokumppani,
	.yhteistyokumppani:nth-of-type(2),
	.yhteistyokumppani:nth-of-type(3n+2) {
		padding: 0 10px;
	}
}

@media screen and (max-width:350px) {
	html {
		margin-top: 0 !important;
	}
	
	html #wpadminbar {
		display: none !important;
	}
}

@media screen and (max-width:300px) {
	.galleria > a {
		width: calc(100% - 1em);
	}
}

/* MEDIA MIN-MAX WIDTH */
@media screen and (min-width:801px) and (max-width:1000px) {
	.valitsepaiva {
		font-size: 15px;
	}
}

@media screen and (min-width:1051px) and (max-width:1500px) {
	#main_navigation > li > a,
	#mobile_top_navigation > li > a {
		font-size: 0.9em;
		padding: 1em 0.5em;
	}
}

@media screen and (min-width:1051px) and (max-width:1350px) {
	#main_header > .big_wrapper > #main_logo {
		padding-left: 1.5em;
	}
}

@media screen and (min-width:1051px) and (max-width:1250px) {
	#main_navigation > li > a,
	#mobile_top_navigation > li > a {
		font-size: 0.8em;
		padding: 1em 0.5em;
	}
}

#main_content .gallery .gallery-item {
    float: none;
    display: block;
    margin: 0 0 10px 0;
    width: calc(25% - 8px);
}

#main_content .gallery.gallery-columns-2 .gallery-item {
	width: calc(50% - 8px);
}

#main_content .gallery.gallery-columns-3 .gallery-item {
	width: calc((100% / 3) - 8px);
}

#main_content .gallery .gallery-item * {
    display: block;
}

#main_content .gallery img {
    border: 0;
}

#main_content .gallery img {
		opacity: 1.0;
		transition: 0.25s all;
}

#main_content .gallery a:hover img {
		opacity: 0.75;
}

#main_content .gallery br {
    display: none !important;
}

#main_content .gallery {
    display: flex;
    flex-wrap: wrap;
}

@media screen and (min-width: 801px) {
	#main_content .gallery .gallery-item:nth-of-type(2),
	#main_content .gallery .gallery-item:nth-of-type(3),
	#main_content .gallery .gallery-item:nth-of-type(4),
	#main_content .gallery .gallery-item:nth-of-type(4n+2),
	#main_content .gallery .gallery-item:nth-of-type(4n+3),
	#main_content .gallery .gallery-item:nth-of-type(4n+4) {	
		margin-left: 10px !important;
	}
}

@media screen and (min-width: 501px) and (max-width: 800px) {
	#main_content .gallery .gallery-item:nth-of-type(2),
	#main_content .gallery .gallery-item:nth-of-type(3),
	#main_content .gallery .gallery-item:nth-of-type(3n+2),
	#main_content .gallery .gallery-item:nth-of-type(3n+3) {
		margin-left: 10px !important;
	}
}

@media screen and (max-width: 800px) {
	#main_content .gallery .gallery-item {
		float: none;
		display: block;
		margin: 0 0 10px 0;
		width: calc((100% / 3) - 7px) !important;
	}
}

@media screen and (max-width: 500px) {
	#main_content .gallery .gallery-item {
		width: calc(50% - 5px) !important;
	}

	#main_content .gallery .gallery-item:nth-of-type(2),
	#main_content .gallery .gallery-item:nth-of-type(2n+2) {
		margin-left: 10px !important;
	}
}