@charset "UTF-8";

.hidden {
  display: none;
}

.screen-reader {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}
.screen-reader:focus {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}

.page-header.image-off .cell {
  background-position: center top -155px, center;
  background-repeat: no-repeat;
  background-size: 7096px, cover; }

.page-header.image-on .cell, .page-template-osion-paasivu .page-header.image-on .cell, .archive .page-header.image-off .cell,
.search-results .page-header.image-off .cell,
.error404 .page-header.image-off .cell, .home .page-header .cell {
  background-position: top;
  background-repeat: no-repeat;
  background-size: 7096px, cover; }

.cookies-accepted .ninchat-embed-container {
  bottom: 0px !important;
}

@media screen and (min-width: 600px) {
	.ninchat-minimized {
	  /*width: 230px !important;*/
	}
}


.ninchat-minimized .ninchat-close {
  display: none !important;
}

#ninchat-iframe.ninchat-embed-container > .ninchat-titlebar {
  background: #e27e4a !important;
}

html:lang(fas) * #ninchat-iframe.ninchat-embed-container > .ninchat-titlebar > .ninchat-titlebar-toggle,
html:lang(prs) * #ninchat-iframe.ninchat-embed-container > .ninchat-titlebar > .ninchat-titlebar-toggle,
html:lang(ar) * #ninchat-iframe.ninchat-embed-container > .ninchat-titlebar > .ninchat-titlebar-toggle {
  padding: 0 20px 0 15px !important;
}

.cookies-not-set .ninchat-embed-container {
  bottom: 80px !important
}

#listenButton1 {
  -webkit-transition: all .4s ease-out;
  -moz-transition: all .4s ease-out;
  -o-transition: all .4s ease-out;
  -ms-transition: all .4s ease-out;
  transition: all .4s ease-out; }

/* Global Styles */
.template-name {
  background: white;
  position: fixed;
  bottom: 0px;
  left: 0px;
  color: #555;
  opacity: .1;
  font-family: courier;
  font-size: rem-calc(12); }
  .template-name:hover {
    opacity: 1; }

.grid-container {
  max-width: 85rem; }

#site-navigation {
  margin-top: .25rem; }
  #site-navigation > div > ul > li > a {
    color: #3C7279;
    font-size: 16px;
    font-weight: 700; }

.quick-exit {
  width: 70%; }
  .quick-exit ul {
    list-style: none;
    margin: 0;
    padding: 0; }
  .quick-exit li {
    display: inline-block;
    margin: .5rem 2rem 0 -.6rem; }
    .quick-exit li:before {
      color: #3C7279;
      content: "› "; }

.search-form {
  position: relative;
  padding-right: 3rem;
  padding-top: 10px;
  border-right: 1px solid #abd1d6;
  height: 40px;
  margin-right: 1rem; }
  .search-form .search-field {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #3C7279;
    box-shadow: none;
    height: 30px; }
  .search-form .search-submit {
    background-color: transparent;
    background-image: url("../img/icon-search.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border: none;
    position: absolute;
    top: 10px;
    right: 1rem;
    width: 22px;
    height: 22px;
    text-indent: -999px; }

.login-menu {
  padding-top: 12px;
  border-right: 1px solid #abd1d6;
  height: 40px;
  margin-right: 1rem;
  white-space: nowrap; }
  .login-menu ul {
    list-style: none;
    margin-left: 0; }
    .login-menu ul li {
      display: inline-block; }
  .login-menu a:before {
    content: url("../img/icon-login.svg");
    margin-right: 9px; }

.wpml-ls-legacy-dropdown {
  margin-top: 10px; }
  .wpml-ls-legacy-dropdown a {
    border: transparent;
    color: #3C7279; }

.sitelogo {
  display: block;
  margin-top: 1rem;
}

body,
.has-normal-font-size,
.has-regular-font-size {
  font-size: 18px;
}


html, button, input, optgroup, select, textarea, body {
  font-family: ff-dagny-web-pro, sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #000; }

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  font-family: ff-dagny-web-pro, sans-serif;
  font-weight: 700;
  font-style: normal;
  line-height: 1.2; }

h1, .h1 {
  font-size: 2.8125rem;
  line-height: 1.1;
  margin-bottom: 2rem; }

h2, .h2 {
  font-size: 2.3125rem; }

h3, .h3 {
  font-size: 1.5625rem; }

h4, .h4 {
  font-size: 1.3125rem; }

h5, .h5 {
  font-size: 1rem;
  color: #3C7279;
  margin-bottom: 0; }

h6, .h6 {
  font-size: 1rem; }

a {
  color: #3C7279; }
  a:visited {
    color: #3C7279; }
  a:active {
    color: #191970; }
  a:hover, a:focus {
    color: #3C7279; }

.lead {
  font-size: 100%;
  line-height: 1.6; }

.page-header.image-off .cell {
  height: 120px; }

.page-header.image-on .cell {
  height: 400px;
}

.page-header > .grid-container {
  padding: 0; }
  .page-header > .grid-container > .grid-x {
    margin: 0;
		position: relative;
	}

    .page-header > .grid-container > .grid-x > .cell {
      width: 100%;
      margin: 0; }

.page .entry-content,
.single .entry-content {
  background-color: #fff;
  padding: 2rem; }
  .page .entry-content h2, .page .entry-content h3, .page .entry-content h4, .page .entry-content h5,
  .single .entry-content h2,
  .single .entry-content h3,
  .single .entry-content h4,
  .single .entry-content h5 {
    color: #3C7279; }
  .page .entry-content h2,
  .single .entry-content h2 {
    font-size: 28px;
    margin-bottom: 2rem;
    margin-top: 3.5rem; }
  .page .entry-content h3,
  .single .entry-content h3 {
    font-size: 24px;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem; }

.page .image-on .entry-content,
.single .image-on .entry-content {
  border-top-right-radius: 30px;
  margin-top: 0rem;
}

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

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  width: 100%; }

.page-template-osion-paasivu {
  background: rgba(60, 114, 121, 0.05); }
  .page-template-osion-paasivu .page-header.image-on .cell {
    height: 400px;
    border-bottom-right-radius: 0; }
  .page-template-osion-paasivu .entry-content {
    background-color: transparent; }

.archive,
.search-results,
.error404 {
  background: rgba(60, 114, 121, 0.05); }
  .archive .entry-content,
  .search-results .entry-content,
  .error404 .entry-content {
    background-color: transparent;
    margin-top: -5rem; }
  .archive .archive-items .page-title,
  .search-results .archive-items .page-title,
  .error404 .archive-items .page-title {
    margin-bottom: 2rem; }
  .archive .archive-items .single-archive-post,
  .search-results .archive-items .single-archive-post,
  .error404 .archive-items .single-archive-post {
    width: 100%;
    margin: .5rem 0; }

.content-area.image-off .side-contacts,
.content-area.image-off .quick-links {
  margin-top: 0; }

.content-area.image-off .entry-content {
  padding-top: 0; }

.entry-content {
  position: relative; }

#listenButton1 {
  position: absolute;
  right: 2rem;
  top: 1rem;
  cursor: pointer;
  overflow: hidden;
  width: 70px;
  height: 70px;
  border: 1px solid #cee4e6;
  border-radius: 5px; }
  #listenButton1:hover {
    border: 1px solid #3C7279; }
  #listenButton1 span {
    display: none !important; }
  #listenButton1:before {
    content: url("../img/icon-listen.svg");
    width: 36px;
    height: 30px;
    position: absolute;
    top: 20px;
    left: 17px; }
  #listenButton1:after {
    /*color: $green;
		content: "Kuuntele";
		width: 80px;
		height: 20px;
		position: absolute;
		bottom: 6px;
		left: 0px;
		right: 0px;
		text-align: center;*/ }

#secondary h2 {
  margin-top: 3rem;
  color: #3C7279;
  margin-bottom: 0.5rem;
}

.page-template-osion-paasivu #secondary h2 {
  margin-top: 7rem;
}

.side-contacts {
  padding-bottom: 2rem; }
  .side-contacts h3 {
    color: #3C7279;
    font-size: 16px;
    font-weight: 700; }
  .side-contacts p {
    font-size: 16px; }

.quick-links {
  border-top: 1px solid #3C7279;
  margin-top: 3rem; }
  .quick-links li {
    border-bottom: 1px solid #3C7279; }
  .quick-links a {
    background-color: transparent;
    color: #000;
    font-size: 18px;
    display: block;
    margin: 0;
    padding: 1rem 0;
    text-align: left;
    width: 100%; }
    .quick-links a:before {
      content: "› "; }
    .quick-links a:hover {
      background-color: transparent;
      color: #000;
      text-decoration: underline; }

.some-links {
  text-align: center; }
  .some-links li {
    display: inline-block;
    padding: 1rem; }
  .some-links a {
    color: rgba(0, 0, 0, 0.5);
    font-size: 30px; }

.sticky.is-stuck .side-contacts,
.sticky.is-stuck .quick-links {
  margin-top: 50px !important; }

#main .sticky-container {
  z-index: 0 !important; }

.nav-bar {
  background: #fff; }

hr {
  border-bottom: 16px solid #3C7279;
  opacity: 0.2; }

.home .responsivevoice-button {
  right: 10px !important;
  top: 10px !important;
  width: 50px !important;
  height: 50px !important;
}

.home .responsivevoice-button:before {
  top: 10px !important;
  left: 8px !important
}

.home .home-language-switcher {
  background-color: #3C7279;
  text-align: center; }
  .home .home-language-switcher .widget {
    display: inline-flex;
    margin: .5rem; }
  .home .home-language-switcher a {
    color: #fff; }
    .home .home-language-switcher a:hover {
      text-decoration: underline; }
  .home .home-language-switcher img {
    opacity: .5;
    display: inline-flex; }

.home #secondary {
  margin-left: 0.9375rem; }

.article-list-item {
  margin-bottom: 1.875rem; }
  .article-list-item img {
    margin-bottom: 0; }
  .article-list-item .button {
    display: block;
    text-align: left; }

.front-shortcuts {
  background: rgba(60, 114, 121, 0.1);
  padding: 1.825rem 1.825rem 0 1.825rem; }
  .front-shortcuts > .grid-x > .cell {
    background: #fff;
    margin-bottom: 1.825rem;
    border: 2px solid rgba(60, 114, 121, 0.3); }
  .front-shortcuts a {
    display: block; }
  .front-shortcuts .medium-3 {
    padding: 2rem 0 2rem 2rem;
    text-align: center; }
  .front-shortcuts .medium-9 {
    padding-top: 2rem; }

@media print, screen and (max-width: 1160px) {
	.page-template-palvelut .front-shortcuts {
		margin-bottom: 3rem;
	}
	.page-template-palvelut .front-shortcuts .grid-margin-x.medium-up-2 > .cell {
	    width: calc(100% - 1.875rem);
	    width: -webkit-calc(100% - 1.875rem);
	    width: -moz-calc(100% - 1.875rem);
	}
}


@media only screen and (min-width: 992px) {
	.main-navigation ul .sub-menu .sub-menu {
	    top: 0px;
	}
}



@media print, screen and (min-width: 1161px) {
	.page-template-palvelut .front-shortcuts {
		margin-bottom: 3rem;
	}
	.page-template-palvelut .front-shortcuts .grid-margin-x.medium-up-2 > .cell {
	    width: calc(33% - 1.875rem);
	    width: -webkit-calc(33% - 1.875rem);
	    width: -moz-calc(33% - 1.875rem);
	}

	.page-template-palvelut .front-shortcuts .grid-margin-x > .medium-3 {
    width: calc(47% - 1.875rem);
	}
}

.front-news .grid-margin-x>.medium-6 {
  width: calc(50% - 1.92rem);
}

.front-news {
  padding-top: 3rem; }
  .front-news a {
    color: #000; }

span.button {
  color: #000;
  background: transparent;
  padding-left: 0;
  font-size: 1.1rem; }
span.button:hover {
    background-color: transparent;
    color: #000;
    text-decoration: underline;
}

.wp-block-quote,
.callout {
  padding: 0.9375rem 0.9375rem 0 0.9375rem;
  background: rgba(230, 127, 76, 0.1);
  border: 1px solid #e67f4c;
  margin-top: 1.875rem;
  margin-bottom: 1.875rem; }

.wp-block-quote p {
  color: #000;
  margin-bottom: 0.9375rem; }

.wp-block-quote cite {
  color: #000;
  margin-bottom: 0.9375rem;
  font-style: normal;
  text-transform: uppercase; }

body.cookies-not-set {
  padding-bottom: 57px; }

.cn-button.button {
  margin-bottom: 0;
  background: #fff;
  color: #000;
}

.cn-button.button:hover {
  opacity: 0.9;
}

.cn-close-icon {
  opacity: 1;
}

.cn-close-icon:hover {
  opacity: 0.8;
}

.cn-close-icon:after,
.cn-close-icon:before {
  background: #fff;
}

.footerwrap {
  background: rgba(60, 114, 121, 0.1); }
  .footerwrap h4, .footerwrap h5 {
    color: #3C7279; }
  .footerwrap a {
    color: #000; }
    .footerwrap a:hover {
      text-decoration: underline; }
  .footerwrap ul {
    list-style: none;
    margin-left: 0; }
    .footerwrap ul li:before {
      content: "› "; }

.crbar {
  background: #3C7279;
  color: #fff;
  padding: 0.9375rem;
  text-align: center;
  font-size: 80%; }

.crbar a {
  color: #fff;
}

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

.featured-items-block .grid-margin-x {
  margin-left: -1.9375rem;
  margin-right: -1.9375rem; }

.featured-items-block ul {
  margin-left: 0; }

.featured-items-block.columns_1 .card > a {
  display: flex;
  flex-direction: row; }

.featured-items-block.columns_1 .card .card-image {
  width: 25%;
  display: inline-flex;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover; }

.featured-items-block.columns_1 .card .card-section {
  display: inline-flex;
  width: 75%;
  flex-direction: column;
  justify-content: flex-start; }

.featured-items-block h2 {
  font-size: 24px;
  margin-bottom: 0.5rem !important;
  margin-top: 0rem !important; }

.featured-items-block p {
  color: #000; }

#sidechat {
  border: 1px solid #3C7279;
  background-color: rgba(60, 114, 121, 0.1);
  background-image: url(../img/icon-chat.svg);
  background-size: 22px;
  background-position: 1rem center;
  background-repeat: no-repeat;
  color: #3C7279;
  cursor: pointer;
  font-weight: 700;
  padding: 1.1rem 1rem 1rem 3.5rem;
  text-transform: uppercase;
  text-align: left;
  transition: all .4s ease-out;
  width: 100%; }
 #sidechat:hover {
    background-color: rgba(60, 114, 121, 0.3); }

.textwidget.custom-html-widget.chat-widget p {
  font-weight: 600;
  font-size: 0.9em;
  text-align: center;
  padding: 0;
  margin: 2px 0px; }

.textwidget.custom-html-widget.chat-widget p.chatTitle {
  text-transform: uppercase;
  margin: 1.5em 0; }

.modal {
  display: none;
  opacity: 0;
  position: fixed;
  z-index: 1;
  right: 15px;
  bottom: 0;
  overflow: auto;
  background-color: #fdfcff;
  width: 330px;
  height: 475px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  border-radius: 5px 5px 0px 0px;
  transition: all 1.3s ease;
  text-align: center;
  min-height: 430px; }

.modal-content p {
  margin: 0;
  font-weight: 400;
  font-size: 0.9em; }

.modalInfo img {
  margin-bottom: 10px; }

button#myBtn {
  background: #a834bf;
  color: #fff;
  border-radius: 50%;
  height: 60px;
  width: 60px;
  padding: 5px;
  right: 20px;
  position: fixed;
  z-index: 1;
  bottom: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  cursor: pointer; }
  button#myBtn svg#chat-icon-bubbles {
    fill: #fff; }

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  width: 100%;
  transition: all 1.3s ease;
  height: 100%; }

.modalInfo {
  padding: 30px 0; }

.modalInfo h4 {
  margin-top: 30px; }

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  margin-right: 5px; }

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer; }

.rtl button#myBtn {
  left: 20px;
  right: auto; }

.rtl .modal {
  left: 15px;
  right: auto; }

.breadcrumbs {
  margin: 0 0 0.5rem 0;
  list-style: none; }

.breadcrumb_last {
  display: none; }

@media screen and (max-width: 39.9375em) {
  .quick-exit {
    display: none; }
  .archive .entry-content,
  .search-results .entry-content,
  .error404 .entry-content {
    margin-top: 1.5rem !important;
    padding: 0.5rem !important; }
  .archive .archive-items .page-title,
  .search-results .archive-items .page-title,
  .error404 .archive-items .page-title {
    margin-bottom: 2rem; }
	.page .page-title {
		max-width: 85% !important;
	}
  .archive .archive-items .single-archive-post,
  .search-results .archive-items .single-archive-post,
  .error404 .archive-items .single-archive-post {
    width: 100%;
    margin: .5rem 0; }
  h1, .h1 {
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: 1rem; }
  .page .image-on .entry-content,
  .single .image-on .entry-content {
    border-top-right-radius: 0;
    margin-top: 1.5rem;
    padding: 0.5rem; }
  .page-header.image-on .cell {
    border-bottom-right-radius: 0;
    height: auto;
    min-height: 300px;
    background-position: left -2250px top -129px, center top;
    background-repeat: no-repeat;
    background-size: 5436px, 100%; }
  .page-header.image-off .cell {
    border-bottom-right-radius: 0;
    height: auto;
    min-height: 120px;
    background-position: left -2250px top -129px, center top;
    background-repeat: no-repeat;
    background-size: 5436px, 100%; }
  .front-news {
    margin-bottom: 0.9375em; }
  .wp-caption.alignright, .wp-caption.alignleft {
    width: 100%; }
  .page .entry-content,
  .single .entry-content {
    background-color: #fff;
    margin-top: 1.5rem;
    padding: 0.5rem; }
		.home h2,
    .page .entry-content h2,
    .single .entry-content h2 {
      font-size: 21px;
      margin-bottom: 1rem;
      margin-top: 2rem; }
    .page .entry-content h3,
    .single .entry-content h3,
		.home h3 {
      font-size: 18px;
      margin-bottom: 1rem;
      margin-top: 1.5rem; }
  .page-template-osion-paasivu .page-header.image-on .cell {
    border-bottom-right-radius: 0;
    height: auto;
    min-height: 300px;
    background-position: left -2250px top -129px, center top;
    background-repeat: no-repeat;
    background-size: 5436px, cover; }
  .page-template-osion-paasivu .entry-content {
    background-color: transparent; }
  .page-template-osion-paasivu .side-contacts,
  .page-template-osion-paasivu .quick-links {
    padding-bottom: 1.625rem; }
  .card > a {
    flex-direction: column !important; }
    .card > a .card-image {
      width: 100% !important; }
    .card > a .card-section {
      width: 100% !important; }
  .search-results .entry-content,
  .archive .entry-content {
    background-color: transparent; }
  #main #secondary {
    order: 2; }
  #main .medium-8 {
    order: 0; }
  #main #tertiary {
    order: 3; }
  .featured-items-block .grid-margin-x {
    margin-left: -0.625rem;
    margin-right: -0.625rem; }
  .home .page-header .cell {
    height: auto;
    min-height: 300px;
    background-position: left -2250px top -129px, center top;
    background-repeat: no-repeat;
    background-size: 5436px, 100%; }
  .home .page-header .content-wrapper {
    background: #fff;
    padding: 2rem;
    width: 100%;
    margin-bottom: 0;
	/*margin-top: 200px;*/ }
  .home .home-language-switcher {
    padding: 1rem; }
    .home .home-language-switcher .widget {
      display: inline-flex;
      margin: .5rem; }
    .home .home-language-switcher a {
      padding: 1rem; }
    .home .home-language-switcher img {
      opacity: .5;
      display: inline-flex; }
  #secondary {
    padding: 0 1rem 2rem; }
  .front-shortcuts {
    padding: .9rem; }
    .front-shortcuts > .grid-x > .cell {
      margin-bottom: 1rem; }
    .front-shortcuts .medium-3 {
      padding: 2rem 2rem 0 2rem; }
  .footerwrap {
    padding: 2.75rem 1rem; }
  .article-list-item {
    margin-bottom: .9375rem; }
  #listenButton1 {
    right: 0rem;
    top: 0rem;
    width: 60px;
    height: 50px; }
    #listenButton1:before {
      top: 10px;
      left: 11px; }
  body .sticky.nav-bar {
    height: 50px;
    z-index: 10; }
  .page .image-on .entry-content,
  .single .image-on .entry-content {
    border-top-right-radius: 0;
    margin-top: 2rem;
    padding: 0.5rem; }
  .page .entry-content,
  .single .entry-content {
    background-color: #fff;
    margin-top: 0.5rem;
    padding: 0.5rem; }
  .front-shortcuts .medium-9 {
    padding: 2rem 2rem 0.5rem 2rem; }
  .hentry {
    margin: 0; }
  .footerwrap {
    padding: 1rem 1rem 0px 1rem; }
  .front-news {
    padding: 1rem;
    hyphens: auto; } }

.cookies-not-set button#myBtn {
  bottom: 80px; }

.cookies-not-set #myModal {
  bottom: 70px; }

.cookie-notice-container span,
.cookie-notice-container a {
  font-size: 1rem !important;
}

/* Blocks  button */
.wp-block-button__link,
.wp-block-button__link a {
	background: #e45c26;
	color: #FFFFFF !important;
	border-radius: 10px;
	font-weight: bold;
}

@media screen and (max-width: 400px) {
  .home .responsivevoice-button {
    right: auto !important;
    top: auto !important;
    width: 50px !important;
    height: 50px !important;
    position: relative !important;
    margin-bottom: 20px !important;
  }
  .cookies-not-set #ninchat-iframe.ninchat-bottom.ninchat-embed-container {
    bottom: 200px !important;
  }
}

@media screen and (max-width: 799px) {
  #ninchat-iframe.ninchat-embed-container.ninchat-bottom {
    max-width: 100% !important;
  }
}



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

  .cookies-not-set #ninchat-iframe.ninchat-embed-container {
    bottom: 133px !important;
  }


  #site-navigation {
    margin-top: 0 !important; }
  #site-navigation .menu-container {
    padding-top: 0px;
    padding-bottom: 0px;
    margin: 0 !important; }
  #site-navigation {
    top: 0 !important;
    background: #fff !important; }
  #site-navigation.toggled {
    position: absolute;
    left: 0;
    height: 100vh !important; } }

@media screen and (min-width: 40em) {
  .wpml-ls-legacy-dropdown {
    width: 7.5em; }
  /*.grid-margin-x.medium-up-4 > .cell { width: calc(25% - 1.8755rem); }
	.grid-margin-x > .small-6 { width: calc(50% - 1.8755rem); }*/
  .front-news {
    margin-bottom: 1.875rem; }
  .footerwrap {
    padding-top: 3.75rem;
    padding-bottom: 0; }
    .footerwrap .cell {
      padding-bottom: 3.75rem; }
    .footerwrap .no-bullet {
      margin-bottom: 0; }
  .wp-caption.alignright, .wp-caption.alignleft {
    width: calc(50% - 1.875rem); }
  .wp-caption.alignright {
    margin-left: 0.9375rem; }
  .wp-caption.alignleft {
    margin-right: 0.9375rem; } }

@media screen and (max-width: 900px) {
  #secondary {
    order: 2;
    width: calc(100% - 1.25rem);
  }
  #secondary h2 {
    margin-top: 0rem !important;
  }
}

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

  .cookies-not-set .ninchat-embed-container {
    bottom: 110px !important;
  }

	#ninchat-iframe.ninchat-embed-container {
		width: 230px;
	}

  .home #main .grid-margin-x > .cell,
  .home #primary .grid-margin-x > .cell {
    /*width: 100%;*/
		height: auto;
		background-size: contain;
		background-position: center;
  }
  .home .front-shortcuts .medium-3 {
    text-align: left;
  }
  .home #main .front-news {
    padding: 1rem;
    hyphens: auto;
  }
  .home .page-header .content-wrapper {
    width: 100%;
  }
}

@media screen and (min-width: 1400px) {
  #secondary {
    margin-left: 0; }
  #tertiary {
    margin-right: 0; }
  .footerwrap > .grid-container {
    padding-left: 0;
    padding-right: 0; } }

@media screen and (min-width: 992px) and (max-width: 1314px) {
  #footer .grid-container {
    overflow: hidden; }
  #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-row {
    max-width: 900px !important; }
  body {
    overflow-x: hidden; }
  main#main {
    padding-left: 0.9375rem;
    padding-right: 0.9375rem; }
  .footerwrap {
    padding-left: 0.9375rem;
    padding-right: 0.9375rem; } }

@media screen and (max-width: 63.9375em) {
  .quick-links {
    margin-left: .9375rem;
    margin-right: .9375rem;
	}
	.grid-margin-x,
	.home #main .grid-margin-x {
		margin-left: 0rem !important;
    margin-right: 0rem !important;
	}
}

.lahjoita {
	display: none;
}

@media only screen and (max-width: 991px) {
  .site-branding.small-2.medium-2.large-1.header-logo.cell {
    width: 100% !important;
  }
  .site-branding.small-2.medium-2.large-1.header-logo.cell .sitelogo {
    width: 25%;
  }
}



@media only screen and (min-width: 992px) {

	body {
		max-width: 100rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
	}

	.grid-margin-x > .small-10.medium-10.header-menu.cell,
	.grid-margin-x > .site-branding.small-2.medium-2.large-1.header-logo.cell {
			width: 98% !important;
	}

	.metanav .quick-exit {
		margin-left: 150px !important;
		margin-top: -70px;
		width: 20%;
	}

	*:lang(prs) .metanav .quick-exit,
	*:lang(ar) .metanav .quick-exit,
	*:lang(fas) .metanav .quick-exit  {
		margin-right: 150px;
	}

	*:lang(fi) .lahjoita {
		margin-top: -90px;
    padding: 10px;
    margin-right: 20px !important;
		display: inline-block;
	}

	*:lang(fi) .lahjoita a {
		background: #3C7279;
		color: #FFFFFF;
		padding: 15px;
		border-radius: 10px;
		font-weight: 600;
	}

	*:lang(fi) .lahjoita a:hover,
	*:lang(fi) .lahjoita a:focus {
		 color: #3C7279 !important;
		 outline: medium dotted !important;
		 background: #FFFFFF !important;
	}

	ul li.menu-item-33377 {
		display: none;
	}

	.metanav .search-form {
    margin-top: -90px;
	}
	.language--switcher {
    margin-top: -130px;
		margin-right: 2rem;
	}
	.menu-container {
    padding-top: 20px;
		padding-bottom: 20px;
		max-width: 99.1rem;
	}
	body .sticky.nav-bar {
	    height: 215px;
	}
	.sitelogo {
		margin-bottom: 0rem;
	}

	.page-header.image-on .cell,
	.page-template-osion-paasivu .page-header.image-on .cell,
	.archive .page-header.image-off .cell,
	.search-results .page-header.image-off .cell,
	.error404 .page-header.image-off .cell,
	.home .page-header .cell  {
    background-size: 0px, cover;
	}
}

.page .page-title {
	max-width: 600px;
}

@media only screen and (min-width: 992px) and (max-width: 1229px) {
	body .sticky.nav-bar {
			height: 254px;
	}
}

.home .page-header .content-wrapper {
  background: #fff;
  padding: 2rem;
  width: 100%;
  padding-right: 3rem;
  position: relative;
}

@media screen and (min-width: 450px) and (max-width: 805px) {
	.home .page-header .content-wrapper {
	  margin-top: 0rem;
	}
}

@media screen and (min-width: 806px) and (max-width: 991px) {
	.home .page-header .content-wrapper {
	  margin-top: 0rem;
	}
}

@media screen and (min-width: 992px) and (max-width: 1030px) {
	.home #main .grid-margin-x > .cell, .home #primary .grid-margin-x > .cell {
	    width: 100%;
	}
	.home .page-header .content-wrapper {
		margin-left: 1rem;
		width: 100%;
	}
	.home .page-header .cell {
		background-size: contain;
  /*  background-position: -1030px, top center;*/
		/*min-height: 665px;*/
		min-height: 460px;
	}
}



@media screen and (max-width: 599px) {
	.home .page-header .cell {
	  min-height: 210px;
	}
}


@media screen and (max-width: 999px) {
	.home .cell.medium-12 .content-wrapper h1 {
		font-size: 2rem !important;
	}
	.home .cell.medium-12 .content-wrapper h2,
	.home .front-shortcuts .cell h2 {
		font-size: 1.6rem !important;
	}
}



@media screen and (min-width: 600px) and (max-width: 991px) {
	.home .page-header .cell {
	  min-height: 380px;
	}
	.home #main .grid-margin-x > .cell {
		width: 100%;
	}
}

@media screen and (min-width: 1030px)  {
	.home .page-header .cell {
	  min-height: 660px;
	}
}

@media screen and (min-width: 1600px) {
	.home .page-header .cell {
	  /*min-height: 660px;*/
	}
}

@media screen and (min-width: 1031px) and (max-width: 1164px) {
	.home .page-header .cell {
		background-size: contain;
	}
	.home .page-header .content-wrapper {
		margin-left: 1rem;
		margin-bottom: 3rem;
	}
	.home .page-header .cell {
		min-height: 470px;
	}
}

@media screen and (min-width: 1165px) and (max-width: 1380px) {
	.home .page-header .content-wrapper {
		margin-left: 1rem;
		width: 70%;
		margin-bottom: 0rem;
		position: absolute;
		bottom: 20px;
	}
}

@media screen and (min-width: 1381px) and (max-width: 1490px) {
	.home .page-header .content-wrapper {
		margin-left: 1rem;
		width: 60%;
		position: absolute;
		bottom: 20px;
	}
}

@media screen and (min-width: 1491px)  {
	.home .page-header .content-wrapper {
		margin-left: 1rem;
		width: 45%;
		position: absolute;
		bottom: 20px;
	}
}



@media (min-width: 1495px) and (max-width: 2000px) {
	.header-menu.cell {
	    margin-left: 0rem !important;
			padding-left: 1rem;
	}
}


.wp-block-group.has-light-green-background-color.has-background {
	background-color: #e6eae0;
	padding: 2rem;
	margin-bottom: 2rem;
	border-radius: 10px;
}
