.submenu-toggle {
    cursor: pointer;
    margin-left: 5px;
    font-size: 12px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    color: gray;
}

.sub-menu {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

@media screen and (min-width: 1024px) {
    .menu li:hover ul.sub-menu {
        display: block;
        opacity: 1;
        max-height: 500px !important; /* Adjust as needed */
    }
}

.sub-menu.show {
    display: block;
    opacity: 1;
    max-height: 500px; /* Adjust as needed */
}

@media screen and (max-width: 1023px) {
    .menu {
        padding-bottom: 30px;
    }

    .menu > .current-menu-item {
        /*       text-decoration: underline;
               text-underline-offset: 7px;*/
    }

    .menu-item {
        display: block;
        padding-bottom: 20px;
    }

    .sub-menu .menu-item {
        padding-bottom: 5px;
    }

    .submenu-toggle.selected {
        transform: rotate(180deg);
    }

    .submenu-toggle {
        transition: all .3s;
        width: 30px;
        text-align: center;

    }

    .sub-menu li {
        margin-bottom: 0;
    }

    .sub-menu .menu-item a {
        font-size: 16px;
        font-weight: normal;
        color: black;
    }

    .sub-menu .current-menu-item {
        /*  text-decoration: underline;
          text-underline-offset: 7px;*/
    }

    .wpml-ls-item {
        width: 40px !important;
    }

    .menu {

    }

}

@media screen and (min-width: 1024px) {
    .sub-menu .menu-item-has-children > a {
        font-weight: 500;
    }

    .sub-menu > li > a {
        font-weight: 500;
    }

    .sub-menu .sub-menu > li > a {
        font-weight: normal;
    }

    .sub-menu .sub-menu {

        position: relative;
        opacity: 1;
        display: grid !important;
        gap: 0px;
        padding: 0;
        padding-left: 1rem;
        flex-wrap: nowrap;
        width: auto;
        min-width: auto;
        flex-direction: row !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        box-shadow: none !important;
        border-radius: 0 !important;

    }


    .submenu-toggle + .sub-menu {
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
        box-shadow: 6px 7px 5px 0px #00000033;
    }

    .sub-menu .sub-menu a {
        font-size: 14px;
    }

    .sub-menu .submenu-toggle {
        display: none;
    }
}

@media screen and (max-width: 1023px) {
    .sub-menu .menu-item-has-children > a {
        font-weight: bolder;
    }

    .sub-menu > li > a {
        font-weight: 500;
    }

    .sub-menu .sub-menu > li > a {
        font-weight: normal;
    }

    .sub-menu .sub-menu {
        position: relative;
        opacity: 1;
        display: grid !important;
        gap: 10px;
        padding: 0rem 0;
        flex-wrap: nowrap;
        width: auto;
        min-width: auto;
        flex-direction: row !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        box-shadow: none !important;
        border-radius: 0 !important;
        max-height: 1000px;
    }


    .sub-menu .sub-menu a {
        font-size: 16px;
    }

    .sub-menu .submenu-toggle {
        display: none;
    }

    .sub-menu .menu-item-has-children > a {
        font-weight: 500;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    ul.sub-menu > li > a {
        font-weight: 500 !important;
    }

    .sub-menu .sub-menu > li > a {
        font-weight: normal !important;
    }

    .sub-menu.show {
        padding-top: 10px;
    }
}

.h-115px {
    height: 95px;
}

table {
    margin-bottom: 4rem;
    overflow: hidden;
    border-radius: 0;
}

table th {
    background-color: #eee;
}

.wp-block-table thead {
    border: none;
}

.wp-block-table td, .wp-block-table th {
    border: 1px solid #a5a5a5;
    padding: .5em;
    font-size: 14px;
    text-align: center !important;
}

.moreinfo {
    margin-left: calc(-100vw / 2 + 100% / 2) !important;
    margin-right: calc(-100vw / 2 + 100% / 2) !important;
    max-width: 100vw !important;
    width: auto !important;
    background-color: #eee;
    padding-top: 50px;
    padding-bottom: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.moreinfo .wp-block-columns {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;

}

.moreinfo h3, .moreinfo p {
    font-size: 16px;
}

.max-w-main {
    max-width: 1119px;
}

.bge {
    background-color: #eee;
}

.pt-20 {
    padding-top: 50px;
}

.pb-20 {
    padding-bottom: 50px;
}

.mb-12 {
    margin-bottom: 30px;
}

.mb-24 {
    margin-bottom: 80px;
}

.ml-auto {
    margin-left: auto;
}

.fulful img {
    max-width: none;
    width: 100%;
}

.fulful a {
    max-width: none;
    width: 100%;
}

@media screen and (max-width: 1023px) {
    .mainimg {
        display: none;
    }
}

@media screen and (min-width: 1024px) {
    .mobileimg {
        display: none !important;
    }
}

.imageList {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}

.imageList .swiper-wrapper {
    height: auto !important;
}

.object-left {
    object-position: left center;
    /*    min-height: 100%;*/
}

.from-right .object-left {
    object-position: right center;
}

.lang-fi .menu > li > a {
    font-size: 15px;
}

.footer-widget .wp-block-heading {
    font-weight: bold;
}

.footer-widget .wp-block-list {
    display: flex;
    row-gap: 8px;
    flex-direction: column;
}

.footer-widget .wp-block-list a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media screen and (min-width: 1024px) {
    .footer-sidebar.nr4 {
        text-align: right;
    }
}
@media screen and (min-width: 628px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media screen and (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


.footer-sidebar a:hover {
    text-decoration: underline;
    text-decoration-color: transparent; /* Algul nähtamatu */
    text-underline-offset: 4px;
    transition: text-decoration-color 1s ease, text-decoration-thickness 0.3s ease;
}
.footer-sidebar a:hover {
     text-decoration-color: #fff; /* Hover'il nähtav */
}

 @media screen and (max-width: 768px) {
     .footer-sidebar a, .wp-block-heading, .wp-block-list li {
         font-size: 16px;
    }
 }

.jjj {
    filter: brightness(20);
    justify-content: end;
}
@media screen and (max-width: 1024px) {
    .jjj {
        justify-content: start;
    }
}

@media screen and (min-width: 1024px) {
    .lg\:mb-12 {
        margin-bottom: 30px;
    }
}