

:root {

    /* 1800*/
    --pad: clamp(15px, 10.9vw, 220px);
    --toppad: clamp(30px, 5.7vw, 110px);
    --botpad: clamp(40px, 6.3vw, 120px);

    --boxpad : clamp(15px, 2.6vw, 40px);

}

@media (max-width: 1500px){
    :root {
        --pad: clamp(15px, 9vw, 450px);

    }
}

@media (max-width: 1200px){
    :root {
        --pad: clamp(15px, 7vw, 450px);
        --widepad: clamp(15px, 5vw, 130px);
    }
}

@media (max-width: 900px){
    :root {
        --pad: clamp(15px, 5vw, 450px);
    }
}

body{
    color: #231F20;
    background: #F0F1F1;
}

.container{
    animation: startopa 0.5s linear forwards;
    animation-direction: alternate;
    opacity: 0;
}

@keyframes startopa {
    from {opacity: 0; }
    to { opacity: 1;}
}

.project-pads{
    padding-left: var(--pad);
    padding-right: var(--pad);   
}

.project-pads-left{
    padding-left: var(--pad);
}

.project-pads-right{
    padding-right: var(--pad);
}

.footer-pads {
    padding-left: calc(var(--pad) + var(--boxpad));
    padding-right: calc(var(--pad) + var(--boxpad));
}

.topbotpad{
    padding-top: var(--toppad);
    padding-bottom: var(--botpad);
}

.halfpad {
    padding-top: calc(var(--toppad) / 2);
    padding-bottom: calc(var(--botpad) / 2);
}

.toppad{
    padding-top: var(--toppad); 
}

.botpad{
    padding-bottom: var(--botpad);
}


h1, h2, h3, h4, h5, h6{
    
}

h1{
    font-size: var(--font42);
}

h2{
    font-size: var(--font32);
}

h3{
    font-size: var(--font28);
}


h4{
    font-size: var(--font26);
}

h5{
    font-size: var(--font20);
}

h6{
    font-size: var(--font18);
}

p{
    font-size: var(--font18);
    padding-bottom: 1em;
    line-height: 1.3em;
}

a, li{
    /* font-size: var(--font16); */
}



a, a:link {
  color: #282828;
}

a:hover {
  color: #282828;
}


.btn{
    font-size: var(--font18);
    gap: 15px;
    padding: 10px 0px 10px 10px;
    max-width: 250px;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 50px;
    margin-bottom: 5px;
    text-transform: uppercase;
}
/* 
.btn:hover {
    color: #fff !important;
} */


.btn svg{
    height: var(--font18);
    align-self: center;
    justify-self: center;
}

.btn:hover svg, .bigbtn svg{
    animation: sarrow 0.3s infinite linear !important;
    animation-direction: alternate !important;
}

@keyframes sarrow {
    from {margin-left: 0px;}
    to {margin-left: 8px;}
}

/* Heading Font */
h1, h2, h3, h4, h5, h6 {
    font-family: "AeonikPro", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Body Font (p, a, li...) */
body {
    font-family: "AeonikPro", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.bg-primary {
    background: #282828;
}

.bg-primary-light {
    background: #282828ad;
}

.bg-secondary {
    background: #EAE6E2;
}   

.bg-secondary-light {
    background: #EAE6E2ad;
}

.text-primary {
    color: #282828;
}

.text-secondary {
    color: #EAE6E2;
}

.text-black {
    color: #000;
}

.text-white {
    color: #fff;
}

.text-bold {
    font-weight: 600;
}

.text-heading {
    margin-bottom: 14px;
    line-height: 2rem;
    font-weight: 500;
}

.border-radius {
    border-radius: 12px;
}

.button-black-border {
    border: 2px solid #282828;
    background: #00000000;
    background-color: #00000000;
    color: #282828 !important;
}

/* .button-black-border:hover {
    background: #2828286e;
    color: #282828 !important;
} */

.button-white {
    color: #fff !important;
    border: 1px solid #FFFFFF;
    background: #262A2842;
}

.button-green {
    border: 2px solid #282828;
    background: #282828;
    color: #fff !important;
}

.button-black {
    border: 2px solid #000000;
    background: #000000;
    color: #fff !important;
}

/* .button-black:hover {
    background: #fff;
    color: #282828 !important;
} */

.button-white-transparent {
    color: #fff !important;
    border: 1px solid #FFFFFF;
    background: #00000000;
}

/* .button-white-transparent:hover {
    background: #fff;
    color: #282828 !important;
} */

/* Vimeo Video */
#banner-imagevideo img, #banner-imagevideo .videoswapframe{
    aspect-ratio: 16/9;
    width: 100%;
}

.area-1000 {
    max-width: 1000px;
}

.area-800 {
    max-width: 800px;
}

.area-600 {
    max-width: 600px;
}

.area-500 {
    max-width: 500px;
}

@media (max-width: 1400px) {
    .area-500 {
        max-width: 300px; 
    }
}

.area-400 {
    max-width: 400px;
}

.area-300 {
    max-width: 300px;
}

/* Leave Addon */


.hero-banner-title {
    margin-bottom: 17px;
}

.hero-banner-content {
    place-content: end;
}

.hero-banner-box {
    padding-left: var(--pad) !important;
    padding-right: var(--pad) !important;
}

.hero-banner-box, .full-banner-box {
    padding: var(--boxpad);
    max-width: 400px;
}

@media (max-width: 600px) {
    .full-banner-content {
        padding: 0px;
    }
}

.single-card-area-content {
    padding: var(--boxpad);
}

#single-card-area img {
    height: 100% !important;
}

.multi-card-area-card {
    display: flex;
}

.multi-card-area-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.full-card {
    grid-column: span 2;
}

.full-card .image-card-image img {
    height: 100%;
}

.half-card .image-card-image img {
    aspect-ratio: 16 / 9;
}

.full-card .image-card-content {
    min-height: 400px;
}

@media (max-width: 1200px) {
    .full-card .image-card-content {
        min-height: unset;
    }
}

.half-card {
    flex-direction: column;
}

.card-dim {

}

.half-card .image-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.half-card .image-card-content-wrapper {
    flex: 1 1 auto;
}

.half-card .btn {
    margin-top: auto;
}


.image-card-content-overlay {
    padding: var(--boxpad);
    color: #fff;
    background: #00000000 linear-gradient(135deg, #0000008c 0%, #00000000 100%) 0% 0% no-repeat padding-box;
    border-radius: 12px;
}

.image-card-content-overlay p {
    max-width: 600px;
}

.company-personell-overview-item-personell-role a {
    display: contents;
}

.company-personell-overview-item-content {
    gap: 24px;
    padding: 24px 0px;
}

.company-personell-overview-item-personell img {
    aspect-ratio: 1/1;
}

.company-personell-overview-item-personell-name {
    font-weight: 700;
    padding-top: 16px;
    padding-bottom: 24px;
}

.company-personell-overview-title {
    padding-bottom: var(--botpad);
}

.company-personell-overview-item-title, .category-card-item-name {
    border-bottom: 1px solid #2D2D2D;
}

.text-and-video-videoarea {
    grid-column: span 2;
}

.text-and-video-content {
    gap: 64px;
}

.text-and-video-textarea {
    padding-left: var(--boxpad);
}

.iframe-area-content {
    padding-left: var(--boxpad);
    padding-right: var(--boxpad);
}

.category-card-image {
    grid-column: span 2;
}

.category-card-grid {
    /*Tässä poikkeus*/
    padding: 16px;
}

.category-card-item-name {
    font-weight: 700;
    margin-bottom: 16px;
}

.category-card-item-name p {
    padding-bottom: 0;
    margin-bottom: 0;
}

@media (max-width: 1050px) {
    .category-card-grid {
        grid-column: span 2;
    }
}

footer {
    background: #2D2D2D;
    color: #858585;
    padding-top: 64px;
    padding-bottom: 64px;
}

.footer-content {
    gap: 24px;
}

.footer-part1 {
    border-right: 1px solid #858585;
    padding-right: 24px;
}

.footer-menu a {
    color: #858585;
    padding-bottom: 4px;
    text-decoration: none;
    font-size: var(--font18);
}

@media (max-width: 700px) {
    .footer-part1 {
        border-right: none;
        padding-right: 0px;
    }
    .image-and-textboxes-text, .image-and-textboxes-image {
        border-right: none !important;
        padding-right: 0px !important;
    }
    .image-and-textboxes-content {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1200px) {
    .multi-card-area-card {
        flex-direction: column;
    }
    .image-card-content {
        max-width: 100% !important;
    }
}

.image-card-content {
    max-width: 400px;
    padding: var(--boxpad);
}

.text-and-description-area-content {
    /* padding-left: var(--boxpad);
    padding-right: var(--boxpad); */
}

.ibudir-chooser-tabs {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.ibudir-chooser-title {
    padding-left: var(--boxpad);
    padding-right: var(--boxpad);
}

.ibudir-tab-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: border 0.2s;
    font-family: 'AeonikPro', sans-serif;
    font-weight: 700;
}
.ibudir-tab-btn.active {
    border-bottom: 3px solid #282828;
    color: #282828;
    font-weight: bold;
}
.ibudir-chooser-panel {
    margin-top: 2rem;
}
.ibudir-chooser-panel-mainrow {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    margin-bottom: 12px;
}
.ibudir-chooser-panel-desc {
    padding: var(--boxpad);
    background: #EAE6E2;
    border-radius: 18px 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100%;
}
.ibudir-chooser-panel-mainimg {
    background: #fff;
    align-items: stretch;
    justify-content: stretch;
    border-radius: 0 18px 0 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.ibudir-chooser-panel-mainimg img.mainimg,
.ibudir-chooser-panel-mainimg .mainimg-video-wrap {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
    border-radius: 0 18px 0 0;
    display: block;
}
.mainimg-video-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    background: #282828;
}
.mainimg-video {
    width: 100%;
    height: 100%;
    border: none;
    aspect-ratio: 16/9;
    display: block;
}
.ibudir-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.ibudir-gallery-grid img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 12px;
    background: #fff;
}

.text-box-orange {
    background:#FF8050;
    padding: var(--boxpad);
    color: #fff;
}

.text-box-black {
    background: #282828;
    padding: var(--boxpad);
    color: #fff;
}

.image-and-textboxes-content {
    grid-template-columns: 1fr 2fr;
    gap: 16px;
}

.image-and-textboxes-text, .image-and-textboxes-image {
    border-right: 1px solid #858585;
    padding-right: 16px;
}

.image-and-textboxes-wrapper {
    gap: 16px;
    height: fit-content;
    margin-bottom: 24px;
}

.image-and-textboxes-text-heading {
    font-weight: 700;
    padding-bottom: 16px;
}

.extra-text-area {
    display: flex;
    align-items: center;
}

.extra-text-area p {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.footer-bottom {
    padding-top: 16px;
    border-top: 1px solid #858585;
    margin-top: 16px;
    display: flex;
    gap: 16px;
}

.footer-bottom img {
    height: 48px;
    width: auto;
}

.footer-bottom p {
    padding-bottom: 0 !important;
    align-self: center;
}


@media (max-width: 900px) {
    .ibudir-chooser-panel-mainrow {
        grid-template-columns: 1fr;
        border-radius: 18px 18px 0 0;
    }
    .ibudir-chooser-panel-desc,
    .ibudir-chooser-panel-mainimg img.mainimg,
    .mainimg-video-wrap {
        border-radius: 18px 18px 0 0;
    }
    #single-card-area {
        display: flex;
        flex-direction: column;
    }
    .single-card-area-content {
        max-width: unset !important;
    }
}

@media (max-width: 600px) {
    .multi-card-area-content {
        display: block;
    }
    .image-card-grid {
        margin-bottom: 16px;
    }
    #full-banner img {
        height: 100%;
    }
    .hero-banner-content {
        padding: 0 !important;
    }
    .hero-banner-box, .full-banner-box {
        border-radius: 0 !important;
        max-width: 100%;
        padding: calc(var(--boxpad) + var(--pad));
    }
    .full-banner-box.bg-primary-light, .hero-banner-box.bg-primary-light {
        background: #282828;
    }
    .full-card .image-card-content {
        min-height: 0;
    }
    #single-card-area img {
        height: 100% !important;
    }

}

/**/

#wpadminbar {
    /* background: #282828; */
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

@media screen and (max-width: 600px) {
    #wpadminbar {
        position: fixed;
    }
}


/**/

.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.mySlides {
    top: 0;
    left: 10%;
    transition: all 0.5s ease-in-out;
    z-index: 1;
    height: 100%;
}

.mySlides.active {
    opacity: 1;
    z-index: 3;
}

.mySlides img {
    cursor: pointer;
    height: 100%;
}

.mySlides.prev-slide {
    opacity: 0.6;
    transform: translateX(-102%);

    z-index: 2;
    cursor: pointer;
}

.mySlides.next-slide {
    opacity: 0.6;
    transform: translateX(102%);

    z-index: 2;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 100;
    background-color: #27389682;
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
    background-color: #273896;
    color: white;
}
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  
  .lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
  }
  
  .lightbox .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
  }
  
@media (max-width: 600px) {
    .slideshow-container {
        height: auto;
    }
}

.btn:hover svg, .bigbtn svg{
    animation: sarrow 0.3s infinite linear;
    animation-direction: alternate;
}

@keyframes sarrow {
    from {margin-left: 0px;}
    to {margin-left: 8px;}
}