.wf-loading, .wf-loading body {visibility:hidden}
.wf-active body .wf-inactive body {visibility:visible}


.no-js [data-responsive-toggle], .no-js .top-bar, .no-js{ display: none!important; }

[data-responsive-menu] ul { display: none; }


:root {
  --main-color: #df3d38;
  --main-hover: #590c34;
  --sec-color: #222222;
  /* --alt-color: #efefef; */
  --alt-color: #f6f6f6;
  --add-color-1: #ececec;

  --title-font: 'DM Serif Display', serif;
  --body-font: 'Lato', sans-serif;
  --radius: 1.875rem;
  --transition: all .25s ease-out;
}

/**********     639px     **********/
@media all and (max-width: 39.9375em) {
  :root {
    --radius: 1.25rem;
  }
}


/* Fontit (ks. graafinen ohjeisto) */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dm-serif-display-regular {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-style: normal;
}

.dm-serif-display-regular-italic {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-style: italic;
}

.lato-thin {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.lato-light {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.lato-regular {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lato-bold {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.lato-black {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.lato-thin-italic {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.lato-light-italic {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.lato-regular-italic {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.lato-bold-italic {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.lato-black-italic {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: italic;
}

/* Common Styles */

::selection {
  background: #ca4d2880;
}

html, body {
  font-family: "Lato", sans-serif;
  overflow-x: hidden; 
}
blockquote {
  border-left: none;
}

.admin-bar header#masthead {
  margin-top: 32px;
}
.admin-bar .nav-sub-second-mega ul.nav-sub-second {
  margin-top: 32px;
}


body, input, select, optgroup, textarea {
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 1em;
  line-height: 1.4;
  font-style: normal;
  color: var(--sec-color);
  letter-spacing: 0.02em;
  --color: #fff;
}
textarea[rows] {
  height: 10rem;
}

a {
  font-style: normal;
  color: inherit;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}

/*.text-block-text a,
ul li a, ol li a {
  text-decoration: underline;
}*/

a:focus, a:active, a:visited {
  color: inherit;
}
a:hover, a:visited:hover {
  color: var(--main-color);
}
a:visited {
  color: unset;
}

ul, ol {
  margin: 0 0 1.5rem 3rem;
}


/**  General **/

main#primary { margin-top: 140px; -webkit-transition: margin-top .1s ease-in-out; transition: margin-top .1s ease-in-out;}
.top main#primary { margin-top: 80px; }

.admin-bar .nav-root { top: 32px; }
.admin-bar li.cell > ul.nav-subroot { top: 112px; }
:focus { outline: none; }

.cell.align-right {
  display: inline-flex;
}


/* Typography */

h1,h2,h3,h4,h5,h6 {
    font-family: "DM Serif Display", serif;
}

h1 {
  font-size: 4rem;
  font-weight: 600;
  margin: 4rem 0 2rem 0;
  line-height: 1.25;
  font-style: normal;
}
h2 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 4rem 0 2rem 0;
  font-style: normal;
}
h3 { 
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 3rem 0 1.5rem 0;
  font-style: normal;
}
h4 {
  font-size: 1.75rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
  margin: 3rem 0 1.5rem 0;
}
h5, h6 {
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
}
thead th {
  font-family: var(--title-font);
  font-size: 1.5rem;
  font-style: normal;
  font-weight: bold;
}
tbody td {
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 400;
}
p {
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 1.125rem;
  font-style: normal;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

b, strong {
  font-style: normal;
  font-weight: 600;
}
ul li, ol li {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
blockquote {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}



/* Foundation Alterations */

.grid-margin-x-custom {
    margin-left: 8rem;
    margin-right: 8rem;
}




/******** Valikko ********/ 

/* Valikko yleiset */
#menu-1 {
  margin-right: 1.5rem ;

}
.menu {
  height: 100%;
}
.menu li {
  display: flex;
  align-items: center;
  /*height: 2rem;*/
  height: 100%;
}
.menu li a {
  border-right: 2px solid var(--main-color);
}
.nav-sub-second li:not(:last-child) a,  
.nav-sub-second li a,
#primary-menu-mobile li a {
    border: 0 !important;
  }
.menu li:last-child {
  position: relative;
  padding-right: 0.5rem;
}
#masthead .cell {
  height: 100%;
  display: inline-flex;
  align-items: center;
  position: relative;
}
#masthead .cell:first-child {
  justify-content: flex-start;
}
#masthead .cell:last-child {
  justify-content: flex-end;
}
.custom-logo {
  height: auto;
  max-width: 100%;
}
header#masthead {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: #fff;
}
.site-branding {
  display: flex;
}
.nav-sub-second .active-menu-item {
  text-decoration: underline;
}


/* Not found */
section.no-results.not-found {
  padding-bottom: 20rem;
  padding-top: 1rem;
}


/* Tukivalikko */
.secondary-menu-row {
  background: var(--alt-color);
  height: 40px;
  -webkit-transition: all 0.15s ease-in-out;
  -moz-transition: all 0.15s ease-in-out;
  -ms-transition: all 0.15s ease-in-out;
  -o-transition: all 0.15s ease-in-out;
  transition: all 0.15s ease-in-out;
}
.top .secondary-menu-row {
  margin-top: -40px;
}
nav#secondary-navigation a {
  font-size: 1rem;
  color: #000;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
}
nav#secondary-navigation .dropdown.menu>li.opens-right>.is-dropdown-submenu {
  top: 100%;
  right: 0;
  left: auto;
}
ul#secondary-menu {
  height: 40px;
  display: flex;
  align-items: center;
}
nav#secondary-navigation img {
  height: 20px;
  width: auto;
  padding-right: .5rem;
}
nav#secondary-navigation li {
  padding-left: 2rem;
}
nav#secondary-navigation li a::after {
  display: none;
}
#secondary-menu ul.sub-menu {
  background: var(--alt-color);
  border: 0;
  border-radius: 0 0 1rem 1rem;
  padding: 2rem 2rem 1rem 2.5rem;
  min-width: 250px;
}
nav#secondary-navigation .sub-menu li {
  padding: 0;
}
nav#secondary-navigation .sub-menu a {
  display: block;
  align-items: unset;
  height: auto;
  padding-bottom: 1rem;
}
nav#secondary-navigation .is-dropdown-submenu-parent a::after {
  position: absolute;
  top: unset;
  right: unset;
  left: unset;
  margin-top: -6px;
}
#secondary-menu ul.sub-menu a:after {
  content: '';
  background-image: url(../img/icons/arrow.svg);
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  transform: rotate(-90deg) translateY(0rem) translateX(-0.1rem);
  opacity: 0;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
  display: inline-block;
  position: absolute;
}
#secondary-menu ul.sub-menu a:hover:after {
  opacity: 1;
  transform: rotate(-90deg) translateY(1rem) translateX(-0.1rem);
}

/* Päävalikko */
.main-navigation {
  display: flex;
  width: 100%;
  height: 100%;
}
.main-navigation ul {
  justify-content: flex-end;
  align-items: center;
}
.primary-menu-row {
  height: 130px;
  -webkit-transition: var(--transition);
  -moz-transition: var(--transition);
  transition: var(--transition);
  margin: 0 1.9375rem;
}
  @media all and (max-width: 1000px) {
    .primary-menu-row {
      margin: 0 0.5625rem;
    }
  }
.top .primary-menu-row {
  height: 80px;
}
.primary-menu-row .custom-logo {
  -webkit-transition: var(--transition);
  -moz-transition: var(--transition);
  transition: var(--transition);
  max-width: 260px;
}
/*.top .primary-menu-row .custom-logo-link {
  transform: scale(0.75) translateX(-16%);
}*/
  @media all and (max-width: 639px) {
    .primary-menu-row .custom-logo {
      max-width: 150px;
    }
  }
#primary-menu a {
  display: flex;
  align-items: center;
  padding: 0 2rem;
  font-family: var(--title-font);
  font-weight: 400;
	 font-family: "Lato", sans-serif;
}
#primary-menu ul > li {
  margin-bottom: 0;
}
  .main-navigation .menu li a {
    height: 2rem;
  }
  .main-navigation .menu .nav-sub-second li a,
  #primary-menu-mobile, #primary-menu-mobile li a {
    height: auto;
  }

#primary-menu a
#primary-menu li {
  align-items: center;
}
#primary-menu li.second-menu-color a {
  color: var(--main-color);
  padding: 0 2.5rem 0 1.5rem;
  height: auto;
  position: relative;
}
#primary-menu li.second-menu-color a:after {
  position: absolute;
  top: -5px;
  right: 0.75rem;
  content: url(/wp-content/themes/yrjojahanna/img/icons/arrow_thick.svg);
  width: 1rem;
  -webkit-transition: all .25s ease-out;
  -moz-transition: all .25s ease-out;
  -ms-transition: all .25s ease-out;
  -o-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
#primary-menu li.second-menu-color a:hover:after {
  right: 0rem;
}



/*#primary-menu ul.nav-sub-second li a, #primary-menu li.second-menu-color a {
  text-transform: none;
}*/
.primary-menu-item:hover .nav-sub-second-mega .nav-sub-second {
  display: block;
  left: 0;
  width: 100vw;
  position: fixed;
  top: 130px;
  opacity: 1;
  -webkit-transition: opacity 0.15s ease-in-out;
  -moz-transition: opacity 0.15s ease-in-out;
  -ms-transition: opacity 0.15s ease-in-out;
  -o-transition: opacity 0.15s ease-in-out;
  transition: opacity 0.15s ease-in-out;
}
.top .primary-menu-item:hover .nav-sub-second-mega .nav-sub-second {
  top: 80px;
  -webkit-transition: height 0.15s ease-in-out;
  -moz-transition: height 0.15s ease-in-out;
  -ms-transition: height 0.15s ease-in-out;
  -o-transition: height 0.15s ease-in-out;
  transition: height 0.15s ease-in-out;
}
.top .main-navigation {
  height: 80px;
}
.primary-menu-item .nav-sub-second-mega .nav-sub-second, .primary-menu-item .nav-sub-second   {
  opacity: 0;
  -webkit-transition: opacity 0.15s ease-in-out;
  -moz-transition: opacity 0.15s ease-in-out;
  -ms-transition: opacity 0.15s ease-in-out;
  -o-transition: opacity 0.15s ease-in-out;
  transition: opacity 0.15s ease-in-out;
  box-shadow: none;
}
.primary-menu-item:hover .nav-sub-second {
  opacity: 1;
}
#primary-menu ul.nav-sub-third {
  opacity: 1;
  display: block;
}
#primary-menu .nav-sub-second-mega-sub li {
  padding: 0;
}
.nav-sub-second-mega-sub {
  width: 100%;
  -webkit-columns: 4;
  -moz-columns: 4;
  columns: 4;
  -webkit-column-gap: 3em;
  -moz-column-gap: 3em;
  column-gap: 3em;
  padding: 3rem 0 4rem 0;
  max-width: 87.5rem;
  margin: 0 auto;
}
.nav-sub-second-mega-sub li {
  display: grid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid;
  margin-top: 4em;
}
.nav-sub-second-mega-sub .nav-sub-third li {
  line-height: 1.4;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid;
  display: grid;
  margin-top: 0;
}
.nav-sub-second-mega-sub li:first-of-type {
  margin-top: 0em;
}
#primary-menu ul.nav-sub-third {
  display: unset;
  left: unset;
  position: unset;
  box-shadow: none;
  margin-top: 1rem;
}

/*********** korjaus **********/
#primary-menu ul.nav-sub-third {
  margin-top: 2rem;
}
#primary-menu ul.nav-sub-second {
  margin-top: -24px;
}
.top #primary-menu ul.nav-sub-second {
  margin-top: 0;
}
.admin-bar #primary-menu .nav-sub-second-mega ul.nav-sub-second {
  margin-top: 8px;
}
#primary-menu .nav-sub-second-mega ul.nav-sub-second {
  /*margin-top: 8px;*/
  margin-top: -24px;
}
.admin-bar.top #primary-menu .nav-sub-second-mega ul.nav-sub-second {
  margin-top: 32px;
}
.top #primary-menu .nav-sub-second-mega ul.nav-sub-second {
  margin-top: 0;
}

@media all and (max-width: 1500px) {
  #primary-menu ul.nav-sub-second {
    margin-top: 0;
  }
  #primary-menu .nav-sub-second-mega ul.nav-sub-second {
    margin-top: 0;
  }
  .admin-bar #primary-menu .nav-sub-second-mega ul.nav-sub-second {
    margin-top: 32px;
  }
}
/******************************/

.nav-sub-second-mega-sub a {
  display: block !important;
  width: auto !important;
}
.main-navigation .nav-sub-second-mega-sub a {
  display: block;
  width: auto;
}
.primary-menu-investor {
  right: 0;
}
.primary-menu-primary {
  display: flex;
  margin: 0 auto;
}
.primary-menu-primary li {
  padding: 0 1rem;
}
#primary-menu {
  justify-content: end;
}
li.second-menu-color .nav-sub-second {
  background: #d3e5dd;
}
li .nav-sub-second {
  background: #f7f7f7;
}
.has-children:after {
  content: '';
  display: none;
}
#primary-menu li:hover a {
  color: var(--main-color);
}
#primary-menu .nav-sub-second-mega-sub li:hover {
  background: unset;
}
ul.nav-sub-second {
  display: block;
}
#primary-menu ul.nav-sub-second a {
  padding: 0 0 1rem 0;
  line-height: 1.3;
  max-width: max-content;
}
#primary-menu .nav-sub-second-mega li a {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0;
  line-height: 1.4;
  max-width: max-content;
}
#primary-menu .nav-sub-second-mega .nav-sub-third li a {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  padding-bottom: 1.25rem;
  max-width: max-content;
}
#primary-menu ul.nav-sub-second {
  padding: 1.5rem 4rem 1.5rem 2.5rem;
  left: -999em;
  position: absolute;
}
#primary-menu .primary-menu-item:hover ul.nav-sub-second {
  left: -1rem;
  box-shadow: 0 6px 20px rgb(0 0 0 / 10%);
}
  #primary-menu .primary-menu-item:last-child:hover ul.nav-sub-second {
    left: auto;
    right: 0;
  }
#primary-menu .primary-menu-item:hover .nav-sub-second-mega ul.nav-sub-second { 
  left: 0;
  box-shadow: 0 26px 20px -20px rgb(0 0 0 / 10%);
}
#primary-menu .nav-sub-second-mega ul.nav-sub-second {
  padding: unset;
  /*left: 0; */
  position: fixed;
  border-radius: 0;
}
#primary-menu ul.nav-sub-second a {
  color: var(--sec-color);
  width: 300px;
  display: block;
}
#primary-menu ul.nav-sub-second a:hover {
  color: var(--main-color);
}
.nav-sub-second a:after {
  content: '';
  background-image: url(../img/icons/arrow.svg);
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  transform: rotate(0deg) translateX(0rem) translateY(0.3rem);
  opacity: 0;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
  display: inline-block;
  position: absolute;
}
.nav-sub-second a:hover:after {
  opacity: 1;
  transform: rotate(0deg) translateX(1rem) translateY(0.3rem);
}
.nav-sub-second-mega-sub a:after {
  transform: rotate(0deg) translateX(0rem) translateY(0.3rem);
}
.nav-sub-second-mega-sub a:hover:after {
  transform: rotate(0deg) translateX(1rem) translateY(0.3rem);
}
.nav-sub-second .nav-sub-third a:after {
  content: '';
  background-image: url(../img/icons/arrow.svg);
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  transform: rotate(0deg) translateX(0rem) translateY(0.1rem);
  opacity: 0;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
  display: inline-block;
  position: absolute;
}
.nav-sub-second-mega-sub .nav-sub-third a:hover:after {
  opacity: 1;
  transform: rotate(0deg) translateX(1rem) translateY(0.3rem);
}

/* Mobiilivalikko */
.menu-mobile{
  display: none;
}
#primary-menu-mobile a {
  color: var(--sec-color) !important;
}




/**************************************/ 
/*********   REDIRECT POPUP   *********/ 
/**************************************/

.redirect-wrapper {    
  position: fixed;    
  top: 0;    
  left: 0;    
  bottom: 0;    
  width: 100%;   
  background-color: rgba(19,72,81,0.85);    
  z-index: 999;    
  overflow: hidden;    
  overflow-y: auto;    
  height: 100vh;
}
.redirect-wrapper-2 {    
  position: absolute;    
  top: 50%;    
  width: 100%;    
  -webkit-transform: translate(0%, -50%);
  -ms-transform: translate(0%, -50%);    
  transform: translate(0%, -50%);
}
.redirect-popup {
  display: table;
  margin: 0 auto;
  width: 60%;
  min-width: 400px;
  max-width: 950px;
  background-color: #fff;
  border-radius: 1.875rem;
}
.redirect-container {
  display: flex;
  flex-direction: column;
  margin: 4rem;
  position: relative;
}
.redirect-title h2 {
  margin: 0 0 2rem 0;
}
.redirect-message {
  height: 100%;
  width: 100%;
    margin-bottom: 2rem;
}
.redirect-close-button {
  align-self: auto;
  padding: 0.75rem 2.5rem 0.75rem 3rem;
}
.redirect-secondary-close-button {
  position: absolute;
  right: -6rem;
  top: -6rem;
}
@media screen and (max-width: 431px) {
  .redirect-popup {
    width: 100%;
    height: 100%;		border-radius: 0;
  }
  .redirect-wrapper-2 {    		
    top: 0;		
    -webkit-transform: translate(0%, 0%);
    -ms-transform: translate(0%, 0%);		
    transform: translate(0%, 0%);
  }
  .redirect-container {		margin: 2rem;
    width: 80%;
    min-width: unset;
  }
}







.post, .page {
  margin: 0;
}
main#primary {
  margin-top: 130px;
}
.menu.align-center li a {
  font-size: 18px;
}
.secondary-menu {
  padding-left: 2rem;
}
ul#menu-investor-menu li {
  background: #1cbc9b;
}
ul#menu-investor-menu a {
  font-size: 18px;
  padding-right: 0.5rem;
  padding-left: 1rem;
}
ul#menu-investor-menu .nav-subroot li {
  background: #1cbc9b;
  color: #fff !important;
}
ul#menu-investor-menu .nav-subroot li a {
  background: #1cbc9b;
  color: #fff !important;
  font-size: 16px !important;
}
ul#menu-investor-menu .nav-subroot li:hover {
  background: #1cbc9b;
  color: #fff !important;
}
.nav-subtree > li.color-light-green > a, .nav-subroot > li.color-light-green:hover > span {
  color: #fff !important;
}
.nav-subroot > li.color-light-green > span {
  font-size: 16px;
}










/* Colors */

.text-light { color: #fff; }
.text-dark { color: #242424; }

.bg-red { background: var(--main-color); color: #fff; }
.bg-blue { background: #134851; color: #ffffff; }
.bg-gray { background: var(--alt-color); color: #242424; }
.bg-white { background-color: #fff; color: #242424; }
.bg-alt-orange { background-color: #f7f7f7; color: #134851; }
.bg-sand { background-color: #f7f7f7; color: #134851; }



/* Widths */

.width-narrow {
  max-width: 55rem;
  margin: 0 auto;
}
/*.width-narrow div {
  margin: 0;
}*/
.hero-width-narrow {
  max-width: 55rem;
}
  .text-center .hero-width-narrow {
    margin: 0 auto;
  }
.width-narrow-content {
  max-width: 70rem;
  margin: 0 auto;
}
.width-content {
  max-width: 87.5rem;
  margin: 0 auto;
}
.width-100 {
  max-width: 100rem;
  margin: 0 auto;
}
.width-max-content {
  max-width: max-content;
  margin: 0 auto;
}



/* Header */

/*.site-header {
  box-shadow: 0 -5px 18px #00000042;
}*/
.nav-menu-1, .nav-menu-2, .nav-menu-logo {
  padding-left: 0rem;
  padding-right: 0rem;
}


/* Hero */

header {
  position: relative;
}
.entry-header {
  min-height: 400px;
  display: flex;
  align-items: center;
}
.entry-header.text-center {
  justify-content: center;
}
header.height-half {
  height: 50vh;
}
header.height-full {
  /*height: calc(100vh - 144px);*/
  height: 70vh;
  max-height: 1200px;
}
.height-full-flow {
  height: 150vh;
  max-height: 1300px;
}

.hero-title .entry-title {
  margin: 0;
}
.hero-flow {
  position: absolute;
  bottom: -2rem;
  width: 100%;
}
.hero-flow svg {
  fill: #fff;
}
.hero-flow img {
  width: 100vw;
}
.fill-white svg {
  fill: #fff;
}
.fill-sand svg {
  fill: #f7f7f7;
}
.bg-mask {
  width: 100%;
  height: 100%;
}
.hero-title-wrapper {
  /*height: 100%;   väliaikainen korjaus! --> tulee olla 100% - alemman lohkon nostolukema   */
  position: relative;
  max-width: 87.5em;
  margin: 0 3rem;
}
.hero-title-wrapper.hero-title-lifted {
  transform: translateY(-10vh);
}
.height-full-flow .hero-title-wrapper {
  height: calc(100vh - 144px);
  position: relative;
  max-height: 950px;
}
header.entry-header.no-image {
  background: var(--sec-color);
  padding: 4rem 0 6rem 0;
  text-align: center;
  color: #fff;
}
.home .entry-title {
  font-size: 3.5625rem;
  line-height: 1.15;
}
.entry-subtitle {
  font-size: 1.375rem;
  margin: 1.5rem 0 0 0;
}
.entry-subtitle small {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.4;
}



/***   Logoshape Header   ***/

.logoshape-header {
  position: relative;
  height: 100vh;
  /*max-height: 950px;*/
  max-height: 1100px;
  align-items: flex-start;
}
.logoshape-header .entry-wrapper {
  width: 100%;
  max-width: 102.5rem;
  margin: 0 auto;
}
  @media all and (max-width: 1750px) {
    .logoshape-header .entry-wrapper {
      margin: 0 2.875rem;
    }
  }
  @media all and (max-width: 639px) {
    .logoshape-header .entry-wrapper {
      margin: 0 1.5rem;
    }
  }
.logoshape-header .hero-title {
  z-index: 5;
}
.logoshape-header .entry-title {
  padding-top: 6rem;
	color: #df3d38;
}
.logoshape-header .entry-subtitle {
  margin-right: 6rem;
}
.logoshape-header-image {
  position: absolute;
  bottom: 0;
  right: auto;
  left: 45vw;
  height: calc(100% - 6.25rem);
  padding-top: 3rem;
	 right: 4%;
}
.logoshape-header-image img {
  max-height: 100%;
  width: auto;
}


/**********     2600px     **********/
@media screen and (max-width: 2600px) {
  .logoshape-header-image {
    left: auto;
            right: 4%;
  }
}
/**********     2100px     **********/
@media screen and (max-width: 2100px) {
  .logoshape-header {
    max-height: 1100px;
  }
  .logoshape-header .entry-wrapper {
    width: 100%;
  }
  .logoshape-header-image {
            right: 4%;
    width: auto !important;
    height: calc(100% - 6.25rem);
  }
  .logoshape-header-image img {
    width: auto;
    height: 100%;
  }
}
/**********     1800px     **********/
@media screen and (max-width: 1800px) {
  /*.home .entry-title {
    font-size: 2.5rem;
  }*/
  .logoshape-header .hero-title {
    padding-right: 6rem;
  }
  .logoshape-header .hero-title .entry-title {
    font-size: 2.5rem;
  }
  .logoshape-header {
    max-height: 1200px;
  }
  .logoshape-header-image {
            right: 4%;
  }
}
/**********     1500px     **********/
@media screen and (max-width: 1500px) {
  /*.home .entry-title {
    font-size: 2.25rem;
  }*/
  .logoshape-header {
    max-height: 1000px;
  }
  .logoshape-header .hero-title .entry-title {
    font-size: 2.25rem;
  }
  .logoshape-header .entry-subtitle {
    margin-right: 8rem;
  }
  .single-tyopaikat .hero-button a,
  .hero-title .hero-button a {
    font-size: 1.5rem;
  }
  .logoshape-header-image {
            right: 4%;
  }
}
/**********     1400px     **********/
@media screen and (max-width: 1400px) {
  .logoshape-header {
    max-height: 900px;
  }
}
/**********     1300px     **********/
@media screen and (max-width: 1300px) {
  /*.home .entry-title {
    font-size: 2rem;
  }*/
  .logoshape-header .hero-title .entry-title {
    font-size: 2rem;
  }
  .logoshape-header {
    max-height: 840px;
  }
}
/**********     1200px     **********/
@media screen and (max-width: 75em) {
  .logoshape-header {
    height: fit-content;
    max-height: fit-content;
  }
  .logoshape-header .hero-title {
    width: 100%;
  }
  .logoshape-header .hero-title > * {
    text-align: center;
  }
  .logoshape-header .entry-title {
    padding-top: 3rem;
  }
  .logoshape-header .hero-title .hero-button {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
  }
  .single-tyopaikat .hero-button a {
    display: flex;
    justify-content: start;
  }
  .logoshape-header .logoshape-header-image {
    width: 100% !important;
    position: relative;
    left: 0;
    right: 0;
  }
  .logoshape-header .logoshape-header-image img {
    transform: scale(1.4);
    margin: 15vw 0 10vw 0;
  }
}
/**********     1000px     **********/
@media screen and (max-width: 62.5em) {
  .entry-header {
    min-height: 360px;
  }
  .logoshape-header .logoshape-header-image img {
    margin: 15vw 0 20vw;
  }
}
/**********     900px     **********/
@media screen and (max-width: 56.25em) {
  header.height-full {
    max-height: 600px;
  }
  .logoshape-header .logoshape-header-image img {
    transform: scale(1.6);
    margin: 20vw 0 26vw 0;
  }
}
@media screen and (max-width: 800px) {
  .single-tyopaikat .grid-x>.medium-12.hero-button {
    width: fit-content;
  }
}

/**********     639px     **********/
@media screen and (max-width: 39.9375em) {
  header.height-full {
    max-height: 360px;
  }
  .hero-title .entry-subtitle {
    font-size: 1rem;
    margin-top: 1rem;
  }
  .hero-title .hero-button {
    margin-bottom: 1.5rem;
  }
  .hero-title .hero-button {
    /*margin-top: 1.5rem;*/
    margin-bottom: 1.5rem;
  }
  .single-tyopaikat .hero-button a {
    text-align: left;
  }
  .single-tyopaikat .hero-button a,
  .hero-title .hero-button a {
    font-size: 1.25rem;
  }
  .logoshape-header .hero-title .entry-title {
    font-size: 1.625rem;
    padding-top: 2.5rem;
  }
  .logoshape-header-image {
    padding-top: 1.5rem;
  }
  .logoshape-header .hero-title .entry-title {
    padding-top: 1rem;
  }
  .logoshape-header .logoshape-header-image img {
    transform: scale(1.8);
    margin: 25vw 0 32vw 0;
    width: 100% !important;
  }
  .logoshape-header .hero-title .hero-button {
    margin-top: 1.5rem;
  }
}


/***   Diamond Shape Header   ***/
.diamond-header {
  position: relative;
  height: 60vh;
  min-height: 600px;
  max-height: auto;
  overflow: hidden;
  background-color: #f6f6f6;
}
.diamond-header .diamond-content {
  z-index: 10;
}
.diamond-header .diamond-content-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
  align-items: center;
}
.diamond-header .diamond-mask {
  position: relative;
  height: 100%;
}
.diamond-header .diamond-mask img {
  position: absolute;
  top: -25%;
  right: -2px;
  height: 150%;
  z-index: 1;
}
.diamond-header .diamond-header-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  height: 100%;
}
.diamond-header .diamond-header-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
  .diamond-header .diamond-header-image.diamond-valign-top img {
    object-position: center top;
  }
  .diamond-header .diamond-header-image.diamond-valign-bottom img {
    object-position: center bottom;
  }
.diamond-header .hero-title {
  position: relative;
  margin-left: 9.375rem;
  margin-right: 16.25rem;
}
.diamond-header .hero-title .entry-title {
  font-size: 3.5rem;
  line-height: 1.25;
}
.diamond-header .entry-subtitle {
  font-size: 1.25rem;
}

.diamond-header .hero-button {
  margin-top: 1.5rem;
}

@media all and (max-width: 1920px) {
  .diamond-header .hero-title {
    margin-left: 4.375rem;
    margin-right: 13.5rem;
  }
}
@media all and (max-width: 1500px) {
  .diamond-header {
    height: 50vw;
    min-height: 300px;
    max-height: 600px;
  }
  .diamond-header .diamond-content-wrapper {
    width: 100%;
  }
  .diamond-header .diamond-mask,
  .diamond-header .diamond-header-image {
    width: 45%;
  }
  .diamond-header .diamond-content {
    width: 55%;
  }
  .diamond-header .hero-title {
    margin-left: 4.375rem;
    margin-right: 4.375rem;
  }
  .diamond-header .hero-title .entry-title {
    font-size: 3rem;
  }
}
@media all and (max-width: 1200px) {
  .diamond-header {
    height: 40vw;
    min-height: 400px;
    max-height: 600px;
  }
  .diamond-header .hero-title .entry-title {
    font-size: 2rem;
    line-height: 1.3;
  }
}
@media all and (max-width: 1024px) {
  .diamond-header .diamond-mask img {
    top: -15%;
    height: 130%;
  }
  .diamond-header .hero-title {
    margin-right: 2.875rem;
  }
}
@media all and (max-width: 1000px) {
  .diamond-header .hero-title {
    margin-right: 1.5rem;
  }
}
@media all and (max-width: 800px) {
  .diamond-header {
    flex-direction: column;
    height: 120vh;
    height: auto;
    max-height: 1000px;
    overflow: visible;
    align-items: flex-end;
  }
  .diamond-header .diamond-content-wrapper {
    align-items: flex-start;
  }
  .diamond-header .diamond-mask {
    display: none;
    width: 100%;
  }
  .diamond-header .diamond-header-image {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding-left: 1.5rem;
    margin-bottom: -7rem;
  }
    .diamond-header + .entry-content .page-block:first-of-type {
      padding-top: 10rem !important;
    }
  .diamond-header .diamond-header-image img {
    display: none;
  }
  .diamond-header .diamond-content {
    width: 100%;
  }
  .diamond-header .hero-title {
    text-align: center;
    margin: 3.25rem 1.5rem;
  }
  .diamond-header-image .diamond-shape-mobile image {
    width: 100%;
    height: 100%;
  }
  .diamond-header .hero-button a {
    margin: 0 auto;
  }
}
@media all and (max-width: 639px) {
  .diamond-header .hero-title .entry-title {
    font-size: 2rem;
  }
}



/* Buttons */

.btn, .text-block-button {
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--main-color) !important;
  /*width: max-content; teksti ei rivity mobiilissa, vaan pakotetaan yhdelle riville */
  width: fit-content;
  max-width: 75rem;
  display: flex;
  align-items: center;
}
.text-block-link:not(:last-child) {
  margin-bottom: 1.5rem;
}
.text-block-link a {
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--main-color) !important;
  /*width: max-content; teksti ei rivity mobiilissa, vaan pakotetaan yhdelle riville */
  width: fit-content;
  display: flex;
  align-items: center;
}
.text-block-link.use-margin {
  margin-bottom: 1.5rem;
}
.text-block-link a .link-arrow {
  display: inline-block;
  vertical-align: bottom;
}


/* Text Block Linklist */
.text-block-linklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: fit-content;
}
.text-block-linklist .link-item {
  font-size: 1.25rem;
  color: var(--main-color);
}
.text-block-linklist .link-item a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  -webkit-transition: var(--transition);
  -moz-transition: var(--transition);
  -ms-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
}
.text-block-linklist .link-item a .link-arrow {
  margin-left: 1.5rem;
}
  .text-block-linklist .link-item a:hover .link-arrow {
    transform: translatex(1rem);
  }
.text-block-linklist .link-item .arrow-svg {
  width: 1.3rem;
  height: 1.3rem;
}
@media all and (max-width: 800px) {
  .text-block-linklist .link-item {
    font-size: 1.125rem;
  }
}



.btn-primary, a.btn-primary,
.btn-primary:visited, a.btn-primary:visited {
  color: #fff;
}
  .btn:hover, .text-block-button:hover,
  .btn:active, .text-block-button:active,
  .btn:focus, .text-block-button:focus,
  a.btn-primary:hover,
  a.btn-primary:active,
  a.btn-primary:focus {
    color: var(--main-color);
    text-decoration: underline;
  }
.btn-primary .link-arrow .arrow-svg svg {
  fill: #fff;
  fill: var(--main-color);
}
  .btn-primary:hover .link-arrow .arrow-svg svg {
    fill: var(--main-color);
  }

.btn-secondary,
.btn-secondary:visited {
  color: #fff;
  background: var(--main-color);
  border-color: var(--main-color);
}
  .btn-secondary:hover,
  .btn-secondary:active,
  .btn-secondary:focus {
    /*background: var(--main-hover);*/
    color: #fff;
  }
.btn-secondary .link-arrow .arrow-svg svg {
  fill: #134851;
}
  .btn-secondary:hover .link-arrow .arrow-svg svg {
    fill: #fff;
  }

.btn-primary-alt,
.btn-primary-alt:visited {
  background: transparent;
}
.btn-primary-alt .link-arrow .arrow-svg svg {
  fill: var(--main-color);
}
  .btn-primary-alt:hover .link-arrow .arrow-svg svg {
    fill: var(--main-color);
  }

.btn-secondary-alt,
.btn-secondary-alt:visited {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
  .btn-secondary-alt:hover,
  .btn-secondary-alt:active,
  .btn-secondary-alt:focus {
    background: #fff;
    color: #134851;
  }
.btn-secondary-alt .link-arrow .arrow-svg svg {
  fill: #fff;
}
  .btn-secondary-alt:hover .link-arrow .arrow-svg svg {
    fill: #134851;
  }


.btn .link-arrow {
  display: inline-flex;
  margin-left: 1rem;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.btn:hover .link-arrow {
  transform: translateX(1rem);
}
.btn .link-arrow .arrow-svg {
  width: 2rem;
  height: 3.25rem;
}

.btn-bigger {
  background: transparent;
  color: #134851;
  border: 3px solid #134851;
  border-radius: 3rem;
  padding: 1.3rem 2.5rem 1.3rem 3.5rem;
  font-size: 1.7rem;
  width: max-content;
  max-width: 75rem;
  display: block;
}
.btn-bigger .link-arrow .arrow-svg {
  width: 1.35rem;
  height: 1.35rem;
}


.button-link {
  display: flex;
  margin-bottom: 0;
  background-color: var(--main-color);
  width: fit-content;
  padding: 1rem 0.5rem 1rem 1.75rem;
  border-radius: 20px;
}
.button-link .link-text {
  font-family: var(--title-font);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
}
.button-link .arrow-svg {
  width: 50px;
  height: 32px;
  -webkit-transition: var(--transition);
  -moz-transition: var(--transition);
  transition: var(--transition);
}
.button-link .arrow-svg svg {
  width: 12px;
}
.button-link:hover .arrow-svg {
  transform: translateX(10px);
}



.text-center .hero-title-wrapper a.btn { 
  margin: 0 auto;
  position: relative;
}
.hero-title-wrapper a.btn { 
  position: relative;
}


a.btn .button-arrow {
  background: #fff;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-transition: opacity .25s ease-out;
  transition: opacity .25s ease-out;
  padding: 0.5rem;
}
a.btn:hover .button-arrow {
  opacity: 1;
}
.text-dark a.btn .button-arrow {
  background: #134851;
}
a.btn:hover .button-arrow .arrow-svg {
  text-align: center;
  margin: 0 auto;
}
.button-arrow .arrow-svg {
  text-align: center;
  margin: 0 auto;
}
.single-tyopaikat .hero-button {
  margin-top: 1.25rem;
}
.hero-button {
  margin-top: 2.5rem;
}
.hero-button a {
  font-family: "Lato", sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
}
.hero-button .link-arrow .arrow-svg {
  width: 1.25rem;
  height: 2.25rem;
}

.header-title .hero-button.small-hero-button {
  margin-top: 1.25rem;
}
.header-title .hero-button.small-hero-button a {
  font-size: 1.25rem;
}
.header-title .hero-button.small-hero-button .link-arrow .arrow-svg {
  height: 1.5rem;
}

/**********     1000px     **********/
@media screen and (max-width: 62.5em) {
  .hero-button {
    /*margin-top: 1rem;*/
    margin-top: 2.5rem;
  }
}



.text-block-button .text-block-link-arrow {
  margin-left: 1rem;
}




/* Arrow */
.hero-arrow {
  max-width: max-content;
  margin: 0 auto;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.text-left .hero-arrow {
  margin: 0;
}
.arrow-svg {
  width: 70px;
  height: 70px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.arrow-svg svg {
  fill: var(--main-color);
  /*max-height: 3.5rem;*/
  max-height: 2.25rem;
}
.hero-arrow:hover {
  transform: translate(0px, 0.5rem);
} 


/* Arrow Styles */

.arrow-svg.primary svg {
  border: 0;
  background: transparent;
  fill: var(--main-color);
}
.arrow-svg.secondary svg {
  border: 0;
  background: transparent;
  fill: var(--sec-color);
}

.arrow-svg.white {
  background: transparent;
}
.arrow-svg.white svg {
  fill: #fff;
}
.arrow-svg.red {
  border: none;
}
.arrow-svg.red svg {
  border: 0;
  background: transparent;
}



.arrow-svg.left {
  transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
}
.hero-arrow:hover .arrow-svg {
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.hero-arrow:hover .arrow-svg {
  background: #fff;
}
.hero-arrow:hover .arrow-svg.white-border svg {
  fill: #134851;
}

.hero-arrow:hover .arrow-svg.dark-border {
  background: #134851;
}
.hero-arrow:hover .arrow-svg.dark-border svg {
  fill: #fff;
}






/** Murupolku : Breadcrumbs */

.page-breadcrumb {
  margin: 4rem auto;
  text-align: center;
}
.page-ul-breadcrumb {
  list-style: none;
  margin: 0 auto;
  align-items: center;
  display: flex;
  justify-content: center;
}
.page-breadcrumb li {
  font-size: 1.125em;
}
.page-breadcrumb li.seperator {
  font-size: 1em;
}
.page-breadcrumb li a {
  font-family: inherit;
  padding: 0;
  margin: 0;
} 
.page-breadcrumb li.item a {
  color: var(--main-color);
}
.page-breadcrumb li.item a:hover {
  color: var(--sec-color);
}
.page-breadcrumb li.item-current.item {
  color: var(--sec-color);
}
.page-breadcrumb .seperator .arrow-svg {
  width: 30px;
  margin: 0rem 0.5rem;
  height: auto;
}
.page-breadcrumb .seperator .arrow-svg svg {
  max-height: 16px;
}

.page-breadcrumb li {
  white-space: nowrap;
}
.page-breadcrumb li:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}





/************************/
/***** Page Blocks ******/
/************************/


/* Block General */

.page-block {
  margin: 8rem auto 8rem auto;
}

.entry-content {
  margin: 0 auto;
}
.entry-content a {
  color: var(--main-color);
}
.entry-content a:hover {
  text-decoration: underline;
}

.jobs-block + .text-with-image-block {
  margin: 0rem auto 8rem auto;
}
  
.single-post .post-navigation {
  border-top: 2px solid #ececec;
  padding: 2rem 0;
  margin-bottom: 10rem;
}


  /* Pagination */

  .nav-links .arrow-svg svg {
    max-height: 2.5rem;
  }
  .nav-links .nav-previous .nav-title,
  .nav-links .nav-next .nav-title {
    position: relative;
    padding-top: 1.5rem;
  }
  .nav-links .nav-previous .nav-title:before {
    position: absolute;
    top: 0;
    left: 0;
    content: 'Edellinen artikkeli';
    font-size: 1rem;
    color: #acacac;
  }
  .nav-links .nav-next .nav-title:before {
    position: absolute;
    top: 0;
    right: 0;
    content: 'Seuraava artikkeli';
    font-size: 1rem;
    color: #acacac;
  }
  .comment-navigation .nav-previous, .post-navigation .nav-previous, .posts-navigation .nav-previous {
    flex: 0 1 50%;
  }



/** Timeline Block **/
.timeline-block {
  font-weight: 600;
  line-height: 1.4;
}
.timeline {
  position: relative;
}
.timeline-block-title {
  text-align: center;
  margin-bottom: 3.75rem;
}
.timeline .row-odd, .timeline .row-even {
  padding: 0.5rem 0;
}
.timeline:after {
  content: '';
  position: absolute;
  width: 1px;
  background-color: #134851;
  top: 0;
  bottom: 0;
  left: calc(50% + 2px);
  margin-left: -3px;
  z-index: -1;
}
.timeline .row-odd {
  position: relative;
  align-items: center;
}
.timeline .row-even {
  position: relative;
  flex-direction: row-reverse;
  align-items: center;
}
.timeline .event-content {
  display: inline-flex;
  align-items: center;
  background: var(--main-color);
  color: #fff;
  width: 100%;
  min-height: 6rem;
  padding: 1.9rem 2.5rem;
  border-radius: 3.5rem;
}
.timeline .event-content.past-event {
  background: #616160;  
}

.timeline .grid-x .cell {
  position: relative;
}
  .timeline .row-odd .cell {
    padding-right: 3rem;
  }

.timeline .row-odd .event-content:before {
  content: '';
  background: var(--main-color);
  width: 30px;
  height: 30px;
  right: -15px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  z-index: 1;
}
.timeline .row-odd .event-content.past-event:before {
  background: #616160;
}

.timeline .row-odd .event-content:after {
  content: '';
  position: absolute;
  height: 1px;
  background-color: #134851;
  left: 0;
  right: 0;
  top: 50%;
  z-index: -1;
}
.timeline .row-even .cell {
  padding-left: 3rem;
}

.timeline .row-even .event-content:before {
  content: '';
  background: var(--main-color);
  width: 30px;
  height: 30px;
  left: -15px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  z-index: 1;
}

.timeline .row-even .event-content.past-event:before {
  background: #616160;
}

.timeline .row-even .event-content:after {
  content: '';
  position: absolute;
  height: 1px;
  background-color: #134851;
  left: 0;
  right: 0;
  top: 50%;
  z-index: -1;
}
.timeline .event-date {
  font-weight: 600;
  position: relative;
}
.timeline .row-odd .event-date {
  margin-left: 1.5rem;
}
.timeline .row-even .event-date {
  text-align: right;
  margin-right: 1.5rem;
}
.timeline .row-odd .event-content.has-content:before,
.timeline .row-odd .event-content.has-content:after,
.timeline .row-even .event-content.has-content:before,
.timeline .row-even .event-content.has-content:after {
  top: 4.5rem;
}

/**********     1200px     **********/
@media screen and (max-width: 74.9375em) {
  .timeline:after {
    top: 0;
    bottom: 0;
    left: 0.5rem;
    margin-left: 0;
  }
  .timeline .cell {
    width: 100%;
  }
  .timeline .event-date {
    padding: 2rem 0 1rem 0;
  }
  .timeline .row-odd, .timeline .row-even {
    flex-direction: column-reverse;
  }
  .timeline .row-odd .cell {
    padding-left: 3rem;
    padding-right: 0;
  }
  .timeline .event-date {
    margin: 0;
  }
  .timeline .event-date, .timeline .row-even .event-date, .timeline .event-content {
    text-align: center;
    justify-content: center;
  }
  .timeline .row-odd .event-content:before,
  .timeline .row-even .event-content:before {
    right: auto;
    left: 0;
  }
  .timeline .row-odd .event-content:after,
  .timeline .row-even .event-content:after {
    left: 0.5rem;
  }
}
/**********     1000px     **********/
@media screen and (max-width: 62.5em) {
  .timeline {
    padding-bottom: 4rem;
  }
}



/** Tekstilohko : Text Block **/

.text-block {
  margin: 0;
  padding: 6rem 0;
}
  .text-block.top-padding-none {
    padding-top: 0;
  }

.text-block-title:first-of-type h1,
.text-block-title:first-of-type h2,
.text-block-title:first-of-type h3,
.text-block-title:first-of-type h4,
.text-block-title:first-of-type h5,
.text-block-title:first-of-type h6 {
  margin-top: 0;
}

.text-block-lead, .text-block-lead p, .text-block-lead a, .text-block-lead ul li {
  font-family: var(--title-font);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}
.text-block-lead a {
  text-decoration: underline;
}
.text-block-lead b, .text-block-lead p b, .text-block-lead ul li b,
.text-block-lead strong, .text-block-lead p strong, .text-block-lead ul li strong {
  font-weight: 700;
}

.text-block-text {
  font-size: 1.5rem;
  line-height: 1.4;
}

.single-post .page-block:last-of-type,
.single-post .text-block:last-child {
    margin-bottom: 0;
    padding: 0 !important;
  }


.text-block-link.align-center a {
  width: fit-content;
  margin: 0 auto;
}
.text-block-link.align-right a {
  justify-content: flex-end;
}
.text-block-link-arrow {
  margin-left: 0.25em;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.text-block-link a:hover {
  text-decoration: none;
}
.text-block-link a:hover .text-block-link-arrow {
  transform: translateX(1rem);
}
.text-block-link.align-center.use-margin {
  margin-bottom: 3rem;
}
.font-size-lead.text-block-link a {
  font-size: 1.6875rem;
}
.font-size-lead .text-block-link-arrow .arrow-svg {
  width: 2.25rem;
  height: 2.25rem;
}


.text-block .text-block-filelist:not(:only-child) {
	margin: 3rem 0;
}
.text-block .text-block-filelist:not(:only-child):first-child {
	margin-top: 0;
	margin-bottom: 3rem;
}

.text-block-filelist .filelist-file {
	display: flex;
	justify-content: center;
	text-align: center;
	padding: 0.5rem 0;
	border-bottom: 1px solid #134851;
}
.text-block-filelist .filelist-file:first-child {
	border-top: 1px solid #134851;
}
.text-block-filelist .filelist-file b {
  font-size: 1.37rem;
	display: block;
}

.text-block-filelist .download-svg svg {
	width: 2rem;
}
.download-svg.blue svg {
	fill: #134851;
}

/**********     1200px     **********/
@media screen and (max-width: 74.9375em) {
  .text-block {
    padding: 3rem 0;
  }
}
/**********     700px     **********/
@media screen and (max-width: 700px) {
  .text-block {
    padding: 3rem 0;
  }
}
/**********     639px     **********/
@media screen and (max-width: 39.9375em) {
	.text-block-filelist .filelist-file b {
	  font-size: 1.125rem;
  }
}




/* block-quote */

blockquote, .text-block-quote {
  position: relative;
  padding: 1.375rem 2.8125rem;
  margin: 2.1875rem 1.375rem;
}
  .text-block-quote:last-child {
    margin-bottom: 0;
  }
.text-block-quote:before {
  content: url('/wp-content/themes/yrjojahanna/img/icons/quote.svg');
  position: absolute;
  top: 1rem;
  left: 0;
  width: 25px;
  height: 22px;
  font-size: 2.5rem;
  color: var(--main-color);
}
.text-block-quote p {
  font-style: italic;
}

blockquote p,
.text-block-quote p {
  margin: 0;
  padding: 0;
}
.text-block-quote p + p {
  margin-top: 2rem;
}
blockquote, 
blockquote p,
.text-block-quote, 
.text-block-quote p  {
  color: #222221;
  font-family: var(--title-font);
  font-size: 25px;
  font-weight: 500;
  line-height: 35px;
  font-style: normal;
}

.text-with-image-block blockquote {
  border-left: 0;
}
.text-with-image-block blockquote p {
  font-size: 1.25rem;
  line-height: 1.5;
}

@media all and (max-width: 1500px) {
  .text-block .page-block-wrapper .text-block-quote {
    margin: 45px calc( 4rem + 39px);
  }
  .text-with-image-block blockquote {
    margin: 2.75rem 0;
  }
}
@media all and (max-width: 1200px) {
  .text-block .page-block-wrapper .text-block-quote {
    margin: 2rem 5rem;
  }
  .text-block-quote:before {
    top: -1rem;
  }
  blockquote, 
  blockquote p,
  .text-block-quote, 
  .text-block-quote p {
    font-size: 1.25rem;
    line-height: 1.3;
  }
  blockquote,
  .text-block-quote {
    padding: 0 2.75rem;
  }
  .text-with-image-block blockquote {
    padding: 1.375rem 2.75rem;
  }
  .text-with-image-block blockquote p {
    font-size: 1.125rem;
  }
}
@media all and (max-width: 1024px) {
  .text-with-image-block blockquote {
    padding: 0 0 0 2.75rem;
  }
}
@media all and (max-width: 800px) {
  .text-with-image-block blockquote {
    margin: 0 2.75rem;
  }
}
@media all and (max-width: 639px) {
  .text-block-quote:before {
    top: -1.25rem;
    width: 22px;
    height: 22px;
  }
  blockquote, 
  blockquote p,
  .text-block-quote, 
  .text-block-quote p {
    font-size: 1.125rem;
    line-height: 1.5;
  }
  blockquote,
  .text-block-quote {
    padding: 0 2.25rem;
    margin: 40px 18px;
  }
  .text-block .page-block-wrapper .text-block-quote {
    margin: 0 0 1.5rem;
  }
}




/** Ikoni ja teksti -lohko : Icon and Text Block **/
.icon-and-text-block {
  margin: 0;
}
.icon-and-text-block.default-padding {
  padding: 6rem 0;
}
.icon-and-text-block.no-padding {
  padding: 0;
}
.icon-and-text-block.top-padding {
  padding: 6rem 0 0;
}
.icon-and-text-block.bottom-padding {
  padding: 0 0 6rem;
}
.icon-and-text-block .block-title > * {
  margin: 0 0 1.5rem;
}
.icon-and-text-block .block-lead {
  margin-bottom: 3.5rem;
}
.icon-and-text-block .item:not(:last-child) {
  margin-bottom: 3rem;
}
.icon-and-text-block .item .item-image img {
  max-width: 8rem;
  padding-right: 2rem;
  margin-bottom: 1.5rem;
}
.icon-and-text-block .item .item-content .item-title {
  font-family: var(--title-font);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

@media all and (max-width: 639px) {
  .icon-and-text-block .item .item-image img {
    max-width: 6rem;
  }
  .icon-and-text-block .item .item-content .item-title {
    font-size: 1.25rem;
  }
}




/* Nostolohko (Text with image block) */

.text-with-image-block {
  position: relative;
  margin: 0 auto;
  padding: 6rem 0;
}

/*.text-with-image-block a {
  text-decoration: none;
}
.text-with-image-block a:hover {
  text-decoration: underline;
}*/
.text-with-image-block .btn {
  text-decoration: none;
}

.text-with-image-block.bg-color + .text-with-image-block.bg-color {
  padding-top: 0;
}
.text-with-image-block.bg-color + .text-with-image-block.bg-color .page-block-wrapper {
  /*transform: translatey(-10rem);*/
  margin-top: -10rem;
}

.text-with-image-block .image-cell {
  z-index: 2;
}
.text-with-image-block .text-cell {
  z-index: 1;
}

.text-with-image-block .image-cell svg image {
	/* width: auto;  ei tasaa kuvia keskelle! */
  width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin-right: auto;
	margin-left: auto;
}


/* titles */
.text-with-image-block h2 {
  font-size: 2.45rem;
  line-height: 1.3;
}
.text-with-image-block h3 {
  font-size: 2.25rem;
  line-height: 1.3;
}
.text-with-image-block h4 {
  font-size: 1.625rem;
  line-height: 1.3;
}

.text-with-image-block .text-cell {
  padding: 0 6rem 0 0;
}
.text-with-image-block .text-align-left {
  flex-direction: row-reverse;
}
.text-with-image-block .text-align-right .text-cell {
 /* padding: 0 0 0 6rem; */
}




.text-with-image-block-content-width .text-cell.right {
  left: auto;
  right: 0;
	padding-left: 40px;
}
.text-with-image-block .text-cell {
  position: relative;
  z-index: 2;
}
.text-with-image-block.high-image {
  min-height: 40vw;
}
.text_with_image_block-image {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
  border-radius: var(--radius);
  z-index: 1;
}
.text_with_image_block-image img {
  position: absolute;
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.text-with-image-block-image .image-block img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}


.width-content .text-with-image-block-text-wrapper {
  padding: 5.625rem 6rem;
  min-width: 100%; /* korjaa, ettei width-content blockeissa marginit "hajoa" vähäisellä sisältömäärällä */
}
.text-with-image-block .page-block-inner-wrapper.width-content {
  padding: 6.25rem 0;
}

.text-with-image-block-text-wrapper {
  max-width: calc( 87.5rem / 2 );
  float: left;
  padding: 5.625rem 0 5.625rem 6rem;
  position: relative;
}

.text-with-image-block-text-text {
  font-size: 1.125rem;
  line-height: 1.75;
}
.text-with-image-block-text-text > *:last-child {
  margin-bottom: 0 !important;
}
.text-with-image-block-text-title h2 {
  margin: 0 0 2rem 0;
}
.text-with-image-block-text-title h3 {
  margin: 0 0 1.5rem 0;
}
.text-with-image-block-text-text p + p {
  margin-top: 1.5rem;
}
.text-with-image-block-text-width-full .text-with-image-block-text-wrapper {
  width: 100%;
  max-width: 100%;
  text-align: left;
  padding: 6rem 9rem 6rem 6rem;
}
.text-with-image-block-text-width-full .text-with-image-block-text-wrapper-content {
  max-width: 85rem;
  margin: 0 auto;
}
.text-with-image-block.width-full.height-auto {
  position: relative;
}
.text-with-image-block-text-title + .text-with-image-block-text-button {
  margin-top: 3rem;
}
.text-with-image-block-text { position: relative; }

.text-with-image-block-arrow {
  position: absolute;
  left: 2.5rem;
  bottom: 2rem;
  display: inline-flex;
}
.text-with-image-block-arrow .arrow-svg {
  width: 3rem;
  height: 2rem;
}
.text-with-image-block-text-ref.text-ref {
  font-size: 1.125rem;
  color: #719197;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  margin-bottom: 1rem;
}
.bg-blue .text-with-image-block-text-ref.text-ref {
  color: #134851;
}

.text-with-image-block-text {
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.bg-turquoise:hover a {
  background: #fff;
}
.bg-blue:hover a {
  background: #1e2935;
}
.text-with-image-block-arrow .arrow-svg {
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.text-with-image-block-text:hover .text-with-image-block-arrow .arrow-svg {
  right: 1rem;
}
.text-with-image-block-text-width-full-content {
  position: relative;
  margin: 6rem auto;
}
.text-with-image-block-text-width-full-content.right {
  justify-content: flex-end;
}
.text-with-image-block-full-width .text-with-image-block-text:hover .text-with-image-block-arrow .arrow-svg {
  right: 1.5rem;
}
.text-with-image-block-full-width .text-with-image-block-text-width-full-content a:hover .text-with-image-block-arrow .arrow-svg {
  right: 1rem;
}

.text-with-image-block-content-width .width-content {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  /*overflow: auto;   'ei toimi oikein'   */
  overflow: visible;
}

.text-block-button {
  margin-top: 2rem;
}


/** Mobiilit **/

@media all and (max-width: 1500px) {
  .text-with-image-block h2 {
    font-size: 2rem;
  }
  .text-with-image-block h3 {
    font-size: 1.75rem;
  }
  .text-with-image-block h4 {
    font-size: 1.25rem;
  }


  .text-with-image-block.bg-color:last-of-type {
    padding-bottom: 12rem;
  }
  .text-with-image-block.bg-color + .text-with-image-block.bg-color .page-block-wrapper {
    /*transform: translatey(-8rem);*/
    margin-top: -8rem;
  }

  .text-with-image-block .text-block-button {
    max-width: 18rem;
  }


  .text-with-image-block-text-wrapper {
    max-width: calc( 100vw / 2 );
    padding: 4rem;
  }
  .width-content .text-with-image-block-text-wrapper {
    padding: 4rem;
  }
}

@media all and (max-width: 1200px) {
  /*.text-with-image-block.bg-color + .text-with-image-block.bg-color {
    margin-bottom: -4rem !important;
  }*/
  .text-with-image-block.bg-color + .text-with-image-block.bg-color .page-block-wrapper {
    /*transform: translatey(-4rem);*/
    margin-top: -4rem;
  }
  .text-with-image-block .text-cell {
    padding: 0 4rem 0 0;
  }
  .text-with-image-block .text-align-right .text-cell {
    padding: 0 0 0 4rem;
  }
  .text-with-image-block .image-cell .image-wrapper {
    height: 600px;
  }
  .logoshape-header .hero-title {
    padding-right: 0;
  }
  .logoshape-header .entry-subtitle {
    margin-right: 0;
  }
  .logoshape-header .hero-title .hero-button .btn {
    max-width: 100%;
  }
  .text-with-image-block h2 {
    font-size: 2rem;
    margin: 0 0 1rem 0;
  }
  .text-with-image-block h3 {
    font-size: 1.75rem;
  }
  .text-with-image-block-text-text, .text-with-image-block-text-text p, ul li, ol li, .text-with-image-block-text-text ul li {
    font-size: 1.125rem;
  }

  .text-block-button {
    margin-top: 1.5rem;
  }
}

@media all and (max-width: 1024px) {
  .text-with-image-block.bg-color + .text-with-image-block.bg-color {
    margin-bottom: 0 !important;
  }
  .text-with-image-block.bg-color + .text-with-image-block.bg-color .page-block-wrapper {
    /*transform: translatey(0);*/
    margin-top: 0;
  }

  .text-with-image-block h2 {
    font-size: 1.5rem;
  }
  .text-with-image-block h3 {
    font-size: 1.5rem;
  }
  .text-with-image-block h4 {
    font-size: 1.25rem;
  }
}

@media all and (max-width: 800px) {
  .text-with-image-block.bg-color:not(:last-child) .text-cell {
    width: 100%;
    margin-bottom: 3rem;
  }
  .text-with-image-block .image-cell {
    width: 100%;
    margin-bottom: 2rem;
  }
  .text-with-image-block .text-cell,
  .text-with-image-block .text-align-right .text-cell {
    padding: 0;
  }

  .text-with-image-block h2 {
    font-size: 1.75rem;
  }
  .text-with-image-block h3 {
    font-size: 1.5rem;
  }
  .text-with-image-block h4 {
    font-size: 1.25rem;
  }
}

@media all and (max-width: 639px) {
  .text_with_image_block-image {
    height: 14rem;
  }
  .text-with-image-block .image-cell {
    margin-bottom: 1.5rem;
  }
  .text-with-image-block h2 {
    font-size: 1.5rem;
  }
  .text-with-image-block h3 {
    font-size: 1.25rem;
  }
}




/* Nostolohko (Text with image block) -- Leveä malli */

.text-with-image-block-full-width {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 45vw;
  max-height: 900px;
  padding: 0;
}
.text-with-image-block-full-width .page-block-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
  .NOTtext-with-image-block-full-width .page-block-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 90%;
    height: 100%;
    width: 100vw;
    background: #fff;
    z-index: 1;
  }

.text-with-image-block-text-width-full-content .text-cell {
      background-color: #FFF;
    padding: 40px;
    border-radius: 22px;
}
.text-with-image-block.bg-image img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}
.text-with-image-block-full-width img {
  position: absolute;
  top: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.text-with-image-block-text {
	/* color: #FFF !important; */
	
}

.text-with-image-block-text a.text-block-button.btn {
  /*  color: #FFF !important; */
}
img.textwithimageimg {
    /* border-radius: 50%; */
	/* border-radius: 400px; */
}

.text-with-image-block-full-width.text-align-right img {
  margin-left: 0;
  margin-right: 25%;
}

.text-with-image-block-text-width-full {
  position: relative;
  display: flex;
  align-items: center;
}
.text-with-image-block-text-width-full .bgitem {
  position: absolute;
  right: 0;
}
.text-with-image-block-text-width-full .bgitem-mobile {
  display: none;
}


/* text align right */
.text-with-image-block.bg-image .text-align-left {
  flex-direction: row;
}
.text-with-image-block.bg-image .text-align-right {
  flex-direction: row-reverse;
}
.text-with-image-block-full-width .page-block-wrapper.text-align-right::before {
  right: auto;
  left: 90%;
}
.text-align-right .text-with-image-block-text-width-full .bgitem {
  right: auto;
  left: 0;
}
.text-align-right .text-with-image-block-text-width-full-content .text-cell {
 /* padding-left: 10rem; */
}


/** Mobiilit **/

@media all and (min-width: 1500px) {
  .text-with-image-block-text-width-full .text-with-image-block-text-title > * {
    font-size: 2.75rem;
    line-height: 1.25;
    margin: 0 0 1.5rem 0;
  }
  .text-with-image-block-text-width-full .text-with-image-block-text-title > h3 {
    font-size: 2.25rem;
  }
}

@media all and (max-width: 1500px) {
  .text-with-image-block-full-width {
    min-height: 32rem;
    position: relative;
  }
  .text-with-image-block-text-width-full .bgitem {
    transform: scale(0.75);
    right: -35%;
  }

  /* text align right */
  .text-align-right .text-with-image-block-text-width-full .bgitem {
    transform: scale(0.75);
    right: auto;
    left: -35%;
  }
}

@media all and (max-width: 1200px) {
  .text-with-image-block-text-width-full .text-with-image-block-text-title > * {
    font-size: 2rem;
  }
  .text-with-image-block-full-width .text-with-image-block-text-text,
  .text-with-image-block-full-width .text-with-image-block-text-text p,
  .text-with-image-block-full-width .text-with-image-block-text-text ul li {
    font-size: 1.125rem;
  }

  .text-with-image-block-text-width-full-content .text-cell {
    padding-right: 6rem;
  }
  .text-with-image-block-text-width-full .bgitem {
    transform: scale(0.55);
    right: -75%;
  }
  .text-with-image-block-full-width .page-block-wrapper::before {
    right: 80%;
  }

  /* text align right */
  .text-align-right .text-with-image-block-text-width-full-content .text-cell {
    padding-left: 6rem;
  }
  .text-align-right .text-with-image-block-text-width-full .bgitem {
    transform: scale(0.55);
    right: auto;
    left: -75%;
  }
  .text-with-image-block-full-width .page-block-wrapper.text-align-right::before {
    right: auto;
    left: 70%;
  }
}

@media all and (max-width: 1024px) {
  .text-with-image-block.bg-color {
    padding: 4rem 0;
  }
  .grid-x>.medium-6.text-with-image-block-image {
    width: 100%;
    min-height: 400px;
  }

  .text-with-image-block-full-width {
    min-height: 30rem;
  }

  .text-with-image-block-text-width-full-content .text-cell {
    padding-right: 6rem;
  }
  .text-with-image-block-text-width-full .bgitem {
    transform: scale(0.55);
    right: -65%;
  }
  .text-with-image-block-full-width .page-block-wrapper::before {
    right: 65%;
  }

  /* text align right */
  .text-align-right .text-with-image-block-text-width-full-content .text-cell {
    padding-left: 6rem;
  }
  .text-align-right .text-with-image-block-text-width-full .bgitem {
    left: -65%;
  }
  .text-with-image-block-full-width .page-block-wrapper.text-align-right::before {
    left: 65%;
  }
}

@media all and (max-width: 800px) {
  .text-with-image-block-full-width {
    height: 100%;
  }
  .text-with-image-block-text-width-full-content {
    margin-top: 360px;
  }
  .text-with-image-block.bg-image img {
    height: 400px;
  }
  .text-with-image-block-full-width img {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .text-with-image-block-text-width-full .bgitem {
    top: -260px;
    left: -60px;
    transform: scale(1.5);
    width: 100%;
  }
  .text-with-image-block-full-width .page-block-wrapper::before {
    content: none;
  }
  .text-with-image-block-text-width-full-content .text-cell {
    padding-right: 1.5rem;
  }

  /* text align right */
  .text-align-right .text-with-image-block-text-width-full .bgitem {
    left: auto;
    right: -60px;
    transform: scale(1.5);
  }
  .text-align-right .text-with-image-block-text-width-full-content .text-cell {
    padding-left: 1.5rem;
  }
}

@media all and (max-width: 639px) {
  .text-with-image-block-text-width-full .text-with-image-block-text-title > * {
    font-size: 1.75rem;
  }
  .text-with-image-block.bg-image .page-block-wrapper {
    margin: 0;
  }
  .text-with-image-block-text-width-full-content {
    margin-top: 76vw;
  }
  .text-with-image-block.bg-image img {
    height: 90vw;
  }
  .text-with-image-block-text-width-full .bgitem {
    /*top: -280px;
    left: auto;
    right: 0;
    transform: scale(1);
    width: calc(100% + 150px);*/
    display: none;
  }
  .text-with-image-block-text-width-full .bgitem-mobile {
    display: block;
    width: calc(100% + 3rem);
    height: auto !important;
    margin-top: 75px;
    margin-left: -1.5rem;
  }
  .text-with-image-block-text-width-full-content .text-cell {
    margin: 0 4.5rem 6rem 1.5rem;
  }

  /* text align right */
  .text-align-right .text-with-image-block-text-width-full .bgitem-mobile {
    margin-left: 1.5rem;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
  }
  .text-align-right .text-with-image-block-text-width-full-content .text-cell {
    margin: 0 1.5rem 6rem 4.5rem;
  }
}




/** Kuvagallerialohko (Gallery Block) **/

.image-gallery-block {
  margin-top: 8rem;
  margin-bottom: 8rem;
}

.image-gallery-block-title > * {
  font-size: 50px;
  text-align: center;
  margin: 0 0 80px;
}

.image-gallery-container {
  justify-content: center;
}
.image-gallery-item {
  position: relative;
  width: 100%;
  padding-top: calc(25% - 1.875rem);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}
.image-gallery-item img {
  position: absolute;
  top: 0;

  height: 100%;
  width: 100%;
  object-fit: cover;
  cursor: -webkit-zoom-in;
  cursor: zoom-in;
}
.image-gallery-modal {
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.7);
  cursor: -webkit-zoom-out;
  cursor: zoom-out;
}
.image-gallery-modal-wrapper {
  width: 87.5rem;
  max-width: calc(100% - 3rem);
  background: transparent;
  margin: 0rem auto;
}
.slick-slide img {
  display: block;
  object-fit: contain;
  max-height: calc(100vh - 6rem);
  cursor: auto;
}
.modal-close {
  position: absolute;
  top: 3rem;
  right: 2rem;
  width: 25px;
}
.modal-left,
.modal-right {
  position: absolute;
  width: 30px;
}
.modal-left {
  left: 2rem;
}
.modal-right {
  right: 2rem;
}
.modal-close svg,
.modal-left svg,
.modal-right svg {
  pointer-events: none;
}
.modal-close svg path,
.modal-left svg path,
.modal-right svg path {
  fill: #ffffff;
}
.slick-track {
  display: flex;
}
.slick-track .slick-slide {
  display: flex;
  height: auto;
  align-items: center;
  justify-content: center;
}

@media all and (min-width: 1024px) {
  /*
  body.admin-bar .image-gallery-modal-wrapper {
      margin-top: calc((100vh - 80vh + 32px) / 2);
      margin-bottom: calc((100vh - 80vh) / 2);
  }
  */
}
@media all and  (max-width: 1023px) {
  .image-gallery-block {
      padding: 4rem 0;
  }
  .image-gallery-container {
      margin-top: 2rem;
  }
  .modal-left {
      left: 2rem;
      width: 20px;
  }
  .modal-right {
      right: 2rem;
      width: 20px;
  }
  .modal-close {
      top: 2rem;
  }
}
@media all and (min-width: 601px) and (max-width: 1023px) {
  .slick-slide img {
      max-height: calc(100vh - 4rem);
  }
}
@media all and (max-width: 600px) {
  .slick-slide img {
      width: 100%;
      object-fit: cover;
  }
}




.imageshape {
  padding: 0 4rem 8rem 4rem;
}
.imageshape .image-block {
  display: flex;
	justify-content: center;
  align-items: center;
  max-width: calc( 87.5rem / 2 );
}
.imageshape .image-block .imageshape-container {
  -webkit-mask-image: url(/wp-content/uploads/2020/10/kuvamaski.svg);
  mask-image: url(/wp-content/uploads/2020/10/kuvamaski.svg);
  webkit-mask-image: url(/wp-content/uploads/2020/10/kuvamaski.svg);
  mask-mode: alpha;
  webkit-mask-mode: alpha;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  webkit-mask-repeat: no-repeat;
  -webkit-mask-size: inherit;
  mask-size: inherit;
  webkit-mask-size: inherit;
  -webkit-mask-position: center;
  mask-position: center;
  webkit-mask-position: center;

  width: 100%;
	max-width: calc( 87.5rem / 2 );

  /*min-height: 100%;*/
}

.imageshape .text-with-image-block-text-wrapper {
  margin-top: 4rem;
  margin-bottom: 5rem;
}
.imageshape .large-order-1 .text-with-image-block-text-wrapper-content {
  padding-right: 6rem;
}

.text-with-image-block-button {
  margin-top: 3rem;
}



/***********************************************************/
/*****     Logon muotoinen lohko - Logoshape Block     *****/

.logoshape-block {
  position: relative;
}

.clip_top, .clip_left, .clip_right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logoshape-links, .logoshape-caption {
  display: inline-flex;
  align-items: center;
  text-align: center;
  margin: 0 2rem;
}
.logoshape-links, .logoshape-links:hover, .logoshape-links:active, .logoshape-links:visited, .logoshape-links:visited:hover,
.logoshape-caption {
  font-family: var(--title-font);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #fff;
  z-index: 999;
}
.logoshape-links:hover .text-block-link-arrow {
  transform: translateX(1rem);
}
.clip_left .logoshape-links, .clip_right .logoshape-links, .clip_left .logoshape-caption, .clip_right .logoshape-caption {
  margin-top: 35%;
  margin-bottom: 0;
}
/*.clip_top .logoshape-caption {
  margin: 0;
}*/

.page-block.logoshape-block.lifted {
  margin-top: -20vh;
}
.page-block.logoshape-block.no-margin {
  margin-top: 0;
}
.page-block.logoshape-block.small-margin {
  margin-top: 4rem;
}
.page-block.logoshape-block.big-margin {
  margin-top: 8rem;
}

/**********     1200px     **********/
@media screen and (max-width: 75em) {
  .logoshape-links, .logoshape-links:hover, .logoshape-links:active, .logoshape-links:visited, .logoshape-links:visited:hover, .logoshape-caption {
    font-size: 3rem;
  }
}
/**********     1100px     **********/
@media screen and (max-width: 68.75em) {
  .logoshape-block {
    margin-bottom: 7% !important;
  }
  .logoshape-links, .logoshape-links:hover, .logoshape-links:active, .logoshape-links:visited, .logoshape-links:visited:hover, .logoshape-caption {
    font-size: 2.5rem;
  }
}
/**********     900px     **********/
@media screen and (max-width: 56.25em) {
  .page-block.logoshape-block.lifted {
    margin-top: -10rem;
  }
  .logoshape-links, .logoshape-links:hover, .logoshape-links:active, .logoshape-links:visited, .logoshape-links:visited:hover, .logoshape-caption {
    font-size: 2rem;
  }
}
/**********     800px     **********/
@media screen and (max-width: 50em) {
  .logoshape-links, .logoshape-links:hover, .logoshape-links:active, .logoshape-links:visited, .logoshape-links:visited:hover, .logoshape-caption {
    font-size: 1.5rem;
  }
}
/**********     600px     **********/
@media screen and (max-width: 37.5em) {
  .page-block.logoshape-block.lifted {
    margin-top: -6rem;
  }
}





/**************************************************/
/*****     Haitarilohko - Accordion Block     *****/

.accordion-block {
  padding: 6rem 0;
}
.accordion-block-title {
  margin: 0 0 2rem 0;
}
.accordion-title {
  position: relative;
  display: block;
  align-items: center;
  padding: 2rem 5rem 2rem 2.5rem;
  border: 0;
  border-bottom: 0;
  border-radius: 1rem;
  font-family: var(--title-font);
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--sec-color);
  /*-webkit-transition: none;
  transition: none;*/
  text-decoration: none;
}
.is-active .accordion-title {
  border-radius: 1rem 1rem 0 0 !important;
}
.accordion-title::before {
  position: absolute;
  top: auto;
  right: 2rem;
  width: 1.2rem;
  margin-top: 0;
  content: url(/wp-content/themes/yrjojahanna/img/icons/acc_arrow.svg);
}
.accordion-block.bg-gray .accordion-title {
  background: #fff;
}
.accordion-block.bg-gray .accordion-content {
  background-color: #fff;
}
.accordion-block.bg-white .accordion-title {
  background: var(--alt-color);
}
.accordion-block.bg-white .accordion-content {
  background-color: var(--alt-color);
}
.is-active>.accordion-title::before {
  width: 1.2rem;
  content: url(/wp-content/themes/yrjojahanna/img/icons/acc_arrow.svg);
  transform: rotate(180deg);
}
.accordion-title:focus, .accordion-title:hover {
  background-color: inherit;
}
.accordion-content {
  justify-content: flex-end;
  position: relative;
  padding: 0 2.5rem 2.5rem;
  border-radius: 0 0 1rem 1rem;
  border: 0;
}
.accordion-content.large-padding {
  padding: 5rem;
}
.width-narrow .accordion-content.large-padding {
  padding: 3.75rem;
}
.accordion-block .accordion-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.accordion-block .accordion-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 0 0 1rem 1rem;
}
.accordion-inner-content {
  width: 100%;
}
.accordion-inner-content.bg-white {
  width: 50%;
  min-width: 450px;
  padding: 4rem;
  border-radius: 1rem;
  z-index: 1;
}
.accordion-inner-content, .accordion-inner-content p {
  font-size: 1.25rem;
}
.accordion-inner-content p {
  margin: 0 0 1.5rem;
}
.accordion-inner-content p:last-of-type {
  margin: 0;
}
.accordion {
  background: transparent;
}
.accordion .accordion-item {
  margin-bottom: 1rem;
}
/*
.accordion .accordion-item:not(.is-active) .accordion-content {
  display: none;
}
*/
.accordion .accordion-item:first-child>:first-child,
:last-child:not(.is-active)>.accordion-title {
  border-radius: 1rem;
  border: 0;
}
:last-child>.accordion-content:last-child {
  border: 0;
  border-radius: 0 0 1rem 1rem;
}
.acc-btn {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--main-color) !important;
  margin-top: 2.5rem;
}
.acc-btn .link-arrow {
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.acc-btn:hover .link-arrow {
  transform: translateX(1rem);
}
.acc-btn .arrow-svg {
  width: 60px;
  height: 40px;
}
.acc-btn .arrow-svg svg {
  max-height: 2rem;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}

/**********     1000px     **********/
@media screen and (max-width: 62.5em) {
  .accordion-content.large-padding {
    padding: 3.75rem;
  }
}
/**********     900px     **********/
@media screen and (max-width: 56.25em) {
  .accordion-content.large-padding {
    padding: 2.5rem;
  }
  .width-narrow .accordion-content.large-padding,
  .accordion-content.large-padding,
  .accordion-inner-content.bg-white {
    padding: 2.5rem;
  }
}
/**********     800px     **********/
@media screen and (max-width: 50em) {
  .accordion-content {
    border: 0;
  }
  .accordion-inner-content.bg-white {
    width: 100%;
    min-width: auto;
    padding: 0 2.5rem 2.5rem;
  }
  .accordion-block.bg-white .accordion-inner-content.bg-white {
    background-color: var(--alt-color);
  }
  .width-narrow .accordion-content.large-padding,
  .accordion-content.large-padding {
    padding: 0;
  }
  .accordion-inner-content.bg-white {
    border-radius: 0;
  }
  .accordion-block .accordion-image {
    position: relative;
  }
}
/**********     700px     **********/
@media screen and (max-width: 700px) {
  .accordion-block {
    padding: 3rem 0;
  }
}
/**********     600px     **********/
@media screen and (max-width: 600px) {
  .accordion-title {
    font-size: 1.25rem;
    padding: 1.25rem 5rem 1.25rem 1.5rem;
  }
  .accordion-inner-content, .accordion-inner-content p {
    font-size: 1rem;
  }
  .acc-btn {
    font-size: 1rem;
    margin-top: 1rem;
  }
  .accordion-content,
  .accordion-inner-content.bg-white {
    padding: 0 1.5rem 1.5rem;
  }
}




/**************************************************/
/********     Lomakelohko - Form Block     ********/

.contact-form-block {
  padding: 6rem 0;
}

.contact-form-block .form-title {
  margin: 0 0 1.875rem 0;
}
.contact-form-block .form-content {
  padding-bottom: 2rem;
}
.contact-form-block .info-cell {
  padding-right: 8rem;
}

.contact-form-block label {
  font-family: var(--title-font);
  font-size: 1.25rem;
  font-weight: 600;
}

.contact-form-block input,
.contact-form-block select,
.contact-form-block textarea {
  color: var(--sec-color);
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 1em;
  line-height: 1.4;
  font-style: normal;
  letter-spacing: 0.02em;
  border-radius: 0.5rem;
  border: 0;
  padding: 1rem;
  min-height: 3.5rem;
  margin-bottom: 1rem;
}
.contact-form-block input[type="checkbox"] {
  min-height: auto;
}
.contact-form-block a {
  color: var(--main-color);
}
.contact-form-block a:hover {
  text-decoration: underline;
}

.contact-form-block select {
  padding-right: 2rem;
}
.contact-form-block textarea {
  margin-bottom: 2rem;
}
.contact-form-block input:focus,
.contact-form-block select:focus,
.contact-form-block textarea:focus {
  -webkit-box-shadow: 0 0 5px #cacaca;
  box-shadow: 0 0 5px #cacaca;
  border: 0;
}

.contact-form-block.bg-white input,
.contact-form-block.bg-white select,
.contact-form-block.bg-white textarea {
  border: 1px solid #b4b4b4;
}

.contact-form-block .btn-submit, .btn-submit {
  position: relative;
  width: fit-content;
}
.contact-form-block .btn-submit:after, .btn-submit:after {
  position: absolute;
  top: 50%;
  transform: translateY(-100%);
  /*right: 122px; with spinner */
  right: 3.125rem;
  content: url(/wp-content/themes/yrjojahanna/img/icons/white_arrow.svg);
  width: 13px;
  height: 10px;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.contact-form-block .btn-submit:hover:after, .btn-submit:hover:after {
  right: 110px;
  right: 2.5rem;
}
.contact-form-block .btn-submit .wpcf7-spinner, .btn-submit .wpcf7-spinner {
  position: absolute;
}

.contact-form-block input[type="submit"],
.contact-form-block .wpcf7-submit {
  position: relative;
  background-color: var(--main-color);
  color: #fff;
  font-family: var(--body-font);
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 1.5rem 5.5rem 1.5rem 3.125rem;
  margin-top: 1.5rem;
  border-radius: 1.25rem;
  border: 0;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.contact-form-block input[type="submit"]:hover,
.contact-form-block .wpcf7-submit:hover {
  background-color: var(--main-hover);
  cursor: pointer;
}

/*.contact-form-block input[type="submit"]:after,
.contact-form-block .wpcf7-submit:after {
  position: absolute;
  top: 50%;
  transform: translateY(-100%);
  right: 3.125rem;
  content: url(/wp-content/themes/yrjojahanna/img/icons/white_arrow.svg);
  width: 13px;
  height: 13px;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}*/
/*.contact-form-block input[type="submit"]:hover:after,
.contact-form-block .wpcf7-submit:hover:after {
  right: 2.25rem;
}*/

.contact-form-block .wpcf7 {
  position: relative;
}
.contact-form-block .wpcf7 .ajax-loader {
  position: absolute;
  bottom: -1rem;
}

/**********     1200px     **********/
@media screen and (max-width: 75em) {
  .contact-form-block .info-cell {
    padding-right: 4rem;
  }
}
/**********     1024px     **********/
@media screen and (max-width: 64em) {
  .contact-form-block .info-cell {
    padding: 0 0 2rem 0;
  }
}

/**********     700px     **********/
@media screen and (max-width: 43.75em) {
  .contact-form-block {
    padding: 3rem 0;
  }
}
/**********     600px     **********/
@media screen and (max-width: 37.5em) {
  .contact-form-block input[type="submit"],
  .contact-form-block .wpcf7-submit {
    font-size: 1.25rem;
    padding: 1.25rem 4rem 1.25rem 2.5rem;
    border-radius: 1rem;
  }
  .contact-form-block input[type="submit"]:after,
  .contact-form-block .wpcf7-submit:after {
    right: 2.25rem;
    width: 11px;
    height: 11px;
  }
  .contact-form-block input[type="submit"]:hover:after,
  .contact-form-block .wpcf7-submit:hover:after {
    right: 1.75rem;
  }

  .contact-form-block .btn-submit:after, .btn-submit:after {
    right: 2rem;
    width: 11px;
    height: 8px;
  }
  .contact-form-block .btn-submit:hover:after, .btn-submit:hover:after {
    right: 1.5rem;
  }
}





/* Logolohko (Logo Block) */

.logo-block img {
  max-height: 150px;
  width: auto;
  pointer-events: none;
}
.logo-block a:hover {
  opacity: 0.5;
}
.logo-block .text-block-title h2, .logo-block .text-block-title h3 {
  margin: 2rem 0 4rem 0;
}

/**********     1200px     **********/
@media screen and (max-width: 75em) {
  .logo-block img {
    max-height: 2rem;
    max-width: 6rem;
  }
}
/**********     639px     **********/
@media screen and (max-width: 39.9375em) {
  .logo-block img {
    max-width: 5rem;
  }
}



/* Yhteyshenkilöt-lohko (Person Block) */

.persons-block {
  line-height: 1.4;
}
.persons-block-item p {
  margin-bottom: 1.1rem;
}
.persons-block-wrapper {
  margin-top: 5rem;
}
.persons-block-wrapper a {
  color: unset;
}
.persons-block .persons-block-item {
  margin-bottom: 4rem;
}
.person-image {
  margin-bottom: 2rem;
  position: relative;
}
.person-image img {
  border-radius: 50%;
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
}
.person-name {
  font-size: 1.6875rem;
  margin-bottom: 0.5rem;
}
.person-name h3 {
  margin: 0 0 1.875rem 0;
}
.person-title {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}
.person-tel, .person-email {
  margin-bottom: 0.5rem;
}
.person-tel a, .person-email a {
  font-size: 1.125rem;
  padding: 0;
}
.person-tel a:hover, .person-email a:hover {
  text-decoration: underline;
}
.person-description {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.person-language {
    position: absolute;
    bottom: -0.25rem;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}
.person-language-item {
  display: inline-block;
  background: #fff;
  border: 2px solid #000;
  padding: 0.3rem 0.3rem 0.2rem 0.3rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  line-height: 1;
}
.person-language-item + .person-language-item {
  margin-left: -2px;
}


.facetwp-custom .facetwp-input-wrap {
  display: block;
  position: relative;
  padding: 0;
}
.facetwp-custom input.facetwp-search {
  width: 100%;
  min-width: 100%;
}
.facetwp-custom .facetwp-type-fselect .fs-wrap {
  width: 100%;
}
.facetwp-facet {
  position: relative;
}
.facetwp-custom .facetwp-type-fselect .fs-dropdown {
  width: 100%;
}
.facetwp-custom .fs-dropdown .fs-options {
  max-height: 100%;
  overflow: auto;
  padding: 1.6rem;
}
.facetwp-custom .fs-dropdown {
  position: absolute;
  background-color: #fff;
  border-width: 0 2px 2px 2px;
  border-style: solid;
  border-color: #134851;
  border-radius: 0 0 1rem 1rem;
  width: 200px;
  margin-top: -1rem;
  z-index: 10;
}
.facetwp-custom span.fs-checkbox {
  display: none;
}
.facetwp-custom .fs-option {
  padding: 0.5rem;
  border-bottom: 0;
  cursor: default;
}
.facetwp-custom .fs-option:hover {
  cursor: pointer;
}
.facetwp-custom .fs-option:hover .fs-option-label {
  cursor: pointer;
  color: #134851;
}
.facetwp-custom .facetwp-icon {
  right: unset;
  right: 1.5rem;
  opacity: 1;
}
.facetwp-custom input[type="text"] {
  font-size: 1.5rem;
  color: unset;
  border: 2px solid #134851;
  border-radius: 1rem;
  box-shadow: none;
  color: #134851;
  background: transparent;
  opacity: 1;
  padding: 2.5rem 2rem;
}
.facetwp-custom ::placeholder, .facetwp-custom :-ms-input-placeholder, .facetwp-custom::-webkit-input-placeholder, ::placeholder {
  font-size: 1.563rem;
  color: #134851;
  opacity: 1;
}
.facetwp-search:focus::placeholder {
  font-size: 1.563rem;
  color: #fff;
  opacity: 1;
}
::placeholder {
  font-size: 1.563rem;
  color: #134851;
  opacity: 1;
}
.facetwp-custom {
  position: relative;
}
.cell.facetwp-reset-button {
  width: max-content;
  padding: 0;
  margin: 0;
  position: absolute;
  right: -2rem;
  top: 0.75rem;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.cell.facetwp-reset-button:hover {
  opacity: 0.5;
}
.facetwp-custom .facetwp-icon:before {
  background: url(../img/search-icon.png) no-repeat;
  background-position: 0px 50%;
  width: 2rem;
  background-size: 2rem 2rem;
}
.facetwp-custom .fs-label-wrap {
  border: 0;
}
.facetwp-custom .fs-label-wrap .fs-label {
  font-size: 1.5rem;
  border: 2px solid #134851;
  border-radius: 1rem;
  box-shadow: none;
  background: transparent;
  padding: 1.75rem 2rem;
}
.facet-reset {
  display: none;
}
.facetwp-custom .fs-arrow {
  border: 0;
  background: url(../img/icons/arrow.svg) no-repeat;
  padding: 0;
  width: 20px;
  height: 17px;
  right: 1rem;
  -webkit-transition: all .125s ease-out;
  transition: all .125s ease-out;
}
.facetwp-custom .fs-open .fs-arrow {
  transform: rotate(-180deg);
  right: 25px;
}
.facetwp-custom .fs-option-label {
  font-size: 1.25rem;
  color: #134851;
  -webkit-transition: all .125s ease-out;
  transition: all .125s ease-out;
}
.facetwp-custom .fs-option.disabled:hover {
  cursor: default;
}
.facetwp-custom .fs-option.disabled:hover .fs-option-label {
  color: #134851;
  cursor: default;
}
.facet-reset img{
  width: 20px;
}
.fs-wrap:focus {
  outline: none;
}
.persons-block-wrapper-single-item {
  border-bottom: 2px solid #F3F3F3;
}
.persons-block-wrapper-single-item:last-of-type {
  border-bottom: 0;
}
.persons-block-wrapper-single-item .persons-block-item {
  margin-bottom: 0;
  padding: 5rem 0;
}
.persons-block-wrapper-single-item .persons-block-item {
  margin-bottom: 0;
  padding: 5rem 0 4rem 0;
}
.persons-block-wrapper-single .person-name {
  text-transform: none;
}
.persons-block-wrapper-single .persons-block-item-image {
  margin: 0 auto;
}
.single-description .text-block-title {
  text-align: left;
}
.single-description .text-block-title h3 {
  padding: 1rem 2rem;
}
.single-description + .page-block.persons-block {
  margin: 0 auto;
}
.persons-block-wrapper-single {
  margin-top: 2rem;
}





/**************************************************/
/********     Videolohko - Video Block     ********/

.video-block {
  padding: 6rem 0;
}

.video-block .video-title {
  margin-top: 0;
}
.video-block .video-desc {
  margin-bottom: 2.5rem;
}
.video-block .video-content {
  margin-bottom: 1rem;
}

.video-block iframe {
  width: 100%;
}
.video-block .video-block-inner.width-narrow iframe {
  min-height: 500px;
}

.page-block:last-of-type.video-block {
  /*margin-bottom: 16rem !important;*/
  padding-bottom: 16rem !important;
}

/**********     1200px     **********/
@media screen and (max-width: 1200px) {
  .video-block .video-block-inner.width-narrow iframe {
    min-height: 300px;
  }
}
/**********     700px     **********/
@media screen and (max-width: 700px) {
  .video-block {
    padding: 3rem 0;
  }
  .video-block iframe,
  .video-block .video-block-inner.width-narrow iframe {
    min-height: 220px;
    height: 220px;
  }
  .video-block .video-desc {
    margin-bottom: 1.5rem;
  }
}



/**************************************************/
/*******     Tiedostolohko - File Block     *******/

.file-block .file-list {
  display: flex;
  gap: 2rem;
}
.file-block .file-block-title {
  margin-bottom: 3rem;
}

/* default styles */

.file-block .download-file {
  border-radius: 1.5rem;
  border: 2px solid var(--main-color);
  width: fit-content;
  min-width: 350px;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.file-block .download-file:hover {
  background: var(--alt-color);
}
.file-block .download-link {
  display: grid;
  grid-template-columns: 4rem 1fr;
  padding: 1.5rem 3.125rem 1.5rem 1.875rem;
}
.file-block .download-link .link-text {
  color: var(--main-color);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
}
.file-block .download-file .file-icon {
  float: left;
  margin-right: 1.5rem;
  width: 2.5rem;
}
.file-block .download-file .link-text span {
  display: block;
  font-size: 75%;
  color: #616160;
  text-transform: lowercase;
  margin-top: 0.25rem;
}


/* colored button styles */

.file-block .download-file.btn-alt {
  background: var(--main-color);
}
.file-block .download-file.btn-alt:hover {
  background: var(--main-hover);
  border: 2px solid var(--main-hover);
}
.file-block .btn-alt .download-link .link-text {
  color: #fff;
}
.file-block .download-file.btn-alt .file-icon path {
  fill: #fff;
}
.file-block .download-file.btn-alt .link-text span {
  color: #fff;
}

/**********     1200px     **********/
@media screen and (max-width: 1200px) {
  .file-block .file-list {
    gap: 1rem;
  }
  .file-block .file-block-title {
    margin-bottom: 2rem;
  }
  .file-block .download-file {
    border-radius: 1.25rem;
  }
  .file-block .download-link .link-text {
    font-size: 1.125rem;
  }
  .file-block .download-link {
    grid-template-columns: 3.5rem 1fr;
    padding: 1rem 2.25rem 1rem 1.25rem;
  }
  .file-block .download-file .file-icon {
    margin-right: 1.5rem;
    width: 2rem;
  }
}
/**********     800px     **********/
@media screen and (max-width: 800px) {
  .file-block .download-file {
    width: 100%;
  }
}



.download-file {
  border-radius: 1rem;
  border: 2px solid var(--main-color);
  width: fit-content;
  /*min-width: 350px;*/
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.download-file:hover {
  background: var(--alt-color);
}
.download-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem 1rem 1.125rem;
}
.download-link .link-text {
  color: var(--main-color);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
}
.download-file .file-icon {
  float: left;
  margin-right: 0.75rem;
  width: 1.25rem;
}
.download-file .link-text span {
  display: inline-block;
  /*font-size: 75%;*/
  color: #616160;
  text-transform: lowercase;
  margin-left: 0.25rem;
}

.property-filelist .download-file:not(:first-child) {
  margin-top: 1rem;
}
.property-brochure {
  max-width: 200px;
  margin-bottom: 1rem;
}
.property-brochure .title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 3rem 0 1.5rem;
}




/*************************************************/
/********     Koodilohko - Code Block     ********/

.code-block-desc {
  margin-bottom: 5rem;
}

/* 4 palstan pakotus
.script-block .posts-container .posts .column.size-1of5 {
  width: 25%;
}
*/

.script-block.bg-gray {
  padding: 6rem 0;
}

.script-block .script-block-title {
  margin: 0;
  margin-bottom: 1.5rem;
}
.script-block .posts-container .posts .column .post-container {
  padding: 0.5rem;
}
.script-block .posts-container .posts .column .post-container .post {
  padding: 1rem;
  border-radius: 1.5rem;
  border: 2px solid var(--alt-color);
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.script-block .posts-container .posts .column .post-container .post:hover {
  border: 2px solid var(--main-color);
}
.script-block .posts-container .posts .column .post-container .post .post-image {
  height: 200px;
  object-fit: cover;
  margin: 15px 0;
}
.script-block .posts-container .posts .column .post-container .post .text p,
.script-block .posts-container .posts .column .post-container .post .text a {
  font-size: 1rem;
}

/**********     1200px     **********/
@media screen and (max-width: 1200px) {
  .code-block-desc {
    margin-bottom: 3.125rem;
  }
}




/*************************************************/
/*********     CTA-lohko - CTA Block     *********/

.page-block.cta-block {
  margin: 0 auto;
  padding: 6rem 0;
}

/* CTA-lohkon otsikko */
.cta-block-title {
  font-size: 2.375rem;
  margin-top: 0;
  margin-bottom: 2rem;
}
/* CTA-lohkon otsikko, kun sisältötekstiä ei ole */
.cta-block-title-center {
  font-size: 2.375rem;
  margin: 0;
  min-height: 87px;
  display: inline-grid;
  align-items: center;
}

.cta-block .cta-wrapper {
  display: flex;
  grid-gap: 2rem;
  border-radius: 1.25rem;
  padding: 3.125rem;
}
.cta-block.bg-white .cta-wrapper {
  background-color: var(--alt-color);
}
.cta-block.bg-gray .cta-wrapper {
  background-color: #fff;
}

.cta-block .cta-wrapper .cta-content {
  height: 100%;
}

.cta-block .cta-links {
  padding-left: 2rem;
}
.cta-block .cta-wrapper.width-content .cta-content {
  width: 100%;
}
.cta-block .cta-wrapper.width-content .cta-links {
  min-width: 35%;
}
.cta-block .cta-wrapper.width-narrow .cta-content {
  width: 100%;
}
.cta-block .cta-wrapper.width-narrow .cta-links {
  min-width: 40%;
}

.cta-block .cta-wrapper .cta-content p:last-of-type {
  margin-bottom: 0;
}

.cta-block .cta-wrapper.bg-red ::selection {
  background-color: #ffffff80;
}


/* CTA buttons */
.cta-block .cta-links .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 87px;
  color: var(--main-color);
  font-size: 1.75rem;
  font-weight: 500;
  text-align: left;
  letter-spacing: 0;
  padding: 0;
  background: none;
  border-radius: 1.25rem;
}
.cta-block .cta-links .button.btn-default {
  font-size: 2rem;
}
.cta-block .cta-links .button:last-of-type {
  margin-bottom: 0;
}
.cta-block .cta-links .button.btn-filled,
.cta-block .cta-links .button.btn-bordered {
  justify-content: space-between;
  padding: 0 1.875rem 0 2.5rem;
}
.cta-block .cta-links .button .link-arrow {
  padding-left: 1rem;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.cta-block .cta-links .button:hover .link-arrow {
  transform: translateX(10px);
}
.cta-block .cta-links .button .arrow-svg {
  width: 25px;
  height: 50px;
}
.cta-block .cta-links .button.btn-filled .arrow-svg,
.cta-block .cta-links .button.btn-bordered .arrow-svg {
  width: 16px;
  height: 25px;
}
.cta-block .cta-links .button.btn-filled span,
.cta-block .cta-links .button.btn-bordered span {
  padding-top: 4px;
}
.cta-block .cta-links .button.btn-default:hover .link-arrow {
  transform: translateX(25px);
}


/* CTA button styles */
.cta-block .cta-links .button.btn-filled {
  color: #fff;
  /*border: solid 3px var(--main-color);*/
  border-style: solid;
  border-width: 3px;
  border-color: var(--main-color);
  background-color: var(--main-color);
}
    .cta-block .cta-links .button.btn-filled .arrow-svg svg {
      fill: #fff;
    }
    .cta-block .cta-links .button.btn-filled:hover {
      border-color: var(--main-hover);
      background-color: var(--main-hover);
    }
.cta-block .cta-links .button.btn-bordered {
  border-style: solid;
  border-width: 3px;
  border-color: var(--main-color);
}
    .cta-block .cta-links .button.btn-bordered:hover {
      background-color: #fff;
    }
    .cta-block .cta-wrapper.bg-white .cta-links .button.btn-bordered:hover {
      background-color: var(--alt-color);
    }
.cta-block .cta-wrapper.bg-red .cta-links .button.btn-default {
  color: #fff;
}
.cta-block .cta-wrapper.bg-red .cta-links .button.btn-default .arrow-svg svg {
  fill: #fff;
}
.cta-block .cta-wrapper.bg-red .cta-links .button.btn-filled {
  color: var(--main-color);
  border-color: #fff;
  background-color: #fff;
}
.cta-block .cta-wrapper.bg-red .cta-links .button.btn-filled .arrow-svg svg {
  fill: var(--main-color);
}
    .cta-block .cta-wrapper.bg-red .cta-links .button.btn-filled:hover {
      border-color: var(--alt-color);
      background-color: var(--alt-color);
    }
.cta-block .cta-wrapper.bg-red .cta-links .button.btn-bordered {
  color: #fff;
  border-color: #fff;
}
.cta-block .cta-wrapper.bg-red .cta-links .button.btn-bordered .arrow-svg svg {
  fill: #fff;
}
    .cta-block .cta-wrapper.bg-red .cta-links .button.btn-bordered:hover {
      background-color: var(--main-hover);
    }

/**********     1500px     **********/
@media screen and (max-width: 93.75em) {
  .cta-block-title {
    font-size: 2.375rem;
  }
}
/**********     1400px     **********/
@media screen and (max-width: 87.5em) {
  .cta-block .cta-links .button {
    font-size: 1.5rem;
  }
  .cta-block .cta-links .button.btn-default {
    font-size: 1.75rem;
  }
  .cta-block .cta-links .button .arrow-svg {
    width: 20px;
    height: 40px;
  }
  .cta-block .cta-links .button.btn-default:hover .link-arrow {
    transform: translateX(15px);
  }
  .cta-block-title, .cta-block-title-center {
    font-size: 2rem;
  }
  .cta-content-text, .cta-content-text p {
    font-size: 1.25rem;
  }

  .width-narrow .cta-block-title {
    font-size: 1.75rem;
  }
  .cta-block .width-narrow .cta-links .button {
    font-size: 1.25rem;
  }
  .cta-block .width-narrow .cta-links .button.btn-default {
    font-size: 1.5rem;
  }
  .cta-block .width-narrow .cta-links .button.btn-filled,
  .cta-block .width-narrow .cta-links .button.btn-bordered {
    padding: 0 1.5rem 0 2rem;
  }
}
/**********     1200px     **********/
@media screen and (max-width: 75em) {

  .cta-block-title {
    font-size: 1.75rem;
  }
  .cta-block-title-center {
    font-size: 1.75rem;
    height: auto;
    min-height: auto;
    margin-bottom: 0;
  }
  .cta-block .cta-links .button {
    font-size: 1.25rem;
    height: 76px;
  }
  .cta-block .cta-links .button.btn-default {
    font-size: 1.5rem;
    height: auto;
  }
  .cta-block .cta-links .button.btn-filled,
  .cta-block .cta-links .button.btn-bordered {
    padding: 0 1.25rem 0 1.75rem;
  }

  .cta-block .cta-wrapper.width-narrow {
    flex-direction: column;
    grid-gap: 3rem;
  }
  .cta-block .cta-links,
  .cta-block .width-narrow .cta-links {
    padding: 0;
  }
  .cta-block .cta-wrapper.width-narrow .cta-content {
    width: 100%;
  }
  .cta-block .cta-wrapper.width-narrow .cta-links {
    width: 100%;
  }
}
/**********     1000px     **********/
@media screen and (max-width: 62.5em) {
  .cta-block-title, .width-narrow .cta-block-title, .cta-block-title-center {
    margin-bottom: 1rem;
  }
  .cta-block .cta-links .button {
    height: 64px;
    border-radius: 1rem;
  }
  
  .cta-block .cta-links .button.btn-filled,
  .cta-block .cta-links .button.btn-bordered {
    border-width: 2px;
  }
}
/**********     900px     **********/
@media screen and (max-width: 56.25em) {
  .cta-block-title-center {
    height: auto;
    min-height: auto;
    margin: 0;
  }
  .cta-block .cta-wrapper.width-content {
    flex-direction: column;
    grid-gap: 2rem;
  }
  .cta-block .cta-wrapper.width-narrow {
    grid-gap: 2rem;
  }
  .cta-content-text {
    margin-bottom: 0;
  }
  .cta-block .cta-wrapper.width-content .cta-content {
    width: 100%;
  }
  .cta-block .cta-wrapper.width-content .cta-links {
    width: 100%;
  }
  .cta-block .cta-links .button {
    justify-content: flex-start;
  }
  .cta-block .cta-links .button.btn-default {
    height: auto;
  }
}
/**********     639px     **********/
@media screen and (max-width: 39.9375em) {
  .page-block.cta-block {
    padding: 3rem 0;
  }
  .cta-block-title, .width-narrow .cta-block-title, .cta-block-title-center {
    font-size: 1.5rem;
  }
  .cta-block .cta-wrapper {
    border-radius: 1rem;
    padding: 2rem;
  }
  .cta-content-text, .cta-content-text p {
    font-size: 1rem;
  }
}






/* Yhteystietolohko - Contact Info Block */

.contact-image-block {
  margin: 0;
}

.contact-info-item a {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  border-radius: 1.875rem;
}
.contact-info-item a:hover {
  text-decoration: none;
}
.contact-info-item a:hover .text-block-link-arrow {
  transform: translateX(0.5rem);
}

.contact-image-block .contact-info-item .contact-info-item-image {
  width: 50%;
}

.contact-image-block .contact-info-item .contact-info-item-infos a:hover {
  box-shadow: none;
}

.contact-info-item-link a {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  padding: 0;
  margin: 0;
}
.contact-info-item-link a:hover .text-block-link-arrow {
  transform: translateX(0.5rem);
}
.contact-info-item-link .arrow-svg svg {
  max-height: 1.1rem;
}
.contact-info-item-title {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.contact-info-item-address {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}
.contact-info-item-phone a, .contact-info-item-email a {
  font-size: 1.125rem;
  padding: 0;
  margin-bottom: 0.25rem;
}
.contact-info-item-infos a:hover {
  text-decoration: underline;
}
.contact-info-item {
  margin-bottom: 4rem;
}
.contact-info-block .text-block-title h2, .contact-info-block .text-block-title h3 {
  margin: 2rem 0 4rem 0;
}



/* Kuvallinen yhteystietolohko - Contact Image Block */

.contact-info-item-image {
  min-height: 20rem;
}
.contact-info-item-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
/*.contact-image-block.bg-gray {
  padding: 6rem 0;
}*/
.contact-image-block .contact-info-item-infos {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--title-font);
  padding: 1.5rem 1.5rem 1.5rem 3rem;
  width: 50%;
}
.contact-image-block .contact-info-item-infos a {
  padding: 0;
}
.contact-image-block .contact-info-item {
  background: #fff;
}
.contact-info-item-text, .contact-info-item-normal a {
  font-size: 1.125rem;
  padding: 0;
  margin-bottom: 0.25rem;
}
.contact-image-block .contact-info-item-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sec-color);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.contact-info-item-normal a {
  margin-bottom: 0.25rem;
}
.contact-info-item-link {
  margin-bottom: 0rem;
  display: flex;
}
.contact-info-item-link .contact-info-link-text {
  color: var(--main-color);
  font-size: 1.4375rem;
  font-weight: 600;
}

.contact-info-item-link .text-block-link-arrow {
  margin-left: 1.5rem;
}
.contact-info-item-link .text-block-link-arrow svg {
  width: 1rem;
}

.bg-white.contact-image-block .contact-info-item {
  -webkit-box-shadow: 0 0 20px 0 rgba(0,0,0,0.1);
  -moz-box-shadow: 0 0 20px 0 rgba(0,0,0,0.1);
  box-shadow: 0 0 20px 0 rgba(0,0,0,0.1);
}
.contact-image-block .contact-info-item {
  -webkit-transition: all .125s ease-out;
  transition: all .125s ease-out;
}
.contact-image-block .contact-info-item a:hover {
  -webkit-box-shadow: 0 0 20px 0 rgba(0,0,0,0.25);
  -moz-box-shadow: 0 0 20px 0 rgba(0,0,0,0.25);
  box-shadow: 0 0 20px 0 rgba(0,0,0,0.25);
}


/* ehto vain jos kuvallisia laatikoita käytetään useampia peräkkäin */
.contact-image-block + .contact-image-block .contact-image-block-wrapper {
  padding: 0 0 4rem 0rem;
}

.contact-image-block .text-block-title h2, .contact-image-block .text-block-title h3 {
  margin: 0rem 0 4rem 0;
}
.contact-image-block .contact-info-item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
  border-radius: 1.875rem;
  overflow: hidden;
}

.contact-image-block .contact-info-item .contact-info-item-image {
  position: relative;
}
.contact-image-block .contact-info-item .contact-image-mask {
  position: absolute;
  top: -30%;
  right: -2px;
  height: 160%;
  width: auto;
}

.contact-image-block .contact-info-item .contact-info-item-mobile-image {
  display: none;
  position: relative;
  width: 100%;
}
.contact-image-block .contact-info-item .contact-info-item-mobile-image image {
  width: 100%;
  height: 100%;
}

.contact-info-item-one-link {
  padding-top: 0;
}
.contact-info-item-one-link .text-block-link-arrow {
  display: flex;
}
.contact-info-item-one-link .text-block-link-arrow svg {
  width: auto;
  height: 30px;
}
.contact-info-item-one-link .text-block-link-arrow .arrow-svg {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.25rem;
}
.contact-info-item-infos a:hover .text-block-link-arrow {
  transform: translateX(0.5rem);
}

/* Mobiilit */
@media all and (max-width: 1500px) {
  .contact-info-item-image {
    height: 20rem;
  }
  .contact-image-block .contact-info-item-infos {
    padding: 1.875rem;
  }
}

@media all and (max-width: 1400px) {
  .contact-image-block .contact-info-item-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  .contact-info-item-link .contact-info-link-text {
    font-size: 1.2rem;
  }
  .contact-info-item-link .text-block-link-arrow {
    margin-left: 1rem;
  }
  .contact-info-item-link .text-block-link-arrow svg {
    width: 11px;
    height: 28px;
  }
}

@media all and (max-width: 1200px) {
  .contact-image-block .contact-info-item {
    flex-direction: column;
  }
  .contact-info-item a {
    flex-direction: column;
  }
  .contact-image-block .contact-info-item .contact-info-item-image {
    width: 100%;
  }
  .contact-image-block .contact-info-item-infos {
    width: 100%;
    padding-top: 0;
  }
  .contact-image-block .contact-info-item .contact-info-item-image {
    display: none;
  }
  .contact-image-block .contact-info-item .contact-info-item-mobile-image {
    display: block;
    margin-top: 0;
    margin-left: 2.5rem;
  }
  .contact-image-block .contact-info-item-title {
    font-size: 1.25rem;
  }
}

@media all and (max-width: 1023px) {
  .contact-image-block .contact-info-item-infos {
    padding: 1.875rem !important;
  }
  .contact-image-block .contact-info-item-title {
    font-size: 1.25rem !important;
  }
}




/** Työpaikkalohko - Job block **/
.jobs-block {
  background: #f7f7f7;
  padding: 3rem 0;
  margin: 0;
}
.jobs-block .text-block-title {
  text-align: center;
}
.jobs-block .no-jobs {
  margin: 0 1rem;
}
.job-list-item {
  background: #fff;
  border-radius: 1rem;
  display: flex;
  flex-flow: wrap;
  position: relative;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.job-list-item:hover {
  -webkit-box-shadow: 0 0 20px 0 rgba(0,0,0,0.1);
  -moz-box-shadow: 0 0 20px 0 rgba(0,0,0,0.1);
  box-shadow: 0 0 20px 0 rgba(0,0,0,0.1);
}
.job-list-item a {
  padding: 1.5rem 2rem;
  width: 100%;
  display: flex;
  flex-flow: wrap;
  position: relative;
}
.job-list-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  align-self: flex-start;
  width: 100%;
}
.job-list-area {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0.125rem;
}
.job-list-bottom.align-self-bottom {
  align-self: flex-end;
  width: 100%;
  padding-right: 2rem;
}
.job-list-arrow {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.job-list-item:hover .job-list-arrow {
  transform: translateX(0.5rem);
}
.job-list-arrow .arrow-svg {
  width: 20px;
  height: 20px;
}
.job-list-count {
  display: flex;
  margin-bottom: 2rem;
}
.facetwp-counts-string {
  margin-left: 0.25rem;
}
.facetwp-custom-job input.facetwp-search {
  border-radius: 1rem;
  background: #fff;
}
.facetwp-custom-job input, .facetwp-custom-job input[type="text"] {
  border-radius: 1rem;
  background: #fff;
  border: none;
}
.facetwp-custom-job .facetwp-icon {
  right: unset;
  left: 1.75rem;
  opacity: 1;
}
.facetwp-custom-job .facetwp-icon:before {
  background: url(../img/icons/search.svg) no-repeat;
  background-position: 0px 50%;
  width: 30px;
  background-size: 30px 30px;
}
.facetwp-custom-job input.facetwp-search, .facetwp-custom-job input[type="text"]{
  margin: 0;
  min-width: 240px;
  font-size: 1.5rem;
  border-radius: 1rem;
  box-shadow: none;
  padding: 3rem 1rem 3rem 5rem;
}
.facetwp-facet-job_portal_location_search {
  background: #fff;
  border-radius: 1rem;
}
.facetwp-facet-job_portal_location_search input[type="text"] {
  content: '';
  background: url(../img/icons/location.svg) no-repeat;
  background-position: 28px 50%;
  width: 100%;
  background-size: 34px 34px;
}
.facetwp-autocomplete-update {
  display: none;
}
.page .autocomplete-suggestions {
  background: #fff;
  border: none;
  border-radius: 0rem 0rem 1rem 1rem;
  box-shadow: none;
  margin-top: -1rem;
  padding: 2rem 1rem 1.5rem 1rem;
  box-shadow: 0 10px 10px rgba(0,0,0,0.1);
}
.page .autocomplete-suggestion {
  padding: 0.5rem 1rem;
  white-space: nowrap;
  overflow: hidden;
}
.page .autocomplete-selected {
  background: #f7f7f7;
}
.facetwp-facet-job_portal_location_search input[type="text"]:focus::placeholder {
  color: transparent;
}
.facetwp-custom-job .facetwp-facet {
  margin-bottom: 0px;
}
.facetwp-custom-job {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 2rem;
  margin-bottom: 5rem;
}
.facetwp-custom-job .facetwp-reset-button {
  width: max-content;
  padding: 0;
  margin-left: 1rem;
  position: unset;
  right: unset;
  top: 0.75rem;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.facetwp-facet-loadmore {
  padding: 3rem 0 2rem 0;
}

.facetwp-facet-loadmore button {
  border-radius: 3rem;
  border-width: 3px;
  border-style: solid;
  padding: 1.3rem 2.5rem 1.3rem 3rem;
  font-size: 1.37rem;
  width: max-content;
  max-width: 75rem;
  display: flex;
  align-items: center;
  background: transparent;
  line-height: unset;
  border-color: #134851;
  cursor: pointer;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
  margin: 0 auto;
  color: #134851;

}

.facetwp-facet-loadmore button:hover {
    background: #134851;
    color: #fff;
}





/** Job Single **/
.single-job_vacancy #primary {
  padding-bottom: 25rem;
}
.job-single-template {
  padding-top: 5rem;
}
.job-single-info {
  font-size: 1.125rem;
  margin: 3rem 0rem 2rem 0rem;
}
.job-single-title h1 {
  font-size: 3.125rem;
  margin-top: 0;
  line-height: 1.25;
}
.job-single-content {
  margin-bottom: 5rem;
}
.job-single-hero {
  height: 50vh;
  max-height: 500px;
  border-radius: 2rem;
  background-size: cover;
  position: relative;
}
.job-single-hero-wrapper {
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column;
  height: 100%;
  position: relative;
    z-index: 1;
}
.job-single-hero-wrapper h1 {
  color: #fff;
  text-align: center;
}
.job-single-hero-logo {
  width: 200px;
}
.job-single-mask {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 2rem;
  background: rgba(19,73,81, 0.6);
}



/** Taulukkolohko : Table Block **/

.page-block.table-block {
  margin: 0 auto;
  padding: 6rem 0;
}
  .page-block.table-block + .table-block {
    padding: 0 0 6rem;
  }
.table-block table {
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
}
.table-block-title h1,
.table-block-title h2,
.table-block-title h3,
.table-block-title h4 {
  margin: 0 0 1rem;
}
.table-block-description {
  margin-bottom: 3rem;
}
.table-block thead {
  background: var(--main-color);
  color: #fff;
  font-size: 1.688em;
  border-radius: 1rem 1rem 0 0;
}
.table-block thead ::selection {
  background: #ffffff80;
}
.table-block thead th {
  padding: 1rem 1.5rem;
}
.table-block tbody, .table-block tfoot, .table-block thead {
  border: 0;
}
.table-block tbody tr:nth-child(even),
tbody tr:nth-child(even) {
  background: var(--alt-color);
}
.table-block tbody tr:last-of-type {
  border-bottom: 2px solid var(--alt-color);
}
.table-block td {
  padding: 1.25rem 1.5rem;
}
.table-block td:first-of-type, .table-block th:first-of-type {
  text-align: left;
}
.table-block th, .table-block td {
  text-align: left;
}
.table-block td a {
  color: var(--main-color);
  text-decoration: none;
}
.table-block td a:hover {
  text-decoration: underline;
}
.table-block-info p {
  font-size: 1rem;
}

.table-block input, .table-block select, .table-block textarea {
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 1em;
  line-height: 1.4;
  font-style: normal;
  color: var(--sec-color);
  letter-spacing: 0.02em;
}

@media screen and (max-width: 1500px) {
  .table-block {
    padding: 3rem 0;
  }
}
@media screen and (max-width: 800px) {
  .table-block table {
    border: 0;
  }
  .table-block table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    /*position: absolute;*/
    width: 1px;
  }
  .table-block table tr {
    display: block;
    /*margin-bottom: .625em;*/
  }
  .table-block table td {
    border-bottom: 1px solid #ddd;
    display: block;
    text-align: right;
  }
  .table-block td:first-of-type {
    font-weight: 600;
  }

  .table-block table thead th {
    display: none;
    font-size: 1rem;
  }
  .table-block table thead th:first-of-type {
    display: block;
  }
  
  .table-block table td::before {
    content: attr(data-label);
    float: left;
    /*text-transform: uppercase;*/
  }

  .table-block table td:first-of-type::before {
    content: "";
  }

  .table-block table td:last-child {
    border-bottom: 0;
  }
}



/************    TARVITAANKO? Nuolimäärityksiä     *************/


.arrow-svg.turquoise-white {
  border: 5px solid #134851;
  background: #134851;
}
.arrow-svg.turquoise-white svg {
  fill: #fff;
}
.arrow-svg.gray-blue {
  border: 5px solid #EFEFF1;
  background: #EFEFF1;
}
.arrow-svg.gray-blue svg {
  fill: #134851;
}
.arrow-svg.blank-blue {
  border: 5px solid #EFEFF1;
  background: #EFEFF1;
}
.arrow-svg.blank-blue svg {
  fill: #134851;
}




/* Sijoittajat */

.text-block-file {
  display: flex;
}
.text-center .text-block-file {
  justify-content: center;
}
.text-block-file a {
  padding-bottom: 0.75rem;
}
.text-block-file a, .text-block-file a .download-svg {
  display: initial;
  vertical-align: middle;
}
.text-block-file .download-svg {
  padding-right: 1rem;
}
.text-block-file.font-size-normal a {
  font-size: 1.125rem;
}
.text-block-file.font-size-normal .download-svg svg {
  width: 2rem;
}
.text-block-file.font-size-big a {
  font-size: 1.438rem;
}
.text-block-file a span {
  padding-left: 1rem;
}




/*****   Kohdelistauslohko (Properties Block)   *****/

.properties-block {
  background: var(--alt-color);
  padding: 8rem 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin: 0;
}
.properties-block-filters .fs-dropdown .fs-options {
  max-height: 400px;
}
.properties-block-title {
  text-align: center;
  margin-bottom: 4rem;
}
.properties-block-title > * {
  margin-top: 0;
}
.properties-block-text {
  margin-bottom: 4rem;
}
.properties-filter {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.properties-filter:first-child {
  padding-left: 0;
}
.properties-filter:last-child {
  padding-right: 0;
}
.properties-filter .fs-wrap {
  width: 100%;
}
.properties-filter .fs-dropdown {
  width: 100%;
  margin: 0;
  padding: 0 1.5rem 1.5rem 1.5rem;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}
.properties-filter .fs-option-label {
  font-size: 18px;
  font-weight: 600;
  font-family: var(--title-font);
}
.properties-filter .fs-option {
  padding: 8px;
}
.properties-filter .fs-search {
  display: none;
}
.properties-filter .fs-label-wrap .fs-label {
  border: none;
  padding: 1.5rem 2rem;
}
.properties-filter .fs-label-wrap {
  width: auto;
  border-radius: 16px;
  border-radius: 16px;
  border: none;
}
.properties-filter .fs-wrap.single .fs-option.selected {
  background: #ffffff;
}
.fs-open .fs-label-wrap {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.properties-filter select,
.properties-filter .fs-label
{
  height: 70px;
  font-size: 20px;
  font-weight: 600;
  border: none;
  border-radius: 16px;
  padding-left: 2rem;
  font-family: var(--title-font);
}
.properties-filter .fs-label {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.properties-filter .fs-dropdown {
  border: none;
}
.properties-filter select:focus {
  box-shadow: none;
}
.properties-filter .fs-option:hover .fs-option-label {
  color: var(--main-color);
}
.properties-block-filters-bottom {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.facetwp-radio {
  display: none;
}
.facetwp-radio .facetwp-counter {
  display: none;
}
.facetwp-radio.checked:after {
  content: '';
  position: absolute;
  transform: rotate(45deg);
  height: 24px;
  width: 12px;
  border-bottom: 4px solid #242424;
  border-right: 4px solid #242424;
  top: 5px;
  left: 15px;
}
.facetwp-radio[data-value="1"] {
  display: block;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 8px;
  font-size: 0;
  background-image: none !important;
  position: relative;
  margin-bottom: unset;
}
.properties-filter .fs-arrow {
  border: solid #242424;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 4px;
  border-bottom-right-radius: 3px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  margin-right: 1rem;
}
.properties-filter:only-child {
  margin: 0 auto;
}
.properties-filter .fs-open .fs-arrow {
  transform: rotate(-135deg);
}
.properties-show-free {
  display: flex;
  align-items: center;
}
.properties-show-free .facetwp-facet {
  margin-bottom: 0;
}
.properties-show-free span {
  font-size: 18px;
  font-weight: 600;
  font-family: var(--title-font);
  margin: auto 0;
  padding: 0.25rem 1rem;
  cursor: pointer;
}
.properties-show-free .facetwp-radio .facetwp-display-value {
  display: none;
}
.properties-count {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0;
}
.properties-count > div {
  font-size: 18px;
}
.properties-list-item {
  display: flex;
  flex-direction: row;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  font-family: var(--title-font);
}
.properties-list-item .list-item-wrapper {
  width: 50%;
}
.properties-list-item .list-item-wrapper .list-item-type {
  font-size: 1.125rem;
  font-weight: 600;
  color: #616160;
  margin-bottom: 1rem;
}
.list-item-image {
  min-height: 300px;
}
.list-item-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.list-item-content {
  padding: 2.5rem;
}
.list-item-title {
  position: relative;
  font-size: 26px;
  margin: 0 0 2.5rem 0;
  color: var(--sec-color);
}
.list-item-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: #616160;
}
.list-item-description {
  margin-bottom: 2.5rem;
}
.list-item-description p {
  font-size: 18px;
  font-family: var(--body-font);
  color: #242424;
}
a.list-item-link {
  position: relative;
  font-size: 23px;
  font-weight: 500 ;
  color: var(--main-color);
  transition: all 400ms ease-in;
  white-space: nowrap;
}

a.list-item-link:hover:after {
  /* margin-left: 2rem; */
  transform: translateX(1rem);
}

a.list-item-link:hover {
  color: var(--main-hover);
}
a.list-item-link:after {
  position: absolute;
  top: 0;
  margin-left: 1rem;
  content: url(/wp-content/themes/yrjojahanna/img/icons/arrow_thick.svg);
  width: 0.75rem;
  -webkit-transition: all .25s ease-out;
  -moz-transition: all .25s ease-out;
  -ms-transition: all .25s ease-out;
  -o-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.properties-list-item .list-item-categories {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
}
.list-item-category,
.list-item-free-properties
{
  padding: 0.5rem 1.5rem;
  background: #ffffff;
  border-radius: 10px;
  font-size: 18px;
  font-family: var(--title-font);
  font-weight: 600;
  margin-right: 0.5rem;
  display: inline-block;
}

.list-item-free-properties {
  display: block;
  background: var(--main-color);
  color: #ffffff;
  /*margin-bottom: 0.75rem;*/
}

/* Mobiilit */
@media all and (max-width: 1000px) {
  .list-item-content {
      padding: 2.5rem 1.5rem;
  }
}
@media all and (max-width: 639px) {
  .properties-block {
      padding: 2rem 0;
  }
  .properties-block-wrapper {
      margin: 0 1rem;
  }
  #primary .properties-block-filters {
      justify-content: space-between;
      margin-bottom: 1rem;
  }
  #primary .properties-filter {
      width: calc((100% - 0.75rem) / 2);
      margin-top: 0.25rem;
      margin-bottom: 0.25rem;
      padding: 0;
  }
  #primary .properties-filter.preselected:first-of-type {
      width: 100%;
  }
  #primary .properties-filter .facetwp-facet {
      margin-bottom: 0;
  }
  #primary .properties-block-filters-bottom {
      margin-bottom: 2rem;
      display: flex;
      align-items: flex-start;
      flex-flow: column;
  }
  #primary .properties-show-free {
      margin-bottom: 3rem;
  }
  #primary .properties-filter .fs-label-wrap .fs-label {
      padding: 1rem;
  }
  #primary .properties-block-filters-bottom {
      margin-bottom: 1.5rem;
  }
  .properties-filter select, .properties-filter .fs-label {
      height: 50px;
  }
  .properties-filter .fs-label-wrap {
      border-top-left-radius: 10px;
      border-top-right-radius: 10px;
  }
  .properties-filter .fs-arrow {
      margin-right: 0.5rem;
  }
  .facetwp-radio[data-value="1"] {
      width: 26px;
      height: 26px;
  }
  .facetwp-radio.checked:after {
      content: '';
      position: absolute;
      transform: rotate(45deg);
      height: 15px;
      width: 7px;
      border-bottom: 3px solid #242424;
      border-right: 3px solid #242424;
      top: 4px;
      left: 10px;
  }
  .properties-show-free span {
      margin-left: 0.5rem;
      margin-bottom: 3px;
  }
  .properties-filter select,
  .properties-filter .fs-label,
  .properties-show-free span,
  .list-item-description p
  {
      font-size: 16px;
  }
  .list-item-category
  {
      font-size: 17px;
      height: 46px;
      display: inline-flex;
      align-items: center;
  }
  .list-item-free-properties {
      font-size: 17px;
      height: 46px;
      display: flex;
      align-items: center;
  }
  .properties-filter .fs-option-label {
      font-size: 15px;
  }
  .properties-filter .fs-dropdown {
      width: 100%;
      margin: 0;
      padding: 0 1rem 1rem 1rem;
      border-bottom-left-radius: 16px;
      border-bottom-right-radius: 16px;
  }
  #primary .properties-list-item {
      margin-top: 0.5rem;
      margin-bottom: 0.5rem;
  }
  .list-item-image {
      min-height: 250px;
  }
  .list-item-image img {
      height: 250px;
  }
  .list-item-title {
      margin-bottom: 1rem;
  }
  .list-item-description {
      margin-bottom: 1.5rem;
  }
  .properties-block-title,
  .properties-block-text
  {
      margin-bottom: 3rem;
  }
}




/***************************/
/*****     Kohteet     *****/

.properties-wrapper .properties-list {
  padding: 6rem 0 12rem;
}
.property-item .property-container {
  position: relative;
  background: #ccc;
  padding: 1rem;
  height: 20rem;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.property-item:hover .property-container {
  background: #cccccc80;
}
.property-info .property-city {
  display: block;
  font-family: var(--title-font);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
}
.property-info .property-availability {
  position: absolute;
  bottom: 0;
  right: 0;
  display: block;
  padding: 0 1rem;
  color: #fff;
  background: #00000080;
}

/*********************************/
/*****   Yksittäinen kohde   *****/

.single-property-content .content-wrapper {
  padding: 6.25rem 0;
}


/* Contacts Description */

.single-property-content .single-property-description p a {
  text-decoration: none;
}
.single-property-content .single-property-description p a:hover {
  text-decoration: underline;
}
.single-property-content .single-property-description > h2:first-child {
  margin-top: 0;
}
.single-property-description p:not(:last-of-type) {
  margin-bottom: 2.5rem;
}
@media all and (max-width: 1024px) {
  .single-property-description p:not(:last-of-type) {
    margin-bottom: 1.5rem;
  }
}


/* Filelist */
.property-filelist {
  display: flex;
  flex-direction: column;
}
.property-filelist .file-item {
  font-family: var(--title-font);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--main-color);
  width: fit-content;
  text-decoration: none;
}
.property-filelist .file-item:not(:last-child) {
  margin-bottom: 1rem;
}
.property-filelist .file-item:hover {
  text-decoration: underline;
}


/* Contacts Sidebar */

.single-property-contacts-wrapper {
  background: #f6f6f6;
  border-radius: 10px;
}
.single-property-contacts-wrapper .accordion-content {
  background: #f6f6f6;
  padding: 0 20px 20px;
  font-size: 16px;
}
.single-property-contacts-wrapper .accordion-content .single-property-address {
  font-size: 18px;
  font-weight: 600;
}

.single-property-contacts-wrapper .accordion-title {
  padding: 20px 5rem 20px 20px;
}
.single-property-contacts .single-property-contacts-wrapper .single-property-contacts-header > * {
  font-size: 28px;
  margin: 0;
}
.single-property-contacts .single-property-contacts-wrapper .single-property-contacts-header:hover > * {
  color: #0a0a0a;
}
.single-property-contacts .single-property-contacts-wrapper .single-property-contacts-header {
  text-decoration: none;
}

.single-property-contacts .single-property-contacts-wrapper .contact-info-list-item .contact-info-list-item-content {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 12px;
}
.single-property-contacts .single-property-contacts-wrapper .contact-info-list-item .contact-info-list-item-content:nth-child(even) {
  background: #fff;
}
  .single-property-contacts .single-property-contacts-wrapper .contact-info-list-item .contact-info-list-item-content .contact-info-section-title {
    flex-basis: 45%;
    font-weight: 500;
  }
  .single-property-contacts .single-property-contacts-wrapper .contact-info-list-item .contact-info-list-item-content .contact-info-section-infos {
    flex-basis: 55%;
    display: inline-flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
  }
    .single-property-contacts .single-property-contacts-wrapper .contact-info-list-item .contact-info-list-item-content .contact-info-section-infos .contact-name {
      flex-basis: 55%;
    }
    .single-property-contacts .single-property-contacts-wrapper .contact-info-list-item .contact-info-list-item-content .contact-info-section-infos .contact-phone {
      flex-basis: 45%;
    }
.single-property-contacts-wrapper .contact-info-list-item-title {
  font-size: 22px;
  margin-top: 3rem;
}
.single-property-contacts-wrapper .contact-info-list-item-subtitle {
  font-size: 18px;
  margin-top: 0;
}

.contact-phone a {
  display: block;
  position: relative;
  text-decoration: none;
  font-size: inherit;
}
.contact-phone a + a {
  margin-top: 1rem;
}
.contact-phone a:after {
  position: absolute;
  top: 2px;
  right: 0;
  content: url(/wp-content/themes/yrjojahanna/img/icons/arrow_thick.svg);
  width: 10px;
  -webkit-transition: all .25s ease-out;
  -moz-transition: all .25s ease-out;
  -ms-transition: all .25s ease-out;
  -o-transition: all .25s ease-out;
  transition: all .25s ease-out;
}
.contact-phone a:hover:after {
  right: -10px;
}




/* Artikkelilohko (Latest Block) */

.latest-block-wrapper {
  padding: 6rem 0;
}
.latest-block-title > * {
  margin: 0 0 4rem 0;
}
.latest-block .latest-posts .post-item {
  position: relative;
  border-radius: 1.875rem;
  overflow: hidden;
  /*margin-bottom: 2rem;*/
}
.latest-block .latest-posts .post-item a {
  position: relative;
  background: #fff;
  padding: 0;
  -webkit-transition: all .25s ease-out;
  transition: all .25s ease-out;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.latest-block.bg-white .latest-posts .cell {
  -webkit-box-shadow: 0 0 20px 0 rgba(0,0,0,0.1);
  -moz-box-shadow: 0 0 20px 0 rgba(0,0,0,0.1);
  box-shadow: 0 0 20px 0 rgba(0,0,0,0.1);

  -webkit-transition: all .125s ease-out;
  transition: all .125s ease-out;
}
.latest-block .latest-posts a {
  padding: 0;
}

.latest-block .post-thumbnail {
  position: relative;
  display: inline-flex;
  width: 50%;
  min-height: 20rem;
}
.latest-block .post-thumbnail-mobile {
  display: none;
  width: 100%;
}
.latest-block .post-thumbnail .post-image-mask {
  position: absolute;
  top: -30%;
  right: -1px;
  height: 160%;
  width: auto;
  filter: drop-shadow(-6px 1px 3px #00000010);
}
.latest-block .latest-posts .post-info {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--title-font);
  padding: 3rem 1.5rem 3rem 3rem;
  /*padding: 3rem 1.5rem;*/
  width: 50%;
}


.latest-block .latest-posts .post-info,
.latest-block .latest-posts .post-info p,
.latest-block .latest-posts .post-info ul li {
  font-size: 1.125rem;
  line-height: 1.4;
}
/*.latest-block .latest-posts .post-thumbnail {
  width: 100%; 
  height: 16rem;
  border-radius: 1rem 1rem 0 0;
}*/
.latest-block .latest-posts .post-thumbnail img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  /* max-height: 20rem; */
}
.latest-block .latest-posts .post-image-mask image {
  width: 100%;
  height: 100%;
}



.latest-block .posts-link-wrapper {
  position: relative;
}

.latest-all-link-wrapper {
  display: flex;
  justify-content: center;
  padding: 1em 0;
}
.latest-all-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.latest-all-wrapper a {
  color: var(--main-color);
  display: inline-flex;
  align-items: center;
  font-size: 1.6875rem;
  padding: 2em 0 0 0;
  margin: 0;
}

.post-info .post-date {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: #616161;
  margin-bottom: 1rem;
}
.post-info .post-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sec-color);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.post-info .post-link {
  display: flex;
  margin-bottom: 0;
}
.post-info .post-link .link-text {
  color: var(--main-color);
  font-size: 1.25rem;
  font-weight: 600;
}
.post-info .post-link .arrow-svg {
  width: 50px;
  height: 32px;
  -webkit-transition: var(--transition);
  -moz-transition: var(--transition);
  transition: var(--transition);
}
.post-info .post-link .arrow-svg svg {
  width: 12px;
}

.post-item a:hover .arrow-svg {
  transform: translateX(10px);
}

/* Mobiilit */
@media all and (max-width: 1500px) {
  .post-info .post-date {
    font-size: 1rem;
  }
  .post-info .post-title,
  .post-info .post-link .link-text {
    font-size: 1.125rem;
  }
  .post-info .post-link .arrow-svg {
    width: 42px;
    height: 29px;
  }
  .post-info .post-link .arrow-svg svg {
    width: 10px;
  }
  .post-item a:hover .arrow-svg {
    transform: translateX(6px);
  }
}
@media all and (max-width: 1200px) {
  .latest-block .latest-posts .post-item a {
    flex-direction: column;
  }
  .latest-block .latest-posts .post-info {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
  .latest-block .post-thumbnail {
    display: none;
  }
  .latest-block .post-thumbnail-mobile {
    display: block;
    margin-top: -40%;
    margin-left: 2.5rem;
  }
  .latest-block .latest-posts .post-info {
    width: 100%;
  }
}

@media all and (min-width:1201px) {
  .latest-block .latest-posts .post-thumbnail img {
    max-height: 20rem;
  }
}





/* YKSITTÄINEN LIITETIEDOSTO */
.single-attachment .attachment-title {
  width: fit-content;
  margin: 0 auto;
  padding: 4rem 0;
  text-align: center;
}
.single-attachment .attachment-title .date {
  display: block;
  text-align: left;
  font-size: 1.5rem;
  margin-top: 1.5rem;
}


/* YKSITTÄINEN ARTIKKELINÄKYMÄ */

.single-post .diamond-header .hero-title .entry-title {
  font-size: 3rem;
}
.single-post .entry-meta {
  position: absolute;
  top: 100%;
  margin-top: 2rem;
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
}
.single-post .diamond-header .diamond-shape-mobile {
  display: none;
  visibility: hidden;
}

.single-post .nav-links div a {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.single-post .nav-links .nav-next a {
  justify-content: flex-end;
}
.single-post .nav-links div a .nav-subtitle {
  -webkit-transition: all .125s ease-out;
  transition: all .125s ease-out;
}
.single-post .nav-links .nav-previous a:hover .nav-subtitle {
  transform: translateX(-0.5rem);
}
.single-post .nav-links .nav-next a:hover .nav-subtitle {
  transform: translateX(0.5rem);
}

@media all and (max-width: 1500px) {
  .single-post .diamond-header .hero-title .entry-title {
    font-size: 2.5rem;
  }
}
@media all and (max-width: 1200px) {
  .single-post .diamond-header .hero-title .entry-title {
    font-size: 2.25rem;
  }
  .single-post .entry-meta {
    margin-top: 1rem;
  }
}
@media all and (max-width: 800px) {
  .single-post .diamond-header .hero-title .entry-title {
    font-size: 1.5rem;
    text-align: left;
  }
  .single-post .entry-meta {
    font-size: 1.25rem;
  }
  .single-post .diamond-header .diamond-shape-mobile {
    display: block;
    visibility: visible;
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-top: -1.5rem;
    padding-left: 1.5rem;
    transform: translatey(7rem);
  }
  .single-post .diamond-header .diamond-shape-mobile image {
    width: 100%;
    height: 100%;
  }
}








/***   Pre Footer   ***/

.pre-footer-block {
  background: #FFF !important;
	color: #222222;
}
  .pre-footer-block ::selection {
    background-color: #22222280;
  }
.housecomb-container svg {
  /* position: absolute; */
  left: 0;
  top: 0;
  margin-top: -22.5%;
  margin-bottom: 28px;
  width: 150%;
}
img.prefooterimg1 {
    padding-right: 80px;
    padding-top: 80px;
}
p.pre-footer-block-additional-text {
  margin-top: 44px;
}
.pre-footer-block-logos-container {
  align-items: center;
  margin-top: 76px;
}

.pre-footer-block .pre-footer-title {
    margin-top: 0;
}
.pre-footer-block .pre-footer-block-col-1 {
    align-self: center;
    padding: 70px 0;
}

.pre-footer-block .pre-footer-block-single-logo-link img {
  -webkit-transition: var(--transition);
  -moz-transition: var(--transition);
  transition: var(--transition);
}
.pre-footer-block .pre-footer-block-single-logo-link:hover img {
  opacity: 0.6;
}

@media screen and (max-width: 64em) {
  .pre-footer-block-wrapper {
    padding: 0 0 0 20px;
  }
  .pre-footer-block .pre-footer-title {
    font-size: 24px;
  }
  .pre-footer-block .pre-footer-description {
    font-size: 16px;
  }
  .pre-footer-block-logos-container {
    margin-top: 40px;
  }
}
@media screen and (max-width: 39.9375em) {
  .housecomb-container svg {
      margin-left: -25%;
  }
  .pre-footer-block .pre-footer-block-col-1 {
    padding: 16px 0 47px 0;
  }
  .pre-footer-block-wrapper {
    padding: 0;
    text-align: center;
  }
  .pre-footer-block-logos-container {
      margin-top: 24px;
      justify-content: center;
  }
  .pre-footer-block-wrapper {
    padding: 0;
  }
}




/***   Footer Block   ***/

.footer-block {
  background: #590c34;
  padding: 6rem 0;
}

.footer-block .footer-block-col {
  margin-bottom: 0;
}
.footer-block .footer-block-col a:last-of-type {
  margin-bottom: 0;
}
.footer-block-col .cell {
  padding-right: 1rem;
}
.footer-block-col div + div {
  margin-top: 3rem;
}

/* Link List */
.footer-block .link-list {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}
.footer-block .link-list-title {
  font-family: var(--title-font);
  margin-top: 0;
}
.footer-block .link-list-title,
.footer-block .footer-text {
  margin-bottom: 2.75rem;
}
.link-list a.link-item {
  margin-bottom: 20px;
  line-height: 1;
}
.footer-block .link-item {
  display: inline-flex;
  align-items: flex-start;
  font-size: 1.25rem;
}
.footer-block .link-item img {
  padding-top: 6px;
  margin-right: 1.5rem;
}

/* Icon List */
.footer-block .icon-list {
  display: flex;
  flex-direction: column;
}
.footer-block .icon-list .link-item {
  margin-bottom: 1.5rem;
}


.footer-block .footer-block-top {
  color: var(--sec-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-height: 540px;
  height: 40vw;
}
.footer-block .footer-block-top-title {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.footer-block .footer-block-top .footer-block-text {
  text-align: center;
  width: 420px;
  z-index: 1;
}


.footer-image img {
  max-width: 274px;
  height: auto;
}
.footer-block .footer-image{
  margin-bottom: 3.25rem;
}
.footer-block .footer-image img {
    padding-right: 1rem;
    width: 100%;
    width: -moz-available;
    width: -webkit-fill-available;
    width: fill-available;
}

.footer-block-text, .footer-block-text p {
  font-size: 1.25rem;
}
.footer-block-text p:last-of-type {
  margin-bottom: 0;
}
.footer-block-bottom {
  position: relative;
}
.footer-block-bottom a:hover {
  color: #fff;
}

.footer-block.floating {
  margin-top: -6rem;
}

.footer-bottom-text, .footer-bottom-text p, .footer-bottom-text a, .footer-link-list a {
  font-size: 1.1875rem;
}
.footer-block-col-1 .footer-bottom-text,
.footer-block-col-1 .footer-bottom-text p,
.footer-block-col-1 .footer-bottom-text a,
.footer-block-col-1 .footer-link-list a {
  font-family: var(--title-font);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.6;
}

.footer-block-bottom-columns {
  display: grid;
  grid-template-columns: calc(25% - 6.25rem) 5rem calc(25% - 6.25rem) 15rem calc(25% - 6.25rem) 5rem calc(25% - 6.25rem);
  grid-template-areas: "col1 sep1 col2 sep2 col3 sep3 col4";
  padding: 3rem 6rem 5rem;
}

.footer-block-bottom-columns p {
  margin-bottom: 2rem;
}
.footer-bottom-text p {
  margin-bottom: 1rem;
}
.footer-bottom-text p:last-of-type {
  margin-bottom: 2rem;
}

.footer-block-col-1 {
  grid-area: col1;
  margin-bottom: 2rem;
}
.footer-block-col-2 {
  grid-area: col2;
  margin-bottom: 2rem;
}
.footer-block-col-3 {
  grid-area: col3;
  margin-bottom: 2rem;
}
.footer-block-col-4 {
  grid-area: col4;
  margin-bottom: 2rem;
}
.sep1 {
  grid-area: sep1;
}
.sep2 {
  grid-area: sep2;
}
.sep3 {
  grid-area: sep3;
}


@media all and (max-width: 1024px) {
  .footer-block {
    width: unset;
    padding: 60px 0;
  }
  .footer-block-col .cell {
    padding-right: 0;
  }
  .footer-block-wrapper {
    padding-left: 20px;
  }
  .footer-block .link-list-title {
    font-size: 24px;
    margin-bottom: 1rem;
  }
  .footer-block .link-item .link-text {
    font-size: 18px;
  }
  .footer-block .footer-block-col-1,
  .footer-block .footer-block-col-2 {
    margin-bottom: 83px;
  }

  footer li {
    margin-top: 0.5rem;
  }
  .footer-block-bottom-logo img {
    max-width: 270px;
  }
}
@media all and (max-width: 639px) {
  .footer-block .link-list-title,
  .footer-block .footer-text {
      margin-bottom: 24px;
  }
  .footer-block .link-item .link-text {
    font-size: 16px;
  }

  .footer-block .footer-image{
    margin-bottom: 38px;
  }
  .footer-block-wrapper {
    padding-left: 0px;
  }
  .footer-image img {
    max-width: 243px;
  }
  .footer-block .footer-block-col.footer-block-col-1 {
      margin-bottom: 83px;
  }
  .footer-block .footer-block-col {
      margin-bottom: 53px;
  }
  .footer-block .footer-block-col-4 {
    margin-bottom: 0;
  }
}




/******************************/ 
/*********   FOOTER   *********/ 
/******************************/

footer {
  position: relative;
  color: #fff;
  z-index: 1;
}

.footer-content {
  padding: 0;
}

.footer-container svg {
  width: 100%;
  height: auto;
  fill: #464646;
}
.footer-column {
  margin-bottom: 4rem;
}

footer ul li {
  line-height: 1;
  padding-bottom: 0.5rem;
}

footer .link-list-title {
  font-family: var(--body-font);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
footer .link-list a {
  font-size: 1rem;
}
.footer-link-list li a {
  font-weight: 500;
  line-height: 1.4;
}

footer .link-list-subheading {
  font-size: 1.125rem;
  display: block;
  padding-top: 2rem;
}

.footer-link {
  display: block;
  margin-bottom: 1.5em;
}

footer span, footer a {
    padding: 0;
}
footer a:visited {
    color: inherit;
}


footer .thumbnail {
  height: 46px;
  margin-bottom: 2.5rem;
}
footer .socicon .thumbnail {
  margin-bottom: 0;
  max-width: 10rem;
  height: auto;
}
footer .socicon img {
  width: 3.5rem;
  max-width: 100%;
}
.thumbnail {
    width: auto;
    height: 40px;
    border-style: none;
    box-shadow: none;
}


.three-column-footer-contact-form-container {
  background-color: #efefef;
}




/* Social Media */

.some-wrapper {
  display: inline-flex;
  margin-bottom: 3rem;
}
.some-wrapper > .large-3 {
  width: calc(25% - 1rem);
}
.some-wrapper a {
  margin: 0 0.5rem;
}
.some-wrapper a:hover {
  opacity: 0.5;
}
.socicon img {
  background: #fff;
  border-radius: 50%;
  -webkit-transition: all .125s ease-out;
  transition: all .125s ease-out;
}
.socicon:hover img {
  background: var(--main-color);
}

/* Somen jakopainikkeet */

#rb_social_share {
  display: grid;
  grid-template-columns: repeat(10, 2rem);
  grid-gap: 1.5rem;
}
#rb_social_share a {
  text-align: center;
}
#rb_social_share img, #rb_social_share svg {
  height: 2rem;
  fill: var(--sec-color);
  -webkit-transition: var(--transition);
  -moz-transition: var(--transition);
  transition: var(--transition);
}
#rb_social_share svg:hover {
  fill: var(--main-color);
}
.share-buttons {
  padding-bottom: 6rem;
}
.share-buttons .share-title {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--primary-color);
}





.footer-textarea {
  white-space: pre-line;
}


.footer-copyright {
  height: 60px;
  color: #fff;
  /*background-color: var(--main-dark-grey);*/
  display: flex;
  align-items: center;
}
.footer-copyright p {
  margin: 0;
  font-size: 1rem;
}



.three-column-footer-contact-form-container p {
  font-size: 1.125rem;
}
.three-column-footer-contact-form-container .three-column-footer-contact-form {
  padding: 3.75rem 0;
  margin-right: 0rem;
  margin-left: 0rem;
  margin: 0 auto;
}
.three-column-footer-contact-form-container .three-column-footer-contact-form .footer-center {
  left: 0;
}
footer ul {
  margin: 0;
}
footer ul:first-of-type {
  padding-top: 0;
}
footer .link-list-subheading:first-of-type {
  padding-top: 0;
}
.link-list li a {
  display: inline-block;
}
footer li {
  list-style: none;
}
.menu .button, .menu a {
  padding: .7rem 0rem;
}
.three-column-footer-contact-form-container .three-column-footer-contact-form .footer-center {
  display: block;
}
footer h5 {
  font-size: 1.688rem;
  margin-bottom: 1rem;
  margin-bottom: 3rem;
}
footer ul.link-list {
  padding-top: 0.25rem;
}
footer .footer-subtitle {
  font-size: 1.125rem;
  padding-bottom: 0.25rem;
}
footer a:hover {
  text-decoration: underline;
}
span.footer-slogan {
  font-size: 1rem;
}

  /* Hakutoiminto */

  .search-button {
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    width: 24px;
  }
    .search-button img {
      width: 20px;
    }
    .is-reveal-open .search-button img {
      opacity: 30%;
    }
  #searchbar, #mobile-searchbar {
    position: absolute;
  }
  #mobile-searchbar {
    top: 100% !important;
    width: 100%;
    max-width: 400px;
    height: 40px;
    min-height: auto;
    margin: -30px 75px !important;
  }
  .searchbar {
    top: 40px !important;
    left: auto !important;
    right: -50px;
    background: transparent;
    border: 0;
    max-width: 360px;
    padding: 0;
    overflow: inherit;
    position: absolute;
  
  }
  .searchbar .search-form {
    position: relative;
    margin-right: -0.6rem;
  }


  .searchbar .search-form [type=search] {
    background-color: #fff;
    border-radius: 5px;
    font-size: 2rem;
    height: 50px;
    padding: 5px 45px 5px 10px;
    box-shadow: 0px 0px 10px rgb(0 0 0 / 0.2) !important;
    position: relative;
    font-size: 1.3125rem;
    font-weight: 500;
  }
  .searchbar .search-submit[type=submit] {
    position: absolute;
    top: 0;
    left: auto;
    right: 0;
    height: 100%;
    width: 44px;
    padding: 0;
    text-indent: -999em;
    overflow: hidden;
    color: #fff;
    background: url('../img/search-icon-red.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px;
    box-shadow: none;
    cursor: pointer;
  }


    .searchbar .search-submit:hover {
      background-color: var(--color-primary-hover);
      background-image: url('../img/icon-search-white.svg');
      background-position: center;
      background-repeat: no-repeat;
    }


    .search-form input::placeholder {
      
    font-weight: 600 !important;
    font-size: 1.125rem !important;
    font-family: 'Avenir Next Rounded Std', Arial, sans-serif !important;

  }


  #mobile-search {
    position: relative;
    margin-right: 2rem;
  }
  
  
  .search-results-container {
    background: var(--color-1);
  }
  .search-results-container .page-header-title {
    margin: 0;
  }
  .page-header-title {
    font-size: 2rem;
    font-weight: 500;
    margin: 3rem 0 !important;
  }
  .page-header-title span {
    font-size: 2rem;
    font-weight: 600;
  }
  
  .page-header-search {
    background: #fff;
    margin: 4.375rem 0;
    box-shadow: 0px 0px 10px rgb(0 0 0 / 0.2) !important;
    border-radius: 5px;
  }
  
  .search-results-wrapper {
    padding: 0 0 8rem 0;
    justify-content: center;
  }
  .search-results-wrapper .search-results-item {
    background: #fff;
    margin: 0;
  }
  .search-results-item p:last-child,
  .search-results-item ul:last-child {
    margin-bottom: 2.5rem;
  }
  
  /* .search-results-wrapper .entry-wrapper {
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
  } */
  .search-results-wrapper .entry-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0rem 0 0rem 0;
    align-self: center;
  }

  
  .search-results-wrapper .btn {
    padding: 0.75rem 1.4rem 0.75rem 1.4rem;
  }
      .search-results-wrapper .btn .arrow-svg {
        margin-left: 1.25rem;
      }
          .search-results-wrapper .btn:hover .arrow-svg {
            transform: translateX(10px);
          }
  
  .search-results-wrapper .edit-link {
    display: none;
  }
  
  .search-form {
    display: flex;
  }
  .search-form [type=search] {
    border: none;
    border-radius: 5px 0 0 5px;
    box-shadow: 0 0 10px rgb(0 0 0 / 0.2);
    font-size: 1.125rem;
    font-weight: 600;
    padding: 2rem 1.5rem;
    -webkit-appearance: none;
    -webkit-box-shadow: 0px 0px 10px rgb(0 0 0 / 0.2);
  }
  .search-form label {
    display: inline-flex;
    align-items: center;
    flex: 100%;
  }
  .search-form input[type=submit] {
    background: var(--main-color);
    color: var(--alt-color);
    border: 0;
    border-radius: 0;
    box-shadow: 0 0 10px rgb(0 0 0 / 0.2) ;
    -webkit-appearance: none;
    -webkit-box-shadow: 0px 0px 10px rgb(0 0 0 / 0.5);
    font-size: 1.125rem;
    font-family: 'Avenir Next Rounded Std', Arial, sans-serif !important;
    font-weight: 600;
    line-height: 1;
    padding: 1rem 2.5rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
  }
  .search-form input[type=submit]:hover {
    background-color: var(--main-hover);
  }
  
  .search-results-item .search-category {
    width: 160px;
    align-self: center;
  }
  
  .search-category-wrapper {
    display: flex;
    background: var(--color-primary);
    color: #fff;
    position: relative;
    width: 200px;
    margin-top: 20px;
    margin-left: -10px;
  }
      .search-category-wrapper:before {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 0;
        height: 0;
        border-top: 3px solid #000;
        border-right: 5px solid #000;
        border-bottom: 3px solid transparent;
        border-left: 5px solid transparent;
      }
  
  .search-category-wrapper img {
    height: 26px;
    position: absolute;
    top: 5px;
    left: 5px;
  }
  .search-category-name {
    color: #616160;
    font-family: var(--title-font);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: start;
    text-transform: capitalize;
    align-self: center;
  }
  
  .search-field {
    margin: 0;
  
  }
  
  .border-article {
    border-bottom: 1px solid #b0b0b0 !important;
    padding: 1.25rem 0px;  
}

  .text-decoration {
    font-weight: 600 !important;
    font-size: 1.25rem !important;
    font-family: 'Avenir Next Rounded Std', Arial, sans-serif !important;
    
  }
  /* .align-center {
    align-items: center !important;
  } */

  .text-decoration:after {

  }
  /* .entry-wrapper-display {
    display: flex !important;
    justify-content: space-between;
  } */
  


  .content-container form {
    margin-top: 3rem !important;
  }







/*******************************************************/
/*******************************************************/
/***   RESPONSIVE STYLES   ***/





/**********     1500px     **********/

@media screen and (max-width: 93.75em) {

  h1 { font-size: 3.5rem; margin: 3rem 0; }
  h2 { font-size: 3rem; margin: 2rem 0 1rem 0; }
  h3 { font-size: 2.5rem; margin: 2rem 0 1.25rem 0; }
  h4 { font-size: 2rem; margin: 1.75rem 0 1rem 0; }

  .width-content {
    margin: 0 3rem;
  }


  thead th {
    font-size: 1.25rem;
  }

  .table-block thead {
    font-size: 1.25em;
  }
  .table-block thead th {
    padding: 0.75rem 1.25rem;  
  }
  .table-block td {
    font-size: 1em;
    padding: 0.75rem 1.25rem;
  }
  .table-block td p,
  .table-block td a {
    font-size: 1em;
  }

  .text-block-link a {
    font-size: 1.25rem;
  }

  .btn {
    font-size: 1.25rem;
  }
  .text-block-button .text-block-link-arrow {
    margin-left: 1rem;
  }
  .btn .link-arrow .arrow-svg {
    width: 1.25rem;
    height: 1.75rem;
  }
  .single-release-buttons .btn {
    font-size: 1.25rem;
  }

  .release-title {
    font-size: 1.2rem;
  }
  .latest-block .latest-releases .latest-release-info,
  .latest-block .latest-releases .latest-release-info p {
    font-size: 1rem;
  }
  .latest-block .latest-releases .latest-release-thumbnail {
    height: 14rem;
  }


  .video-block h2 {
    margin: 0.5rem 0 1.25rem 0;
  }
  .video-block-lead, .video-block-date, .video-block .text-block-text {
    font-size: 1rem;
  }
  .video-block .text-block-button {
    margin-top: 2rem;
  }



  #primary-menu a {
    padding: 0 1.25rem;
  }
  #primary-menu li a {
    font-size: 1.125rem;
  }
  nav#secondary-navigation a {
    font-size: 1rem;
  }
  .nav-sub-second-mega-sub {
    width: calc(100vw - 8rem);
  }
  #primary-menu .nav-sub-second-mega li a {
    font-size: 1.125rem;
  }
  #primary-menu .nav-sub-second-mega .nav-sub-third li a {
    font-size: 1rem;
    padding-bottom: 0.6rem;
  }
  #primary-menu ul.nav-sub-third {
    margin-top: 1rem;
  }
  .nav-sub-second a:after, .nav-sub-second .nav-sub-third a:after, #secondary-menu ul.sub-menu a:after {
    width: 12px;
    height: 12px;
  }
  main#primary {
    /* margin-top: 120px;     used with topmenu */
    margin-top: 80px;
  }
  .main-navigation, .primary-menu-row {
    height: 80px;
  }
  .primary-menu-item:hover .nav-sub-second-mega .nav-sub-second {
    top: 80px;
  }
  .nav-sub-second-mega-sub a:hover:after {
    /*transform: rotate(-90deg) translateY(1rem) translateX(0rem);*/
    transform: rotate(0deg) translateY(0.25rem) translateX(1rem);
  }
  .nav-sub-second a:hover:after {
    /*transform: rotate(-90deg) translateY(1rem) translateX(0rem);*/
    transform: rotate(0deg) translateY(0.25rem) translateX(1rem);
  }
  #secondary-menu ul.sub-menu a:after {
    transform: rotate(-90deg) translateY(0rem) translateX(-0.2rem);
  }
  #secondary-menu ul.sub-menu a:hover:after {
    transform: rotate(-90deg) translateY(1rem) translateX(-0.2rem);
  }

  .imageshape {
    padding-bottom: 4rem;
  }


  .facetwp-custom .fs-label-wrap .fs-label {
    font-size: 1.25rem;
  }
  .facetwp-custom .fs-option-label {
    font-size: 1rem;
  }


  .download-svg svg {
    width: 2.25rem;
  }

  .persons-block-wrapper {
    margin-top: 2rem;
  }
  .person-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  .person-title, .person-tel a, .person-email a {
    font-size: 1rem;
  }

  .search-form {
    margin: -25px 0;
  }


}



/**********     1300px     **********/
@media screen and (max-width: 81.25em) {
  .footer-block-bottom-left,
  .footer-block-bottom-right {
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
    grid-gap: 1rem;
  }
  .footer-block-col-2:before, .footer-block-col-4:before {
    display: none;
  }
  .footer-block-text, .footer-block-text p {
    font-size: 1rem;
  }
}




/**********     1200px     **********/

@media screen and (max-width: 74.9375em) {

  h1 { font-size: 3rem; margin: 3rem 0; }
  h2 { font-size: 2rem; margin: 2rem 0 1rem 0; }
  h3 { font-size: 1.75rem; margin: 2rem 0 1.25rem 0; }
  h4 { font-size: 1.5rem; margin: 1.75rem 0 1rem 0; }

  .text-block-lead, .text-block-lead p, .text-block-lead a {
    font-size: 1.25rem;
  }

  thead th {
    font-size: 1.25rem;
  }
  tbody td {
    font-size: 1rem;
  }

  .width-narrow {
    max-width: 45em;
  }

  .title-bar {
    background: transparent;
    text-align: right;
    display: block;
    padding: 0;
  }
  .title-bar .menu-icon {
    margin-left: 0;
    margin-right: 0;
  }
  .menu-icon:hover::after {
    background: #464646;
    -webkit-box-shadow: none;
    box-shadow: none;
    background-color: #464646;
  }
  .menu-icon:after {
    display: none;
  }
  .title-bar button {
    visibility: visible;
    display: block;
    background-repeat: no-repeat;
    width: 35px;
    height: 25px;
    padding: 0;
    border: 0;
    position: relative;
    background: transparent;
  }
  .title-bar button div {
    visibility: visible;
    display: block;
    text-indent: -9999px;
    background-repeat: no-repeat;
    width: 35px;
    height: 5px;
    background-color: var(--main-color);
    margin: 10px 0;
    transition: .4s;
    transition-property: background-color,transform;
    padding: 0;
    border: 0;
    border-radius: none;
    border-radius: 10px;
  }
  .title-bar button.active div {
    height: 0;
    z-index: 9;
    top: 0;
  }
  .title-bar button div:before {
    /*top: -10px;*/
    top: 0;
    position: absolute;
    content: '';
    display: block;
    width: 35px;
    height: 5px;
    background-color: var(--main-color);
    transition-property: background-color,transform;
    transition-duration: .3s;
    border-radius: 10px;
  }
  .title-bar button div:after {
    /*top: 10px;*/
    position: absolute;
    bottom: 0;
    content: '';
    display: block;
    width: 35px;
    height: 5px;
    background-color: var(--main-color);
    transition-property: background-color,transform;
    transition-duration: .3s;
    border-radius: 10px;
    -webkit-box-shadow: none;
    box-shadow: none;
  }
  .title-bar button.active,
  .title-bar button.active div {
    height: 0;
    z-index: 9;
    top: -10px;
  }
  .title-bar button.active div:before {
    top: 8px;
    position: absolute;
    content: '';
    display: block;
    background-color: #ca4d28;
    transition-property: background-color,transform;
    transition-duration: .3s;
    transform: rotate(45deg);
  }
  .title-bar button.active div:after {
    top: 8px;
    position: absolute;
    content: '';
    display: block;
    background-color: #ca4d28;
    transition-property: background-color,transform;
    transition-duration: .3s;
    transform: rotate(-45deg);
  }

  #primary-menu.menu-mobile {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
    height: 100%;
  }
  .main-navigation, .primary-menu-row {
    height: 60px;
  }
  .top .primary-menu-row {
    height: 60px;
  }
  main#primary {
    /*margin-top: 100px;      used with topmenu */
    margin-top: 60px;
  }
  .custom-logo {
    width: 220px;
  }
  .main-navigation.menu-desktop {
    display: none;
  }
  .menu-mobile {
    display: block;
  }
  .main-navigation ul {
    display: block;
  }
  #primary-menu-mobile li,
  #primary-menu-mobile a {
    -webkit-tap-highlight-color:  rgba(255, 255, 255, 0); 
  }
  ul#primary-menu-mobile {
    position: fixed;
    top: 140px;
    left: 0;
    width: 100%;
  }
  #primary-menu-mobile li {
    display: block;
  }
  #primary-menu a {
    height: unset;
    display: block;
  }
  ul#primary-menu-mobile {
    position: fixed;
    /*top: 100px;       used with topmenu */
    top: 60px;
    background-color: #f7f7f7;
    padding: 2rem;
  }
  .top ul#primary-menu-mobile {
    position: fixed;
    overflow: auto;
    padding-bottom: 4rem;
    top: 60px;
  }
  #primary-menu li a {
    font-size: 1.25rem;
    padding: 0 0 2rem 0;
  }
  .accordion-menu .is-accordion-submenu-parent:not(.has-submenu-toggle)>a::after {
    display: inline-block;
    width: 0;
    height: 0;
    border: 0;
    content: '+';
    border-bottom-width: 0;
    border-top-style: solid;
    border-color: unset;
    position: absolute;
    top: 0;
    margin-top: 0px;
    margin-left: 0.5rem;
    right: unset;
  }
  .accordion-menu .is-accordion-submenu-parent[aria-expanded=true]>a::after {
    -webkit-transform: rotate(0);
    -ms-transform: rotate(0);
    transform: rotate(0);
    content: '-';
  }
  #mobile-menu li , #mobile-menu ul {
    margin-bottom: 0;
    margin-left: 0;
  }
  #mobile-menu ul.submenu {
    margin-left: 1rem;
  }
  #mobile-menu ul.submenu {
    margin-left: 1rem;
    margin-bottom: 1rem;
  }
  #mobile-menu ul.submenu li a {
    font-size: 1rem;
    text-transform: none;
    padding: 0 0 1.25rem 0px;
  }
  #mobile-menu  ul.submenu ul.submenu li a {
    font-size: 0.8rem;
    text-transform: none;
    padding: 0 0 1rem 0px;
  }
  #primary-menu li:hover {
    background: unset;
  }
  #mobile-menu .current-menu-item > a { text-decoration: underline; }

  .imageshape .image-block .imageshape-container {
    -webkit-mask-position: center;
    mask-position: center;
    webkit-mask-position: center;
  }
  .imageshape .text-with-image-block-text-wrapper-content {
    padding-right: 4rem;
  }

  .download-svg svg {
    width: 2rem;
  }

  .job-list-title {
    font-size: 1rem;
  }





  .footer-block .footer-block-top-title {
    font-size: 1.25rem;
  }

  .footer-block.floating {
    margin-top: 0;
  }
  .footer-block .footer-block-top {
    margin: 0;
    background-color: var(--alt-color);
  }
  .footer-block .footer-block-top .footer-block-text {
    width: 500px;
    padding: 4rem 0;
  }
  .footer-block-top p {
    line-height: 1.4;
  }

  .footer-block-bottom-logo img {
    max-width: 30%;
    height: auto !important;
  }

  .footer-bottom-text, .footer-bottom-text p, .footer-bottom-text a, .footer-link-list a {
    font-size: 1rem;
  }

}



/**********     640px   -   1200px     **********/

@media screen and (min-width: 40em) and (max-width: 74.9375em) {
  .grid-margin-x>.medplus-6 {
    width: calc(50% - 1.875rem);
  }
  .some-wrapper > .medplus-2 {
    width: calc(16.66% - 1rem);
    margin: 0 0.5rem;
  }
  
}



/**********     1024px     **********/

@media screen and (max-width: 63.9375em) {

  h1 {
    font-size: 2.5rem;
  }

  .height-full-flow {
    height: 120vh;
    max-height: 1024px;
  }
  header.height-half {
    height: 50vw;
    min-height: 100%;
  }

  .grid-x>.medium-6.video-block-image {
    width: 100%;
    min-height: 21rem;
  }

  .imageshape {
    padding-top: 4rem;
  }
  .imageshape .image-block {
    min-height: 32rem;
    width: 80%;
    margin:0 auto;
  }
  .imageshape .text-with-image-block-text-wrapper {
    margin: 4rem 0;
  }
  .imageshape .text-with-image-block-text-wrapper-content {
    padding: 0;
  }
  .imageshape .large-order-2 .text-with-image-block-text-wrapper {
    padding: 0;
  }

  .page-block.text-with-image-block.bg-image {
    padding-bottom: 0;
  }

  .video-block .video-block-container .cell:first-child {
    border-radius: 1.875rem 1.875rem 0 0;
  }
  .video-block .video-block-container .cell:nth-child(2) {
    border-radius: 0 0 1.875rem 1.875rem;
  }
  .video-reveal-reveal {
    padding: 2rem;
  }
  .video-reveal-reveal iframe {
    height: 50vw;
    width: 80vw;
  }

  .release-title {
    font-size: 1rem;
  }
  .release-info {
    font-size: 0.85rem;
  }

  .single-releases .entry-title {
    font-size: 2em;
  }
  .release-download-button {
    font-size: 1.25em;
    padding: 1.5rem 2rem 1.5rem 2.5rem;
  }

  .release-list .release-item, .release-list-alt .release-item {
    position: relative;
    padding: 1.5rem 1rem 1.5rem 2rem;
  }
  .release-list .arrow-svg svg {
    max-height: 1.25rem;
  }

  .table-block-table {
    margin: 0;
  }

  .facetwp-custom .fs-option {
    padding: 0.5rem 0;
  }
  .facetwp-custom .fs-label-wrap .fs-label {
    font-size: 1.25rem;
    padding: 19px 2rem 20px 1.5rem;
  }
  .facetwp-custom .fs-option-label {
    font-size: 1rem;
  }
  .facetwp-custom .facetwp-facet {
    margin-bottom: 1rem;
    line-height: 1;
  }
  .persons-block-filters .facetwp-facet-haku {
    margin-bottom: 1.75rem;
  }
  .facetwp-custom-job .facetwp-icon {
    left: 1rem;
  }
  .facetwp-custom .facetwp-icon:before {
    width: 20px;
    background-size: 20px 20px;
  }
  .facetwp-custom input[type="text"] {
    font-size: 1.25rem;
    padding: 1.9rem 2rem 1.9rem 3.5rem;
  }
  .facetwp-facet-job_portal_location_search input[type="text"] {
    background-position: 14px 50%;
    background-size: 26px 26px;
  }
  .facetwp-custom ::placeholder, .facetwp-custom :-ms-input-placeholder, .facetwp-custom::-webkit-input-placeholder, ::placeholder {
    font-size: 1.25rem;
  }
  .facetwp-search:focus::placeholder {
    font-size: 1.25rem;
  }
  ::placeholder {
    font-size: 1.25rem;
  }

  .persons-block-wrapper-single .person-image img {
    max-width: 70%;
  }
  .persons-block-wrapper-single-item .persons-block-item:first-of-type {
    padding: 3rem 0 1.5rem 0;
  }
  .persons-block-wrapper-single-item .persons-block-item {
    padding: 0 0 1.5rem 0;
  }

  .cell.facetwp-reset-button {
    position: inherit;
    right: 0;
    left: 1rem;
    top: 1rem;
  }
  .facet-reset-wrapper {
    display: flex;
    align-items: center;
  }
  .facet-reset-text {
    font-size: 1.25rem;
    margin-left: 0.75rem;
    padding-bottom: 0.1rem;
  }

}



/**********     1000px     **********/

@media screen and (max-width: 62.5em) {

  .width-narrow {
    max-width: 100%;
  }
  .width-content, .width-narrow {
    margin: 0 0.5rem;
  }
  .latest-block-wrapper .width-narrow {
    margin: 0;
  }

  thead th {
    font-size: 1rem;
  }


  /* Yksittäisten julkaisujen taulukot */
  
  .single-releases table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border: 0;
  }
  .single-releases table tbody {
    display: table;
    width: 100%;
  }


  .footer-block-bottom-logo {
    padding: 5rem 4rem 0;
  }
  .footer-block-bottom {
    background-position: center 10rem;
  }
  
}



/**********     639px     **********/

@media screen and (max-width: 39.9375em) {

  h1 { font-size: 2rem; margin: 2rem 0; }
  h2 { font-size: 1.75rem; margin: 1.75rem 0 1.5rem 0; }
  h3 { font-size: 1.5rem; margin: 1.75rem 0 1rem 0; }
  h4 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem 0; }

  .text-block-lead, .text-block-lead p, .text-block-lead a {
    font-size: 1.3rem;
  }

  .single-post .entry-meta {
    font-size: 1rem;
  }

  .text-block-link a {
    font-size: 1rem;
  }

  .hero-flow {
    bottom: -1rem;
  }
  .height-full-flow {
    height: 80vh;
  }
  .height-full-flow .hero-title-wrapper {
    height: calc(100vh - 230px);
    position: relative;
    max-height: 950px;
  }
  .hero-button {
    margin-top: 2.5rem;
  }

  .btn {
    font-size: 1.125rem;
  }

  .release-title {
    font-size: 1rem;
  }
  .single-releases .entry-title {
    font-size: 1.5em;
  }
  .button-releases {
    font-size: 1.2em;
    margin: 0.5em 0;
  }

  .text-block-lead, .font-size-lead.text-block-link a {
    font-size: 1.25em;
  }
  .logo-block-wrapper {
    margin: 0 2rem;
  }
  .text-block-title, .text-block-text, .text-block-lead, .text-block-link, .persons-block-wrapper-single-item {
    margin: 0;
  }

  .hero-arrow .arrow-svg {
    width: 50px;
    height: 50px;
    border: 3px solid #fff;
  }
  .grid-x>.medium-6.video-block-image {
    width: 100%;
    min-height: 14rem;
  }
  .persons-block-filters .facetwp-facet-haku {
    margin-bottom: 1rem;
  }
  .persons-block .persons-block-item {
    margin-bottom: 3rem;
  }
  .facetwp-custom .facetwp-facet {
    margin-bottom: 0.8rem;
  }
  .page-breadcrumb {
    margin: 4rem 2rem;
  }
  .page-ul-breadcrumb {
    flex-wrap: wrap;
  }
  .page-breadcrumb li {
    margin-bottom: 0.25rem;
  }
  .page-breadcrumb .seperator .arrow-svg {
    width: 11px;
    margin: 0 0.75rem;
    height: auto;
  }
  .page-breadcrumb li:last-child {
    max-width: calc(100vw - 4rem);
  }
  
  .video-block .text-with-image-block-text {
    padding: 2rem;
  }
  a.video-reveal {
    max-width: 100%;
  }

  /** Job Single Mobile **/
  .job-single-template {
    padding-top: 2rem;
  }
  .single-job_vacancy .job-single-sidebar {
    margin-bottom: 2rem;
  }
  .job-single-info {
    font-size: 1rem;
    margin: 3rem 0rem 2rem 0rem;
  }
  .job-single-title h1 {
    font-size: 1.5rem;
    margin-top: 0;
    line-height: 1.25;
  }
  .job-single-content, .job-single-content p, .job-single-content ul li {
    font-size: 1rem;
  }
  .job-single-hero-logo {
    width: 150px;
  } 
  .job-single-hero {
    border-radius: 1rem;
    margin-bottom: 2rem;
    max-height: 300px;
  }
  .job-single-mask {
    border-radius: 1rem;
  }
  .job-single-hero-wrapper {
    padding: 1rem;
  }


  .footer-block-bottom-logo {
    padding: 4rem 2rem 0;
  }
  .footer-block-bottom-columns {
    padding: 2rem 2rem 3rem;
  }
  .footer-block .footer-block-top .footer-block-text {
    width: 100%;
    padding: 3.125rem 2rem;
  }
  .footer-block-bottom {
    background-size: 300%;
    background-position: center 8rem;
  }
  #mobile-searchbar {
    top: 100% !important;
    width: 100%;
    max-width: 250px;
    height: 40px;
    min-height: auto;
    margin: -30px 75px !important;
  }

  .border-article {
    padding: 1.5rem 0px 0.5rem 0;
  }

  .searchbar .search-form [type=search] {
    background-color: #fff;
    border-radius: 5px;
    font-size: 2rem;
    height: 50px;
    padding: 5px 45px 5px 10px;
    box-shadow: 0px 0px 10px rgb(0 0 0 / 0.2) !important;
    -webkit-appearance: none;
    -webkit-box-shadow: 0px 0px 10px rgb(0 0 0 / 0.2); 
    position: relative;
    font-size: 1.3125rem;
    font-weight: 500;
  }
}



/** Lohkojen välistykset **/
.bottom-margin-none {
  margin-bottom: 0;
}
.bottom-margin-small {
  margin-bottom: 4rem;
}
.bottom-margin-big {
  margin-bottom: 8rem;
}
.bottom-margin-last {
  margin-bottom: 16rem;
}

.top-padding-none {
  padding-top: 0;
}
.top-padding-small {
  padding-top: 4rem;
}
.top-padding-normal {
  padding-top: 6rem;
}
.top-padding-big {
  padding-top: 8rem;
}
.top-padding-last {
  padding-top: 16rem;
}

.bottom-padding-none {
  padding-bottom: 0;
}
.bottom-padding-small {
  padding-bottom: 4rem;
}
.bottom-padding-normal {
  padding-bottom: 6rem;
}
.bottom-padding-big {
  padding-bottom: 8rem;
}
.bottom-padding-last {
  padding-bottom: 16rem;
}



/****** Media Queryt : siirretty CSS-listauksen loppuun 28.6.2021 ******/


@media screen and (max-width: 93.750em) { /* < 1500px */

  .text-block .page-block-wrapper > * {
    margin: 0 4rem;
  }
  .persons-block-wrapper-single-item, .logo-block-wrapper {
    margin: 0 4rem;
  }
  .table-block .text-block-text {
    margin: 0;
  }

  .page-breadcrumb {
    margin: 4rem;
  }
  .video-block.page-block + .video-block.page-block {
    margin: 4rem 4rem;
  }
  .page-block.bg-gray,
  .jobs-block {
    margin: 0;
  }

  .searchbar .search-form {
    margin-right: -0.6rem;
  }
}



@media screen and (max-width: 75em) { /* < 1200px */
  .text-with-image-block-text-title h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  .text-with-image-block-text-wrapper {
    padding: 4rem 5rem 4rem 4rem;
  }
  .width-full .large-order-1 .text-with-image-block-text-wrapper {
    padding: 4rem 5rem 4rem 4rem;
  }
  .large-order-1 .text-with-image-block-text-wrapper {
    float: right;
    padding: 4rem 5rem 4rem 4rem;
  }
  .video-block .text-with-image-block-text {
    padding: 4rem 5rem;
  }
  .searchbar .search-form {
    margin-right: 4.75rem;
  }
  
}

@media screen and (max-width: 68.750em) { /* < 1100px */
  .text-with-image-block-arrow {
    font-size: 1rem;
    line-height: 1.25rem;
  }
  .text-with-image-block-arrow .arrow-svg {
    width: 2rem;
    height: 1.25rem;
  }
  .latest-block .latest-releases .latest-release-info {
    padding: 2rem 2rem 3.5rem 2rem;
  }
  .text-with-image-block-arrow {
    left: 2rem;
    bottom: 1.5rem;
}
  .arrow-svg svg {
    max-height: 28px;
  }
  .logoshape-links .arrow-svg svg {
    max-height: 35px;
  }
  .logoshape-links .arrow-svg {
    width: 60px;
    height: 60px;
  }
  .person-name {
    font-size: 1.5rem;
  }

  .searchbar .search-form {
    margin-right: 4.7rem;
  }
  

}

@media screen and (max-width: 62.5em) { /* < 1000px */

  .text-with-image-block-text-text, .text-with-image-block-text-ref.text-ref, .text-block-text {
    font-size: 1em;
  }
  .width-full .large-order-1 .text-with-image-block-text-wrapper {
    padding: 2rem 1.5rem 2rem 2rem;
  }

  .text-block-lead, .font-size-lead.text-block-link a  {
    font-size: 1.5em;
  }

  .searchbar .search-form {
    margin-right: 3.37rem;
  }


  .table-block-table {
    margin: 0 4rem;
  }
  .page-breadcrumb li, .page-breadcrumb li a {
    font-size: 1em;
  }
  .person-description {
    font-size: 1rem;
  }
  .video-block.page-block + .video-block.page-block, .video-block {
    margin: 2rem 2rem;
  }
  .video-block.page-block + .video-block.page-block {
    margin: 2rem 2rem;
  }
  .video-block .text-with-image-block-text {
    padding: 3rem;
  }

  .text-with-image-block + .text-with-image-block:first-of-type {
    margin: -2rem 2rem;
  }

  .imageshape {
    padding: 0 2rem;
  }

}


@media screen and (max-width: 800px) {
  .logoshape-links .arrow-svg svg {
    max-height: 23px;
  }
  .logoshape-links .arrow-svg {
    width: 40px;
    height: 40px;
  }
}

/**********     639px     **********/
@media screen and (max-width: 39.9375em) {
  .text-block .page-block-wrapper > * {
    margin: 0;
  }
  .search-results-wrapper .entry-wrapper {
    margin-bottom:1rem ;
  }
  .persons-block-wrapper-single-item, .logo-block-wrapper {
    margin: 0;
  }
  .search-results-wrapper .entry-title {
    margin: 0.25rem 0;
}

.text-decoration {
  margin-top: 1rem;
}

.searchbar .search-form {
  margin-right: 3.4rem;
}

.imported-content {
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 1.25rem;
  font-style: normal;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.imported-content img {
  display: block;
  margin-top: 1.5rem;
}


/** slick slider fix */
.image-gallery-modal .slick-slide img {
  margin: auto;
}
.image-gallery-modal .slick-track {
  display: flex !important;
  align-items: center;
}

@media all and (max-width: 1200px) {
  .bottom-margin-small {
    margin-bottom: 0;
  }
  .bottom-margin-big {
    margin-bottom: 4rem;
  }
  .bottom-margin-last {
    margin-bottom: 8rem;
  }
  .top-padding-small {
    padding-top: 0;
  }
  .top-padding-normal {
    padding-top: 3rem;
  }
  .top-padding-big {
    padding-top: 4rem;
  }
  .top-padding-last {
    padding-top: 8rem;
  }
  .bottom-padding-small {
    padding-bottom: 0;
  }
  .bottom-padding-normal {
    padding-bottom: 3rem;
  }
  .bottom-padding-big {
    padding-bottom: 4rem;
  }
  .bottom-padding-last {
    padding-bottom: 8rem;
  }
}

}