/* GENERAL STYLES */
.btn-h-link a {
  display: flex;
  width: 100%;
  font-size: 54px;
  text-align: center;
  background: #f54b4b;
  color: #fff!important;
  padding: 15px;
}
.btn-h-link a:hover {
  background:#be0a37;
}
#masthead #site-logo img{
  max-height: 150px!important;
}
.nosto_img-2 img{
max-height: 220px;
width: auto;
}
.nosto_img-3 img{
  max-height: 220px;
  width: auto;
}
/* 20250307 Ehdokaslistaus */
.ehdokkaat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 0 auto;
}

.ehdokas-numero {
  position: absolute;
  top: 5px;
  left: 5px;
  background: #f54b4b;
  color: #fff;
  font-size: 3rem;
  min-height: 110px;
  line-height: 1;
  min-width: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  padding: 10px;
}
.ehdokas-numero.aluevaalinumero {
  background-color: #b9a3e3;
  display: flex;
  right: 5px;
  left:unset;
  flex-direction: column;
  font-size: 2.4rem;
}
.ehdokas-numero.aluevaalinumero span {
  font-size: 0.8rem;
  text-transform: uppercase;
}
.ehdokas {
  position: relative;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.ehdokas-image img {
  height: auto;
  max-width: 300px;
  height: 300px;
  width: auto;
  object-fit: cover;
}

.ehdokas-info h2 {
  font-size: 18px;
  margin: 10px 0;
}

.accordion {
  margin-top: 10px;
}

.accordion-toggle {
  background: #f54b4b;
  color: white;
  padding: 10px;
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0;
}

.accordion-toggle .toggle-icon {
  font-weight: bold;
  transition: transform 0.2s;
}

.accordion-content {
  display: none;
  padding: 5px;
  text-align: left;
}

/* <- ehdokaslistaus */

.site {
    background-image: url(/wp-content/themes/sdpnaantali/assets/images/Naantalin-SDP-hahmokuvitusBG.svg);
    background-attachment: scroll;
    background-size: auto;
    background-repeat: no-repeat;
    background-position: top center;
    background-color: #fdfefd;
}

.sisallysluettelo h2:first-child {
  margin: 0;
background: #f54b4b;
color: #fff!important;
padding: 10px;
position: absolute;
top: 0;
left: 0;
width: 100%;
}

.sisallysluettelo .fl-module-content {
border: 1px solid #f54b4b;
padding: 60px 10px;
position: relative;
}

#tophaku .haku-btn i {
  font-size:22px;
  color:#000;
  display:block;
  cursor:pointer;
  text-align:center;
  padding:10px;
}

#tophaku {
    position: absolute;
top: 50%;
right: 16px;
margin-top: -23px;
height: 50px;
}

#tophaku .haku-form {
  width:0px;
  float:left;
  position:relative;
}

#tophaku.showform .haku-form {
  width:700px;
  -webkit-transition: width 600ms;
  transition: width 600ms;
  opacity:1;
  visibility:visible;
}

#tophaku .haku-form {
  width:0px;
  visibility: hidden;
  opacity:0;
}

#tophaku {
  width:auto;
}

#tophaku .haku-btn {
  width:60px;
  float:right;
}

#tophaku .search-field {
  display:inline-block;
  visibility: hidden;
  opacity:0;
}

#tophaku.showform .haku-form .search-field {
  display:block;
  position:absolute;
  right:65px;
  top:0;
  visibility: visible;
  opacity:1;
  -webkit-transition: opacity 300ms, visibility 300ms;
  transition: opacity 300ms, visibility 300ms;
}

#tophaku .search-submit {
  display:inline-block;
  visibility: hidden;
  opacity:0;
}

#tophaku.showform .haku-form .search-submit {
  display:block;
  position:absolute;
  right:0;
  top:0;
  visibility: visible;
  opacity:1;
  -webkit-transition: opacity 300ms, visibility 300ms;
  transition: opacity 300ms, visibility 300ms;
}

#tophaku .search-form .search-field {
  width:100%;
  border:1px solid #f54b4b;
  border-radius:0px;
  -webkit-border-radius: 0px; 
  -moz-border-radius: 0px;
padding: 11.5px 15px;
color: #000;
font-size: 16px;
  font-weight: 400;
  font-family: 'Kanit';
  line-height:1.1;
}

@-moz-document url-prefix() { 
   #tophaku.showform .haku-form .search-submit {
height: 50px;
   }
}

#tophaku .search-form .search-field:focus {
  outline:none;
}

#tophaku .search-form .search-submit {
  border:none;
  border-radius:0px;
  -webkit-border-radius: 0px; 
  -moz-border-radius: 0px; 
    padding: 11.5px 15px;
  color: #fff;
  background:#f54b4b;
  text-transform:uppercase;
  font-size: 18px;
  font-weight: 800;
  font-family: 'Kanit';
  outline:none;
  cursor:pointer;
  line-height:1.1;
}

#topmenu.hidemenu {
  visibility: hidden;
  opacity:0;
  -webkit-transition: opacity 300ms, visibility 300ms;
  transition: opacity 300ms, visibility 300ms;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site blockquote p {
color: #666;
line-height: 1.45;
font-size: 18px;
font-style: italic;
}

.site blockquote {
margin: 0.25em 0;
padding: 0.35em 40px;
position: relative;
}

.site blockquote:before {
display: block;
padding-left: 10px;
content: "\201C";
font-size: 80px;
position: absolute;
left: -20px;
top: -20px;
color: #ff0000;
}

#content h1 {
  color:#fff;
  font-size:40px;
  background: #f54b4b;
  padding: 13px 25px!important;
  line-height:1.2;
  font-weight:700;
  text-transform: uppercase;
  font-family: 'Barlow Semi Condensed';
}

#content .artikkeli-otsikko h1 {
    margin: 0;
    background: none;
    padding: 0!important;
}

.site h2 {
  color:#f54b4b;
  font-size:30px;
  line-height:1.2;
  text-transform: uppercase;
  font-weight:700;
  font-family: 'Barlow Semi Condensed';
}

.site h3 {
  color:#f54b4b;
  font-size:25px;
  line-height:1.2;
  text-transform: uppercase;
  font-weight:700;
  font-family: 'Barlow Semi Condensed';
}

.site h4 {
  color:#f54b4b;
  font-size:25px;
  line-height:1.2;
  font-weight:700;
  font-family: 'Barlow Semi Condensed';
}

.site .tiedotediv h4 {
    font-size: 20px;
    color: #1a1a1a;
    margin: 0;
}

.site .blogilista h4 {
  font-size: 16px;
  font-family: 'Fira Sans';
  font-style: italic;
  margin:0;
}

.site h5 {
  color:#f54b4b;
  font-size:20px;
  line-height:1.2;
  font-weight:700;
  font-family: 'Barlow Semi Condensed';
}

.site h6 {
  color:#f54b4b;
  font-size:18px;
  line-height:1.2;
  font-weight:700;
  font-family: 'Barlow Semi Condensed';
}

.site p {
  color:#1a1a1a;
  font-size:16px;
  line-height:1.4;
  font-weight:400;
  font-family: 'Fira Sans';
}

.site .punalaatikko p.metatiedot {
  margin:0;
  color: #898989;
  font-weight: 800;
}

.site .harmaa-laatikko p {
  font-size: 20px;
}

.site .ingressi p {
  color:#1a1a1a;
  font-size:20px;
  line-height:1.4;
  font-weight:400;
  font-family: 'Kanit';
}

.site .fl-post-excerpt p {
  margin: 0;
}

.site ul {
  margin-left:0;
  padding-left:20px;
}

.site li {
  color:#1a1a1a;
  font-size:16px;
  line-height:1.4;
  font-weight:400;
  padding:5px 0;
  font-family: 'Kanit';
}

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

.site .fl-post-excerpt a {
color: #f54b4b;
font-style: italic;
font-weight: 800;
margin-top: 10px;
  display: block;
}

.site a:hover,
.site a:focus {
  color:#f54b4b;
  transition: all 0.3s ease;
  outline:none;
}

.site .punalaatikko a:hover, .site .punalaatikko a:focus, .site .punalaatikko a:hover h4, .site .punalaatikko a:focus h4,
.site .fl-post-excerpt a:hover, .site .fl-post-excerpt a:focus, .site .fl-post-text a:hover, .site .fl-post-text a:focus,
.site .harmaa-laatikko a:hover, .site .harmaa-laatikko a:focus{
  color: #1a1a1a;
}

.site .harmaa-laatikko a {
  font-size: 25px;
  font-style: italic;
  color: #f54b4b;
}

.site .tiedotediv a {
      font-family: 'Fira Sans';
    font-weight: 800;
    font-style: italic;
    color: #f54b4b;
}

.site a.btn-1 {
  display: inline-block;
    background: #f54b4b;
    padding: 15px 25px;
    height: inherit;
    font-family: 'Kanit';
    border: 0;
    border-radius: 0;
    font-size: 25px;
    line-height: 1;
    letter-spacing: 1px;
    font-weight: 800;
    font-style: italic;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration:none;
}

.site a.btn-1:hover,
.site a.btn-1:focus {
  background:#1a1a1a;
  color:#fff;
}

#back-to-top {
  display:none;
}

/* Header */

#site-logo a {
  outline:none;
}

#masthead.small-header {
  position: fixed;
  background: rgba(0, 0, 0, 0.8);
}

#masthead {
  position: relative;
  width: 100%;
}

#headermenu > .fl-module-content{
margin-top: -5px;
margin-bottom: 10px;
}

#bb-header {
      padding-top: 25px;
    background: #fff;
}

#masthead #site-logo img {
  max-height: 100%;
  width:auto;
  -moz-transition: height 0.2s ease;
  -webkit-transition: height 0.2s ease;
  -o-transition: height 0.2s ease;
  transition: height 0.2s ease;
}

#masthead.small-header #site-logo img {
  max-height: 100%;
  height:50px;
  width:auto;
}

#mobile-burger {
  display:none;
}

/* Footer */

#footer {
  background: #d4d4d4;
  margin-top: 60px;
}

#footer p {
  color:#fff;
  margin-bottom: 15px;
  margin-top: 0;
  font-size:16px;
  line-height:1.4;
  font-weight:400;
  font-family: 'Kanit';
}

#footer a {
  color:#fff;
  font-size:16px;
  line-height:1.4;
  font-weight:400;
  font-family: 'Kanit';
  text-decoration:none;
}

#footer a:hover,
#footer a:focus {
  color:#fff;
  font-weight:400;
  font-family: 'Kanit';
  text-decoration:underline;
}

#footer ul li {
  color:#fff;
  font-size:16px;
  line-height:1.4;
  font-weight:400;
  font-family: 'Kanit';
}

#footer h2 {
  color:#fff;
  font-size:30px;
  line-height:1.2;
  font-weight:600;
  font-family: 'Kanit';
}

#footer h3 {
  color:#fff;
  font-size:30px;
  line-height:1.2;
  font-weight:600;
  font-family: 'Kanit';
}


/* Headerin navigaatio */

#menu-item-1674 {
  max-width: 163.5px
}

#menu-item-1708 {
    max-width: 401px;
}

#headermenu {
  position: relative;
}

#headermenu .menu > li#menu-item-1708.current-menu-item > a,
#headermenu .menu > li#menu-item-1708 > a:hover,
#headermenu .menu > li#menu-item-1708 > a:focus {
padding: 10px 13.28px;
}
#headermenu .menu > li#menu-item-22507.current-menu-item > a,
#headermenu .menu > li#menu-item-22507 > a:hover,
#headermenu .menu > li#menu-item-22507 > a:focus {
padding: 10px 10.84px;
}


#menu-item-1710 {
  max-width: 141.23px;
}

#topmenu li .more {
  display:none;
}

#headermenu .menu {
    padding: 0;
    display: block;
    margin: 0;
    list-style: none;
}

#headermenu .menu li{
display: block;
float: left;
position: relative;
}

#headermenu .menu > li > a:hover,
#headermenu .menu > li > a:focus {
  color:#f54b4b;
  font-weight: 700;
     padding: 10px 12.6px;
  font-style: italic;
  background:inherit;
}

#headermenu .menu li a {
  outline:none;
  display: block;
  color: #1a1a1a;
  font-size: 19px;
  text-decoration: none;
  padding: 10px 15px;
  -moz-transition: none;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
}

#masthead.small-header #headermenu .menu li a {
     padding: 11px 20px;
}

#headermenu .menu li.current-menu-item a {
  background:inherit;
  color:#f54b4b;
  padding: 10px 16.9px;
    font-weight: 700;
  font-style: italic;
  text-decoration: none;
}

#headermenu .menu li > ul.sub-menu {
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    text-align: left;
    background: rgba(255, 255, 255, 1);
      transform: translateY(-2em);
  z-index: 1;
  transition: all 0.2s ease-in-out 0s, visibility 0s linear 0.2s, z-index 0s linear 0.01s;
  display: flex;
  flex-direction: column;
}

.small-header #headermenu .menu li > ul.sub-menu {
top: 100%;
}

#headermenu li.menu-item-has-children:focus .sub-menu,
#headermenu li.menu-item-has-children:focus-within .sub-menu,
#headermenu li.menu-item-has-children:hover .sub-menu {
  visibility: visible;
  opacity: 1;
  z-index: 1;
  transform: translateY(0%);
  transition-delay: 0s, 0s, 0.4s;
}

#headermenu a:hover,
#headermenu a:focus,
#bb-topheader #headermenu ul.sub-menu a:hover,
#bb-topheader #headermenu ul.sub-menu a:focus,
#bb-topheader.small-header #headermenu ul.sub-menu a:hover,
#bb-topheader.small-header #headermenu ul.sub-menu a:focus {
  color:#e4292c;
}

#headermenu .menu li > ul.sub-menu a {
  color: #000;
}

/* ETUSIVU */ 

.site .fl-post-image:hover img {
  filter:brightness(80%);
}

.site .fl-post-image {
      width: 58%;
    vertical-align: top;
    display: inline-block;
}

.site .fl-post-excerpt {
    display: inline-block;
    width: 39%;
    margin-left: 2%;
}

.site .blogilistaus .fl-post-excerpt {
    display: inline-block;
    width: 100%;
    margin-left: 0;
}

.site .tiedotediv, .site .blogilista {
  padding: 20px 0;
    border-bottom: 1px solid #d4d4d4;
}

.harmaa-laatikko > .fl-module-content {
    background: #e9e9e9;
    padding: 20px;
}

.punalaatikko-sisalto li.tiedotediv:last-child, .punalaatikko-sisalto li.blogilista:last-child {
  border-bottom: none;
      padding-bottom: 0;
}

.site .punalaatikko ul {
  list-style-type: none;
}

.site .punalaatikko ul.pdf-lista {
    -webkit-columns: 3; /* Chrome, Safari, Opera */
  -moz-columns: 3; /* Firefox */
  columns: 3;
  padding: 20px 20px 0;
}

.site ul.pdf-lista li {
    font-family: 'Fira Sans';
    font-style: italic;
    font-weight: 800;
    color: #f54b4b;
}

.punalaatikko {
  border: 1px solid #f54b4b;
  position: relative;
}

.punalaatikko .punalaatikko-otsikko {
  padding: 10px;
  min-height: 58px;
  background: #f54b4b;
}

.punalaatikko .punalaatikko-otsikko h3 {
  color: #fff;
display: inline-block;
    margin: 0 10px;
    max-width: 80%;
}

.punalaatikko .isokuva-laatikko {
  float: inherit;
}

.punalaatikko img {
  display: block;
  float: left;
}

.punalaatikko-sisalto {
  padding: 20px;
}

/* ALASIVUT */

.kirjoittaja-tiedot {
  display: flex;
    flex-wrap: wrap;
}

.kirjoittaja-tiedot img {
  margin-right: 20px;
}

.site .kirjoittaja-tiedot p {
  margin: 0;
}

.artikkeli-otsikko {
      background: #f54b4b;
    padding: 25px;
    text-align: center;
}

.artikkeli-otsikko img {
  border-radius: 50px;
  max-height: 100px;
    width: auto;
}

.site .artikkeli-otsikko p {
      display: inline-block;
    vertical-align: top;
    margin: 30px 10px;
    font-size: 24px;
    color: #fff;
    text-transform: uppercase;
}

.artikkeli-tekija img, .fl-author-bio-thumb {
  display: none!important;
}

.fl-module-fl-author-bio h3.fl-author-bio-name, .site .kirjoittaja-tiedot h3 {
  margin: 0;
}

.site .fl-author-bio-text {
      font-size: 25px;
    font-weight: 800;
    text-transform: uppercase;
}

#comments #submit {
      display: inline-block;
    background: #f54b4b;
    padding: 15px 60px;
    height: inherit;
    font-family: 'Kanit';
    border: 0;
    border-radius: 0;
    font-size: 25px;
    line-height: 1;
    letter-spacing: 1px;
    font-weight: 800;
    font-style: italic;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: inherit;
}

#comments #submit:hover, #comments #submit:focus {
background: #000;
  }

  #comments .comment-form-author label, #comments .comment-form-email label, #comments .comment-form-url label,
  #comments .comment-form-comment label {
    display: block;
    color: #898989;
  }

  #comments .required {
    color: #ff0000!important;
  }

  #comments input, #comments textarea {
    border-radius: 0;
    border: 1px solid #898989;
    background: #fafafa;
    width: 100%;
  }

 #comments .comments-area {
    border-top: 1px solid #898989;
    padding-top: 50px;
  }

  #comments h2.comments-title {
    margin-top: 0;
  }

  #comments .comment-list {
    padding: 0;
    margin-left: 15px;
    list-style: none;
  }


  #comments ol li .fn {
    font-size: 27px;
    color: #ff0000;
    font-style: italic;
    margin-left: 10px;
  }

  #comments ol li .says {
    font-size: 27px;
  }

  #comments ol li .comment-metadata {
    color: #898989;
    margin: 12px 0 20px 45px;
  }

  #comments ol li .comment-content {
    margin-left: 45px;
  }

  #comments .reply {
     margin-left: 45px;
    color: #898989;
    text-decoration: underline;
    font-style: italic;
  }

/* Somepainikkeet */

#footer #some-painikkeet {
  text-align:right;
}

#some-painikkeet i.fa {
    width: 26px;
    height: 30px;
}
#some-painikkeet a {
    font-size: 18px;
    border: 2px solid;
    padding: 5px 10px;
    border-radius: 40px;
    margin: 0 10px;
    text-align: center;
}

/* Gravity form */

#content .gform_confirmation_message {
  background:#e4292c;
  padding:15px 40px;
  color:#333;
  font-size:16px;
  font-weight:600;
  line-height:20px;
}

.site #content .gform_body label.gfield_label {
  color:#333;
  font-family: 'Kanit';
  font-size:18px;
  line-height:30px;
  letter-spacing:1px;
  font-weight:400;
}

.site #content .gform_body span.gfield_required {
    color:#333;
  font-family: 'Fira Sans';
  font-size:18px;
  line-height:30px;
  letter-spacing:1px;
  font-weight:400;
}

.site #content .gform_body .top_label div.ginput_container {
    margin-top: 2px;
}

.site #content .gform_body input[type="text"],
.site #content .gform_body input[type="email"] {
  margin-bottom:0;
  width:100%;
  outline: none;
  border: 1px solid #cdcdcd;
  font-family: 'Kanit';
  font-size:18px;
  line-height:24px;
  letter-spacing:1px;
  font-weight:400;
  height:inherit;
  padding:10px;
  border-radius:0;
}

.site #content .gform_body textarea {
  height:155px;
  outline: none;
  margin-bottom:0;
  width:100%;
  border: 1px solid #eee;
  font-family: 'Kanit';
  font-size:18px;
  line-height:24px;
  letter-spacing:1px;
  font-weight:400;
  padding:10px;
}

#body-content .gform_body li.gfield {
  margin-top:5px;
  padding-right:0;
  width:100%;
  max-width:100%;
}

.site #content .gform_body ul li.gfield {
  max-width:100%!important;
  width:100%!important;
}

.site #content .gform_body ul.gform_fields li.gfield {
  padding-right: 0!important;
}

.site #content .gform_body div.validation_error {
color: #333 !important;
font-size: 100% !important;
font-weight: normal !important;
border: 2px solid #e4292c !important;
padding: 1em 0px 1em 0px !important;
text-align:center!important;
  font-family: 'Kanit'!important;
  font-size:16px !important;
  line-height:20px !important;
  letter-spacing:1px !important;
  font-weight:600 !important;
}

.site #content .gform_body li.gfield.gfield_error,
.site #content .gform_body li.gfield.gfield_error.gfield_contains_required {
border-color: inherit !important;
color: #e4292c !important;
background-color: inherit !important;
border-width:0px !important;
  font-family: 'Kanit'!important;
  font-size:18px !important;
  line-height:24px !important;
  letter-spacing:1px !important;
  font-weight:400 !important;
  padding:0!important;
  margin-bottom:0!important;
}

#content .gform_wrapper .gfield_error .gfield_label {
color: #333 !important;
}

#content .gform_wrapper .validation_message {
color: #e4292c !important;
font-family: 'Kanit'!important;
font-size:14px !important;
line-height:18px !important;
letter-spacing:1px !important;
font-weight:600 !important;
padding-top:5px!important;
}

#content .gform_wrapper li.gfield_error input[type="email"],
#content .gform_wrapper li.gfield_error input[type="number"],
#content .gform_wrapper li.gfield_error input[type="password"],
#content .gform_wrapper li.gfield_error input[type="tel"],
#content .gform_wrapper li.gfield_error input[type="text"],
#content .gform_wrapper li.gfield_error input[type="url"],
#content .gform_wrapper li.gfield_error textarea {
border: 2px solid #e4292c !important;
}

#content .gform_footer .gform_button {
  background:#e4292c;
  padding:15px 25px;
  height:inherit;
  border:0;
  border-radius:0;
  font-family: 'Kanit';
  font-size:18px;
  line-height:24px;
  letter-spacing:1px;
  font-weight:400;
  text-transform:uppercase;
  color:#fff;
  transition: all 0.3s ease;
  cursor:pointer;
}

#content .gform_footer .gform_button:hover,
#content .gform_footer .gform_button:focus {
  background:#000;
}

#content .gform_footer {
  margin:0;
  padding:10px 0 10px 0;
}

/* Radio buttons */

.site #content .gform_body .gfield_radio li label {
  margin-left:0;
}

.site #content .gform_body [type="radio"]:checked,
.site #content .gform_body [type="radio"]:not(:checked) {
    position: absolute;
    left: -9999px;
}
.site #content .gform_body [type="radio"]:checked + label,
.site #content .gform_body [type="radio"]:not(:checked) + label
{
    position: relative;
    padding-left: 38px;
    cursor: pointer;
    line-height: 28px;
    display: inline-block;
    color: #666;
}
.site #content .gform_body [type="radio"]:checked + label:before,
.site #content .gform_body [type="radio"]:not(:checked) + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 100%;
    background: #fff;
}
.site #content .gform_body [type="radio"]:checked + label:after,
.site #content .gform_body [type="radio"]:not(:checked) + label:after {
    content: '';
    width: 18px;
    height: 18px;
    background: #333;
    position: absolute;
    top: 5px;
    left: 5px;
    border-radius: 100%;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
.site #content .gform_body [type="radio"]:not(:checked) + label:after {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
}
.site #content .gform_body [type="radio"]:checked + label:after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

/* Checkbox */

.site #content .gform_body [type="checkbox"]:checked,
.site #content .gform_body [type="checkbox"]:not(:checked) {
    position: absolute;
    left: -9999px;
}
.site #content .gform_body [type="checkbox"]:checked + label,
.site #content .gform_body [type="checkbox"]:not(:checked) + label
{
    position: relative;
    padding-left: 38px;
    cursor: pointer;
    line-height: 28px;
    display: inline-block;
    color: #666;
}
.site #content .gform_body [type="checkbox"]:checked + label:before,
.site #content .gform_body [type="checkbox"]:not(:checked) + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 2px;
    background: #fff;
}
.site #content .gform_body [type="checkbox"]:checked + label:after,
.site #content .gform_body [type="checkbox"]:not(:checked) + label:after {
    content: '\f00c';
    width: 20px;
    height: 20px;
    color: #333;
    position: absolute;
    top: 0px;
    left: 3px;
    border-radius: 100%;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    font-family:"FontAwesome";
    font-size:22px;
}
.site #content .gform_body [type="checkbox"]:not(:checked) + label:after {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
}
.site #content .gform_body [type="checkbox"]:checked + label:after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

/* Error 404 page */

.error404 #content #inner-content {
  padding: 100px 0;
}

/* LAYOUT CUSTOM */





/* RESIZE LAYOUT */

/* Large */
@media only screen and (max-width: 1100px) {

.punalaatikko .punalaatikko-otsikko h3, .sisallysluettelo h2 {
  font-size: 20px;
}


} 

/* Medium */
@media only screen and (max-width: 1023px) {

#back-to-top {
  display:none;
}

.site .fl-post-image, .site .fl-post-excerpt {
  width: 100%;
}

} 

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

  .punalaatikko .punalaatikko-otsikko h3 {
font-size: 18px;
    word-break: break-all;
    max-width: 72%;
  }
  .sisallysluettelo h2 {
    font-size: 18px;
    word-break: break-all;
  }

  }

@media only screen and (max-width: 850px) {
  #site-logo {
  padding:10px 0;
  position: fixed;
  width: 100%;
  z-index:10000;
  transition: background-color 0.2s ease-out;
  transition-delay: 0.2s;
}
.home_nosto-row__column .fl-photo-caption-hover{
position: absolute;
opacity: 1;
background:none;
color: #000;
bottom:0;
z-index: 0;
pointer-events: none;
}
.home_nosto-row__column a {
display: block;
  padding-bottom: 50px;
}

.home_nosto-row__column .fl-col-group-nested:before,.home_nosto-row__column .fl-col-group-nested:after {
display:none!important;
}
.home_nosto-row__column .fl-col-group-nested {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 0 auto;
}

#masthead #bb-topheader #site-logo img {
    position: relative;
    top: 0;
    height:auto;
    max-height: 68px !important;
}
  .fl-post-feed-post.fl-post-feed-image-beside, .fl-post-feed-post.fl-post-feed-image-beside-content, .fl-post-feed-post.fl-post-feed-image-beside-right, .fl-post-feed-post.fl-post-feed-image-beside-content-right {
    max-width: inherit!important;
  }

.site .fl-col-small {
  max-width: inherit;
}
  #menu-item-1674, #menu-item-1708, #menu-item-1710 {
    max-width: inherit;
  }
  #bb-header { 
padding-top: 0;
  }
#headermenu ul.menu li.menu-item a, #headermenu a:hover {
    padding: 15px 0px!important;
}
  .eka-rivi {
    margin-top: 99px;
  }

}

/* Small */
@media only screen and (max-width: 767px) {
  #footer p {
    margin-right: 45px;
  }



    .punalaatikko .punalaatikko-otsikko h3, .sisallysluettelo h2 {
font-size: 25px;
    }

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    background: #f54b4b;
    color: #fff;
    cursor: pointer;
    border: 0;
    text-decoration: none;
    transition: opacity 0.2s ease-out;
    opacity: 0;
    display:none;
}
#back-to-top.show:hover {
    background: #f54b4b;
    opacity: 1;
}
#back-to-top.show {
    opacity: 0.9;
    display:block;
}

#footer #some-painikkeet {
    text-align: left;
}

#footer #some-painikkeet > .fl-module-content {
  margin:0;
}

} 

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

  .punalaatikko .punalaatikko-otsikko h3 {
    font-size: 20px;
  }

#content h1 {
      font-size: 30px;
    word-break: break-word;
}

}

