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


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

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



/***  Theme Breakpoints
small:   0      - 639px
medium:  640    - 823px
large:   824    - 1023px
xlarge:  1024px - 1439px
xxlarge: 1440px
*/



:root {
  --color-primary: #323d4b;
  --color-secondary: #ab6c56;
  --color-1: #c87c5b;
  --color-2: #d1c6b7;
  --color-3: #e0d3c3;
  --color-4: #f1eadb;
  --color-prim-alt: #636c74;
  --color-5: #334038;
  --color-6: #808268;
  --color-7: #7c8177;
  --color-8: #bfc3bb;
  --color-dark: #000000;
  --color-light: #f0eee7;

  --font: 'Silka', Arial, sans-serif;
  /* Regular: 400 */
  /* Medium: 500 */
  /* SemiBold: 600 */
  /* Bold: 700 */


  --top-menu-height: 80px;

  --admin-bar: 0px;
  --secondary-menu-height: 0px;
  --menu-height: 110px;
  --mobile-menu-height: 50px;

  --header-height: calc(var(--secondary-menu-height) + var(--menu-height));

  --transition: all .25s ease-out;
}

.secondary-menu-row.hidden + .primary-menu-row {
  --secondary-menu-height: 0px;
}

@media (max-width: 1499px) {
  :root {
    --menu-height: 100px;
  }
}

@media (max-width: 1199px) {
  :root {
    --menu-height: 60px;
    --secondary-menu-height: 0px;
  }
}

@media (max-width: 782px) {
  :root {
    --admin-bar: 46px;
  }
}

/*****/
@media (min-width: 783px) {
  :root {
    --admin-bar: 0px;
  }
  .admin-bar {
    --admin-bar: 32px;
    --header-height: calc(var(--admin-bar) + var(--secondary-menu-height) + var(--menu-height));
  }
}
@media (max-width: 782px) {
  :root {
    --admin-bar: 0px;
  }
  .admin-bar {
    --admin-bar: 46px;
    --header-height: calc(var(--admin-bar) + var(--secondary-menu-height) + var(--menu-height));
  }
}




/* Colors */

.text-light { color: #fff; }
.text-dark { color: var(--color-dark); }

.bg-none { background-color: transparent; }
.bg-white { background-color: #fff; }
.bg-light { background-color: var(--color-light); }
.bg-light-1 { background-color: var(--color-4); }
.bg-light-2 { background-color: var(--color-8); }




/* Fontit (ks. graafinen ohjeisto) */

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

/* Common Styles */

::selection {
  background: #4d2f48;
  background: #71596d;
  color: #fff;
}

html, body {
  font-family: var(--font);
  overflow-x: hidden;
}

.admin-bar header#masthead:not(.sticky) {
  margin-top: var(--admin-bar);
}
.admin-bar .nav-sub-second-mega ul.nav-sub-second {
  margin: 32px 0 0 0;
}


body,input,select,optgroup,textarea {
  font-family: var(--font);
  font-size: 16px;
  font-size: 1em;
  font-style: normal;
  font-weight: 400;
  color: var(--main-dark-grey);
}

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

a:focus, a:active, a:visited {
  color: inherit;
}
a:visited {
  color: unset;
}
a:not(.btn):hover,
a:not(.btn):visited:hover {
  color: var(--color-secondary);
}

a.external-link {
  align-items: baseline;
  column-gap: .8125rem;
  display: inline-flex;
}

body, input, select, optgroup, textarea {
    --color: #fff;
}

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

ol li {
  margin-bottom: 1.5rem;
}
ol li li:not(:last-child) {
  margin-bottom: .5rem;
}

svg {
  display: block;
}


/**  General **/

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


/**  Accessibility  **/
a:focus-visible {
  outline: 2px solid var(--color-secondary);
}


/* Typography */

h1,h2,h3,h4,h5,h6 {
  color: var(--color-primary);
  font-family: var(--font);
  line-height: 1.35;
}
    h1 span, h2 span, h3 span, h4 span, h5 span, h6 span {
      color: var(--color-1);
    }

p,strong,em,li,th,td {
  font-family: var(--font);
}
p, li, div, :before, :after {
  line-height: 1.875;
}

h1 {
  font-size: 2.375rem;
  font-style: normal;
  font-weight: 700;
  margin-bottom: 2rem;
}
h2 {
  font-size: 1.9375rem;
  font-style: normal;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
h3 { 
  font-size: 1.55rem;
  font-style: normal;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
h4 { 
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 600;
  margin-bottom: 1rem;
}
h5, h6 { 
  font-style: normal;
  font-weight: 500;
}
thead th {
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 400;
}
tbody td {
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
}

p {
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  margin-bottom: 1.5rem;
}
  p.align-justify { text-align: justify; }
  p.hyphened { hyphens: auto; hyphenate-limit-chars: 5 5 5; }

b, strong {
  font-style: normal;
  font-weight: 600;
}
ul li {
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

blockquote {
  position: relative;
  border: 0;
  margin: 1rem 0;
  padding: 1rem 1.5rem;
}
blockquote:before {
  content: '”';
  position: absolute;
  top: 0;
  left: 0;
  font-size: 250%;
}
blockquote, blockquote p {
  color: inherit;
  font-size: 110%;
}


/**********     1500px     **********/
@media (max-width: 1439px) {

  p, ul li, ol li {
    font-size: 1rem;
  }

  thead th {
    font-size: 1.25rem;
  }
}

/**********     1200px     **********/
@media (max-width: 1199px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }

  p {
    font-size: 1rem;
  }

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


/**********     1024px     **********/
@media (max-width: 1023px) {
  h1 { margin-bottom: 1rem; }
  h2 { font-size: 1.375rem; margin-bottom: .75rem; }
}


/**********     640px     **********/
@media (max-width: 639px) {
  h1, .home h1.entry-title { font-size: 1.375rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  p { font-size: .9375rem; }
}




/******* GENERAL BLOCKS STYLES *******/

.page-block {
  color: var(--color-primary);
  position: relative;
}

.justify-content-start {
  justify-content: flex-start;
}
.justify-content-end {
  justify-content: flex-end;
}


/* Block Paddings */

.top-padding-none {
  padding-top: 0;
}
.top-padding-narrow {
  padding-top: 4rem;
}
.top-padding-wide {
  padding-top: 8rem;
}

.bottom-padding-none {
  padding-bottom: 0;
}
.bottom-padding-narrow {
  padding-bottom: 4rem;
}
.bottom-padding-wide {
  padding-bottom: 8rem;
}


@media (max-width: 1200px) {

  .top-padding-narrow {
    padding-top: 2rem;
  }
  .top-padding-wide {
    padding-top: 4rem;
  }

  .bottom-padding-narrow {
    padding-bottom: 2rem;
  }
  .bottom-padding-wide {
    padding-bottom: 4rem;
  }

}



/* Block Margins */

.no-margin {
  margin: 0 auto;
}
.small-margin {
  margin: 4rem auto;
}
.big-margin {
  margin: 8rem auto;
}



/* Foundation Alterations */

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



.post, .page {
  margin: 0;
}
main#primary {
  /* margin-top: calc(var(--menu-height) + var(--secondary-menu-height)); */
  -webkit-transition: margin-top .1s ease-in-out;
  transition: margin-top .1s ease-in-out;
}
.menu.align-center li a {
  font-size: 18px;
}
.secondary-menu {
  padding-left: 2rem;
}





/* Widths */

.width-narrow {
  max-width: 45rem;
  margin: 0 auto;
}
.width-content {
  max-width: 74.5rem;
  margin: 0 auto;
}
.width-full {
  margin-left: 4rem;
  margin-right: 4rem;
}

.hero-width-narrow {
  max-width: 45rem;
}
  .text-center .hero-width-narrow {
    margin: 0 auto;
  }
.hero-width-content {
  max-width: 65rem;
}
  .text-center .hero-width-content {
    margin: 0 auto;
  }
.width-narrow-content {
  max-width: 70rem;
  margin: 0 auto;
}
.width-100 {
  max-width: 100rem;
  margin: 0 auto;
}
.width-max-content {
  max-width: max-content;
  margin: 0 auto;
}


@media (max-width: 1439px) {
  .width-full {
    margin-left: 3rem;
    margin-right: 3rem;
  }
}
@media (max-width: 1199px) {
  .width-narrow {
    max-width: 45rem;
  }
  .width-content {
    margin: 0 3rem;
  }
  .width-full {
    margin-left: 2rem;
    margin-right: 2rem;
  }

  .width-narrow-content {
    max-width: 100%;
    margin: 0 3rem;
  }
}
@media (max-width: 1023px) {
  .width-narrow {
    max-width: 100%;
    margin: 0 2rem;
  }
  .width-content,
  .width-narrow-content {
    margin: 0 2rem;
  }
}
@media (max-width: 823px) {
  .width-narrow,
  .width-full {
    margin-left: .875rem;
    margin-right: .875rem;
  }
}
@media (max-width: 639px) {
  .width-content,
  .width-narrow-content {
    margin: 0 1rem;
  }
}




/* Header */

.nav-menu-1, .nav-menu-2, .nav-menu-logo {
  padding-left: 0rem;
  padding-right: 0rem;
}


/* Hero */

header {
  position: relative;
}
header.entry-header {
  background: var(--color-light);
  color: var(--color-primary);
  height: auto;
  width: 100%;
  z-index: 0;
}
    header.entry-header.hero-floating {
      position: absolute;
    }

header.height-half {
  height: 50vh;
}
header.height-normal {
  height: 70vh;
}
header.height-full {
  height: calc(100vh - var(--header-height));
  max-height: 1200px;
}
.height-full-flow {
  height: 150vh;
  max-height: 1300px;
}

header.entry-header.height-full {
  height: 64vw;
  height: 106vh;
  max-height: 70rem;
}
header.entry-header.height-default {
  height: clamp(30rem, 100vh, 60rem);
}
header.entry-header.height-narrow {
  height: clamp(28rem, 40vw, 45rem);
}

.hero-title {
  position: relative;
}

.bg-mask {
  width: 100%;
  height: 100%;
  z-index: 5;
}
.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}
  .hero-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    -webkit-user-drag: none;
  }
.hero-title-wrapper {
  align-items: center;
  display: flex;
  height: 100%;
  position: relative;
}
.height-full-flow .hero-title-wrapper {
  height: calc(100vh - 144px);
  position: relative;
  max-height: 950px;
}
header.entry-header.no-image {
  background: var(--color-secondary);
  padding: 5rem 0;
  text-align: center;
  color: #fff;
}
header.entry-header .entry-title {
  margin-bottom: 0;
}

.home h1.entry-title {
  font-size: clamp(1.3125rem, 2.875vw, 2.375rem);
}

.entry-description {
  padding-right: 3rem;
}
.entry-description,
.entry-description p {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.85;
  margin-top: 1.25rem;
}


@media (max-width: 1199px) {
  header.entry-header.height-full {
    height: fit-content;
  }
}
@media (max-width: 823px) {
  .entry-description,
  .entry-description p {
    font-size: .9375rem;
    font-weight: 400;
    line-height: 1.85;
    margin-top: .875rem;
  }
}
@media (max-width: 639px) {
  .entry-description {
    padding-right: 8rem;
  }
}
@media (max-width: 480px) {
  .entry-description {
    padding-right: 0;
  }
}




/* Hero Blob Shape */

.entry-header .bgblobs {
  position: absolute;
  bottom: 4vw;
  right: 0;
  height: auto;
  width: clamp(156px, 20vw, 400px);
  transform: translatex(50%);
  z-index: 0;
}

@media (min-width: 1200px) {
  .entry-header .bgblobs {
    bottom: 170px;
    right: -10vw;
  }
}

@media (max-width: 639px) {
  .entry-header .bgblobs {
    bottom: 12vw;
    right: 0;
  }
}

/* @media (max-width: 480px) {
  .entry-header .bgblobs {
    bottom: 24px;
    right: 43vw;
    max-width: 120px;
    transform: translatex(50%) rotate(-100deg);
  }
} */




.entry-header .hero-title {
  position: relative;
  z-index: 3;
}
header.entry-header.height-full .hero-title {
  padding-bottom: 10rem;
}

@media (max-width: 1199px) {
  header.entry-header.height-full .hero-title {
    padding-bottom: 14rem;
    padding-top: 8rem;
  }
}

@media (max-width: 1023px) {
  header.entry-header.height-full .hero-title {
    padding-bottom: 20rem;
  }
}

@media (max-width: 639px) {
  header.entry-header.height-full .hero-title {
    padding-top: 7rem;
  }
}

@media (max-width: 480px) {
  header.entry-header.height-full .hero-title {
    padding-bottom: 16rem;
    padding-top: 5rem;
  }
}



.entry-header .hero-image {
  -webkit-mask-image: url('/wp-content/themes/rajasoft_wp/img/hero-imageblob.svg');
  mask-image: url('/wp-content/themes/rajasoft_wp/img/hero-imageblob.svg');
  webkit-mask-image: url('/wp-content/themes/rajasoft_wp/img/hero-imageblob.svg');
  mask-mode: alpha;
  webkit-mask-mode: alpha;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  webkit-mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  webkit-mask-position: center;
  
  bottom: 0;
  right: -200px;
  max-width: 814px;
  height: auto;


  @media (min-width: 1200px) and (max-width: 1599px) {
    right: -12vw;
    max-width: 54vw;
  }
  @media (max-width: 1199px) {
    right: -2vw;
    max-width: 48vw;
  }
  @media (max-width: 639px) {
    max-width: 70vw;
  }
}

.entry-header .hero-image img {
  animation: move 20s ease;
  -ms-animation: move 20s ease;
  -webkit-animation: move 20s ease;
  -moz-animation: move 20s ease;
  animation-fill-mode: forwards;
  -ms-animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
  -moz-animation-fill-mode: forwards;
}

@-webkit-keyframes move {
  0% {
    -webkit-transform-origin: bottom left;
    -moz-transform-origin: bottom left;
    -ms-transform-origin: bottom left;
    -o-transform-origin: bottom left;
    transform-origin: bottom left;
    transform: scale(1.0);
    -webkit-transform: scale(1.0);
    -o-transform: scale(1.0);
    -moz-transform: scale(1.0);
  }
  100% {
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -o-transform: scale(1.2);
    -moz-transform: scale(1.2);
  }
}





#heroshape {
  bottom: -120px;
  height: auto;
  left: 50%;
  position: absolute;
  transform: translatex(-50%);
  width: 100%;
  z-index: 2;
}

@media (min-width: 1900px) {
  .entry-header .hero-image {
    bottom: 75px;
    right: -200px;
  }
}

@media (max-width: 1023px) {
  #heroshape {
    bottom: -15px;
  }
  .entry-header .hero-image {
    bottom: 3vw;
    right: 0;
  }
}



/* Footer */
footer {
  /*border-top: solid 1px #ddc2b061;*/
  background-color: var(--color-8);
}

@media (max-width: 832px) {
  #footer-logo {
    max-width: 280px;
  }
}
@media (max-width: 639px) {
  #footer-logo {
    max-width: 200px;
  }
}





/* Buttons */

.btn {
  border-radius: 12px;
  border-width: 3px;
  border-style: solid;
  display: flex;
    align-items: center;
    justify-content: space-between;
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 600;
  padding: 0.625rem 1.375rem 0.5625rem 1.375rem;
  width: fit-content;
}

/* Button Styles */
/*
btn-primary : Tummansininen
btn-secondary : Punainen
btn-alternate : Punainen
btn-primary-alt : Ääriviivallinen
*/


/* Primary Button */
.btn-primary, a.btn-primary,
.btn-primary:visited, a.btn-primary:visited {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
  .btn-primary:hover,
  .btn-primary:visited:hover,
  .btn-primary:active,
  .btn-primary:focus {
    background: var(--color-1);
    color: #fff;
    border-color: var(--color-1);
  }

    .btn-primary-alt, a.btn-primary-alt,
    .btn-primary-alt:visited, a.btn-primary-alt:visited {
      background: transparent;
      color: var(--color-primary);
      border-color: var(--color-primary);
    }
      .btn-primary-alt:hover,
      .btn-primary-alt:active,
      .btn-primary-alt:focus {
        background: transparent;
        color: var(--color-secondary);;
        border-color: var(--color-secondary);
      }
    .btn-primary-alt .arrow-svg {
      fill: var(--color-primary);
    }

/* Secondary Button */
.btn-secondary,
.btn-secondary:visited {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}
  .btn-secondary:hover,
  .btn-secondary:active,
  .btn-secondary:focus {
    background: var(--color-1);
    color: #fff;
    border-color: var(--color-1);
  }


/* Alternate Button */
.btn-alternate,
.btn-alternate:visited {
  background: var(--color-1);
  color: #fff;
  border-color: var(--color-1);
}
  .btn-alternate:hover,
  .btn-alternate:active,
  .btn-alternate:focus {
    background: #b6755c;
    color: #fff;
    border-color: #b6755c;
  }



/* Exceptions */

.menu-button .btn {
  padding: 17px 22px;
}

.btn-bigger {
  background: transparent;
  display: block;
  font-size: 1.3125rem;
  max-width: 75rem;
  padding: 0.6rem 1.6875rem 0.5rem 1.6875rem;
  width: max-content;
}

.text-center .btn { 
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.hero-title-wrapper a.btn { 
  position: relative;
}
.hero-button {
  margin-top: 3rem;
}

.post-item-link .btn {
  width: 100%;
}

/**********/
@media (max-width: 1499px) {
  .menu-button .btn {
    font-size: 1rem;
    padding: 14px 20px;
  }
}
@media (max-width: 1439px) {
  .menu-button .btn {
    font-size: .9375rem;
    padding: 12px 16px;
  }
}
@media (max-width: 1199px) {
  .menu-button .btn {
    border-radius: 6px;
    font-size: .875rem;
    padding: 7px 8px;
  }
}
@media (max-width: 1023px) {
  .btn {
    border-radius: 6px;
    border-width: 2px;
    font-size: 1rem;
    font-weight: 500;
    padding-bottom: 6px;
    padding-left: 17px;
    padding-right: 17px;
    padding-top: 6px;
  }
  .btn-bigger {
    font-size: 1rem;
  }
}
@media (max-width: 823px) {
  .hero-button {
    margin-top: 1.5rem;
  }
  .btn-bigger {
    font-weight: 500;
    padding: .375rem 1rem .3125rem 1rem;
  }
}



/** Breadcrumbs */

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





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


/* Block General */

.page-block .block-title {
  margin-top: 0;
}

.text-block-lead a, .text-block-text a {
  text-decoration: underline;
}

.entry-content {
  margin: 0 auto;
}
    .entry-header:not(.hero-fixed) + .entry-content {
      padding-top: 8.75rem;
    }
.entry-content:not(:has(div)) {
  padding-top: 10rem;
}

.single-post .post-navigation {
  padding-bottom: 4rem;
}

@media (max-width: 639px) {
  .entry-header:not(.hero-fixed) + .entry-content {
    padding-top: 4rem;
  }
}



/****** Media Queryt ******/

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

  .page-breadcrumb {
    margin: 4rem;
  }
  .page-block.bg-gray {
    margin: 0;
  }
}

@media screen and (max-width: 68.750em) { /* < 1100px */
  .arrow-svg svg {
    max-height: 23px;
  }
  .person-name {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 62.5em) { /* < 1000px */
  .text-block-lead, .font-size-lead.text-block-link a  {
    font-size: 1.5em;
  }

  .page-breadcrumb li, .page-breadcrumb li a {
    font-size: 1em;
  }
  .person-description {
    font-size: 1rem;
  }
}



/* HAKUTULOKSET */
.search-results #primary {
  background: var(--color-light);
}
.search-results .search-results-container {
  position: relative;
  padding: 3rem 0;
}
.search-results .page-header {
  margin-bottom: 3rem;
}
.search-results .posts-navigation {
  margin-top: 3rem;
}

.search-results .search-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 2px solid var(--color-secondary);
  border-radius: .75rem;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
}
.search-results .search-form label,
.search-results .search-form .search-field {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  width: 100%;
}
.search-results .search-form .search-submit {
  background: var(--color-primary);
  border: 0;
  cursor: pointer;
}
.search-results .search-form .search-submit:hover {
  background: #393741;
}

.search-results .search-results-count {
  display: flex;
  justify-content: flex-end;
  font-weight: 600;
  padding: 1rem 1.625rem;
}



/* YKSITTÄINEN ARTIKKELINÄKYMÄ */

.single-post .entry-meta {
  color: #fff;
  font-size: 1.6rem;
  font-family: var(--font);
  text-transform: uppercase;
  text-align: center;
  padding-bottom: 1rem;
}

.hero-single {
  height: 50vh;
  min-height: 500px;
  max-height: 1000px;
}
.single-post-mask {
  opacity: 20%;
  background: #134851;
  position: absolute;
}
.hero-single .entry-title {
  color: #fff;
  text-align: center;
}



/* Pagination */

.nav-links {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}
.nav-links .nav-name {
  opacity: 0.35;
}
.nav-links .nav-title {
  position: relative;
}
.nav-links .nav-previous {
  max-width: 50%;
}
.nav-links .nav-next {
  max-width: 50%;
  text-align: right;
}
.nav-links .nav-title .arrow-svg {
  position: absolute;
  top: 5px;
  display: inline;
  width: auto;
  height: 16px;
  margin: 0;
  -webkit-transition: all .125s ease-out;
  transition: all .125s ease-out;
}
    .nav-links .nav-previous .nav-title .arrow-svg {
      left: -30px;
      transform: rotate(180deg);
    }
    .nav-links .nav-next .nav-title .arrow-svg {
      right: -30px;
    }




/* Password Protected */

.password-container {
  margin: 12rem 1rem;
  display: flex;
  justify-content: center;
}
.password-container form {
  max-width: 40rem;
}




/* ARTIKKELIEN ARKISTONÄKYMÄ */

.featured-post {
  position: relative;
}
.featured-post-content {
  position: relative;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  z-index: 3;
}
.featured-post .bg-mask {
  position: absolute;
  top: 0;
  background: #00000024;
  z-index: 2;
}
.featured-post-image {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.featured-post-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.featured-post-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.featured-post-excerpt, .featured-post-excerpt p {
  font-size: 1.5rem;
}
.featured-post-excerpt p:last-child {
  margin-bottom: 0;
}
.featured-post-link {
  margin-top: 3rem;
}

.posts-archive {
  margin-top: 1.875rem;
  margin-bottom: 1.875rem;
}
.posts-archive .posts-list .post-item {
  display: flex;
  flex-flow: wrap column;
  justify-content: space-between;
  margin-top: 5rem;
}
.posts-archive .posts-list .post-item-image {
  position: relative;
}
.posts-archive .posts-list .post-item-image .featured-image {
  position: relative;
  width: 100%;
  height: 15vw;
  overflow: hidden;
}
.posts-archive .posts-list .post-item-image .featured-image img {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.posts-archive .posts-list .post-item-content .post-meta {
  margin: 0.5rem 0;
}
.posts-archive .posts-list .post-item-content .post-title {
  font-size: 1.5rem;
  margin-top: 0;
}




/*****************************************/
/**********                     **********/
/**********    Media Queries    **********/
/**********                     **********/
/*****************************************/


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

@media (max-width: 639) {
  .single-post .entry-meta {
    font-size: 1rem;
  }

  .page-breadcrumb {
    margin: 4rem 2rem;
  }
  .page-ul-breadcrumb {
    flex-wrap: wrap;
  }
  .page-breadcrumb li {
    margin-bottom: 0.25rem;
  }
  .page-breadcrumb .seperator .arrow-svg {
    width: 11px;
    margin: 0 0.75rem;
    height: auto;
  }
  .page-breadcrumb li:last-child {
    max-width: calc(100vw - 4rem);
  }
}