/*
 Theme Name:   GeneratePress Willi Karvia
 Theme URI:    https://generatepress.com
 Description:  ...
 Author:       Teemu
 Author URI:   https://rockmybusiness.fi
 Template:     generatepress
 Version:      0.1
*/

@font-face {
  font-family: "Delicious Adventures";
  src: url("/wp-content/themes/bb-theme-willi/fonts/DeliciousAdventures.woff2") format("woff2"),
    url("/wp-content/themes/bb-theme-willi/fonts/DeliciousAdventures.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

:root {
  --black: #010302;
  --gold: #d6743c;
	
  --meta-color: #fff;
  --satakunta-events-meta-size: 1rem !important;
  --satakunta-events-title-size: 1.1rem !important;
  --satakunta-events-skeleton-color: #111 !important;
  --satakunta-events-skeleton-color-alt: #222 !important;
  --satakunta-events-form-color: #111 !important;
  --satakunta-events-card-bg: transparent !important;
	--satakunta-events-brand-color: #111 !important;
  --satakunta-events-brand-color-hover: #cc6055 !important;
  --satakunta-events-tag-background-color: #e9eaea !important;
}

.home .event-card__title { color: #fff; &:hover { color: #fff; }}
.home .satakunta-tag-list .satakunta-tag { background-color: #020202; }
.home .event-card {  background: transparent !important; }

.satakunta-events-calendar__container, .event-card__content, .satakunta-tag-list .satakunta-tag {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
}
.event-card {
  background: #f7f8f9 !important;
  .event-card__description {
    font-size: 1rem;
  }
}

.event-detail-heading {
  font-size: 1.3rem;
}
.event-details-grid {
  gap: 1rem;
}

.site-content a.gb-button {
  color: #fff;
}

.full-width {
  width: 100%;
}

.wc-block-product-template.wc-block-product-template {
  margin: 20px;
}

.satakunta-events-page .kansikuva {
  min-height: 400px;
  padding-bottom: 100px;
}
.satakunta-events-page .nosto-flex .aktivointinappi {
  display: none;
}
.events-block .event-card .event-card-content {
  background: linear-gradient(to top, rgb(0 0 0) 0, #000000 100%);
}

body:not(.home) .kansikuva .nosto-flex {
  background: linear-gradient(180deg, #00000085, #00000000, transparent);
}

@media only screen and (min-width: 1026px) {
  .home .inside-navigation {
    background-color: #010302;
  }
}

@media (max-width: 1025px) {
  .nav-align-center .inside-navigation {
    justify-content: space-between;
    justify-content: flex-end;
  }
}

.site-content a {
  color: #b7541a;
}

.home .wcs-timetable__carousel .wcs-class__image img {
  min-height: 175px;
  max-height: 175px;
  object-fit: cover;
  object-position: center;
}
.home .wcs-class__excerpt p {
  margin-bottom: 0;
}
.woocommerce
  .wc-bookings-date-picker
  .ui-datepicker
  td.bookable:not(.partial_booked)
  + .partial_booked
  a {
  background: #ecbcb6 !important;
  background-image: none !important;
  color: #fff !important;
  text-shadow: 0 1px 0 rgb(0 0 0 / 10%);
}
body.search-results .entry-summary {
  display: none;
}
.kansikuva {
  z-index: 0;
}
@media only screen and (min-width: 1026px) {
  .main-navigation,
  .main-navigation ul ul {
    z-index: 2;
  }
  .inside-navigation {
    z-index: 2;
  }
}
body .secondary-navigation .menu-bar-item.search-item {
  top: 0px;
}

.page-id-5658 .kansikuva .nosto-flex .logo img.fl-logo-img {
  visibility: hidden;
}
@media screen and (max-width: 600px) {
  .page-id-5658 .kansikuva {
    background-position: center !important;
  }
}

.nf-form-content nf-field:nth-child(1) {
  padding: 20px 20px 0;
  background: #f7f7f7;
  border: 1px solid #eee;
}

@media screen and (min-width: 768px) {
  .nf-form-content > * {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
  }
  .nf-form-content *:nth-child(1),
  .nf-form-content *:nth-child(6),
  .nf-form-content *:nth-child(7) {
    grid-column: span 2;
  }
}
.nf-form-content input[type="button"],
.nf-form-content input[type="submit"] {
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
}
body .nf-form-content label {
  font-size: 20px;
}

.nf-form-fields-required {
  display: none;
}
.nf-response-msg {
  padding: 20px 20px 0;
  background: #f7f7f7;
  border: 1px solid #eee;
  font-weight: bold;
}
.nf-response-msg > p {
  margin-bottom: 20px;
}
body .nf-form-content .ninja-forms-field {
  font-size: 20px;
  color: #404040 !important;
}
.nf-form-content input[type="button"] {
  color: #f7f7f7 !important;
}

a.kansinappi {
  background: #d6743c;
  color: #fff;
  padding: 10px 20px;
  font-size: 18px;
  margin-top: 26px;
  display: inline-block;
}
a.kansinappi:hover {
  background: #111 !important;
  color: #fff !important;
}

/* uusi yhteystiedot ja karttapaikka */
.yhteystiedot-ja-karttapaikka {
  flex-direction: column;
  gap: 20px;
}
.yhteystiedot-ja-karttapaikka .yhteystiedot {
  margin: 0;
  background: #fff;
  flex: 1 0 auto;
  min-width: 100%;
}
.yhteystiedot-ja-karttapaikka .yhteystiedot {
  background-color: #fff;
}
.yhteystiedot-ja-karttapaikka .yhteystiedot h2 {
  background: none;
  color: #010302;
  padding: 0;
  padding-left: 10px;
}
.yhteystiedot-ja-karttapaikka .yhteystiedot ul li {
  border-bottom: 2px solid hsl(150deg 50% 1% / 5%);
}
span.label-for-li {
  width: 110px;
  display: inline-block;
}

.secondary-nav-below-header
  .secondary-navigation
  .inside-navigation.grid-container {
  padding-left: 10px;
}

.secondary-navigation .main-nav ul li[class*="current-menu-"] > a {
  background-color: #010302;
}

.page.page-id-641 .grid-container {
  max-width: 1200px;
}

.has-text-align-center {
  text-align: center;
}

.yhteystiedot-ja-karttapaikka .karttapaikka {
  border-top: 40px solid #f7f8f9;
  margin-left: -40px;
  margin-right: -40px;
}

.yhteystiedot-ja-karttapaikka .yhteystiedot::before {
  content: "";
  height: 40px;
  background: #f7f8f9;
  display: block;
  margin-bottom: 30px;
  margin-right: -40px;
  margin-left: -40px;
}

.yhteystiedot-ja-karttapaikka .yhteystiedot ul li {
  border-bottom: 0;
}

.yhteystiedot-ja-karttapaikka .yhteystiedot h3 {
  text-transform: uppercase;
  margin-bottom: 10px;
}

.wp-block-gallery {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  align-items: center;
}

.wp-block-gallery > figure {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f7f8f9;
}
.wp-block-gallery > figure img {
  object-fit: cover;
  width: 100%;
  min-height: 100%;
}

@media only screen and (min-width: 1000px) {
  .wp-block-gallery > figure:nth-child(1) {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 3;
  }
}

.footer-widgets h4 {
  font-family: "Delicious Adventures";
  font-size: 32px;
  color: #d6743c;
}

@media screen and (max-width: 480px) {
  body.archive .kohdelista article {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  aside.category-tags ul.tags li.tag a {
    font-size: 15px;
  }
}

.secondary-navigation .main-nav > ul {
  gap: 8px;
}
.secondary-navigation .sf-menu > li,
body .secondary-navigation .menu-bar-item.search-item {
  background-color: #010302;
}
.secondary-navigation {
  background-color: transparent;
}

@media (max-width: 768px) {
  .secondary-navigation {
    text-align: center !important;
    top: 150px !important;
    margin: 0;
    width: min-content;
  }
  .secondary-nav-below-header
    .secondary-navigation
    .inside-navigation.grid-container {
    padding-right: 20px;
  }
  .secondary-navigation .main-nav > ul {
    justify-content: flex-end;
    gap: 12px;
  }
  .secondary-navigation {
    background-color: transparent;
  }
  .secondary-navigation li.lang-item {
    padding-right: 0;
  }
  .secondary-navigation .menu-bar-item.search-item {
    display: none;
  }
}

.wc-paytrail-ppa-methods-container .wc-paytrail-ppa-method-group-title {
  font-size: 24px;
  text-transform: uppercase;
}
.wc-paytrail-ppa-methods-container .wc-paytrail-ppa-method.selected,
.wc-paytrail-ppa-methods-container .wc-paytrail-ppa-method:hover {
  border-color: #ededed;
  background-color: #ededed;
}

.aktivointinappi {
  display: none;
}

.home .aktivointinappi,
.page-id-641 .aktivointinappi {
  display: flex;
}

.aktivointinappi {
  margin-top: 160px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.aktivointinappi a {
  display: inline-block;
  text-decoration: none;
  text-shadow: none;
  text-align: center;
  color: #fff;
  font-size: 22px;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
  background-color: #000;
  font-weight: 600;
  line-height: 45px;
  padding: 0 14px;
}

.aktivointinappi a:hover,
.aktivointinappi a:focus,
.aktivointinappi a:active {
  background-color: #000;
  color: #be5419;
}

.kansikuva .mobile-only.tapahtumakalenteri {
  display: none;
}

@media only screen and (max-width: 767px) {
  .home .mobile-only.tapahtumakalenteri {
    display: inline-block;
    margin-bottom: 40px;
  }
  .home .kansikuva {
    align-items: flex-end;
  }
  .home .kansikuva {
    min-height: 70vh;
  }
}

.kansikuva .nosto-flex {
  flex: 1 0 auto;
  justify-content: flex-end;
  align-items: center;
  gap: 60px;
}
.aktivointinappi {
  margin: 0;
}
.kansikuva .nosto-flex .logo {
  flex: 0 0 auto;
}
.kansikuva .nosto-flex .nosto {
  display: none;
}
.aktivointinappi {
  margin: 0;
}

.kansikuva .nosto-flex .logo {
  flex: 0 0 auto;
}

.page-id-4772 .kansikuva .aktivointinappi {
  visibility: hidden;
}

.youtubevideo {
  background-color: #f7f8f9;
  margin-bottom: 20px;
  width: 560px;
  height: 315px;
}
.youtubevideo > iframe:not([src]) {
  pointer-events: none;
}
.youtubevideo:has(> iframe:not([src])) {
  cursor: pointer;
}





/* footer */
.site-footer .widget h5,
.widget_polylang h2:after {
  font-weight: 400;
  text-transform: uppercase;
  font-size: 24px;
  line-height: 1;
  margin-top: 0;
  margin-bottom: 20px;
  font-family: "mr-eaves-modern", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
    "Helvetica Neue", sans-serif;
  color: #fff;
}
.widget_polylang h2:after {
  content: "Kielivalinta";
  display: block;
}

/* herokuva */
.kansikuva {
  min-height: 512px;
  background-position: bottom center;
  background-attachment: scroll;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.kansikuva .nosto-flex {
  flex: 0 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 100%;
  z-index: 2;
  justify-content: flex-start;
}
.logo-ja-valikko {
  display: flex;
  align-items: flex-start;
  min-width: 100vw;
  padding: 20px 120px 0 0;
}

.kansikuva .nosto-flex .logo {
  margin-top: 40px;
  flex: 1 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.kansikuva .nosto-flex .logo img.fl-logo-img {
  width: 512px;
  max-width: 90%;
}

.kansikuva .nosto-flex .nosto {
  padding: 20px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  max-width: 620px;
  color: #fff;
}
.kansikuva .nosto-flex .nosto h2,
.kansikuva .nosto-flex .nosto h3,
.kansikuva .nosto-flex .nosto h4 {
  overflow-wrap: normal;
}
.kansikuva .nosto-flex .nosto h2,
.kansikuva .nosto-flex .nosto h3,
.kansikuva .nosto-flex .nosto h4 {
  font-family: raleway, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
    "Helvetica Neue", sans-serif;
  color: #fff;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 32px;
  text-align: center;
  text-shadow: 0 0 6px rgb(1 3 2 / 30%);
  letter-spacing: 0.12em;
}
.kansikuva .nosto-flex .nosto h4 {
  font-weight: 400;
  font-size: 28px;
  margin-top: 10px;
}

.home .kansikuva {
  margin-bottom: 5px;
}

#breadcrumbs {
  color: #fff;
  font-size: 1.2em;
  text-shadow: 2px 1px 5px rgb(0 0 0 / 75%);
  margin: 0 1em 1.6em;
  text-align: center;
  border: 0 !important;
  line-height: 1.2;
}
#breadcrumbs a {
  color: #fff;
}

@media only screen and (max-width: 991px) {
  .kansikuva .nosto-flex .logo {
    visibility: hidden;
  }
  .kansikuva .nosto-flex .nosto {
    width: 100%;
  }
}

.archive h1,
.post-641.page h1,
.page-id-3370.page h1,
.entry-header .entry-title {
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.archive h1:after,
.post-641.page h1:after,
.page-id-3370.page h1:after,
.entry-header .entry-title:after {
  left: 100%;
  margin-left: 15px;
}
.archive h1:before,
.post-641.page h1:before,
.page-id-3370.page h1:before,
.entry-header .entry-title:before {
  right: 100%;
  margin-right: 15px;
}
.archive h1:before,
.archive h1:after,
.post-641.page h1:after,
.post-641.page h1:before,
.page-id-3370.page h1:before,
.page-id-3370.page h1:after,
.entry-header .entry-title:before,
.entry-header .entry-title:after {
  content: "";
  border-bottom: 1px solid #333;
  min-width: 40px;
  width: 20%;
}
.taxonomy-description {
  padding-bottom: 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.taxonomy-description p {
  margin-bottom: 0;
}
aside.category-tags ul.tags {
  list-style: none;
  display: block;
  margin: 0 0 40px;
  padding: 0;
  text-align: center;
}
aside.category-tags ul.tags li.tag.active,
aside.category-tags ul.tags li.tag:hover {
  background-color: #f36f37;
}
aside.category-tags ul.tags li.tag {
  display: inline-block;
  background: #010302;
  padding: 4px 12px 4px 16px;
  margin: 0 2px 6px;
  border-radius: 30px;
  font-size: 18px;
  text-transform: uppercase;
}
aside.category-tags ul.tags li.tag.active a,
aside.category-tags ul.tags li.tag.active a:hover,
aside.category-tags ul.tags li.tag:hover a,
aside.category-tags ul.tags li.tag:hover a:hover {
  color: #fff;
}
aside.category-tags ul.tags li.tag a {
  text-decoration: none;
  color: #fff;
  display: block;
}
aside.category-tags ul.tags li.tag a span.count {
  display: inline-block;
  /* background: #353535; */
  margin: 0 0 0 10px;
  width: 20px;
  border-radius: 20px;
  font-size: 16px;
  line-height: 20px;
  position: relative;
  top: -1px;
}
/* aside.category-tags ul.tags li.tag.active a span.count,
aside.category-tags ul.tags li.tag:hover a span.count {
  background: #f36f37;
} */

.archive .kohdelista {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.archive .kohdelista article {
  margin-bottom: 0;
  padding-bottom: 0;
  background: linear-gradient(to right, #d6743c, #d6743c, #222);
  border-bottom: 5px solid transparent;
}
@media screen and (max-width: 1280px) {
  .archive .kohdelista article {
    max-width: calc(33% - 20px);
  }
}

.archive .kohdelista article {
  background-color: #fff;
  box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 20%), 0 1px 5px 0 rgb(0 0 0 / 12%);
  margin: 0 10px 20px !important;
  display: flex;
  flex: 1 1 auto;
  max-width: calc(25% - 20px);
  flex-direction: column;
  transition: box-shadow 0.5s;
}
.archive .kohdelista article .inside-article {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  background: #fff;
}
.archive .kohdelista article .entry-header {
  flex: 0 0 auto;
  order: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #333;
  padding: 20px 40px;
  max-width: 100%;
}
.archive .kohdelista article .entry-header,
.archive .kohdelista article .fl-post-thumb {
  padding-bottom: 20px;
  margin-bottom: 0;
  background-color: #fff;
}
.archive .kohdelista article .entry-header h2.entry-title {
  font-size: 26px;
  font-family: "Delicious Adventures", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.archive .kohdelista article .entry-header h2.entry-title:before, 
.archive .kohdelista article .entry-header h2.entry-title:after {
  content: none;
  display: none;
}

.archive .kohdelista article .entry-header a:hover {
  color: #d6743c;
}

.archive .kohdelista article .post-image {
  flex: 0 0 auto;
  order: 1;
  margin: 0;
}
.archive .kohdelista article .entry-summary {
  order: 3;
  margin: 0;
  text-align: center;
  padding: 0 10px 10px;
}
.luelisaa {
  order: 4;
  text-align: center;
  margin-bottom: 20px;
}

.archive .kohdelista .post-image a img {
  transition: transform 0.5s ease-in-out;
  background-color: rgba(0, 0, 0, 0.03);
}

@media screen and (max-width: 1280px) {
  .archive .kohdelista article {
    max-width: calc(33% - 20px);
  }
}

@media screen and (max-width: 992px) {
  .archive .kohdelista article {
    max-width: calc(50% - 20px);
  }
}

@media screen and (max-width: 480px) {
  .archive .kohdelista article {
    max-width: 100%;
  }
}

.archive .site-content {
  background-color: #f7f8f9;
}

#page {
  content-visibility: auto;
  contain-intrinsic-size: 1000px;
}

@media (min-width: 1100px) {
  .archive #page {
    width: auto;
    max-width: 1600px;
    overflow: hidden;
  }
}

.yhteystiedot-ja-karttapaikka {
  display: flex;
  margin-top: 30px;
}
@media screen and (min-width: 768px) {
  .yhteystiedot-ja-karttapaikka .karttapaikka {
    min-width: 50%;
  }
}
.yhteystiedot-ja-karttapaikka .karttapaikka {
  flex: 1 0 auto;
}
.acf-map {
  width: 100%;
  height: 350px;
  margin: 0;
}
.yhteystiedot-ja-karttapaikka .yhteystiedot {
  flex: 1 1 calc(33% - 20px);
  max-width: 320px;
  background-color: #f7f7f7;
  margin-right: 20px;
}
.yhteystiedot-ja-karttapaikka .yhteystiedot h2 {
  background-color: #010302;
  margin: 0;
  padding: 10px 10px 10px 20px;
  color: #f36f37;
  font-size: 30px;
}
.yhteystiedot-ja-karttapaikka .yhteystiedot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.yhteystiedot-ja-karttapaikka .yhteystiedot ul li {
  display: block;
  padding: 10px;
  border-bottom: 2px solid #fff;
}
.kohdelista .luelisaa a,
.yhteystiedot-ja-karttapaikka li.i a,
.wcs-timetable--3 .wcs-timetable__grid .ti-time,
.wcs-timetable--3 .wcs-timetable__grid .wcs-class__title,
.woocommerce-breadcrumb a {
  color: #b4551f;
}
.single-yritys .sharedaddy {
  margin-top: 40px;
}

.woocommerce-breadcrumb {
  display: none;
}

#wc-column-container {
  padding-top: 30px;
}

.woocommerce button.button[disabled] {
  color: #fff !important;
}
.page .woocommerce-checkout .col2-set,
.page .woocommerce-checkout-review-order,
.page #order_review_heading,
.page .woocommerce-checkout-review-order,
.page #order_review {
  float: none;
  width: inherit;
  margin: 0;
}

.page #order_review_heading {
  margin: 40px 0 10px;
}

.kansikuva {
  min-height: 100vh;
  display: flex;
  margin-top: 0;
  justify-content: center;
  background-color: #020203;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: relative;
  overflow: hidden;
}

@media only screen and (min-width: 1026px) {
  .kansikuva {
    margin-top: -80px;
    z-index: -1;
  }
}

.home .leivanmurut {
  display: none;
}
.home .kansikuva {
  justify-content: center;
  align-items: center;
}
.home .kansikuva .nosto-flex .logo {
  flex: 0 0 auto;
}

.logo-ja-valikko .kielivalikko {
  flex: 1 1 auto;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  flex: 1 0 auto;
  font-weight: bold;
}
.logo-ja-valikko .menu-apuvalikko-container {
  padding: 10px;
}
.logo-ja-valikko .menu-apuvalikko-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.logo-ja-valikko .menu-apuvalikko-container ul li {
  display: inline-block;
}
.logo-ja-valikko .menu-apuvalikko-container ul li a {
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 14px;
  padding: 10px 16px;
  background-color: #010302;
}

.secondary-navigation {
  position: absolute;
  right: 0;
  float: right;
  margin: 30px 60px 0 0;
}

@media only screen and (min-width: 1026px) {
  .main-navigation,
  .main-navigation ul ul {
    background-color: transparent;
    z-index: 3;
  }
  .main-navigation.is_stuck,
  .main-navigation.is_stuck ul ul {
    background-color: #010302;
  }
  .main-navigation ul ul.sub-menu {
    background-color: #010302;
  }
  header#masthead {
    display: none;
  }
}

.secondary-navigation .menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .secondary-navigation {
    text-align: center !important;
	top: 120px !important;
  }
  .secondary-navigation ul {
    display: block;
  }
  .secondary-navigation .sf-menu > li {
    float: none;
    display: inline-block !important;
  }
}

.sharedaddy .sd-social-icon .sd-content ul li[class*="share-"] a.sd-button {
  background-color: #fff !important;
}
.sharedaddy .sd-content ul li a.sd-button:before {
  font-size: 48px !important;
  color: #333;
}
@media screen and (max-width: 767px) {
  .sharedaddy .sd-content ul li a.sd-button:before {
    font-size: 34px !important;
  }
}
.single-yritys .sharedaddy {
  margin-top: 40px;
}

.home .somevirta {
  padding: 0 10px;
  background-color: #f7f7f7;
}
.home .tapahtumat-rivi.somevirta h2 {
  margin: 0;
  padding-top: 50px;
  padding-bottom: 0;
}

/* event kalenteri */

a.ai1ec-btn.ai1ec-btn-default,
a.ai1ec-minical-trigger.ai1ec-btn.ai1ec-btn-sm.ai1ec-btn-default,
a.ai1ec-minical-trigger.ai1ec-btn.ai1ec-btn-sm.ai1ec-btn-default .ai1ec-calendar-title {
  font-size: 14px;
}
.ai1ec-single-event {
  font-size: 20px;
  line-height: 1.45;
}
.ai1ec-single-event .ai1ec-field-label {
  line-height: 1.45;
  font-weight: bold;
  color: #333;
  text-transform: none;
  text-align: right;
  font-size: 20px;
}
.ai1ec-single-event .ai1ec-field-value,
.ai1ec-single-event .ai1ec-time .ai1ec-field-value {
  font-size: 20px !important;
  line-height: 1.45;
}
.ai1ec-single-event .ai1ec-event-avatar {
  max-width: 100%;
  box-shadow: none;
}
.ai1ec-single-event .ai1ec-time .ai1ec-field-value .ai1ec-allday-badge,
.ai1ec-multi-event .ai1ec-time .ai1ec-field-value .ai1ec-allday-badge {
  font-size: 18px;
  background: #d6743c;
}
.ai1ec-single-event {
  font-size: 20px;
  line-height: 1.45;
  background: #fff;
  margin: -41px -20px 20px -20px;
  padding-bottom: 20px;
}
.ai1ec-single-event .ai1ec-event-details {
  display: flex;
}
.ai1ec-event-details .ai1ec-row:before {
  content: none;
}
.ai1ec-event-footer {
  color: #333;
  background-color: #d8d8d8;
}
.single-ai1ec_event .fl-post-content {
  border-top: 20px solid #fff;
  background-color: #f7f7f7;
  padding: 20px 20px 0;
}
.single-ai1ec_event .fl-post-content.empty {
  background-color: #fff;
}

@media screen and (max-width: 767px) {
  .ai1ec-single-event .ai1ec-event-details {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0;
  }
  .ai1ec-single-event .ai1ec-field-label {
    text-align: left;
  }
  .ai1ec-single-event .ai1ec-time.ai1ec-row {
    margin-top: 20px;
  }
}

.timely .ai1ec-btn-primary {
  background-color: #d6743c;
  border-color: #d6743c;
}

.ai1ec-posterboard-view .ai1ec-event-wrap {
  background: #fcfcfc;
  border: 1px solid #eeeeee;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.page .wcs-timetable.wcs-timetable--grid h2 {
  display: none;
}

.home .wcs-class.wcs-class--filterable,
.home .wcs-timetable--8 .wcs-timetable__carousel .wcs-class,
.home .wcs-timetable--10 .wcs-timetable__carousel .wcs-class {
  background-color: #010302;
}
.home .wcs-timetable__carousel .wcs-class__meta-label {
  color: #d6743b !important;
}
.home .wcs-timetable--8 .wcs-timetable__carousel .owl-dots .active,
.wcs-timetable--8 .wcs-timetable__carousel .owl-nav .owl-prev:hover,
.wcs-timetable--8 .wcs-timetable__carousel .owl-nav .owl-next:hover,
.home .wcs-timetable--10 .wcs-timetable__carousel .owl-dots .active,
.wcs-timetable--10 .wcs-timetable__carousel .owl-nav .owl-prev:hover,
.wcs-timetable--10 .wcs-timetable__carousel .owl-nav .owl-next:hover {
  color: #d6743b;
}
.wcs-timetable--8 .wcs-timetable__carousel .ti-time,
.wcs-timetable--8 .wcs-timetable__carousel .wcs-class__title,
.wcs-timetable--8 .wcs-timetable__carousel .owl-dots .active,
.wcs-timetable--8 .wcs-timetable__carousel .owl-nav .owl-prev:hover,
.wcs-timetable--8 .wcs-timetable__carousel .owl-nav .owl-next:hover, 
.wcs-timetable--10 .wcs-timetable__carousel .ti-time,
.wcs-timetable--10 .wcs-timetable__carousel .wcs-class__title,
.wcs-timetable--10 .wcs-timetable__carousel .owl-dots .active,
.wcs-timetable--10 .wcs-timetable__carousel .owl-nav .owl-prev:hover,
.wcs-timetable--10 .wcs-timetable__carousel .owl-nav .owl-next:hover{
  color: #d6743b;
}
/*
.post-641 a[href^="https://www.ticketmaster.fi/"], .post-3370 a[href^="https://www.ticketmaster.fi/"], .painike
{
  color: #fff;
  background-color: #010302;
  padding: 10px 20px;
  display: inline-block;
  margin-bottom: 20px;
}
.post-641 a[href^="https://www.ticketmaster.fi/"]:hover, .post-3370:hover a[href^="https://www.ticketmaster.fi/"], 


.painike:hover
{
  background-color: #d6743c;
}
*/
.secondary-navigation .menu-bar-item.search-item {
  z-index: 20;
  position: absolute;
  right: 0;
  top: 3px;
}
.navigation-search input[type="search"] {
  height: 46px;
}
li.lang-item {
  padding-right: 25px;
}

@media screen and (max-width: 1025px) {
  body {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  body > div {
    grid-column: span 2;
  }
  body > .site-header,
  body > .main-navigation {
    grid-column: span 1;
  }
  body > .main-navigation.toggled {
    grid-column: span 2;
  }
  body > .main-navigation .menu-toggle {
    text-align: right;
    margin-right: 20px;
  }
  body > .main-navigation.toggled .menu-toggle {
    text-align: left;
  }
  .mobile-menu-open #masthead {
    display: none;
  }
  #secondary-navigation {
    position: absolute;
    top: 160px;
  }
  .main-navigation .main-nav ul ul li a {
    font-size: 20px;
    margin-left: 20px;
  }
}


@media screen and (max-width: 1025px) {
 #page {
  width: 100vw;
  min-width: 100%;
 }
 .yhteystiedot-ja-karttapaikka {
   flex-direction: column;
 }
 .yhteystiedot-ja-karttapaikka .yhteystiedot {
    flex: 1 0 auto;
    margin: 0 0 20px 0;
    max-width: none;
 }
 .home .kansikuva {
   background-attachment: inherit;
 }
}
