/*
Theme Name: Birte Hansen
Author: Simon Duun
Description: Custom WordPress theme for Birte Hansen
Version: 1.0
Text Domain: birte-hansen
*/

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #18352e;
    background: #fff;
}

p {
    margin-top: 0;
}

.elementor .e-c28326a-0fd3260 {
    background-size: 140% !important;
}

#mainFrameOuter {
    width: 100vw;
    height: 100vh;
}

body:not(.hash-panels-ready) #aboutMe,
body:not(.hash-panels-ready) #activities,
body:not(.hash-panels-ready) #news,
#aboutMe[hidden],
#activities[hidden],
#news[hidden] {
    display: none !important;
}

#aboutMe,
#aboutMe *,
#activities,
#activities *,
#news,
#news * {
    color: #fff !important;
    font-family: "Source Sans Pro", sans-serif !important;
    line-height: 22px !important;
}

body.hash-panels-ready #aboutMe,
body.hash-panels-ready #activities,
body.hash-panels-ready #news {
    max-height: 500px;
    border-inline-end: 10px solid transparent;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
    scrollbar-width: thin;
    opacity: 0;
    transition: opacity 240ms ease;
}

#aboutMe::-webkit-scrollbar,
#activities::-webkit-scrollbar,
#news::-webkit-scrollbar {
    width: 10px;
}

#aboutMe::-webkit-scrollbar-track,
#activities::-webkit-scrollbar-track,
#news::-webkit-scrollbar-track {
    background: transparent;
    margin-block: 70px;
}

#aboutMe::-webkit-scrollbar-thumb,
#activities::-webkit-scrollbar-thumb,
#news::-webkit-scrollbar-thumb {
    min-height: 40px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    background-clip: content-box;
}

#aboutMe::-webkit-scrollbar-thumb:hover,
#activities::-webkit-scrollbar-thumb:hover,
#news::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.65);
}

#aboutMe::-webkit-scrollbar-button,
#activities::-webkit-scrollbar-button,
#news::-webkit-scrollbar-button {
    display: none;
}

body.hash-panels-ready #aboutMe.hash-panel-visible,
body.hash-panels-ready #activities.hash-panel-visible,
body.hash-panels-ready #news.hash-panel-visible {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    body.hash-panels-ready #aboutMe,
    body.hash-panels-ready #activities,
    body.hash-panels-ready #news {
        transition-duration: 0s;
    }
}

body.elementor-editor-active #aboutMe,
body.elementor-editor-active #activities,
body.elementor-editor-active #news,
body.elementor-editor-preview #aboutMe,
body.elementor-editor-preview #activities,
body.elementor-editor-preview #news,
html.elementor-html #aboutMe,
html.elementor-html #activities,
html.elementor-html #news {
    display: flex !important;
    max-height: none !important;
    border-inline-end: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.elementor-editor-active #footerMain {
    position: relative !important;
    inset: auto !important;
}

.elementor .elementor-element.elementor-element-7aa19aa {
    margin-top: 80px !important;
}

.embedded-page-content-placeholder {
    width: 100%;
    padding: 10px 14px;
    border: 1px dashed rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}
.elementor-element-8435a9a > .e-con-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.elementor-element-49f5b39 {
  box-sizing: border-box;
  min-width: 0;
}

/* Mobile/tablet: let the document grow instead of overlapping fixed panels. */
@media (max-width: 1024px) {
    .elementor #mainFrameOuter {
        width: 100%;
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        background-size: cover !important;
    }

    #mainFrameOuter > .elementor-element-9158dab {
        width: 100%;
        min-width: 0;
        padding: 0;
    }

    #mainFrameOuter .elementor-element-ab46428 {
        width: 100%;
        min-width: 0;
        min-height: 100vh;
        min-height: 100svh;
        padding: 20px clamp(16px, 4vw, 32px);
        gap: 24px;
    }

    #mainFrameOuter .elementor-element-cc02e9a {
        width: 100%;
        padding: 0;
    }

    #mainFrameOuter .elementor-icon-list-items.elementor-inline-items {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 24px;
        margin: 0;
    }

    #mainFrameOuter .elementor-icon-list-items .elementor-icon-list-item {
        margin: 0;
        padding: 0;
    }

    #mainFrameOuter .elementor-icon-list-item a {
        min-height: 44px;
        font-size: clamp(25px, 4vw, 32px);
        line-height: 1.2;
    }

    #mainFrameOuter .elementor-element-7aa19aa {
        width: 100%;
        min-width: 0;
        margin-top: 0 !important;
        padding: 0;
        gap: 0;
    }

    body.hash-panels-ready #mainFrameOuter :is(#aboutMe, #activities, #news) {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        max-height: none;
        padding: clamp(20px, 4vw, 32px);
        border: 0;
        border-radius: 20px;
        overflow: visible;
        scroll-margin-top: 20px;
    }

    #mainFrameOuter :is(#aboutMe, #activities, #news) :is(.elementor-widget-shortcode, .elementor-shortcode, .embedded-page-content, .e-con, .e-con-inner) {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    #mainFrameOuter #footerMain {
        position: relative !important;
        inset: auto !important;
        width: 100%;
        min-width: 0;
        margin-top: auto;
        padding: 16px 0 4px;
        flex-shrink: 0;
    }

    #mainFrameOuter #footerMain .elementor-heading-title {
        font-size: clamp(23px, 3.3vw, 30px);
        line-height: 1.35;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 767px) {
    #mainFrameOuter .embedded-page-content .e-grid > .e-con-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        width: 100%;
        padding: 0;
    }

    #mainFrameOuter .embedded-page-content .elementor-widget-image img {
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    #mainFrameOuter .elementor-element-64480b4 {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
}
