/**
  * Breakpoints
  */
/**
  * Root styles
  */
/**
  * Transitions
  */
.has-red-background-color {
  background-color: var(--timanttia-color-red);
}

.has-red-color {
  color: var(--timanttia-color-red);
}

.has-yellow-background-color {
  background-color: var(--timanttia-color-yellow);
}

.has-yellow-color {
  color: var(--timanttia-color-yellow);
}

.has-blue-background-color {
  background-color: var(--timanttia-color-blue);
}

.has-blue-color {
  color: var(--timanttia-color-blue);
}

.has-lilac-background-color {
  background-color: var(--timanttia-color-lilac);
}

.has-lilac-color {
  color: var(--timanttia-color-lilac);
}

.has-black-background-color {
  background-color: var(--timanttia-color-black);
}

.has-black-color {
  color: var(--timanttia-color-black);
}

.has-gray-background-color {
  background-color: var(--timanttia-color-gray);
}

.has-gray-color {
  color: var(--timanttia-color-gray);
}

.has-white-background-color {
  background-color: var(--timanttia-color-white);
}

.has-white-color {
  color: var(--timanttia-color-white);
}

html {
  overflow-x: hidden;
}

body {
  color: var(--timanttia-color-black);
  font-family: var(--timanttia-font-family-body);
  font-weight: var(--timanttia-font-weight-normal);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.2px;
  overflow-x: hidden;
}
@media screen and (min-width: 59.9375rem) {
  body {
    font-size: 18px;
  }
}
@media screen and (min-width: 85.3125rem) {
  body {
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: -0.25px;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--timanttia-font-family-headings);
  font-weight: var(--timanttia-font-weight-bold);
}

h1:not(.site-title),
.title-post {
  font-size: 35px;
  line-height: 43px;
}
@media screen and (min-width: 85.3125rem) {
  h1:not(.site-title),
  .title-post {
    font-size: 55px;
    line-height: 67px;
  }
}

h2 {
  font-size: 30px;
  line-height: 36px;
}
@media screen and (min-width: 85.3125rem) {
  h2 {
    font-size: 40px;
    line-height: 48px;
  }
}

h3 {
  font-size: 20px;
  line-height: 24px;
}
@media screen and (min-width: 85.3125rem) {
  h3 {
    font-size: 25px;
    line-height: 31px;
  }
}

h4 {
  font-size: 18px;
  line-height: 22px;
}
@media screen and (min-width: 85.3125rem) {
  h4 {
    font-size: 20px;
    line-height: 24px;
  }
}

h5 {
  font-size: 16px;
  line-height: 20px;
}
@media screen and (min-width: 85.3125rem) {
  h5 {
    font-size: 18px;
    line-height: 22px;
  }
}

body:not(.elementor-page):not(.panel-layout) .entry-content h2,
body:not(.elementor-page):not(.panel-layout) .entry-content h3,
body:not(.elementor-page):not(.panel-layout) .entry-content h4,
body:not(.elementor-page):not(.panel-layout) .entry-content h5,
body:not(.elementor-page):not(.panel-layout) .entry-content h6 {
  margin-top: 0;
}

input[type=submit],
input[type=reset],
button,
.button,
a.button,
button.button {
  background-color: var(--timanttia-color-lilac);
  border: none;
  border-radius: 0;
  color: var(--timanttia-color-black);
  display: inline-block;
  font-size: 1rem;
  font-weight: var(--timanttia-font-weight-bold);
  line-height: 1;
  letter-spacing: 0;
  padding: 0.875rem 2rem;
  position: relative;
  text-transform: none;
  transition: all 0.3s;
  z-index: 1;
}
@media screen and (min-width: 47.9375rem) {
  input[type=submit],
  input[type=reset],
  button,
  .button,
  a.button,
  button.button {
    font-size: 1.1875rem;
    padding: 1.0625rem 2.6875rem;
  }
}
@media screen and (min-width: 64rem) {
  input[type=submit],
  input[type=reset],
  button,
  .button,
  a.button,
  button.button {
    font-size: 1.375rem;
    padding: 1.25rem 3.375rem;
  }
}
input[type=submit]:hover, input[type=submit]:focus, input[type=submit]:active,
input[type=reset]:hover,
input[type=reset]:focus,
input[type=reset]:active,
button:hover,
button:focus,
button:active,
.button:hover,
.button:focus,
.button:active,
a.button:hover,
a.button:focus,
a.button:active,
button.button:hover,
button.button:focus,
button.button:active {
  background-color: var(--timanttia-color-yellow);
  color: var(--timanttia-color-black);
}

.dark-buttons input[type=submit],
.dark-buttons input[type=reset],
.dark-buttons button,
.dark-buttons .button,
.dark-buttons a.button,
.dark-buttons button.button {
  background-color: var(--timanttia-color-black);
  color: var(--timanttia-color-white);
}
.dark-buttons input[type=submit]:hover, .dark-buttons input[type=submit]:focus, .dark-buttons input[type=submit]:active,
.dark-buttons input[type=reset]:hover,
.dark-buttons input[type=reset]:focus,
.dark-buttons input[type=reset]:active,
.dark-buttons button:hover,
.dark-buttons button:focus,
.dark-buttons button:active,
.dark-buttons .button:hover,
.dark-buttons .button:focus,
.dark-buttons .button:active,
.dark-buttons a.button:hover,
.dark-buttons a.button:focus,
.dark-buttons a.button:active,
.dark-buttons button.button:hover,
.dark-buttons button.button:focus,
.dark-buttons button.button:active {
  background-color: var(--timanttia-color-red);
}

form label {
  font-weight: var(--timanttia-font-weight-normal);
  width: 100%;
}
form select,
form textarea,
form input {
  font-size: 1rem;
  max-width: 100%;
}
form input::-moz-placeholder, form textarea::-moz-placeholder {
  color: var(--timanttia-color-black);
  font-weight: var(--timanttia-font-weight-bold);
}
form input::placeholder,
form textarea::placeholder {
  color: var(--timanttia-color-black);
  font-weight: var(--timanttia-font-weight-bold);
}
form [type=submit] {
  color: var(--timanttia-color-white);
}
form [type=submit]::before {
  background-color: var(--timanttia-color-black);
}
form [type=submit]:hover::before, form [type=submit]:focus::before, form [type=submit]:active::before {
  background-color: var(--timanttia-color-red);
}

#masthead .site-header-inner {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.admin-bar .sticky-header.is-sticky,
.admin-bar .sticky-header.sticky-always {
  top: 0;
}

.bottom-header-row #mainnav ul li .sydney-svg-icon,
.main-header #mainnav ul li .sydney-svg-icon {
  width: 12px;
  height: 12px;
}
.bottom-header-row #mainnav ul li a:focus,
.main-header #mainnav ul li a:focus {
  color: var(--timanttia-color-yellow);
}
.bottom-header-row #mainnav ul > li > a,
.main-header #mainnav ul > li > a {
  font-size: 1.125rem;
  font-weight: var(--timanttia-font-weight-bold);
}
.bottom-header-row #mainnav ul ul li a:hover,
.main-header #mainnav ul ul li a:hover {
  color: var(--timanttia-color-yellow);
}

.header-search .icon-search,
.header-search .icon-cancel {
  width: 18px;
  height: 18px;
}
.header-search .icon-search svg,
.header-search .icon-cancel svg {
  max-height: 18px;
}

.header-search-form .search-submit {
  border: 2px solid var(--timanttia-color-white);
  background-color: transparent;
  color: var(--timanttia-color-white);
}
.header-search-form .search-submit:focus, .header-search-form .search-submit:hover {
  background-color: var(--timanttia-color-white);
  color: var(--timanttia-color-black);
}

.sydney-offcanvas-menu #mainnav .sub-menu {
  padding-top: 0 !important;
}

.page:not(.has-header-background-image) .entry-header,
.single-reference:not(.has-header-background-image) .entry-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
@media screen and (min-width: 47.9375rem) {
  .page:not(.has-header-background-image) .entry-header,
  .single-reference:not(.has-header-background-image) .entry-header {
    margin-bottom: 3.125rem;
  }
}
@media screen and (min-width: 85.3125rem) {
  .page:not(.has-header-background-image) .entry-header,
  .single-reference:not(.has-header-background-image) .entry-header {
    margin-bottom: 3.75rem;
  }
}
.page.has-header-background-image .page-wrap,
.single-reference.has-header-background-image .page-wrap {
  padding-top: 0;
}
.page.has-header-background-image .entry-header,
.single-reference.has-header-background-image .entry-header {
  margin-bottom: 2rem;
  position: relative;
}
@media screen and (min-width: 47.9375rem) {
  .page.has-header-background-image .entry-header,
  .single-reference.has-header-background-image .entry-header {
    margin-bottom: 3rem;
  }
}
@media screen and (min-width: 85.3125rem) {
  .page.has-header-background-image .entry-header,
  .single-reference.has-header-background-image .entry-header {
    margin-bottom: 5rem;
  }
}
.page.has-header-background-image .entry-header .background-image-wrap,
.single-reference.has-header-background-image .entry-header .background-image-wrap {
  padding-top: 25vw;
  min-height: 250px;
  max-height: 345px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
}
.page.has-header-background-image .entry-header .background-image-wrap::before,
.single-reference.has-header-background-image .entry-header .background-image-wrap::before {
  background: linear-gradient(0deg, var(--timanttia-color-white) 0%, transparent 100%);
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}
.page.has-header-background-image .entry-header .background-image-wrap img,
.single-reference.has-header-background-image .entry-header .background-image-wrap img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center center;
     object-position: center center;
  pointer-events: none;
}
.page.has-header-background-image .entry-header .entry-title,
.single-reference.has-header-background-image .entry-header .entry-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.page.has-header-background-image .entry-header .timanttia-decoration,
.single-reference.has-header-background-image .entry-header .timanttia-decoration {
  height: 150px;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 1;
  transform: translate(50%, 18%);
}
@media screen and (min-width: 47.9375rem) {
  .page.has-header-background-image .entry-header .timanttia-decoration,
  .single-reference.has-header-background-image .entry-header .timanttia-decoration {
    height: 261px;
    transform: translate(33%, 18%);
  }
}
@media screen and (min-width: 85.3125rem) {
  .page.has-header-background-image .entry-header .timanttia-decoration,
  .single-reference.has-header-background-image .entry-header .timanttia-decoration {
    height: 372px;
    transform: translate(25%, 18%);
  }
}

#secondary {
  color: var(--timanttia-color-black);
  font-size: 1rem;
  line-height: 1.5;
}
#secondary a:focus, #secondary a:hover {
  color: var(--timanttia-color-red);
}

.site-footer {
  font-size: 1.125rem;
}
.site-footer a:focus {
  color: var(--timanttia-color-yellow);
}

.footer-widgets {
  font-size: 1.125rem;
}

.footer-widgets-grid.footer-layout-2 {
  grid-template-columns: repeat(2, auto);
  justify-content: space-between;
}
.footer-widgets-grid.footer-layout-2 .sidebar-column {
  min-width: 200px;
}
.footer-widgets-grid .widget .widget-title {
  font-family: var(--timanttia-font-family-body);
  font-size: inherit;
  font-weight: var(--timanttia-font-weight-normal);
}
.footer-widgets-grid .widget + .widget {
  margin-top: 4.875rem;
}
.footer-widgets-grid .widget_nav_menu .menu {
  margin: 0;
}
.footer-widgets-grid .widget_nav_menu .menu .menu-item {
  margin-bottom: 1.5rem;
}
.footer-widgets-grid .widget_nav_menu .menu .menu-item a {
  font-weight: var(--timanttia-font-weight-bold);
}
.footer-widgets-grid .widget_nav_menu .menu .sub-menu {
  margin-top: 1.5rem;
}

#content form._inline-form {
  padding: 0;
  margin: 0 auto 1.5rem;
}
#content form._inline-form select,
#content form._inline-form input,
#content form._inline-form textarea {
  border-color: var(--timanttia-color-gray) !important;
  border-radius: 0 !important;
  font-size: 16px !important;
  max-width: 100% !important;
  padding: 0.25rem 1.5rem !important;
  height: 50px !important;
  width: 100% !important;
}
#content form._inline-form ._form_element {
  margin-bottom: 1rem !important;
}
#content form._inline-form ._submit {
  border-radius: 0 !important;
  background-color: var(--timanttia-color-black) !important;
  color: var(--timanttia-color-white) !important;
}
#content form._inline-form ._submit:focus,
#content form._inline-form ._submit:hover {
  background-color: var(--timanttia-color-red) !important;
  color: var(--timanttia-color-white) !important;
}

.boxzilla .boxzilla-close-icon {
  color: inherit;
  opacity: 1;
}

.boxzilla-52-vinkkia-yhteisollisyyteen-e-kirja {
  max-width: 550px;
  width: 100%;
}

.boxzilla-52-vinkkia-yhteisollisyyteen-e-kirja .boxzilla-content > * {
  color: inherit;
  hyphens: auto;
  font-size: 1rem;
  line-height: 1.5;
}

.boxzilla-52-vinkkia-yhteisollisyyteen-e-kirja .boxzilla-content a {
  color: var(--timanttia-color-white);
  text-decoration: underline;
}

.boxzilla-52-vinkkia-yhteisollisyyteen-e-kirja .boxzilla-content a:focus,
.boxzilla-52-vinkkia-yhteisollisyyteen-e-kirja .boxzilla-content a:hover {
  color: var(--timanttia-color-yellow);
}

.boxzilla-52-vinkkia-yhteisollisyyteen-e-kirja img {
  border: 2px solid var(--timanttia-color-white);
  display: block;
}

.boxzilla-52-vinkkia-yhteisollisyyteen-e-kirja img.alignright {
  margin: 0 0 2rem 2rem;
}

@media screen and (max-width: 768px) {
  .boxzilla-52-vinkkia-yhteisollisyyteen-e-kirja img {
    display: none;
  }
}
.wpcf7 [type=submit] {
  background-color: var(--timanttia-color-black);
  color: var(--timanttia-color-white);
  margin-top: 2rem;
}
.wpcf7 [type=submit]:hover, .wpcf7 [type=submit]:focus {
  background-color: var(--timanttia-color-red);
  color: var(--timanttia-color-white);
}
.wpcf7 select,
.wpcf7 textarea,
.wpcf7 input {
  width: 100%;
}

body #eu-cookie-law {
  padding: 1.5rem;
  font-size: 0.875rem;
}

body #eu-cookie-law input.accept {
  position: static;
  margin: 0 0 1rem;
}

/* ===== TAGS ===== */
.tags-links a,
.tags-links a:first-of-type {
  font-size: 0.875rem;
  margin: 0 1rem 1rem;
}

/* ===== RELATED ===== */
.single #jp-relatedposts .jp-relatedposts-headline {
  font-size: 1.625rem;
}

.single #jp-relatedposts .jp-relatedposts-items p,
.single #jp-relatedposts .jp-relatedposts-items time {
  font-size: 1rem;
}

.single #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.relevanssi-query-term {
  font-weight: var(--timanttia-font-weight-bold);
  text-decoration: underline;
}

.no-sidebar .entry-content .alignfull {
  margin: 0 calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}