/*
Theme Name: CH-Palvelu
Theme URI: https://markkinointiukkonen.fi/kotisivut-hinta/
Author: Markkinointi Ukkonen Oy
Author URI: https://markkinointiukkonen.fi/
Description: CH-Palvelulle tehty WordPress-teema
Version: 1.0
Text Domain: chpalvelu
*/

:root {
	--musta: #000000;
	--valkoinen: #FFFFFF;
	--punainen: #E30613;
	--tummanharmaa: #2E2E2E;
    --tummempiharmaa: #747474;
	--harmaa: #F3F3F3;
}

html, body {
	font-size: 20px;
	margin: 0;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	color: var(--tummanharmaa);
}

h1, h2, h3, h4, h5, h6 {
    word-break: break-word;
    overflow-wrap: break-word;
}

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

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

blockquote:before {
    content: open-quote;
}

blockquote:after {
    content: close-quote;
}

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

.aligncenter {
	display: block;
	margin: 2em auto;
}

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

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

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

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

h1, h2, h3, h4, h5, h6 {
	font-family: "Protest Strike", sans-serif;
	font-weight: 400;
	font-style: normal;
	word-break: break-word;
	overflow-wrap: break-word;
	/*-webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;*/
	margin: 2rem 0 1rem 0;
}

h1,
.koko1 {
    font-size: 3.5rem;
    line-height: 1.143em;
    margin-bottom: 3rem;
}

h2,
.koko2 {
    font-size: 2rem;
    color: var(--punainen);
}

h3,
.koko3 {
    font-size: 1.5rem;
    color: var(--punainen);
}

h4,
.koko4 {
    font-size: 1.25rem;
}

h5,
.koko5 {
    font-size: 1rem;
}

.kehys {
	width: 1464px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	padding-left: 50px;
	padding-right: 50px;
	max-width: 100%;
}

.rivi {
	display: flex;
	flex-wrap: wrap;
	box-sizing: border-box;
}

.solu {
	display: block;
	box-sizing: border-box;
}

.solu12 {
	width: 100%;
}

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

.solu10 {
	width: calc(100% / 1.2);
}

.solu9 {
	width: 75%;
}

.solu8 {
	width: calc(100% / 1.5);
}

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

.solu6 {
	width: 50%;
}

.solu5 {
	width: calc(100% / 2.4);
}

.solu4 {
	width: calc(100% / 3);
}

.solu3 {
	width: 25%;
}

.solu2 {
	width: calc(100% / 6);
}

.solu1 {
	width: calc(100% / 12);
}

header.ylavalikko {
    background: var(--punainen);
    color: var(--valkoinen);
    padding-top: 1.350rem;
    padding-bottom: 1.450rem;
}

.ylavalikko > .kehys {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 1740px;
}

nav.paavalikko > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.3rem;
}

ul.sub-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    list-style: none;
    padding: 0.200rem 0.550rem 0.350rem 0.550rem;
    margin: 0;
    min-width: 100%;
    font-size: 0.800rem;
    background: var(--tummanharmaa);
    box-sizing: border-box;
    transform: scaleY(0);
    transform-origin: top center;
    transition: 0.1s transform;
    display: block;
    z-index: 10;
}

nav.paavalikko > ul > li > a {
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 700;
    color: var(--valkoinen);
    text-transform: uppercase;
    padding: 0.300rem 0.550rem 0.400rem 0.550rem;
    background-color: var(--punainen);
    transition: 0.25s background;
    display: block;
}

nav.paavalikko > ul > li.menu-item-has-children > a {
    background-image: url(images/ikoni_pieninuolialas_valkoinen.svg);
    padding-right: 1.778em;
    background-repeat: no-repeat;
    background-position: center right 0.667em;
    background-size: 0.611em auto;
}

nav.paavalikko > ul > li {
    position: relative;
    padding-left: 0;
    background: none;
    line-height: inherit;
    margin: 0;
}

ul.sub-menu > li > a {
    display: block;
    padding: 2px 0;
    text-decoration: none;
    color: var(--valkoinen);
    font-weight: 700;
}

ul.sub-menu > li {
    display: block;
    padding-left: 0;
    background: none;
    line-height: inherit;
    margin: 0;
}

section.hero {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.yksi_slide {
    display: block;
    width: 100%;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
}

.kuvatekstinosto_oikea_data > *:first-child,
.yksi_galleria_data > *:first-child,
.kehys > *:first-child,
.yksi_slide_sisalto > *:first-child {
    margin-top: 0;
}

.kuvatekstinosto_oikea_data > *:last-child,
.yksi_galleria_data > *:last-child,
.kehys > *:last-child,
.yksi_slide_sisalto > *:last-child {
    margin-bottom: 0;
}

.hero.iso .yksi_slide_sisalto > * {max-width: 50%;}

.yksi_slide_sisalto {
    padding-top: 10rem;
    padding-bottom: 9.5rem;
    color: var(--valkoinen);
}

.yksi_slide_sisalto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    opacity: 0.6;
    z-index: 1;
}

.yksi_slide_sisalto > * {
    z-index: 3;
    position: relative;
}

.yksi_slide_lisakuvio {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 49%;
    height: 100%;
    background-size: cover;
    background-position: center left;
    z-index: 2;
}

.nappula,
a.nappula {
    text-decoration: none;
    color: var(--valkoinen);
    background: var(--punainen);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1em;
    padding: 0.65em 0.848em 0.75em 0.848em;
    transition: 0.25s background, 0.25s color;
    border: 0;
    display: inline-block;
    text-decoration: none !important;
    cursor: pointer;
}

.nappula:hover,
a.nappula:hover {
    background: var(--tummanharmaa);
    color: var(--valkoinen);
}

.hero a.nappula {
    background: var(--valkoinen);
    color: var(--tummanharmaa);
    display: inline-block;
    margin-top: 3.250rem;
}

.hero a.nappula:hover {
    background: var(--punainen);
    color: var(--valkoinen);
}

.hero h1 {
    margin: 0;
}

main.paasisalto {
    display: block;
    margin: 6.300em 0;
}

p {
    line-height: 1.5em;
}

a {
    color: var(--punainen);
    text-decoration: none;
    transition: 0.25s color;
}

a:hover {
    color: var(--tummanharmaa);
    text-decoration: underline;
}

.bg_redkuvio, .bg_mustakuvio {
    padding-top: 7rem;
    padding-bottom: 7rem;
    background-color: var(--punainen);
    color: var(--valkoinen);
    background-image: url(images/bg_redkuvio.png);
    background-size: auto 100% !important;
    background-position: left center !important;
    background-repeat: no-repeat !important;
}

.bg_redkuvio h2 {
    color: var(--valkoinen);
}

.kuvallisetnostot h2 {
    text-align: center;
}

.galleria_kolme {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 13px;
    margin-top: 3rem;
}

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

article.yksi_galleria {
    display: block;
    background: var(--valkoinen);
    color: var(--tummanharmaa);
    text-align: center;
}

.yksi_galleria_data {
    display: block;
    padding: 3rem 2rem 4rem 2rem;
}

.yksi_galleria img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 446 / 296;
    object-fit: cover;
    object-position: center;
}

h1:hover > a,
h2:hover > a,
h3:hover > a,
h4:hover > a,
h5:hover > a {
    text-decoration: none;
}

.yksi_galleria a.nappula {
    margin-top: 1.5rem;
}

.bg_mustakuvio {
    background-image: url(images/bg_mustakuvio.png);
    background-color: var(--tummanharmaa);
    background-position: right center !important;
}

.kuvatekstinosto > .kehys {
    color: var(--tummanharmaa);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.kuvatekstinosto_oikea {
    display: block;
    background: var(--valkoinen);
}

.kuvatekstinosto_vasen {
    padding-top: 100%;
    background-size: cover !important;
    background-position: center !important;
}

.kuvatekstinosto_oikea {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 5.350em;
}

p + p > a.nappula, h2 + p > a.nappula, h3 + p > a.nappula {
    margin-top: 1rem;
}

.lisateksti {
    padding-top: 5.700rem;
    padding-bottom: 7.100rem;
}

.paasisalto p, .lisateksti p {
    margin: 1.75rem 0;
}

.lainaukset {
    display: block;
    border-left: 3px solid var(--punainen);
    font-size: 1rem;
    color: var(--punainen);
    font-weight: 700;
    font-style: italic;
    padding-left: 2rem;
    margin: 2rem 0;
}

.bg_redpieni.lisateksti {
    background: var(--punainen);
    color: var(--valkoinen);
    padding-top: 0;
    padding-bottom: 0;
}

.bg_redkuvio h2, .bg_redpieni h2 {
    color: var(--valkoinen);
}

.bg_redpieni > .kehys {
    padding-top: 5.700rem;
    padding-bottom: 7.100rem;
    background-image: url(images/bg_redkuvio.png);
    background-size: auto 100% !important;
    background-position: right center !important;
    background-repeat: no-repeat !important;
}

.puolikaspituus > .kehys > * {
    max-width: 57%;
}

.bg_redkuvio a.nappula, .bg_redpieni a.nappula {
    background: var(--valkoinen);
    color: var(--punainen);
}

.bg_redkuvio a.nappula:hover, .bg_redpieni a.nappula:hover {
    background: var(--tummanharmaa);
    color: var(--valkoinen);
}

.yksi_galleria_data a.nappula {
	color: var(--valkoinen);
	background: var(--punainen);
	margin-top: 1rem;
}

.yksi_galleria_data a.nappula:hover {
    background: var(--tummanharmaa);
    color: var(--valkoinen);
}

footer.alapalkki > .kehys {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

footer.alapalkki {
    display: block;
    margin-top: 5.400rem;
}

.footenote {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 6.500rem;
    background: var(--harmaa);
    gap: 2rem;
    padding: 1.3rem;
}

.footenote a {
    color: var(--tummanharmaa);
}

.footenote a:hover {
    color: var(--punainen);
    text-decoration: none;
}

.isoteksti {
    font-size: 1.25rem;
    color: var(--punainen);
    font-family: "Protest Strike", sans-serif;
}

.isoteksti > p {
    line-height: 1.200em;
}

.logot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yhteystiedot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

a.ikoni_fb {
    display: block;
    width: 47px;
    height: 47px;
    position: relative;
    background: url(images/ikoni_fb.svg);
    background-size: 100% 100%;
}

a.ikoni_fb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(images/ikoni_fb_hover.svg);
    background-size: 100% 100%;
    opacity: 0;
    transition: 0.25s opacity;
}

a.ikoni_fb:hover::after {
    opacity: 1;
}

.slider .yksi_slide_sisalto {
    padding-top: 0;
    padding-bottom: 0;
}

.slider .yksi_slide {
    min-height: 819px;
}

.slick-initialized .slick-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

section.hero.iso.slider {
    max-height: 819px;
    overflow: hidden;
}

.lisateksti p + p > a.nappula {
    margin-top: 2rem;
}

a.paalogo {
    width: 230px;
}

a.paalogo, a.paalogo img {
    display: block;
}

a.alapalkki_logo, a.alapalkki_logo img {
    display: block;
}


section.hero.tavallinen {
    padding-top: 10rem;
    padding-bottom: 9.450rem;
    color: var(--valkoinen);
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-color: var(--punainen);
}

section.hero.tavallinen::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--musta);
    opacity: 0.6;
    z-index: 1;
}

section.hero.tavallinen > div {
    display: block;
    position: relative;
    z-index: 2;
}

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

li {
    padding-left: 35px;
    background: url(images/ikoni_checkmark.svg);
    background-size: 20px auto;
    background-position: left top 6px;
    background-repeat: no-repeat;
    line-height: 1.4em;
    margin: 0.3rem 0;
}

.bg_oikealle {
    background-position: right center !important;
}

.gallery {
    display: grid;
    gap: 0.8rem;
}

.gallery.gallery-columns-3 {
    grid-template-columns: 1fr 1fr 1fr;
    margin-bottom: 3.75rem;
}

.gallery.gallery-columns-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.gallery br {
    display: none !important;
}

dt.gallery-icon {
    display: block;
    padding-top: 100%;
    position: relative;
}

dt.gallery-icon > * {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

dt.gallery-icon img {
    display: block;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.palautteet {
    padding: 0;
    background: var(--tummanharmaa);
}

.palautteet > .kehys {
    background-image: url(images/bg_mustakuvio.png);
    background-color: var(--tummanharmaa);
    background-position: left center !important;
    background-repeat: no-repeat;
    padding-top: 7rem;
    padding-bottom: 7rem;
    background-size: auto 100% !important;
}

.palaute {
    text-align: center;
    display: block;
    width: 1100px;
    margin: 0 auto;
    max-width: 100%;
}

.palaute_sisalto {
    font-size: 1.25rem;
    font-family: "Protest Strike", sans-serif;
    font-weight: 400;
    font-style: normal;
}

p.palaute_tahdet {
    font-size: 1.850rem;
}

.slick-dots li {
    background: none;
    line-height: inherit;
    width: 15px;
    height: 15px;
}

.slick-dots li button:before {
    color: var(--tummempiharmaa);
    font-size: 15px;
    opacity: 1.0;
    width: 15px;
    height: 15px;
}

.slick-dots li button {
    width: 15px;
    height: 15px;
}

.slick-dots li.slick-active button:before {
    color: var(--harmaa);
}

.palautteet_wrapper {
    padding-bottom: 3rem;
}


.paasisalto .kehys > p:first-child img, .paasisalto .kehys > img:first-child {
    display: block;
    margin-bottom: 4rem;
}

.rivi.kolmerivissa {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-left: -20px;
    margin-right: -20px;
}

.rivi.kolmerivissa > * {
    display: block;
    width: calc(100% / 3);
    padding: 20px;
}

.tuotevalikoima {
    text-align: center;
}

.tuotevalikoima > .solu {
    padding-bottom: 7rem;
}

.tuotevalikoima img {
    display: block;
}

.tuotevalikoima h3.koko2 {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}


dl.gallery-item {
    margin: 0;
}

.yhteystiedot_wrapper {
    display: grid;
    grid-template-columns: 40% 60%;
    margin-bottom: 7rem;
}

fieldset.hidden-fields-container {
    display: none;
}

.wpcf7-text, .wpcf7-email, .wpcf7-textarea {
    display: block;
    font-family: inherit;
    border: 3px solid #CECECE;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    width: 100%;
}

.kaksirivissa {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.wpcf7-text[name="matikka"] {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

span.wpcf7-list-item {
    padding-right: 1rem;
    margin: 0;
}

span.wpcf7-list-item label, span.wpcf7-list-item input {
    cursor: pointer;
}

.yhteyshenkilot {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.yhteyshenkilot img {
    display: block;
    width: 256px;
    max-width: 100%;
}

.yhteyshenkilot h3 {
    color: var(--punainen);
    margin-bottom: 0;
    margin-top: 2rem;
}

.yhteyshenkilot h3+p {
    margin-top: 0.5rem;
}

.laskutus {display: grid;grid-template-columns: 1fr 1fr 1fr;gap: 2rem;}

h2.laskutus_otsikko {
    margin-top: 5rem;
}

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

.googlemaps_wrapper {
    display: block;
    width: 100%;
    padding-top: 29%;
    position: relative;
}

.googlemaps_wrapper > iframe {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

a[href^="tel:"] {
    padding-left: 22px;
    background: url(images/ikoni_tel.svg);
    background-repeat: no-repeat;
    background-position: left top 6px;
    background-size: 14px auto;
    color: var(--tummanharmaa);
}

.yhteystiedot_vasen a[href^="mailto:"],
.yhteyshenkilot a[href^="mailto:"],
.alapalkki a[href^="mailto:"] {
    padding-left: 20px;
    background: url(images/ikoni_mailto.svg);
    background-repeat: no-repeat;
    background-position: left top 8px;
    background-size: 14px auto;
    color: var(--tummanharmaa);
}

.yhteystiedot_vasen a[href^="mailto:"]:hover,
.yhteyshenkilot a[href^="mailto:"]:hover,
.alapalkki a[href^="mailto:"]:hover {
    color: var(--punainen);
    text-decoration: none;
}

.yhteystiedot_vasen a[href^="http://facebook"],
.yhteystiedot_vasen a[href^="http://www.facebook"],
.yhteystiedot_vasen a[href^="https://facebook"],
.yhteystiedot_vasen a[href^="https://www.facebook"] {
    padding-left: 20px;
    background: url(images/ikoni_fb.svg);
    background-repeat: no-repeat;
    background-position: left top 0.3em;
    background-size: 14px auto;
    color: var(--tummanharmaa);
}

.yhteystiedot_vasen a[href^="http://facebook"]:hover,
.yhteystiedot_vasen a[href^="http://www.facebook"]:hover,
.yhteystiedot_vasen a[href^="https://facebook"]:hover,
.yhteystiedot_vasen a[href^="https://www.facebook"]:hover {
    color: var(--punainen);
    text-decoration: none;
}

.ennenjalkeen_kohde {
    display: block;
}

.ennenjalkeen_kohde_jakaja {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    width: 100%;
}

.ennenjalkeen_kohde_vasen, .ennenjalkeen_kohde_oikea {
    position: relative;
    padding-top: 100%;
    background-size: cover !important;
    background-position: center !important;
}

.ennenjalkeen_kohde_vasen > span, .ennenjalkeen_kohde_oikea > span {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--punainen);
    font-size: 0.9rem;
    padding: 0.7rem 0.8rem;
    line-height: 1em;
}

.ennenjalkeen_slider {
    padding-bottom: 3rem;
}


table.kuukausierataulukko {
    width: 100%;
    margin-top: 2.5rem;
    margin-bottom: 2.25rem;
}

.kuukausierataulukko th {
    text-align: left;
    background: var(--punainen);
    color: var(--valkoinen);
    padding: 0.6rem 0.7rem;
    line-height: 1em;
    border-right: 3px solid var(--valkoinen);
}

tr.musta > td {
    background: var(--tummanharmaa);
    color: var(--valkoinen);
    padding: 0.7rem;
    font-size: 0.8rem;
    border-top: 3px solid var(--valkoinen);
    border-right: 3px solid var(--valkoinen);
}

.kuukausierataulukko td {
    background: var(--harmaa);
    color: var(--musta);
    font-size: 0.8rem;
    padding: 0.7rem;
    border-top: 3px solid var(--valkoinen);
    border-right: 3px solid var(--valkoinen);
}

.rahoitus {
    display: grid;
    grid-template-columns: 43% 1fr;
    gap: 5.5rem;
}

p.rahoitus_info {
    font-size: 0.8rem;
    font-style: italic;
}

.rahoitus_oikea > p {
    margin-top: 2rem;
    display: block;
    width: 100%;
    background: var(--tummanharmaa);
    color: var(--valkoinen);
    padding: 10rem 3rem;
    text-align: center;
    box-sizing: border-box;
}


.lisateksti.tuotevalikoima_wrapper {
    padding-bottom: 2rem;
}

.yhteystiedot_vasen > *:first-child, .yhteystiedot_oikea > *:first-child {
    margin-top: 0;
}

.yhteystiedot_oikea form.wpcf7-form {
    margin-top: 38px;
    display: block;
}

a[href^="tel:"]:hover {
    color: var(--punainen);
    text-decoration: none;
}

.matikkahaaste {
    display: block;
    margin-top: 2rem;
}

.wpcf7-text[name="matikka"] {
    margin-top: 0.5rem;
}

.matikkahaaste b {
    font-weight: initial !important;
}

.matikkahaaste i {
    display: none !important
}

.wpcf7-not-valid-tip {
    background: var(--punainen);
    color: var(--valkoinen);
    padding: 0.5rem 1rem;
    margin-top: -10px;
    margin-bottom: 10px;
}

.wpcf7-text[name="matikka"] {
    margin-bottom: 10px;
}

.wpcf7 form.invalid .wpcf7-response-output {
    border: 0;
    background: var(--punainen);
    color: var(--valkoinen);
    margin: 2rem 0;
    padding: 2rem;
    text-align: center;
}

.wpcf7 form.sent .wpcf7-response-output {
    border: 0;
    background: #186F06;
    color: var(--valkoinen);
    margin: 2rem 0;
    padding: 2rem;
    text-align: center;
}

.rahoitus_oikea {
    padding-top: 47px;
}

@media screen and (max-width: 1800px) {
    html, body {
        font-size: 18px;
    }

    section.hero.iso.slider {
        max-height: 682px;
        aspect-ratio: 1920 / 819;
    }

    .slider .yksi_slide {
        min-height: unset;
        height: 100%;
        display: block;
    }

    .slick-list {
        height: 100%;
    }

    .slick-track {
        height: 100%;
    }
}

@media screen and (max-width: 1700px) {
    html, body {
        font-size: 17px;
    }

    .hero.iso .yksi_slide_sisalto > * {
        max-width: 60%;
    }

    nav.paavalikko > ul {
        gap: 1rem;
    }

    .yksi_galleria_data {
        padding: 2rem 1.5rem 3rem 1.5rem;
    }
}

@media screen and (max-width: 1400px) {
    footer.alapalkki > .kehys {
        display: flex;
        text-align: center;
        flex-direction: column;
        gap: 0;
        justify-content: flex-start;
    }

    .yhteystiedot {
        width: 1000px;
        max-width: 100%;
        margin: 2rem auto;
    }

    a.alapalkki_logo {
        margin-left: auto;
        margin-right: auto;
        width: 285px;
    }

    .yhteystiedot > div {
        display: block;
        width: calc(100% / 3);
    }

    a.ikoni_fb {
        margin-left: auto;
        margin-right: auto;
    }

    .isoteksti {
        display: block;
        margin-bottom: 4rem;
        margin-top: 3rem;
    }

    .logot {
        justify-content: center;
        gap: 3rem;
    }

    a.alapalkki_logo {
        width: 285px;
        margin: 0 auto 2rem auto;
    }

    .yhteystiedot {
        margin-bottom: 3rem;
        justify-content: center;
        gap: 3rem;
    }

    .isoteksti {
        display: block;
        margin-bottom: 4rem;
    }

    .logot {
        justify-content: center;
        gap: 3rem;
    }

    .footenote {
        margin-top: 5rem;
    }

    .alapalkki_sarake {
        order: 0;
    }

    .isoteksti {
        order: 1;
        margin: 0;
    }

    .alapalkki_sarake.yhteystiedot {
        order: 2;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .logot {
        order: 3;
    }
}

@media screen and (max-width: 1200px) {
    html, body {
        font-size: 16px;
    }

    .kehys {
        padding-left: 30px;
        padding-right: 30px;
    }

    .kuvatekstinosto_oikea {
        padding: 1rem 3em;
    }

    a.paalogo {
        width: 180px;
    }

    .puolikaspituus > .kehys > * {
        max-width: 70%;
    }
}

@media screen and (max-width: 1100px) {
    .galleria_kolme {
        display: block;
    }

    article.yksi_galleria {
        width: 600px;
        margin: 0 auto 2rem auto;
        max-width: 100%;
    }

    .rivi.kolmerivissa > * {
        width: 50%;
    }
}

@media screen and (min-width: 1001px) {
    .mobile_nav_toggle {
        display: none !important;
    }

    nav.paavalikko > ul > li > a:hover, nav.paavalikko > ul > li:hover > a {
        background-color: var(--tummanharmaa);
    }

    li.menu-item-has-children:hover > ul.sub-menu {
        transform: scaleY(1.0);
        transition: 0.3s transform;
    }

    ul.sub-menu > li > a:hover {
        color: var(--punainen);
    }

    .paavalikko {
        display: block !important;
    }
}

@media screen and (max-width: 1000px) {
    html, body {
        font-size: 18px;
    }

    h1,
    .koko1 {
        font-size: 2.5rem;
    }

    h2,
    .koko2 {
        font-size: 1.75rem;
        color: var(--punainen);
    }

    .mobile_nav_toggle {
        display: block;
        width: 30px;
        box-sizing: border-box;
        cursor: pointer;
        padding: 0;
        z-index: 2;
    }

    .viiva1, .viiva2, .viiva3 {
		width: 30px;
		height: 5px;
		background-color: var(--valkoinen);
		margin: 5px 0;
		transition: 0.4s;
	}

    .avattu .viiva1 {
		-webkit-transform: rotate(-45deg) translate(-9px, 6px);
		transform: rotate(-45deg) translate(-8px, 7px);
	}

	.avattu .viiva2 {
		opacity: 0;
	}

	.avattu .viiva3 {
		-webkit-transform: rotate(45deg) translate(-8px, -8px);
		transform: rotate(45deg) translate(-7px, -6px);
	}

    .ylavalikko > .kehys {
        flex-wrap: wrap;
        align-items: center;
    }

    nav.paavalikko {
        display: none;
        width: calc(100% + 60px);
        margin-left: -30px;
        margin-right: -30px;
        padding-top: 20px;
    }

    nav.paavalikko > ul {
        display: block;
    }

    nav.paavalikko > ul > li > a {
        margin: 0;
        padding: 14px 25px;
    }

    nav.paavalikko > ul > li.menu-item-has-children > a {
        padding-right: 50px;
        background-position: center right 30px;
        background-size: 1em auto;
    }

    ul.sub-menu {
        position: relative;
        transform: initial;
        padding: 15px 25px;
        top: unset;
        left: unset;
        right: unset;
        bottom: unset;
        display: none;
        background: var(--punainen);
    }

    ul.sub-menu > li > a {
        padding: 10px 0;
    }

    section.hero.iso.slider {
        max-height: 1000px;
        height: calc(100vh - 105px);
    }

    .hero.iso .yksi_slide_sisalto > * {
        max-width: 100%;
    }

	.hero a.nappula {
		margin-top: 2rem;
	}

    .yksi_slide_lisakuvio {
        display: block;
        position: relative;
        width: 100%;
        top: unset;
        right: unset;
        left: unset;
        bottom: unset;
        height: 50%;
        background-position: bottom right !important;
        background-repeat: no-repeat !important;
        background-size: 85% auto !important;
    }

    main.paasisalto {
        margin: 3em 0;
    }

    .bg_redkuvio, .bg_mustakuvio {
        padding-top: 4rem;
        padding-bottom: 3rem;
    }

    .kuvatekstinosto > .kehys {
        display: block;
        width: 650px;
        max-width: 100%;
    }

    .kuvatekstinosto_oikea {
        padding: 3rem;
        text-align: center;
    }

    .lisateksti {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .bg_redpieni > .kehys {
        padding-top: 4rem;
        padding-bottom: 4rem;
        /* text-align: center; */
    }

    .puolikaspituus > .kehys > * {
        max-width: 100%;
    }

    .yhteystiedot {
        display: block;
        width: 600px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .yhteystiedot > div {
        width: 100%;
    }

    .isoteksti {
        padding-left: 50px;
        padding-right: 50px;
        margin-bottom: 0rem;
    }

    .logot {
        display: block;
    }

    .logot > img {
        display: block;
        margin: 2rem auto;
    }

    .footenote {
        display: block;
    }

    .footenote > * {
        display: block;
        width: 100%;
        text-align: center;
        margin: 1rem 0;
    }

    .slider .yksi_slide_sisalto {
        /* text-align: center; */
        min-height: 50%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .yksi_galleria_data {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    a.ikoni_fb {
        margin-top: 2rem;
    }

    section.hero.tavallinen {
        padding-top: 6rem;
        padding-bottom: 6rem;
        background-size: cover !important;
        background-position: center !important;
    }
        
    .yhteystiedot_wrapper {
        display: block;
    }

    .yhteystiedot_oikea {
        display: block;
        margin-top: 3rem;
    }

    .yhteyshenkilot {
        grid-template-columns: 1fr 1fr;
    }

    .laskutus {
        display: block;
    }

    .rahoitus {
        display: block;
    }
}

@media screen and (max-width: 800px) {
    .rivi.kolmerivissa > * {
        width: 100%;
    }

    .gallery.gallery-columns-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 600px) {
    html, body {
        font-size: 16px;
    }

    .kuvatekstinosto_oikea {
        padding: 3rem 2rem;
    }

    .isoteksti {
        padding-left: 20px;
        padding-right: 20px;
    }

    section.hero.iso.slider {
        max-height: 700px;
    }

    .kaksirivissa {
        display: block;
    }

    .yhteyshenkilot {
        display: block;
    }
}

@media screen and (max-width: 450px) {
    h1,
    .koko1 {
        font-size: 2rem;
    }

    h2,
    .koko2 {
        font-size: 1.6rem;
    }

    h3,
    .koko3 {
        font-size: 1.4rem;
    }
}