/*
Theme Name: Ekspsäätiö
Theme URI: https://markkinointiukkonen.fi/kotisivut-hinta/
Author: Markkinointi Ukkonen Oy
Author URI: https://markkinointiukkonen.fi/
Description: Ekspsäätiölle tehty WordPress-teema
Version: 1.0
Text Domain: ekspsaatio
*/

:root {
	--musta: #312334;
	--valkoinen: #FFFFFF;
	--sininen: #e2ecf1;
	--vihrea: #00584D;
	--vaaleanvihrea: #BEDFCD;
}

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

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

a {
    transition: 0.25s color;
    color: inherit;
    text-decoration: underline;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

h1, h2.iso {
    font-size: 4rem;
}

h2 {
    font-size: 2.750rem;
}

h3 {
    font-size: 1.750rem;
}

h4 {
    font-size: 1.150rem;
    font-weight: 400;
}

h5 {
    font-size: 1rem;
    font-weight: 400;
}

p {
    line-height: 1.650em;
    margin: 2rem 0;
}

h1, h2, h3, h4, h5, h6 {
    word-break: break-word;
    overflow-wrap: break-word;
    /*-webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;*/
}

.kehys {
	width: 1000px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.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.ylapalkki .rajoittaja {
    display: grid;
    grid-template-columns: 20% 0% 80%;
    width: 1875px;
}

span.sivunimi {
    display: none !important;
}

nav.paavalikko > ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    height: 100%;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    box-sizing: border-box;
}

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

.rajoittaja > a.paalogo {
    display: block;
    margin-top: 2.250rem;
    margin-bottom: 1.850rem;
}

a.paalogo img {
    display: block;
    max-height: 58px;
}

nav.paavalikko a {
    font-size: 1rem;
    text-decoration: none;
    color: var(--musta);
    font-weight: 700;
    transition: 0.25s color;
}

section.etusivuhero {
    display: flex;
    align-items: center;
    padding-top: 10.350rem;
    padding-bottom: 10.650rem;
    background: url(images/headertausta.jpg);
    background-size: cover !important;
    background-position: center !important;
    min-height: calc(100vh - 140px);
    box-sizing: border-box;
    position: relative;
    font-size: 1.100rem;
}

.etusivuhero > .rajoittaja {
    padding-left: 3.200rem;
    padding-right: 700px;
    color: var(--valkoinen);
    position: relative;
    z-index: 2;
}

header.ylapalkki {
    min-height: 140px;
    position: relative;
}

section.etusivuhero::after {
    display: block;
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 960px;
    height: 585px;
    background: url('images/etusivu_hero_kuvio.svg');
    background-size: auto;
    background-position: bottom left;
}

.fullwidth_wrapper > *:first-child, .ei_reuna_margin > *:first-child, .rajoittaja > *:first-child, .datalaatikko > *:first-child, .kaksirivissa > *:first-child, .tutustu_avustuskohteisiin_data > *:first-child, .tekstijakuvalaatikko_data > *:first-child {
    margin-top: 0;
}

.fullwidth_wrapper > *:last-child, .ei_reuna_margin > *:last-child, .rajoittaja > *:last-child, .datalaatikko > *:last-child, .kaksirivissa > *:last-child, .tutustu_avustuskohteisiin_data > *:last-child {
    margin-bottom: 0;
}

nav.paavalikko a:hover {
    color: var(--vihrea);
}

.navigaationapit a,
.nappula {
    display: inline-block;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 700;
    background: var(--valkoinen);
    line-height: 1em;
    padding: 0.8em 1.8em;
    border-radius: 1.273em;
    color: var(--musta);
    transition: 0.25s border, 0.25s background, 0.25s color;
    margin: 0 1rem 1rem 0;
}

.navigaationapit a:hover,
.nappula:hover {
    background: var(--vaaleanvihrea);
    color: var(--vihrea);
}

p+.nappula {
    margin-top: 1em;
}

.lisalaatikko {
    margin-top: 9.350rem;
    margin-bottom: 9.900rem;
    display: flex;
}

.lisalaatikko_kuva {
    width: 38.9%;
    background: url(images/etusivukuva.jpg);
    background-size: cover;
    background-position: center;
}

.lisalaatikko_teksti {
    display: block;
    width: 61.1%;
    padding: 5.350rem 4rem 6.650rem 6.600rem;
    box-sizing: border-box;
}

.lisalaatikko_teksti p {
    padding-right: 4rem;
}

.bg_vaaleanvihrea {
    background: var(--vaaleanvihrea);
    color: var(--vihrea);
}

.bg_vaaleanvihrea .nappula {
    background: var(--vihrea);
    color: var(--valkoinen);
}

.bg_vaaleanvihrea .nappula:hover {
    background: var(--musta);
    color: var(--valkoinen);
}

.bg_vihrea {
    background: var(--vihrea);
    color: var(--valkoinen);
}

.avustuskohteet {
    margin-left: -1.4rem;
    margin-right: -1.4rem;
    display: flex;
    flex-wrap: wrap;
    padding-top: 5.950rem;
    padding-bottom: 6.450rem;
    justify-content: center;
    box-sizing: border-box;
}

.avustuskohteet > h2 {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 4.250rem;
}

a.avustuskohde {
    width: calc(100% / 3 - 2.8rem);
    margin: 1.4rem;
    background: var(--valkoinen);
    text-decoration: none;
    padding-bottom: 6.700rem;
    color: var(--vihrea);
    transition: 0.25s background;
}

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

.avustuskohde + .fullwidth_wrapper {
    text-align: center;
    margin-top: 5.200rem;
}

span.avustuskohde_kuva {
    display: block;
    padding-top: 62%;
    background-size: cover !important;
    background-position: center !important;
}

span.avustuskohde_logo > img {
    display: block;
    width: 102px;
    height: auto;
    margin: 0 auto;
}

span.avustuskohde_logo {
    display: block;
    margin-top: -51px;
    margin-bottom: 1.6rem;
}

.avustuskohde h3 {
    text-align: center;
    margin: 0;
    text-decoration: none;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}

a.avustuskohde:hover {
    background: var(--vaaleanvihrea);
}

.bg_vihrea .nappula {
    background: var(--valkoinen);
    color: var(--vihrea);
}

.bg_vihrea .nappula:hover {
    background: var(--vaaleanvihrea);
    color: var(--vihrea);
}

.ajankohtaista.taysilevea {
    padding-top: 7rem;
    padding-bottom: 0;
}

.ajankohtaista.taysilevea h2 {
    display: block;
    text-align: center;
    margin-bottom: 4.750rem;
}

article.ajankohtainen {
    border: 3px solid var(--vaaleanvihrea);
    padding: 3rem;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
}

.ajankohtainen_data {
    display: block;
    width: 56%;
    box-sizing: border-box;
    padding-left: 3rem;
}

.ajankohtainen_kuva {
    width: 44%;
    background: url(images/uutinen-ilman-kuvaa.jpg);
    background-size: cover !important;
    background-position: center !important;
    box-sizing: border-box;
}

.ajankohtainen_kuva_aspectratio {
    display: block;
}

.ajankohtainen_data h3 {
    line-height: 1.371em;
    margin: 1.4rem 0;
}

.ajankohtainen_data a {
    text-decoration: none;
    color: var(--vihrea);
}

.navigaationapit a,
.ajankohtaista a.nappula {
    background: var(--vihrea);
    color: var(--valkoinen);
}

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

.ajankohtaista .fullwidth_wrapper {
    text-align: center;
    margin-top: 5.750rem;
}

footer.alapalkki {
    display: block;
    background: var(--sininen);
    position: relative;
    margin-top: calc(8.85rem + 88px);
    padding-top: 0;
    padding-bottom: 1.600rem;
}

footer.alapalkki::before {
    position: absolute;
    top: -87px;
    left: 0;
    width: 100%;
    height: 88px;
    background: url(images/aaltopala.svg);
    content: '';
    display: block;
    background-size: auto 100%;
    background-repeat: repeat-x;
    background-position: top center;
}

.alapalkki_yla {
    display: grid;
    width: 1320px;
    padding: 0 2.5rem;
    max-width: 100%;
    margin: 0 auto;
    grid-template-columns: 1fr 220px 220px auto;
    gap: 5rem;
    font-size: 1.1rem;
    margin-bottom: 3.250rem;
    align-items: flex-start;
    box-sizing: border-box;
    justify-content: space-between;
}

.alapalkki_yla p {
    margin: 0;
}

a.alapalkki_logo img {
    width: 100%;
    display: block;
}

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

.alapalkki_yla a:hover {
    text-decoration: underline;
}

.some > a {
    display: inline-block;
    width: 62px;
    height: 62px;
    background-size: 100% 100% !important;
    text-indent: -9999px;
    margin-right: 0.8rem;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    position: relative;
}

a.some_fb {
    background: url(images/ikoni_fb.svg);
}

a.some_yt {
    background: url(images/ikoni_yt.svg);
}

a.some_ig {
    background: url(images/ikoni_ig.svg);
}

.some > a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    opacity: 0;
    transition: 0.25s opacity;
}

.some > a.some_fb::after {
    background: url(images/ikoni_fb_hover.svg);
}

.some > a.some_yt::after {
    background: url(images/ikoni_yt_hover.svg);
}

.some > a.some_ig::after {
    background: url(images/ikoni_ig_hover.svg);
}

.some > a:hover::after {
    opacity: 1.0;
}

.alapalkki_ala {
    display: flex;
    justify-content: center;
    gap: 1.250rem;
    font-size: 0.900rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.alapalkki_ala p {
    margin: 0;
}

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

.alapalkki_ala a:hover {
    text-decoration: underline;
}

.ajankohtainen_data a:hover {
    color: var(--musta);
}

span.artikkelinotsikko {
    display: none !important;
}

a+p,
h3+p {
    margin-top: 0;
}


section.hero {
    background: url(images/headertausta.jpg);
    background-size: cover !important;
    background-position: center !important;
    color: var(--valkoinen);
    padding: 4.65rem 0;
    position: relative;
    box-sizing: border-box;
}

.hero.kuvalla .rajoittaja.fhd > .rajoittaja {
    padding-right: 600px;
}

.hero.kuvalla > .rajoittaja.fhd {
    position: relative;
    padding: 0;
}

.herokuva {
    display: block;
    position: absolute;
    top: 20px;
    right: 0;
    width: 643px;
    background-size: cover !important;
    background-position: center !important;
}

.herokuva_aspectratio {
    display: block;
    width: 100%;
    padding-top: 82%;
}

.rajoittaja.fhd {
    width: calc(1920px + 5rem);
}

.huomioi_herokuva {
    padding-right: 685px;
}

main.paasisalto {
    margin-top: 7rem;
    margin-bottom: 8.3rem;
}

main.paasisalto h2, main.paasisalto h3, main.paasisalto h4 {
    color: var(--vihrea);
}

.paasisalto .nappula {
    background: var(--vihrea);
    color: var(--valkoinen);
}

.paasisalto .nappula:hover {
    background: var(--vaaleanvihrea);
    color: var(--vihrea);
}

.datalaatikot.rajoittaja {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.8rem;
    margin-top: 8rem;
    margin-bottom: 8.35rem;
}

article.datalaatikko {
    display: block;
    border: 3px solid var(--vaaleanvihrea);
    text-align: center;
    box-sizing: border-box;
    padding: 3rem 2rem 3.5rem 2rem;
}

article.datalaatikko h3 {
    color: var(--vihrea);
}

.bg_vihrea.rajoittaja, .bg_vaaleanvihrea.rajoittaja {
    width: 1364px;
}

.tekstilaatikko {
    padding: 4.6rem 5.850rem 6rem 5.850rem;
    margin-top: 7.5rem;
    margin-bottom: 7.5rem;
}

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

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

.kaksirivissa ul li {
    display: block;
    margin: 0.7rem 0;
    background: url(images/ikoni_checkmark.svg);
    background-size: 25px auto;
    background-position: left top 1px;
    background-repeat: no-repeat;
    padding-left: 36px;
}

.tekstisisalto h2, .tekstisisalto h3, .tekstisisalto h4, .tekstisisalto h5 {
    color: var(--vihrea);
}

.tekstisisalto .nappula {
    background: var(--vihrea);
    color: var(--valkoinen);
    margin-top: 3rem;
}

.tekstisisalto .nappula:hover {
    background: var(--vaaleanvihrea);
    color: var(--vihrea);
}

.tutustu_avaustuskohteisiin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5.5rem;
    margin-top: 8rem;
    margin-bottom: 8.750rem;
}

img.tutustu_avaustuskohteisiin_leima {
    display: block;
    width: 23.42%;
    box-sizing: border-box;
}

.tutustu_avustuskohteisiin_data {
    display: block;
    box-sizing: border-box;
    width: 76.58%;
    padding-left: 5.5rem;
}

.tutustu_avustuskohteisiin .nappula {
    padding: 0;
}

.tutustu_avaustuskohteisiin .nappula {
    padding: 0.8em 1.4em;
}

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

select {
    display: inline-block;
    font-family: "Figtree", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 1rem;
    color: var(--vihrea);
    border: 3px solid var(--vaaleanvihrea);
    padding: 0.89rem 70px 0.89rem 0.89rem;
    width: 438px;
    max-width: 100%;
    box-sizing: border-box;
    background: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url(images/ikoni_nuoli_alas.svg);
    background-position: center right 28px;
    background-repeat: no-repeat;
}

.myonnetyt_avustukset_header h2 {
    margin: 0;
    color: var(--vihrea);
}

h3.alaviiva {
    border-bottom: 3px solid var(--vaaleanvihrea);
    padding-bottom: 15px;
    color: var(--vihrea);
}

.myonnetyt_avustukset p {
    margin: 0 0 1.5rem 0;
}

small {
    font-size: 0.900em;
}

.myonnetyt_avustukset .kaksirivissa {
    gap: 4rem;
}

.data_sisalto {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0rem 4rem;
}

.tekstijakuvalaatikko {
    display: grid;
    grid-template-columns: 46.2% 53.8%;
    padding: 6rem 0 6rem 6rem;
    align-items: start;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.tekstijakuvalaatikko_kuva_aspectratio {
    display: block;
    width: 100%;
    padding-top: 57.23%;
}

.tekstijakuvalaatikko_kuva {
    background-size: cover !important;
    background-position: center !important;
    margin-top: 7px;
}

.tekstijakuvalaatikko_data {
    display: block;
    padding-right: 5rem;
    box-sizing: border-box;
}

.datalaatikko .nappula {
    background: var(--vihrea);
    color: var(--valkoinen);
    margin-right: 0;
    margin-top: 1rem;
}

.datalaatikko .nappula:hover {
    background: var(--vaaleanvihrea);
    color: var(--vihrea);
}

.paasisalto > p > img.alignnone {
  width: 100%;
}

.paasisalto img, .paasisalto .wp-caption {
    display: block;
    margin: 8rem 0;
}

.paasisalto .wp-caption {
    width: 100% !important;
    background: var(--vaaleanvihrea);
    padding: 3rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.paasisalto .wp-caption img {
    margin: 0;
    width: 52%;
    min-width: 52%;
}

.paasisalto .wp-caption .wp-caption-text {
    background: var(--valkoinen);
    font-size: 1.750em;
    padding: 1.750rem 2.650em 1.75rem 2.65rem;
    margin: 0;
    color: var(--vihrea);
    width: 47%;
    margin-left: -80px;
    font-weight: 300;
    box-sizing: border-box;
}

section.hero.eikuvaa {
    text-align: center;
}


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

.yhteystiedot > h2 {
    display: block;
    width: 100%;
    margin-bottom: 5rem;
}

.yhteystiedot_vasen {
    display: block;
    width: 50%;
}

.yhteystiedot_oikea {
    display: grid;
    width: 50%;
    grid-template-columns: 1fr 1fr;
    gap: 9rem;
    padding-top: 5px;
}

article.yhteystieto > img {
    display: block;
    margin: 0;
    border-radius: 50%;
}

article.yhteystieto > h4 {
    margin: 2rem 0 1rem 0;
}

article.yhteystieto > p {
    margin: 0;
}

article.yhteystieto {
    display: block;
    text-align: center;
}

.yhteystiedot_vasen > h3:first-child {
    margin-top: 0;
}

.yhteystiedot_vasen > h4 {
    margin-top: 1.85rem;
}

.hallitus {
    display: block;
    border: 3px solid var(--vaaleanvihrea);
    padding: 4.600rem 5.750rem;
    margin-top: 6rem;
}

.kolmerivissa {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.kolmerivissa > div {
    padding-right: 3rem;
    box-sizing: border-box;
}

.kaksiartikkelia article.ajankohtainen {
    display: block;
}

.kaksiartikkelia .ajankohtainen_kuva {
    display: block;
    width: 100%;
    margin-top: 2.5rem;
}

.kaksiartikkelia .ajankohtainen_data {
    padding: 0;
    width: 100%;
    margin-top: 2rem;
}

.ajankohtainen_data p a {
    color: inherit;
    text-decoration: underline;
}

.ajankohtaista.kaksiartikkelia > .rajoittaja {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem;
}

.ajankohtaista.kaksiartikkelia {
    display: block;
    margin-top: 7.8rem;
}

.kaksiartikkelia .fullwidth_wrapper {
    grid-column: 1 / -1;
}

p.paivays {
    display: block;
    margin-bottom: 0;
}

p.paivays+h2 {
    margin-top: 1.750rem;
}

p.kaikkiuutiset {
    margin-top: 5rem;
}

.sivu_yhteystieto {
	display: grid;
	grid-template-columns: 211px 1fr;
	align-items: center;
	margin: 6.700rem 0;
}

.sivu_yhteystieto img, .paasisalto .sivu_yhteystieto img {
    display: block;
    margin: 0;
    border-radius: 50%;
}

.sivu_yhteystieto_data {
    display: block;
    padding-left: 2.750rem;
}

.datalaatikot.kaksilaatikkoa.rajoittaja {
    grid-template-columns: 1fr 1fr;
}

img.datalaatikko_logo {
    display: block;
    width: 300px;
    height: 200px;
    object-fit: contain;
    object-position: center;
    max-width: 100%;
    margin: 0 auto;
}

img.datalaatikko_logo+h4 {
    margin-top: 2rem;
    color: var(--vihrea);
}

a:hover {
    color: var(--vihrea);
}

.kaksirivissa+p {
    margin-top: 4rem;
}

a.kaikkiyhteistiedot {
    padding-right: 25px;
    background: url(images/ikoni_nuoli_oikea.svg);
    background-position: center right;
    background-repeat: no-repeat;
    background-size: calc(1em * 0.8);
}

.ajankohtainen_data p a:hover {
    color: var(--vihrea);
}

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

.sivu_yhteystieto_data> h4 {
    margin-bottom: 1rem;
}

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

.yhteystiedot_vasen > h4 {
    margin-bottom: 1rem;
}

.yhteystiedot_vasen > h4+p {
    margin-top: 0;
}

a.sahkopostiosoite > i {
    display: none !important;
}

.paasisalto table {
    width: 100%;
    border-collapse: collapse;
    border-left: 1px solid #000;
    border-bottom: 1px solid #000;
}

.paasisalto table td {
    border-right: 1px solid #000;
    padding: 15px;
    border-top: 1px solid #000;
    border-bottom: 0;
}

.ajankohtainen_kuva_aspectratio {
	padding-top: 57%;
}

.ajankohtaista.taysilevea .ajankohtainen_kuva_aspectratio {
	padding-top: 0;
}

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

    header.ylapalkki {
        min-height: 132px;
    }

    section.etusivuhero {
        min-height: calc(100vh - 132px);
    }

	.herokuva {
	    width: 35%;
	}
	
	.hero.kuvalla .rajoittaja.fhd > .rajoittaja {
	    padding-right: 35%;
	}
	
	.huomioi_herokuva {
	    padding-right: 35%;
	}
}

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

    section.etusivuhero::after {
        width: 65%;
        background-size: 120% auto;
        background-position: bottom left;
        background-repeat: no-repeat;
    }

    .etusivuhero > .rajoittaja {
        padding-right: 40%;
    }

    header.ylapalkki {
        min-height: 124px;
    }

    section.etusivuhero {
        min-height: calc(100vh - 124px);
    }

    .alapalkki_yla {
        grid-template-columns: 200px 180px 180px auto;
        justify-content: space-between;
        gap: 4rem;
    }

    .lisalaatikko {
        margin-top: 6rem;
        margin-bottom: 6rem;
    }

    .lisalaatikko_teksti {
        padding: 4rem 3rem 4rem 4rem;
    }

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

    .avustuskohteet > h2 {
        margin-bottom: 3rem;
    }

    .ajankohtaista.taysilevea {
        padding-top: 5rem;
    }

    .ajankohtaista.taysilevea h2 {
        margin-bottom: 3rem;
    }

    article.ajankohtainen {
        padding: 2rem;
    }

    .ajankohtaista .fullwidth_wrapper {
        margin-top: 4rem;
    }

    footer.alapalkki {
        margin-top: calc(4rem + 88px);
    }

	.huomioi_herokuva {
	    padding-right: calc(35% + 5rem);
	}
	
	.hero.kuvalla .rajoittaja.fhd > .rajoittaja {
	    padding-right: calc(35% + 5rem);
	}

	.paasisalto .wp-caption .wp-caption-text {
	    width: 57%;
	}
}

@media screen and (max-width: 1300px) {
    header.ylapalkki .rajoittaja {
        display: flex;
        flex-wrap: wrap;
    }

    nav.paavalikko {
        width: 100%;
        padding-bottom: 2rem;
    }

    nav.paavalikko > ul {
        justify-content: flex-start;
    }

    header.ylapalkki {
        min-height: 175px;
    }

    section.etusivuhero {
        min-height: calc(100vh - 175px);
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media screen and (max-width: 1100px) {
	.alapalkki_yla {
		gap: 2.5rem;
	}
}

@media screen and (max-width: 1000px) {
    h1, h2.iso {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.40rem;
    }

    nav.paavalikko {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 9999;
        background: var(--valkoinen);
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
        padding-bottom: 1rem;
        display: none;
    }

    header.ylapalkki {
        min-height: 122px;
    }

    section.etusivuhero {
        display: block;
        min-height: calc(100vh - 124px);
        align-items: flex-start;
        min-height: unset;
        padding-bottom: 0;
        font-size: 1rem;
        padding-top: 4rem;
    }

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

    nav.paavalikko > ul {
        display: block;
    }

    .rajoittaja {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .etusivuhero > .rajoittaja {
        padding-right: 2rem;
        /* text-align: center; */
        padding-left: 2rem;
    }

    nav.paavalikko a {
        font-size: 1.25rem;
        margin: 0.5rem 0;
        display: block;
        text-align: right;
    }

    .mobile_nav_toggle {
        display: block;
        width: 29px;
        box-sizing: border-box;
        cursor: pointer;
        padding: 0;
    }

    .viiva1, .viiva2, .viiva3 {
        width: 29px;
        height: 5px;
        background-color: var(--vihrea);
        margin: 6px 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-transfom: rotate(45deg) translate(-8px, -8px);
        transform: rotate(45deg) translate(-8px, -8px);
    }
        
    header.ylapalkki .rajoittaja {
        align-items: center;
        justify-content: space-between;
    }

    .rajoittaja > a.paalogo {
        width: 200px;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .lisalaatikko {
        display: block;
    }

    .lisalaatikko_kuva {
        width: 100%;
        padding-top: 62%;
    }

    .lisalaatikko_teksti {
        width: 100%;
        padding: 3rem 3rem 3rem 3rem;
    }

    a.avustuskohde {
        width: calc(100% / 2 - 2rem);
        margin: 1rem;
        padding-bottom: 4rem;
    }

    .avustuskohteet {
        margin-left: 0;
        margin-right: 0;
    }

    article.ajankohtainen {
        display: block;
        width: 600px;
        margin: 2rem auto;
        max-width: 100%;
    }

    .ajankohtainen_data {
        width: 100%;
        padding-left: 0;
        padding-top: 2rem;
    }

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

    .alapalkki_yla {
        display: block;
    }

    a.alapalkki_logo {
        display: block;
        width: 190px;
        margin: 0 auto;
    }

    .alapalkki_yla > div {
        text-align: center;
        margin: 2rem 0;
    }

    .alapalkki_ala {
        display: block;
        text-align: center;
    }

    .alapalkki_ala > div {
        margin: 1rem 0;
    }

    .lisalaatikko_teksti p {
        padding-right: 0;
    }
		
	span.avustuskohde_logo > img {
	    width: 60px;
	}
	
	span.avustuskohde_logo {
	    margin-top: -30px;
	}

	.nappula {
	    font-size: 1rem;
	}
	
	.lisalaatikko_teksti h2 {
	    margin-top: 0;
	    margin-bottom: 2rem;
	    line-height: 1em;
	}
	
	p+.nappula {
	    margin-top: 0;
	}

	.avustuskohteet > h2 {
	    margin-bottom: 2rem;
	}
	
	.avustuskohde + .fullwidth_wrapper {
	    margin-top: 3rem;
	}
	
	.some > a {
	    width: 40px;
	    height: 40px;
	}
	
	.some > a:last-child {
		margin-right: 0;
	}

	section.etusivuhero::after {
        width: 100%;
        background-size: 120% auto;
        background-position: bottom left -10%;
        background-repeat: no-repeat;
        position: relative;
        bottom: unset;
        left: unset;
        top: unset;
        right: unset;
        height: unset;
        padding-top: 70%;
    }

	.avustuskohteet {
		padding-bottom: calc(3rem + 9px);
	}

	.herokuva {
	    position: relative;
	}
	
	section.hero {
	    padding: 0;
	}
	
	.hero.kuvalla > .rajoittaja.fhd {
	    display: flex;
	    align-items: center;
	}
	
	.herokuva {
	    top: unset;
	}
	
	.hero.kuvalla .rajoittaja.fhd > .rajoittaja {
	    width: 65%;
	    padding-right: 2.5rem;
	    padding-top: 2rem;
	    padding-bottom: 2rem;
	}
	
	.datalaatikot.rajoittaja {
	    display: block;
	    margin-top: 4rem;
	    margin-bottom: 4rem;
	}
	
	article.datalaatikko {
	    margin: 1rem 0;
	}
	
	main.paasisalto {
	    margin-top: 4rem;
	    margin-bottom: 4rem;
	}
	
	.tekstilaatikko {
	    margin-top: 4rem;
	    margin-bottom: 4rem;
	    padding-top: 3rem;
	    padding-bottom: 4rem;
	}

	.tutustu_avaustuskohteisiin {
	    margin-top: 4rem;
	    margin-bottom: 4rem;
	}
	
	.myonnetyt_avustukset_header {
	    display: block;
	}
	
	select#valitsevuosi {
	    display: block;
	    width: 100%;
	    margin-top: 1rem;
	}
	
	.tutustu_avustuskohteisiin_data {
	    padding-left: 3rem;
	}

	.tekstijakuvalaatikko {
	    display: flex;
	    flex-direction: column-reverse;
	    padding: 3rem 1rem 1rem 1rem;
	    margin-top: 2rem;
	    margin-bottom: 2rem;
	}
	
	.tekstijakuvalaatikko_kuva {
	    display: block;
	    width: 100%;
	}
	
	.tekstijakuvalaatikko_kuva_aspectratio {
	    padding-top: 40%;
	}
	
	.tekstijakuvalaatikko_data {
	    padding-right: 0;
	    padding-top: 2rem;
	    padding-bottom: 0;
	}

	section.hero.eikuvaa {
	    padding: 5rem 0;
	}
		
	.yhteystiedot > h2 {
	    order: 0;
	    text-align: center;
	    margin-bottom: 3rem;
	    margin-top: 0;
	}
	
	.yhteystiedot_oikea {
	    order: 1;
	    width: 500px;
	    padding-bottom: 4rem;
	    max-width: 100%;
	    gap: 3rem;
	    margin: 0 auto;
	    text-align: center;
	    box-sizing: border-box;
	}
	
	.yhteystiedot_vasen {
	    order: 2;
	    width: 100%;
	    text-align: center;
	}
	
	.hallitus {
	    margin-top: 3rem;
	    padding: 3rem;
	}
	
	.kolmerivissa {
	    display: block;
	}
		
	.ajankohtaista.kaksiartikkelia > .rajoittaja {
	    display: block;
	}
	
	.ajankohtaista.kaksiartikkelia {
	    margin-top: 4rem;
	}

	.sivu_yhteystieto {
	    margin: 4rem 0;
	}

	.tekstijakuvalaatikko_video {
	    display: block;
	    width: 100%;
	}
    
    .etusivuhero p+.nappula {
        margin-top: 1rem;
    }

    .kaksirivissa ul li {
        background-size: 20px auto;
        padding-left: 31px;
    }

    .tutustu_avaustuskohteisiin .nappula {
        margin: 0.5rem 0;
        width: 100%;
        box-sizing: border-box;
    }

    article.yhteystieto > img {
        width: 150px;
        margin-left: auto;
        margin-right: auto;
    }

    .sivu_yhteystieto > img, .paasisalto .sivu_yhteystieto > img {
        width: 150px;
        margin-left: auto;
        margin-right: auto;
    }

    .fullwidth_wrapper > .nappula:first-child:last-child {
        margin: 0;
    }
	
	.ajankohtaista.taysilevea .ajankohtainen_kuva_aspectratio,
	.ajankohtainen_kuva_aspectratio {
		padding-top: 57%;
	}
}

@media screen and (max-width: 800px) {
	.kaksirivissa {
	    display: block;
	}
	
	.kaksirivissa > div {
	    display: block;
	    margin: 1rem 0;
	}
	
	.data_sisalto {
		display: block;
		margin: 1rem 0;
	}
}

@media screen and (max-width: 650px) {
    a.avustuskohde {
        width: 100%;
        margin: 0.5rem 0;
    }

    .lisalaatikko_teksti {
        padding: 2.5rem;
    }

	.hero.kuvalla > .rajoittaja.fhd {
	    display: block;
	}
	
	.herokuva {
	    width: 100%;
	}
	
	.herokuva_aspectratio {
	    padding-top: 60%;
	}
	
	.hero.kuvalla .rajoittaja.fhd > .rajoittaja {
	    padding-top: 4rem;
	    padding-bottom: 4rem;
	    padding-right: 1rem;
	    width: 100%;
	    text-align: center;
	}

	.tutustu_avaustuskohteisiin {
	    display: block;
	    padding: 4rem;
	}
	
	img.tutustu_avaustuskohteisiin_leima {
	    margin: 0 auto 2rem auto;
	    width: 30%;
	}
	
	.tutustu_avustuskohteisiin_data {
	    padding-left: 0;
	    width: 100%;
	    text-align: center;
	}

	.tekstijakuvalaatikko_kuva_aspectratio {
	    padding-top: 57.23%;
	}

	.paasisalto .wp-caption {
	    display: block;
	}
	
	.paasisalto .wp-caption img {
	    margin: 0 auto 2rem auto;
	    max-width: 100%;
	    width: 500px;
	}
	
	.paasisalto .wp-caption .wp-caption-text {
	    margin-left: 0;
	    width: 100%;
	    max-width: 100%;
	}
	
	.paasisalto img, .paasisalto .wp-caption {
	    margin: 4rem 0;
	}

	article.yhteystieto {
	    width: calc(50% - 1rem);
	}
	
	.yhteystiedot_oikea {
		display: flex;gap: 2rem;
	}

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

	.sivu_yhteystieto img, .paasisalto .sivu_yhteystieto img {
	    width: 100%;
	    max-width: 100%;
	    margin-bottom: 2rem;
	    text-align: center;
	}
	
	.sivu_yhteystieto_data {
	    padding-left: 0;
	    text-align: center;
	}
}

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

    h1, h2.iso {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.40rem;
    }

	.yhteystiedot_oikea {
	    display: block;
	}
	
	article.yhteystieto {
	    max-width: 100%;
	    width: 300px;
	    margin: 0 auto 2rem auto;
	}
}