/*
Theme Name: Projektiuutiset
Description: Median Child Theme
Author: Petri Vuorio
Template: dk-median
Version: 1.0.0
*/


:root {
  --bg-color:     ffffff;
  --accent-color: #b61f39;
  --text-color:   #303030;
  --button-color: #b61f39;
  --meta-color:   #757575;
  --line-color:   #21314c;
  --block-color:  #f6f9fd;
  --footer-color: #848484;
}

body, input, h2, h3, h4, h1, em, .entry-content { font-family: Montserrat; }


body {

    font-size: 1.0rem;
    line-height: 1.4;
    font-weight: 300;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
}
h1 {
    font-size: clamp(1.5rem, 1.0rem + 2vw, 2.0rem);
}
h2,
h2.widget-title {
    font-size: 1.5rem;
}
p {
    margin: 0 0 1em;
}
.elementor-widget-text-editor a,
.entry-content a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 500;

}
.wrapper {
    padding: 0 20px;
    width: 100%;
    max-width: 1200px;
}
.singular-post .wrapper {
    max-width: 1300px;
}
#main {
    margin-top: 0;
}
button, input[type=submit], .button {
    background-color: var(--button-color);
    border-color: var(--button-color);
    color: #fff;
    cursor: pointer;
    display: inline-block;
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 20px;
    line-height: 1;

}
body .custom-logo {
    height: clamp(22px, 5px + 3vw, 26px);
}
.entry-category-block a.button {
    line-height: 1;
    font-size: 0.87rem;
}
.entry-category-block p {
    color: #21314C;
    line-height: 1.2;
    margin-bottom: 1.5em;
    font-size: 0.87rem;
}
.entry-category-block h3 {
    font-size: 0.87rem;
    padding-top: 0;
}
.entry-category-block:last-child > * {
    border-bottom: none;
}

.branding, .custom-logo-link {
    min-width: 100px;
}

#extras .search-form {
    position: relative;
}
#extras .search-form label {
    position: absolute;
    right: 24px;
    max-width: 0;
    width: 0;
    overflow: hidden;
    transition: all .4s;
    margin: 0;
    top: 0;
    bottom: 0;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);

    background: #fff;
}
#extras .search-form label:focus-within {
    width: 60vw;
    max-width: calc(100vw - 120px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
#extras input[type=submit] {
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.25 17.2497L12.4861 12.4858M12.4861 12.4858C13.7754 11.1965 14.4998 9.44771 14.4998 7.62428C14.4998 5.80085 13.7754 4.0521 12.4861 2.76274C11.1967 1.47338 9.44796 0.749023 7.62453 0.749023C5.80109 0.749023 4.05235 1.47338 2.76298 2.76274C1.47362 4.0521 0.749268 5.80085 0.749268 7.62428C0.749268 9.44771 1.47362 11.1965 2.76298 12.4858C4.05235 13.7752 5.80109 14.4995 7.62453 14.4995C9.44796 14.4995 11.1967 13.7752 12.4861 12.4858V12.4858Z' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-color: #21314C;
    border-radius: 50%;
    min-width: 47px;
    min-height: 47px;
    padding: 0;
    margin: 0;
}
#extras input[type=search] {
    background: transparent;
    padding-left: 15px;
    padding-right: 0;
    border-radius: 0;
    width: calc(100% + 24px);
    margin: 0;
    opacity: 1;
    height: 100%;
    transition: all .4s;
}
#extras input[type=search]:focus {
    width: calc(100% - 34px);
}

@media screen and (min-width: 1024px) {
    #extras .search-form label,
    #extras .search-form label:focus-within {
        box-shadow: none;
        width: 250px;
        max-width: 250px;
        background: transparent;
    }
    #extras .search-form label:focus-within {
        background: #fff;
    }

    
}


.menu li a,
.menu li > span {
    color: #21314C;
    font-weight: 500;
    opacity: 0.8;
}


#primary-menu {
    display: none;
}
#menu-toggle {
    min-width: 47px;
    min-height: 47px;
    border-radius: 50%;
    background: #21314C;
    position: relative;
    border: none;
}
#menu-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
    display: block;
    position: absolute;
    left: calc(50% - 10px);
    border-radius: 1px;
    transition: all .2s;
}
#menu-toggle span:nth-child(1) {
    top: calc(50% - 8px);
}
#menu-toggle span:nth-child(2) {
    top: calc(50% - 1px);
}
#menu-toggle span:nth-child(3) {
    bottom: calc(50% - 8px);
}
#menu-toggle[aria-expanded="true"] span:nth-child(1) {
    top: calc(50% - 1px);
    transform: rotate(45deg);
}
#menu-toggle[aria-expanded="true"] span:nth-child(2) {
    width: 0;
    left: 50%;
}
#menu-toggle[aria-expanded="true"] span:nth-child(3) {
    bottom: calc(50% - 1px);
    transform: rotate(-45deg);
}

.menu-primary {
    z-index: 8888;
}
.menu-primary div > ul {
    flex-direction: column;
    gap: 5px;
    padding-bottom: 30px;
}
.menu-primary .wrap {
    width: auto;
    overflow: visible;
}
.menu-primary li {
    padding: 0 0 0 0;
    display: block;
    margin: 3px;
}
.menu-primary li a {
    display: inline-block;
    padding: 8px 8px;
}

.menu-primary ul ul li {
    margin: 3px;
}
.menu-primary li.menu-item-has-children > a {
    padding-right: 1px;
}
.sub-menu-toggle {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    opacity: 0.8;
    transform: translateY(-6px);
}
.sub-menu-toggle:hover,
.sub-menu-toggle:focus {
    background: transparent;
    border: none;
    opacity: 1;
}
.sub-menu-toggle span {
    width: 14px;
    height: 1px;
    background: #303030;
    display: block;
    position: absolute;
    left: calc(50% - 7px);
    top: 50%;
    border-radius: 1px;
    transition: all .2s;
}
.sub-menu-toggle span:nth-child(2) {
    transform: rotate(90deg);
}
.sub-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    width: 0;
    left: 50%;
}
.menu-primary ul ul {
    padding: 0;
    box-shadow: none;
    background: transparent;
}
.menu-primary ul ul,
.menu-primary ul li:hover>ul, .menu-primary ul li:focus-within>ul, .menu-primary ul li ul:hover {
    display: none;
    position: relative;
    animation: none;
    margin-left: 2.5em;
}
.menu-primary ul ul ul {
    left: auto;
    top: auto;
}
.menu-primary ul ul a,
.menu-primary ul ul li > span {
    text-transform: none;
    padding: 8px;
    margin: 0px;
    display: inline-block;
}
.menu li.menu-item-has-children > a::after {
    content: none;
}
@media screen and (min-width: 1024px) {
    /*
    #main {
        margin-top: 30px;
    } */
    #primary-menu + * {
        padding-top: 30px;
        
    }
    .home #primary-menu + *,
    .archive #primary-menu + * {
        margin-top: 0px;
        
    }
    .home #primary-menu + *,
    .archive #primary-menu + * {
        padding-top: 30px;
        
    }
    #menu-toggle {
        display: none;
    }
    #primary-menu {
        display: block !important;
    }

    .menu-primary div > ul {
        flex-direction: row;
        padding-bottom: 0;
    }

    .menu-primary li a,
    .menu-primary li > span {
        font-size: clamp(0.8rem, -1.5rem + 3.5vw, 0.9rem)
    }
    .menu-primary div > ul > li > a {
        padding: 15px 5px;
    }
    .sub-menu-toggle {
        display: none;
    }
    .menu-primary ul ul {
        top: 100%;
        position: absolute;
        padding: 15px 25px;
        box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.1);
        margin-left: -2.0em;
        display: none !important;
        background: #fff;
    }
    .menu-primary ul ul ul {
        left: 130px;
        top: -15px;
    }
    
    .menu-primary ul li:hover>ul, .menu-primary ul li:focus-within>ul, .menu-primary ul li ul:hover {
        display: block !important;
        position: absolute;
        animation: showMenu 0.2s cubic-bezier(0.7, 0, 0.3, 1) forwards;
        margin-left: -2.0em;
        
    }
    .menu li.menu-item-has-children > a::after {
        content: '\2193';
    }
    .menu-primary ul ul a,
    .menu-primary ul ul span {
        padding: 8px;
        margin: 0;
    }
}


#footer {
    background-color: #21314C;
    color: #fff;
    font-weight: 500;
}
#footer .widget-title {
    color: #fff;
}
#footer .social-icons li {
    margin-left: 1vw;
    margin-right: 1vw;
}
#footer .social-icons {
    margin-bottom: clamp(20px, 3vw, 40px);
}
#footer .social-icons img {
    filter: invert(1);
    height: 28px;
}
#footer .wrapper {
    margin-bottom: 0;
}
#footer .wrapper > * {
    width: auto;
    max-width: 470px;
}
#footer .credit {
    max-width: 800px;
}
#footer .credit small {
    display: block;
}
#footer .wrapper.menu ul.menu {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
#footer .wrapper.menu nav {
    width: 100%;
    max-width: 100%;
    border-bottom: 1px solid #fff;
    padding-bottom: 40px;
}
#footer img {
    width: auto;
}
#footer .widget {
    margin-bottom: 25px;
}
article > a h2,
article > a {
    color: #21314C !important;
}
.elementor-widget-wp-widget-advads_ad_widget * {
    text-align: center;
    margin: 0 auto;
}
.widget-title span {
    border-bottom: 3px solid;
}
.widget-title {
    margin-bottom: clamp(25px, 4vw, 60px);
}

.emblem .elementor-widget-container {
    position: relative;
    display: flex;
    align-self: center;
    justify-content: center;
}

.emblem .elementor-widget-container:after {
    content: url("/wp-content/uploads/2024/01/suomen_kattavin_emblem.svg");
    display: block;
    position: absolute;
    z-index: 1;
    width: 14vw;
    height: 14vw;
    max-width: 200px;
    max-height: 200px;
    min-width: 140px;
    min-height: 140px;
    border-radius: 50%;
    left: -5vw;
    top: 0;
}
@media screen and (min-width: 600px) {
    .emblem .elementor-widget-container:after {

    }
}
@media screen and (min-width: 768px) {
    .emblem .elementor-widget-container:after {

    }
    #footer .wrapper.menu ul.menu {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
}

.nostoalue {
    margin-top: clamp(50px, 5vw, 80px);
    margin-bottom: clamp(60px, 5vw, 80px);
    margin-left: calc(clamp(20px, 5vw, 60px) * -1) !important;
    margin-right: calc(clamp(20px, 5vw, 60px) * -1) !important;
    width: calc(100% + clamp(20px, 5vw, 60px) + clamp(20px, 5vw, 60px)) !important;
    max-width: calc(100% + clamp(20px, 5vw, 60px) + clamp(20px, 5vw, 60px)) !important;
}

@media screen and (min-width: 1200px) {
    .nostoalue {

        
    }
}


.elementor-widget-feedzy-rss-feeds ul {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 5vw, 50px);
    margin: 0;
    padding: 0;
}
.elementor-widget-feedzy-rss-feeds .rss_item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}
.elementor-widget-feedzy-rss-feeds .title {

    order: 3;
}
.elementor-widget-feedzy-rss-feeds .rss_image {
    margin: 0 !important;
    width: 100% !important;
    aspect-ratio: 5/3;
    float: none !important;
    height: auto !important;
    order: 1;
}
.elementor-widget-feedzy-rss-feeds .rss_content {
    order: 2;
    margin-top: 8px;
    font-weight: 500;
    color: var(--meta-color);
}
.elementor-widget-feedzy-rss-feeds .title a {
    font-size: clamp(1.0rem, 1.0rem + 1vw, 1.065rem);
    margin: 0;
    font-weight: 500;
    color: #303030;
}
@media screen and (min-width: 600px) { 
    .elementor-widget-feedzy-rss-feeds ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr;
        grid-column-gap: clamp(20px, 3vw, 33px);
        grid-row-gap: clamp(30px, 4vw, 50px);
    }
}
@media screen and (min-width: 1024px) { 
    .elementor-widget-feedzy-rss-feeds ul {
        grid-template-columns: repeat(3, 1fr);
    }
}


.elementor-button {
    background-color: #B61F39;
    font-weight: 600;
    border-radius: 0.8rem !important;
}
.elementor-button.elementor-size-sm {
    font-size: 1.0rem;

}
.elementor-button.elementor-size-md {
    font-size: 1.1rem;

}
.elementor-button.elementor-size-lg {
    font-size: 1.2rem;


}
#header {
    padding-top: 0;
}

body.home #header,
body.home .menu-primary,
body.singular-post .menu-primary,
.header-ad {
    background-color: var(--block-color);
}
 
body.singular-post #container {
        background: linear-gradient(180deg, var(--block-color) 350px, #fff 350px);
    }
    body.home #main {
        background: linear-gradient(180deg, var(--block-color) 350px, #fff 350px);
    }

@media screen and (min-width: 768px) {
    #header {
        padding-top: clamp(0px, 2vw, 20px);
    }
    body.singular-post #container {
        background: linear-gradient(180deg, var(--block-color) 600px, #fff 600px);
    }
    body.home #main {
        background: linear-gradient(180deg, var(--block-color) 750px, #fff 750px);
    }
}


.entry-summary { 
   color: #303030;
   font-weight: 500;
}
.entry-content {
    margin-bottom: clamp(40px, 5vw, 60px);
}
.singular-post .entry.post {
    min-height: 300px;
}
.entry-footer {
    margin-bottom: 3.0rem;
}
.entry-footer a[rel=tag] {
    background: #F1F6F8;
    border-radius: 10px;
    color: #303030;
    margin-right: 10px;
    margin-bottom: 15px;
    font-weight: 600;
}

.singular-post .entry-content strong,
.singular-post .entry-content b {
    font-weight: 500;
}
.singular-post h1.entry-title {
    margin-top: clamp(20px, 4vw, 40px);
    margin-bottom: 20px;
}
.singular-post article:not(.excerpt) .entry-header {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 30px);
    margin-bottom: clamp(20px, 3vw, 30px);
    align-items: flex-start;
}
.singular-post .entry-summary {
    margin-bottom: clamp(20px, 3vw, 30px);
}

@media screen and (min-width: 1024px) {
    .singular-post .entry-content {
        min-height: 200px;
    }
    .singular-post .entry-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
.grid article .entry-meta,
.entry-meta {
    padding: 0;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.excerpt .entry-summary {
    font-size: 0.925em;
    
    overflow: hidden;
}
.taxonomy .featured2 .excerpt:first-child .entry-summary {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    max-height: 100%;
}

.list .entry-title,
.entry-title {
    margin-top: 4px;
}
.excerpt .entry-title {
    font-size: clamp(1.0rem, 0.7rem + 1vw, 1.25rem);
}
.list .entry-title {
    font-size: clamp(0.9rem, 0.5rem + 1vw, 1.25rem);
}
.excerpt-image {
    margin-bottom: 20px;
    /* height: 190px; */
    background: #eee;
}
.excerpt-image img {
    /* height: 190px; */
}
.archive-header {
    padding-top: 0;
}
.archive-description {
    max-width: 800px;
    color: #21314C;
}

.featured2 article:not(:first-child) .entry-summary {
    display: none;
    
}
.featured2 article:nth-child(1) .entry-title,
.featured2 .entry-title {
    font-size: clamp(1.2rem, 0.0rem + 2.0vw, 1.75rem);
    margin-bottom: 0.5rem;
}
.featured2 article .excerpt-image {
    margin-bottom: 15px !important;
}
.featured2 article:nth-child(1) .excerpt-image {
    width: 100%;
    margin-bottom: 15px !important;
}
.featured2 article:nth-child(1) { 
    flex-direction: column;
}
.featured2 .excerpt-image picture {
    height: 280px;
}
@media screen and (min-width: 600px) {

}
@media screen and (min-width: 836px) {
    .featured2 article:nth-child(1) .excerpt-image {
        width: 60%;
    }
    .featured2 article:nth-child(1) { 
        flex-direction: row;
    }
    .featured2 article:nth-child(1) .excerpt-image {
        margin-bottom: 0  !important;
    }
}

.grid {
    row-gap: 36px;
}
body.singular article.entry {
    max-width: 1200px;
}
body.singular-post article.entry {
    max-width: 100%;
}
body.singular-post .entry-content-wrapper {
    max-width: 728px;
}
.list article {
    min-height: 100px;
    
}
.list article:after {
    content: "";
    clear: both;
    display: table;
}
.list article:last-child {
    margin-bottom: 2.0rem;
}
.list .excerpt-image {
    width: 110px;
    height: 110px;
    float: left;
    margin: 2px clamp(20px, 3vw, 25px) 24px 0%;
}
.category-widgets {
    margin-top: 2.0rem;
}
.category-widgets > * {
    margin-bottom: 2.0rem;
}
/*
.elementor-template-full-width #main {
    margin-top: 0;
}
*/
.elementor-template-full-width #main .wrapper {
    width: 100%;
    padding: 0;
}
.wrapper-with-sidebar {
    column-gap: 0;
}

@media screen and (min-width: 768px) {
    .wrapper-with-sidebar {
        column-gap: 36px;
    }
    
}
.elementor-template-full-width #footer {
    margin-top: 0;
}
#pu-posts,
.more-posts {
    margin-top: clamp(40px, 5vw, 60px);
}
#pu-get-more {
    margin: 20px auto;
    position: relative;
}
#pu-get-more[disabled]:after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 14'%3E%3Ccircle fill='%23CCCCCC' stroke='%23CCCCCC' stroke-width='2' r='5' cx='10' cy='7'%3E%3Canimate attributeName='opacity' calcMode='spline' dur='1.0' values='1;0;1;' keySplines='.5 0 .5 1;.5 0 .5 1' repeatCount='indefinite' begin='-.4'%3E%3C/animate%3E%3C/circle%3E%3Ccircle fill='%23CCCCCC' stroke='%23CCCCCC' stroke-width='2' r='5' cx='25' cy='7'%3E%3Canimate attributeName='opacity' calcMode='spline' dur='1.0' values='1;0;1;' keySplines='.5 0 .5 1;.5 0 .5 1' repeatCount='indefinite' begin='-.2'%3E%3C/animate%3E%3C/circle%3E%3Ccircle fill='%23CCCCCC' stroke='%23CCCCCC' stroke-width='2' r='5' cx='40' cy='7'%3E%3Canimate attributeName='opacity' calcMode='spline' dur='1.0' values='1;0;1;' keySplines='.5 0 .5 1;.5 0 .5 1' repeatCount='indefinite' begin='0'%3E%3C/animate%3E%3C/circle%3E%3C/svg%3E");
    position: absolute;
    width: 50px;
    height: 14px;
    bottom: -30px;
    left: calc(50% - 25px);
}
.get-more {
    text-align: center;
    padding-bottom: 30px;
}

.sidebar-primary {
    padding-bottom: clamp(30px, 4vw, 40px);
    max-width: 300px;
    margin-left: auto;
}



div.wpforms-container-full .wpforms-form input.wpforms-field-medium, div.wpforms-container-full .wpforms-form select.wpforms-field-medium, div.wpforms-container-full .wpforms-form .wpforms-field-row.wpforms-field-medium {
    max-width: 100% !important;
}
.wpforms-container.inverse-colors,
.wpforms-container.inverse-colors a {
    color: #fff;
}
.wpforms-container .wpforms-form .wpforms-submit-container button[type=submit] {
    border-radius: 10px;
}
.wpforms-container .wpforms-form .wpforms-submit-container button[type=submit]:focus {
    outline-color: Highlight;
    outline-color: -webkit-focus-ring-color;
    outline-style: auto;
    outline-width: 1px;
}
.wpforms-container.inverse-colors .wpforms-form .wpforms-submit-container button[type=submit],
.wpforms-container.inverse-colors .wpforms-form .wpforms-submit-container button[type=submit]:hover,
.wpforms-container.inverse-colors .wpforms-form .wpforms-submit-container button[type=submit]:focus {
    color: #B61F39 !important;
    background: #fff;
    border-color: #fff;
    transition: all .2s;
}
.wpforms-container.inverse-colors .wpforms-form label.wpforms-error {
    color: #fff;
}
div.wpforms-container.inverse-colors .wpforms-form .wpforms-field input.wpforms-error, div.wpforms-container.inverse-colors .wpforms-form .wpforms-field input.user-invalid, div.wpforms-container.inverse-colors .wpforms-form .wpforms-field textarea.wpforms-error, div.wpforms-container.inverse-colors .wpforms-form .wpforms-field textarea.user-invalid, div.wpforms-container.inverse-colors .wpforms-form .wpforms-field select.wpforms-error, div.wpforms-container-full .wpforms-form .wpforms-field select.user-invalid, div.wpforms-container.inverse-colors .wpforms-form .wpforms-field.wpforms-has-error .choices__inner {
    
    background: #fcc;
}
.wpforms-container.inverse-colors .wpforms-form .wpforms-submit-container button[type=submit]:hover,
.wpforms-container.inverse-colors .wpforms-form .wpforms-submit-container button[type=submit]:focus {
    transform: scale(1.03);
}
div.wpforms-container-full .wpforms-form input[type=date], div.wpforms-container-full .wpforms-form input[type=datetime], div.wpforms-container-full .wpforms-form input[type=datetime-local], div.wpforms-container-full .wpforms-form input[type=email], div.wpforms-container-full .wpforms-form input[type=month], div.wpforms-container-full .wpforms-form input[type=number], div.wpforms-container-full .wpforms-form input[type=password], div.wpforms-container-full .wpforms-form input[type=range], div.wpforms-container-full .wpforms-form input[type=search], div.wpforms-container-full .wpforms-form input[type=tel], div.wpforms-container-full .wpforms-form input[type=text], div.wpforms-container-full .wpforms-form input[type=time], div.wpforms-container-full .wpforms-form input[type=url], div.wpforms-container-full .wpforms-form input[type=week], div.wpforms-container-full .wpforms-form select, div.wpforms-container-full .wpforms-form textarea {
    border-radius: 0 !important;
}
.wpforms-field.wpforms-field-content .wpforms-field-row a {
    text-decoration: underline;
    font-weight: 500;
}


.elementor .elementor-counter .elementor-counter-number-wrapper {
    font-size: clamp(1.8rem, 1.0rem + 2vw, 2.3rem);
    font-weight: 300;
    margin-bottom: clamp(0px, 2vw, 10px);
}
.elementor  .elementor-counter .elementor-counter-title {
    font-size: 1.0rem;
    font-weight: 300;
    line-height: 1.3;
    margin-top: 15px;
}
.single-post-thumbnail {
    background: #d9d9d9;
    display: block;
    margin: 0 -20px 0 -20px;
    width: 100vw;
    position: relative;
}
/*
.thumbnail-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20% 20px 20px 20px;
    color: #fff;
    background: linear-gradient(0deg, rgba(0,0,0,0.5) 10%, rgba(0,0,0,0) 100%);
    width: 100%;
    font-size: small;
}
*/
.thumbnail-caption { 
    width: 100vw;
    margin: 0 auto clamp(15px, 3vw, 30px) auto;
    padding: 15px 0 0 0;
    font-size: 0.87rem;
    color: #303030;
}
.single-post-thumbnail img {
    width: 100%;
}
.single-post-thumbnail.video {
    position: relative;
    aspect-ratio: 16/9;
    
}
.single-post-thumbnail.video .thumbnail {
    margin-bottom: 0;
    
}
.single-post-thumbnail.video img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}
.single-post-thumbnail.video iframe {
    height: 100%;
    width: 100%;
    display: block;
}
@media screen and (min-width: 1024px) {
    .single-post-thumbnail {
        margin: 0 auto;
        max-width: 820px;
    }
    .thumbnail-caption { 
        max-width: 820px;
    }
}


#video-facade svg {
    width: clamp(60px, 40px + 6vw, 120px);
    height: clamp(60px, 40px + 6vw, 120px);
}
#video-facade {
    border: none;
    padding: 0;
    background: transparent;
    border-radius: 50%;
    position: absolute;
    transition: all .2s;
    left: calc(50% - clamp(60px, 40px + 6vw, 120px) / 2);
    top: calc(50% - clamp(60px, 40px + 6vw, 120px) / 2);
}
#video-facade:hover,
#video-facade:focus {
    transform: scale(1.05);
}

.sticky-container, .entry-spacer {
    display: none;
}
.archive-header .wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}
@media screen and (min-width: 1024px) {


    .entry-wrapper {
        position: relative;
        display: flex;


    }
    .entry-content-wrapper {

    }
    .sticky-container {
        display: block;
        position: relative;
        margin-right: 56px;
        top: clamp(20px, 4vw, 40px);
        bottom: 0;


    }
    .sticky-block {
        
        width: 160px;
        height: auto;

        position: sticky;
        top: 80px;
        left: 0;
        margin-left: 0;
        visibility: visible;
    }
    .entry-spacer {
        display: block;
        width: 100%;
        max-width: 300px;
        margin-left: 56px;
        flex-shrink: 0;
    }
    .archive-header .wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .archive-header .wrapper > div {
        max-width: 55%;
    }
}

.excerpt-image > * {
    max-width: 1200px;
    height: 180px;
    min-width: 100%;
    width: auto;
    margin: 0;
    object-fit: cover;
    display: block;
}

.list .excerpt-image img {
    max-width: 100%;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center;
}

/*
.wp-block-image:first-of-type {
    display: none;
}
*/

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: fit-content;
    z-index: 100000;
}
.error-404 .main .wrapper {
    padding-top: 3vw;
}
.thumbnail-caption figcaption {
    padding-top: 0;
}


.taxonomy-category-nakoislehdet .excerpt {
    display: flex;
    gap: clamp(20px, 4vw, 30px);
    flex-wrap: nowrap;
    flex-direction: row !important;
}
.taxonomy-category-nakoislehdet .featured2 article:nth-child(1) {
    grid-column: auto;
}
.taxonomy-category-nakoislehdet .featured2 article .excerpt-image {
    min-width: 35%;
    max-width: 35%;
    margin-right: 0;
    height: auto;
    margin-bottom: 15px !important;
}
.taxonomy-category-nakoislehdet .featured2 article .excerpt-image  * {
    width: 100%;
    max-width: 100%;
    height: auto;
}
.taxonomy-category-nakoislehdet .featured2 .entry-summary {
    display: block !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 100%;
}
.taxonomy-category-nakoislehdet .list .excerpt-image {
    width: 110px;
    height: auto;
    margin: 2px 0 24px 0%;
    overflow: visible;
}
.taxonomy-category-nakoislehdet .grid .excerpt-image {
    min-width: 35%;
    max-width: 35%;
    height: auto;
    overflow: visible;
    margin-bottom: 0;
}
.taxonomy-category-nakoislehdet .grid .excerpt-image * {
    width: 100%;
    height: auto;
}
.taxonomy-category-nakoislehdet .list .excerpt-image > * {
    height: auto;
}


.nakoislehdet .elementor-image-box-wrapper {
    flex-direction: row;
    gap: 15px;
    text-align: left !important;
    display: flex;
}
.nakoislehdet .elementor-image-box-wrapper .elementor-image-box-img {
    width: 30%;
    min-width: 30%;
    max-width: 30%;
}
.nakoislehdet .elementor-image-box-wrapper .elementor-image-box-title {
    margin-top: 0;
    font-size: clamp(0.9rem, 0.5rem + 1vw, 1.25rem);
}

@media screen and (min-width: 768px) { 
    .nakoislehdet .elementor-image-box-wrapper {
        flex-direction: column;
        gap: 10px;
        text-align: center !important;
    }
    .nakoislehdet .elementor-image-box-wrapper .elementor-image-box-img {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}


.header-ad {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: clamp(30px, 4vw, 50px);
}


@media screen and (min-width: 768px) {
    .proje-highlight-wrapper > *:first-child {
        margin-top: 0 !important;
    }
}
.header-ad + .archive-header {
    padding-top: 0;
}

.proje-interstitiaali {
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: auto !important;
    width: 90%;
    max-width: 1500px;
}
.proje-interstitiaali picture > * {
    object-fit: contain;
    max-height: 90vh;
}
.proje-close-button {
    transform: scale(2);
}

body > .Campaign {
    z-index: 9000 !important;
}

.singular .entry-content .proje-mobiili-sisalto > *:not(:first-child) {
    display: none;
}
.singular .entry-content .proje-mobiili-sisalto:before {
    content: "MAINOS";
    display: block;
    margin-bottom: 10px;
    font-size: smaller;
    opacity: 0.9;
    text-align: center;
}

@media screen and (min-width: 768px) {
    .singular .entry-content .proje-mobiili-sisalto  {
        display: none;
    }
}