@font-face {
    font-family: 'Futura';
    src: url('/wp-content/themes/mustonen/fonts/futura.otf');
    font-weight: normal;
}

@font-face {
    font-family: 'Futura';
    src: url('/wp-content/themes/mustonen/fonts/futura-bold.otf');
    font-weight: bold;
}

@font-face {
    font-family: 'Futura';
    src: url('/wp-content/themes/mustonen/fonts/futura-light.otf');
    font-weight: 100;
}

@font-face {
    font-family: 'Bell';
    font-weight: 400;
    src: url('/wp-content/themes/mustonen/fonts/bell.otf');
}

@font-face {
    font-family: 'Bell';
    font-weight: bold;
    src: url('/wp-content/themes/mustonen/fonts/bell-bold.otf');
}

* {
    cursor: default;
}

a, a * {
    cursor: pointer;
}

body {
    background-color: #e2ebe2;
    font-family: "Futura";
    font-weight: 100;
}

.nav a, #tabs a {
    text-decoration: none;
}

#tabs a h1 {
    font: unset;
}

#page .page p, #page .post p, #page .page a, #page .post a {
    font-family: "Bell";
    font-weight: 400;
}

img {
    width: 100%;
    max-width: unset;
    height: auto;
}

#header {
    z-index: 999996;
}

a, a:visited {
    color: black;
    text-decoration: underline;
}

::-webkit-selection { 
    background-color: #deced9; 
    color: #000;
}

::-moz-selection { 
    background-color: #deced9; 
    color: #000;
}

::selection {
    background-color: #deced9;
    color: #000;
}

p.lowercase {
    text-transform: lowercase;
}

p.sansserif, p.is-style-sansserif {
    font-family: Futura !important;
}

p.name, p.name * {
    font-weight: bold;
    text-decoration: none;
}

p.middle {
    text-align: center;
}

/** image slider **/

.wp-block-gallery, .wp-block-gallery * {
    display: block;
}

.wp-block-gallery.has-nested-images:not(.is-style-grid) figure.wp-block-image {
	margin: 0 !important;
}

.wp-block-gallery figcaption * {
    display: inline;
}

.wp-block-gallery:not(.is-style-grid) {
    height: auto;
    width: 100%;
    position: relative;
    max-width: none;
}

.wp-block-gallery:not(.is-style-grid) li.blocks-gallery-item, .wp-block-gallery.has-nested-images:not(.is-style-grid) figure.wp-block-image {
    opacity: hide;
    display: none;
    margin: 0;
    width: 100% !important;
}

.wp-block-gallery:not(.is-style-grid) li.blocks-gallery-item:first-of-type, .wp-block-gallery.has-nested-images:not(.is-style-grid) figure.wp-block-image:first-of-type {
    opacity: show;
    display: block;
}

.wp-block-gallery:not(.is-style-grid) li.blocks-gallery-item figure {
    display: block;
    width: 100%;
    height: 100%;
}

.wp-block-gallery:not(.is-style-grid) img {
    margin: 0 auto;
    max-width: unset;
    height: auto;
    width: 100%;
}

.wp-block-gallery:not(.is-style-grid) figcaption {
    background: none;
    background-color: #EFF4F0;
    color: black;
    font-size: 1rem;
    text-align: right;
    padding: 0.7rem;
    position: static;
}

span.ak_next, span.ak_prev, span.ak_next_nested, span.ak_prev_nested {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 999993;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    width: 3rem;
    height: 3rem;
    padding: 0.5rem;
    transition: opacity 0.2s, top 0.3s;
}

span.ak_next::after, span.ak_prev::after, span.ak_next_nested::after, span.ak_prev_nested::after {
    content: "";
    display: inline-block;
    height: 2rem;
    width: 2rem;
    border-right: 0.1rem solid white;
    border-bottom: 0.1rem solid white;
}

span.ak_next, span.ak_next_nested {
    right: 1.2rem;
    transform: rotate(-45deg);
}

span.ak_prev, span.ak_prev_nested {
    left: 1.2rem;
    transform: rotate(135deg);
}

#logo img {
    width: auto;
    transition: height 0s linear 0s;
}

.wp-block-gallery.is-style-grid li figcaption strong {
    display: inline;
}

.search-form input[type=search] {
    border: 0px solid white;
    border-bottom: 0.1rem solid #bbb;
    background-color: rgba(255, 255, 255, 0.6);
    line-height: 2.3rem;
    width: 10vw;
    font-size: 1rem;
    padding: 0 0.6rem 0 2.4rem;
    transition: background-color 0.3s;
}

.search-form input[type=search]:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 1);
}

.search-form input[type=submit] {
    font-size: 0.5rem;
    height: 1.6rem;
    border: none;
    width: 1.6rem;
    position: relative;
    left: 2.4rem;
    bottom: 0.1rem;
    background: url(/wp-content/themes/mustonen/img/search.svg);
    background-color: transparent;
    background-size: cover;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.search-form input[type=submit]:hover {
    opacity: 0.6;
}

div.wp-block-columns, div.wp-block-column {
    display: block;
    text-align: left;
    margin: 0;
}

@supports (display: flex) {
    div.wp-block-columns {
        display: flex;
    }
}

div.wp-block-columns > div.wp-block-column:not(:first-child){
    margin: 0;
}

#page div.columns-amnt-3 .wp-block-columns > div.wp-block-column:first-of-type p {
    font-family: "Futura";
    font-weight: 100;
}

.leftcolumn *, .rightcolumn * {
    text-align: left;
}

#page > div > *:empty {
    display: none;
}

#page > div > .wp-block-spacer, #page > div > .wp-block-separator {
    display: inline-block;
}

.wp-block-separator {
    border: none;
}

.wp-block-gallery.is-style-grid ul:after, #tabs ul:after {
  content: "";
  display: table;
  clear: both;
}

div.wp-block-file {
    margin: 0;
}

#page .page div.pdfemb-viewer {
    margin-top: 2rem;
}

.wp-block-mustonen-projectinfo h3 {
    margin-bottom: 0.6rem;
}

#page .post .projectinfo-title, #page .post .projectinfo-location {
    display: inline-block;
}

#page .post .projectinfo-title {
    padding-right: 0;
}

#page .post .projectinfo-location {
    padding-left: 0;
}

.wp-block-mustonen-projectinfo .divider {
    border-bottom: 0.2rem solid #ffffff99;
    width: 90%;
    display: none;
}

#page .post .projectinfo-location:not(:empty)::before {
    content: ", ";
    padding-right: 0.2rem;
    margin-left: -0.1rem;
    font-size: 1.35rem;
}

#content #page p.has-small-font-size {
    font-size: 70%;
    line-height: 70%;
}

#content #page p.has-medium-font-size {
    font-size: 120%;
    line-height: 120%;
}

#content #page p.has-large-font-size {
    font-size: 140%;
    line-height: 140%;
}

#content #page p.has-huge-font-size {
    font-size: 160%;
    line-height: 160%;
}

@media only screen and (max-width: 900px) {
    
    /* Stroke effect */
    
    .stroke > ul li > a {
        -moz-text-stroke-width: 0px;  
        -webkit-text-stroke-width: 0px;
        text-shadow: none;
    }
    
    @supports 
    ((-webkit-text-stroke-color: #000)
    and
    (-webkit-text-fill-color: #000))
    or
    ((-moz-text-stroke-color: #000)
    and
    (-moz-text-fill-color: #000)) {
        .stroke > ul li:hover > a, .stroke .lang-item.current-lang a, .block:hover h1.stroke, .stroke .current-menu-item > a {
               -moz-text-fill-color: #000;
            -webkit-text-fill-color: #000;
               -moz-text-stroke-color: #000;
            -webkit-text-stroke-color: #000;
               -moz-text-stroke-width: 1px;  
            -webkit-text-stroke-width: 1px;
            text-shadow: none;
        }
    }
    
    h2, h3 {
        font-weight: 400;
        font-size: 1.3rem;
        color: #333;
        font-weight: normal;
    }
    
    .post h3 {
        font-size: 1rem; 
    }
    
    .page h2, .page h3 {
        padding: 1.8rem 0.2rem 0.1rem 0.8rem;
    }
    
    .post h2, .post h3 {
        padding: 0 0.2rem 0 0.6rem;
    }
    
    p {
        padding: 0.2rem 0.6rem 0.6rem 0.6rem;
    }
    
    #footer p, .contact p {
        padding: 0.4rem 0.6rem 0rem 0.8rem;
    }
    
    #header {
        position: fixed;
    }
    
    div#logo {
        position: relative;
        padding: 0 4vw;
        width: 100%;
        background-color: white;
        z-index: 999997;
    }
    
    body.nojavascript div#logo {
        max-height: 14vw;
    }
    
    body.nojavascript div#logo img {
        transform: scale(0.3);
    }
    
    body.nojavascript div#content {
        padding-top: 22vh;
    }
    
    #logo img {
        max-width: 88vw;
        padding: 3.6vw 0;
        transform: scale(1,1);
        transform-origin: top left;
    }
    
    div#logo img.transition {
        transition: transform 0.3s;
    }
    
    input[type=checkbox]#menu_check.mainnav {
        top: 4px;
        right: 8px;
    }
    
    input[type=checkbox]#menu_check.mainnav + span {
        right: 16px;
        height: 1px;
        z-index: 999998;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
        -webkit-box-shadow: 0 -5px #555, 0 5px #555, 0 15px #555;
        -moz-box-shadow: 0 -5px #555, 0 5px #555, 0 15px #555;
        box-shadow: 0 -5px #555, 0 5px #555, 0 15px #555;
    }
    
    a[href="#pll_switcher"] {
        visibility: collapse;
        display: block;
        height: 2rem;
    }
    
    #header .nav {
        padding: 8vw 20px 20vh 15vw;
        margin-bottom: 20vh;
        -webkit-transition: opacity 0.3s ease;
        -moz-transition: opacity 0.3s ease;
        -o-transition: opacity 0.3s ease;
        transition: opacity 0.3s ease;
        text-align: left;
    }
    
    div#header > div.nav#menu > ul li {
        line-height: 1.4rem;
    }
    
    .nav li.current-lang a {
        font-weight: bold;
    }
    
    .nav ul li a {
        text-transform: uppercase;
        font-weight: 100;
        color: #333;
    }
    
    /*All top level menu items*/
    .nav > ul > li {
        padding-bottom: 1rem;
    }
    
    .nav > ul > li > a {
        font-weight: 400;
        font-size: 1.6rem;
        line-height: 2rem;
    }
    
    .nav ul.sub-menu > li > a {
        font-size: 1.2rem;
    }
    
    .nav ul li.menu-item-has-children > a {
        font-weight: 400;
    }

    .nav li.lang-item {
        font-weight: 100;
    }
    
    li.pll-parent-menu-item {
        margin-bottom: 4rem;
    }
    
    .pll-parent-menu-item ul.sub-menu li {
        display: inline-block;
        padding: 0 0.5rem;
    }
    
    #content {
        background-color: #e2ebe2;
    }
    
    #tabs {
        width: 100%;
        line-height: 3rem;
        height: 3rem;
        text-transform: uppercase;
        text-transform: lowercase;
    }
    
    #tabs ul {
        background-color: #EFF4F0;
        padding: 0 0.6rem;
    }
    
    #tabs ul li {
        display: inline-block;
        padding: 0 0.6rem;
    }
    
    form.search-form {
        position: fixed;
        top: 0.08rem;
        right: 4rem;
        z-index: 999999;
    }
    
    form.search-form input[type=search] {
        line-height: 1.6rem;
        transition: background-color 0.3s, width 0.3s;
    }

    form.search-form input[type=search]:focus {
        width: 60vw;
    }
    
    form.search-form input[type=submit] {
        width: 1.2rem;
        height: 1.2rem;
    }
    
    #page .page, #page .post {
        text-align: center;
        z-index: 2;
        padding-top: 10vw;
    }
    
    div.wp-block-column {
        width: unset;
    }
    
    .rightcolumn:not(:empty), .narrow:not(:empty) {
        /*background-color: white;*/
        margin: 0 0.6rem;
        padding: 0rem 0.4rem 2rem 0.4rem;
    }
    
    .wp-block-columns > div.wp-block-column:nth-of-type(2):not(:empty) {
        margin: 0 0.6rem;
        padding: 0rem 0.4rem 2rem 0.4rem;
    }

    .leftcolumn {
        margin: 0 1rem;
        margin-bottom: 2.2rem;
    }
    
    .wp-block-columns > div.wp-block-column:first-of-type {
        margin: 0 1rem;
        margin-bottom: 2.2rem;
    }
    
    .post .leftcolumn {
        margin-bottom: 1.2rem;
    }
    
    .post .wp-block-columns > div.wp-block-column:first-of-type {
        margin-bottom: 1.2rem;
    }
    
    #page div.columns-amnt-3 .wp-block-columns > div.wp-block-column:first-of-type {
        display: table;
        margin: 0 auto 5rem auto;
        line-height: 1.7rem;
    }
    
   #page div.columns-amnt-3 .wp-block-columns > div.wp-block-column:first-of-type h2 {
        font-size: 1.4rem;
        padding-bottom: 0.6rem;
    }
    
    #page div.columns-amnt-3 .wp-block-columns > div.wp-block-column:first-of-type p {
        padding: 0rem 0.6rem 0rem 0.8rem;
        font-size: 96%;
    }
    
    h2, h3 {
        color: hsla(120, 10%, 30%, 1);
    }
    
    #page .page p, #page .post p {
        font-size: 1.05rem;
    }
    
    div.wp-block-spacer {
        margin-bottom: 9vw;
    }
    
    #page .wp-block-gallery.is-style-grid * {
        display: inline-block;
    }
    
    #page .wp-block-gallery.is-style-grid ul {
        padding-left: 0.3rem;
    }
	
	#page .wp-block-gallery.has-nested-images.is-style-grid {
        padding-left: 0.3rem;
    }
	
	#page .wp-block-gallery.has-nested-images.is-style-grid figure {
		width: 43%;
        display: inline-block;
        float: left;
        margin: 1vw 3vw;
        min-height: 62vw;
        position: relative;
	}
	
	#page .wp-block-gallery.has-nested-images.is-style-grid figcaption {
        position: static;
        padding: 0.2rem;
        color: black;
        background: none;
        background-color: #EFF4F0;
        font-size: 0.9rem;
        text-align: left;
    }
	
	#page .wp-block-gallery.has-nested-images.is-style-grid img {
        margin-bottom: -0.4rem;
		height: auto !important;
    }
    
    #page .wp-block-gallery.is-style-grid li {
        width: 43%;
        display: inline-block;
        float: left;
        margin: 1vw 3vw;
        min-height: 62vw;
        position: relative;
    }
    
    #page .wp-block-gallery.is-style-grid li img {
        margin-bottom: -0.3rem;
    }
    
    #page .wp-block-gallery.is-style-grid li figcaption {
        position: static;
        padding: 0.2rem;
        color: black;
        background: none;
        background-color: #EFF4F0;
        font-size: 0.9rem;
        text-align: left;
    }
    
    #page .contact {
        display: table;
        margin: 4rem auto 2.3rem auto;
    }
    
    #page .contact h2 {
        padding: 0.2rem 0.6rem 0.4rem 0.8rem;
        font-size: 1.4rem;
    }
    
    .post > div > p:first-of-type, .post div.wp-block-columns div.wp-block-column p:first-of-type {
        margin-top: 0.2rem;
    }
    
    .post a, .post a:visited {
        text-decoration: underline;
    }
    
    .category {
        padding: 3rem 1.8rem 1.8rem 1.8rem;
    }
    
    .category .block {
        margin: 0 0 2rem 0;
        position: relative;
    }
    
    .category .block:not(.thumb){
        padding-top: 2rem;
    }
    
    .category .block > h1 {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #EFF4F0;
        text-transform: uppercase;
        font-weight: normal;
        font-size: 1rem;
        padding: 2vw 0.6vw;
        letter-spacing: 0.11rem
    }
    
    #footer {
        bottom: 0;
        margin-top: 10vw;
        z-index: -1;
        background-color: #EFF4F0;
        padding: 10vw 1rem 10vw 2rem;
    }
    
    #footer div p.name {
        font-size: 1.2rem;
        font-weight: bold;
        margin-bottom: 0.4rem;
    }
    
    #footer div p.personnel a {
        line-height: 2rem;
    }
    
    span.ak_next, span.ak_prev {
        top: 40%;
    }
    
    .wp-block-mustonen-projectinfo {
        margin: 0.8rem 0 0.8rem 0;
    }
    
    .wp-block-mustonen-projectinfo .divider {
        margin: 1rem 0.6rem;
    }
    
    .wp-block-mustonen-projectinfo .divider.mobile {
        display: block;
    }
    
}

@media only screen and (min-width: 901px) {
    
    html {
        font-size: 0.9vw;
    }
    
    #logo {
        padding: 1% 4%;
    }

    #menu > ul {
        float: left;
        line-height: 5rem;
        white-space: normal;
        
        text-align: right;
        padding-right: 0;
        width: 81%;
    }
    
    #menu ul.sub-menu {
        margin-top: -0.02rem;
        text-align: left;
    }
    
    #menu .pll-parent-menu-item {
        /*position: absolute;
        right: 0;
        bottom: 0;*/
    }
    
    #menu .pll-parent-menu-item .sub-menu {
        transition: none;
    }
    
    /* Stroke effect */
    
    .stroke > ul li > a {
        -moz-text-stroke-width: 0px;  
        -webkit-text-stroke-width: 0px;
        text-shadow: none;
    }
    
    .stroke > ul li:hover > a, .stroke .lang-item.current-lang a, .block h1.stroke:hover {
        text-shadow: -0.5px 0 #333, 0 0.5px #333, 0.5px 0 #333, 0 -0.5px #333;
        
    }
    
    @supports 
    ((-webkit-text-stroke-color: #000)
    and
    (-webkit-text-fill-color: #000))
    or
    ((-moz-text-stroke-color: #000)
    and
    (-moz-text-fill-color: #000)) {
        .stroke > ul li:hover > a, .stroke .lang-item.current-lang a, .block:hover h1.stroke, .stroke .current-menu-item > a {
               -moz-text-fill-color: #000;
            -webkit-text-fill-color: #000;
               -moz-text-stroke-color: #000;
            -webkit-text-stroke-color: #000;
               -moz-text-stroke-width: 1px;  
            -webkit-text-stroke-width: 1px;
            text-shadow: none;
        }
    }
    
    /* Bold effect */
    
    #menu.bold #menu > ul li {
        display: inline-block;
        font-size: 0;
    }
    
    #menu.bold #menu > ul li a {
        display: inline-block;
        text-align: center;
        font-size: 1.4rem;
    }
    
    #menu.bold #menu > ul li > a::after {
        display: block;
        content: attr(title);
        font-weight: bold;
        height: 0;
        overflow: hidden;
        visibility: hidden;
    }
    
    #menu.bold #menu > ul li > a:hover {
        font-weight: bold;
    }
    
    div#tabs {
        display: block;
        height: 4.6rem;
        width: 100vw;
        margin: 0 -6.8vw;
        padding: 0 8.8vw;
        background-color: #EFF4F0;
    }
    
    #tabs ul {
        display: inline-block;
        font-size: 1.4rem;
        line-height: 4.6rem;
        letter-spacing: -0.0rem;
    }
    
    #tabs li {
        margin-right: 7.2rem;
        text-transform: lowercase;
    }
    
    #tabs li.current a {
        font-weight: 600;
        letter-spacing: -0.06rem;
    }
    
    #tabs form, #menu form {
        float: right;
        line-height: 4.6rem;
    }

    #page {
        width: 100vw;
        padding: 2.2vw 8% 0 8.8%;
    }
    
    #page .page, #page .post {
        width: 100%;
        white-space: normal;
    }
    
    #page .page div.columns-amnt-2 .wp-block-columns > div.wp-block-column:first-of-type, #page .post div.columns-amnt-2 .wp-block-columns > div.wp-block-column:first-of-type {
        width: 54%;
        float: left;
        padding-right: 1.4rem;
    }
    
    #page .page div.columns-amnt-2 .wp-block-columns > div.wp-block-column:nth-child(2), #page .post div.columns-amnt-2 .wp-block-columns > div.wp-block-column:nth-child(2) {
        width: 46%;
        float: right;
        padding-left: 1.4rem;
    }
    
    #page .page .narrow, #page .post .narrow {
        padding-right: 26vw;
    }
    
    #page .page .narrow p, #page .post .narrow p {
        padding-right: 13vw;
    }
    
    #page .wp-block-columns > div.wp-block-column {
        float: left;
        padding-right: 2rem;
        min-height: 0.1rem;
    }
    
    #page .page div.columns-amnt-3 .wp-block-columns {
        margin-top: 2.3rem;
    }
    
    #page .page div.columns-amnt-3 .wp-block-columns > div.wp-block-column:first-of-type, #page .post div.columns-amnt-3 .wp-block-columns > div.wp-block-column:first-of-type {
        width: 30%;
    }
    
    #page .page div.columns-amnt-3 .wp-block-columns > div.wp-block-column:not(:first-of-type), #page .post div.columns-amnt-3 .wp-block-columns > div.wp-block-column:not(:first-of-type) {
        width: 29%;
    }
    
    #page div.columns-amnt-3 .wp-block-columns > div.wp-block-column:first-of-type h2 {
        font-weight: 700;
        font-size: 1.4rem;
        margin-bottom: -1rem;
    }
    
    #page div.columns-amnt-3 .wp-block-columns > div.wp-block-column:first-of-type p {
        font-size: 1.15rem;
        margin-top: 1.4rem;
        margin-bottom: 0.5rem;
        line-height: 2rem;
    }
    
    
    @supports (display: flex) {
        #page .page div.columns-amnt-2 .wp-block-columns > div.wp-block-column:first-of-type, #page .post div.columns-amnt-2 .wp-block-columns > div.wp-block-column:first-of-type {
            flex-basis: 54%;
        }
        
        #page .page div.columns-amnt-2 .wp-block-columns > div.wp-block-column:nth-child(2), #page .post div.columns-amnt-2 .wp-block-columns > div.wp-block-column:nth-child(2) {
            flex-basis: 46%;
        }
        
        #page .page div.columns-amnt-3 .wp-block-columns > div.wp-block-column:first-of-type, #page .post div.columns-amnt-3 .wp-block-columns > div.wp-block-column:first-of-type {
            flex-basis: 30%;
        }
        
        #page .page div.columns-amnt-3 .wp-block-columns > div.wp-block-column:not(:first-of-type), #page .post div.columns-amnt-3 .wp-block-columns > div.wp-block-column:not(:first-of-type) {
            flex-basis: 29%;
        }
    }
    
    div#content {
        margin-bottom: 5vw;
    }
    
    #page .page h2, #page .post h2 {
        font-weight: normal;
        margin-top: 1.1rem;
    }
    
    #page .page h2 {
        font-size: 1.35rem;
    }
    
    #page .post h2 {
        font-size: 1.35rem;
        letter-spacing: 0.15rem;
    }
    
    #page .post h3 {
        font-weight: normal;
        font-size: 0.98rem;
        margin-bottom: 0.6rem;
    }
    
    #page .page h3 {
        font-weight: normal;
        font-size: 1.1rem;
        margin-top: 1.1rem;
    }
    
    #page .page h3:first-of-type {
        margin-top: 0;
    }
    
    #page .post h4 {
        font-size: 1.3rem;
    }
    
    #page .page h4 {
        font-weight: normal;
        font-size: 1rem;
    }
    
    #page .page h2:first-of-type, #page .post h2:first-of-type {
        margin-top: 0;
    }
    
    #page .page h2 + p:empty, #page .post h2 + p:empty {
        display: none;
    }
    
    #page .page p, #page .post p, #page .page a, #page .post a {
        font-size: 0.98rem;
        line-height: 1.25rem;
    }
    
    #page .page p:empty {
        height: 1rem;
    }
    
    #page .post strong + p:empty {
        height: 0;
        margin: 0;
    }
    
    
    /**************** Projektiotsikot - vanha *******************/
    
    #page .post .wp-block-column > h2:first-of-type, #page .post .wp-block-column > h3:first-of-type {
        display: inline-block;
    }
        
    #page .post .wp-block-column > h3:first-of-type {
        padding-left: 0.2rem;
    }
    
    #page .post .wp-block-column > h2:first-of-type {
        margin-bottom: 0.4rem;
    }
    
    #page .post .wp-block-column > h2:first-of-type::after {
        content: ", ";
    }
    
    #page .post .projectinfo-title {
        margin-bottom: 0.3rem;
    }
    
    #page .post .projectinfo-location {
        margin-bottom: 0.3rem;
    }
    
    #page .post .projectinfo-office {
        line-height: 1.4rem;
    }
    
    #page .post h3:last-of-type {
        margin-bottom: 1rem;
    }
    
    /************************************************************/
        
    .wp-block-mustonen-projectinfo .divider {
        width: 100%;
    }
    
    .wp-block-mustonen-projectinfo .divider.desktop {
        display: block;
    }
    
    #page .post p {
        margin-top: 1rem;
    }
    
    #page .page a, #page .post a {
        text-decoration: underline;
        font-weight: bold;
    }
    
    #header {
        position: relative;
        padding: 0 6.8vw;
        font-size: initial;
        background-color: white;
    }
    
    .sub-menu a {
        font-size: 1.12rem;
        display: block;
        letter-spacing: 0.1rem;
    }
    
    #menu {
        position: absolute;
        bottom: 4.1vw;
        right: 8.2vw;
        width: 63vw;
        font-size: 1.35rem;
        font-weight: normal;
    }

    #menu > ul > li:last-of-type {
        margin-left: 4.7rem;
    }
    
    #menu > ul > li {
        text-transform: uppercase;
        margin-left: 2.4rem;
    }
    
    /* Line up with parent */
    #menu > ul > li > a {
        padding-left: 1rem;
        letter-spacing: 0.15rem;
    }
    
    .sub-menu, .children {
        background-color: white;
        position: absolute;
        padding: 0.4rem 3.2rem 1rem 1rem;
        visibility: collapse;
        opacity: 0;
        line-height: initial;
        transition: all 0.3s;
    }
    
    .sub-menu .menu-item:not(.lang-item) {
        padding: 0.6rem 0;
    }
    
    .menu-item-has-children:hover .sub-menu, .menu-item-has-children:active .sub-menu,
    .page_item:hover .children, .page_item:active .children {
        visibility: visible;
        opacity: 1;
        z-index: 99997;
    }
    
    #logo {
        padding: 0;
        height: 10.4vw;
        vertical-align: bottom;
    }
    
    #logo img {
        height: 7rem;
        position: absolute;
        bottom: 5.7vw;
    }
    
    .pll-parent-menu-item ul.sub-menu {
        position: initial;
        visibility: visible;
        opacity: initial;
        line-height: 5rem;
        padding: 0;
    }
    
    .pll-parent-menu-item a {
        display: inline-block;
        font-size: 1.4rem;
    }
    
    .pll-parent-menu-item > a {
        display: none;
    }
    
    li.lang-item {
        display: inline-block;
    }
    
    li.lang-item:not(:last-child)::after {
        content: "|";
    }
    
    li.lang-item:not(:last-child) a {
        padding-right: 0.4rem;
    }
    
    #content #page .wp-block-gallery.is-style-grid {
        padding-right: 0;
		display: block;
    }
    
    #content #page .wp-block-gallery.is-style-grid li, #content #page .wp-block-gallery.has-nested-images.is-style-grid figure {
        width: 24%;
        width: 16.4vw;
        display: inline;
        float: left;
        min-height: 14vw;
        max-height: 14vw;
        margin-bottom: 2vw;
        padding-right: 6%;
        padding-right: 4.1vw;
        margin-right: 0;
    }
	
	#content #page .wp-block-gallery.has-nested-images.is-style-grid figure {
        margin-bottom: 4.5vw;
	}
    
    .wp-block-gallery.is-style-grid li.blocks-gallery-item figure {
		width: 100%;
        display: inline-block;
    }
    
    #content #page .wp-block-gallery.is-style-grid figcaption {
        position: static;
        padding: 0.2rem;
		margin: 0 0 2vw 0;
        color: black;
        text-align: left;
        background: none;
        font-size: 1rem;
        line-height: 1.3rem;
        min-height: 3rem;
        overflow-y: hidden;
		background-color: #EFF4F0;
    }
    
    @supports ( display: flex ) {
		
        #content #page .wp-block-gallery.is-style-grid ul {
            display: flex;
        }
		
        #content #page .wp-block-gallery.has-nested-images.is-style-grid {
            display: flex;
        }
		
        #page .wp-block-gallery.is-style-grid li {
            min-height: auto;
            max-height: none;
            flex-grow: 0;
            flex-shrink: 0;
        }
		
		#content #page .wp-block-gallery.has-nested-images.is-style-grid figure {
            min-height: auto;
            max-height: none;
            flex-grow: 0;
            flex-shrink: 0;
			margin-bottom: 2vw;
        }
        
        .wp-block-gallery.is-style-grid figure img {
            height: auto !important;
        }
        
        .wp-block-gallery.is-style-grid figcaption {
            display: block;
            
        }
    }
    
    div.block {
        display: inline-block;
        position: relative;
        overflow: hidden;
    }
    
    .block img {
        object-fit: cover;
        object-position: center;
        min-width: auto;
        min-height: 100%;
    }
    
    .block h1 {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #EFF4F0;
        text-transform: uppercase;
        font-weight: normal;
        font-size: 1rem;
        padding: 0.6vw;
        letter-spacing: 0.11rem;
    }
    
    .category {
        margin-right: -5.4rem;
    }
    
    .category p:first-child {
        font-weight: normal;
        font-size: 1.1rem;
        margin-bottom: 4rem;
    }
    
    .category a {
        display: inline-block;
        margin: 0 2.2vw 2.2vw 0;
        width: 18.7vw;
        height: 18.7vw;
    }
    
    .category div.block {
        width: 18.7vw;
        height: 18.7vw;
    }
    
    .personnel div.block {
        width: 10vw;
        height: 10vw;
    }
    
    .contact {
    }
    
    .contact h2 {
        margin-top: 3.2rem;
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .contact p {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }
    
    .contact p.phone, .contact p.email, .contact p.org {
        margin-top: 2rem;
    }
    
    .contact p.email {
        font-weight: bold;
        text-decoration: underline;
    }
    
    .contact p.org {
        font-weight: bold;
    }
    
    .contactpage {
        float: right;
        width: 70%;
        padding-right: 11vw;
    }
    
    .contactpage .leftcolumn, .contactpage .rightcolumn {
        width: 49%;
        padding-right: 1rem;
    }
    
    .contactpage .leftcolumn {
        float: left;
    }
    
    .contactpage .rightcolumn {
        float: right;
    }
    
    div#footer {
        position: fixed;
        bottom: 0;
        height: 4.2vw;
        width: 100%;
        background-color: #e2ebe2;
        z-index: 99990;
    }
    
    div#footer > div {
        display: table;
        padding: 0 8vw 0 8.8vw;
        width: 100%;
        background-color: #EFF4F0;
    }
    
    div#footer > div > p {
        display: table-cell;
        text-align: center;
        margin: 0 auto;
        line-height: 2vw;
    }
    
    @supports 
    ((display: flex)
    and
    (justify-content: space-between)){
            
        div#footer > div {
            display: flex;
            justify-content: space-between;
        }
        
        div#footer > div > p {
            display: inline-block;
            text-align: initial;
            margin: 0;
        }
        
    }
    
}