.elementor-kit-8{--e-global-color-primary:#6EC1E4;--e-global-color-secondary:#54595F;--e-global-color-text:#7A7A7A;--e-global-color-accent:#61CE70;--e-global-color-604b730:#1A1A1A;--e-global-color-96735ff:#0A0A0A;--e-global-color-0798a3a:#111111;--e-global-color-342d6c7:#0A0A0A;--e-global-color-abfce8f:#000000;--e-global-color-87b1c51:#F2F2F2;--e-global-color-f444df0:#FFFFFF;--e-global-color-19cdc31:#2AC6F2;--e-global-color-749859f:#1FB7E8;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Roboto Slab";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Roboto";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;}.elementor-kit-8 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}.elementor-lightbox{background-color:var( --e-global-color-0798a3a );--lightbox-text-color:var( --e-global-color-87b1c51 );}.site-header .site-branding{flex-direction:column;align-items:stretch;}.site-header{padding-inline-end:0px;padding-inline-start:0px;}.site-footer .site-branding{flex-direction:column;align-items:stretch;}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:480px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}/* Start custom CSS */div[id^="elementor-lightbox"] .elementor-slideshow__description {
    color: #F2F2F2 !important;
    margin-top: -50px !important;
}



/* GRUNDINDSTILLING (Fælles for alle fotoserier) */
.fotoserie-sektion {
    margin-left: auto !important;
    margin-right: auto !important;

    display: flex;
}

/* RYKKER KUN GALLERI WIDGET OP */
.elementor-widget-image-gallery, 
.elementor-widget-gallery {
    margin-top: -30px !important; /* Justér tallet her for at rykke mere/mindre op */
}

/* 1. WIDESCREEN (4K / +2401px) */
@media (min-width: 2401px) {
    .fotoserie-sektion {
        width: 92vw;
        max-width: 2200px !important;
    }
}

/* 2. DESKTOP (Standard / 1367px - 2400px) */
@media (min-width: 1367px) and (max-width: 2400px) {
    .fotoserie-sektion {
        width: 96vw;
        max-width: 1700px !important;
    }
}

/* 3. BÆRBAR (Laptop / 1025px - 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
    .fotoserie-sektion {
        width: 96vw;
    }
}

/* 4. TABLET LANDSKAB (1024px) */
@media (min-width: 881px) and (max-width: 1024px) {
    .fotoserie-sektion {
        width: 92vw;
    }
}

/* 5. TABLET PORTRÆT (768px - 880px) */
@media (min-width: 768px) and (max-width: 880px) {
    .fotoserie-sektion {
        width: 90vw;
    }
}

/* RETTET LIGHTBOX TIL MOBIL LANDSKAB */
@media (min-width: 481px) and (max-width: 950px) and (max-height: 500px) {
    
    /* 1. BEVARER TOPBAR MEN SKJULER LUKKE-KNAP OG TEKST FOR AT FRIGØRE PLADS */
    div[id^="elementor-lightbox"] .elementor-slideshow__close,
    div[id^="elementor-lightbox"] .elementor-slideshow__footer {
        display: none !important;
    }

    /* Viser selve topbaren så Fuldskærms-knappen overlever */
    div[id^="elementor-lightbox"] .elementor-slideshow__header {
        display: flex !important;
        background: transparent !important; /* Gør bjælken gennemsigtig */
    }

    /* 2. OVERSTYRER JAVASCRIPT-HØJDEN PÅ CONTAINEREN */
    div[id^="elementor-lightbox"] .elementor-slideshow__image-wrap {
        height: 100vh !important; /* Tvinger containeren til fuld højde */
        max-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 3. TVINGER SELVE BILLEDET OP I STØRRELSE PÅ DEN KORTE LED */
    div[id^="elementor-lightbox"] img.elementor-lightbox-image {
        height: 92vh !important; /* Fylder 92% af skærmens højde (efterlader lidt luft til top-knapper) */
        max-height: 92vh !important;
        width: auto !important; /* Bevarer de korrekte proportioner */
        object-fit: contain !important;
    }
}


/* 7. MOBIL PORTRÆT (0px - 480px) */
@media (max-width: 480px) {
    .fotoserie-sektion {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important; /* Nulstiller skæv margen */
        margin-right: 0 !important;
        padding-left: 13px !important; /* Giver ensartet luft */
        padding-right: 13px !important;
        display: flex;
        flex-direction: column; /* Sikrer at indhold stables korrekt */
    }
}

/* NY OG RENSKET STYLING AF TEKST I FOTOSERIER */
.wrapper-box {
    text-align: left !important;
    -webkit-hyphens: auto !important;
    -ms-hyphens: auto !important;
    hyphens: auto !important;
    -webkit-locale: "da" !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    text-justify: inter-word;
}

/* Dette sikrer at indholdet indeni din "Læs mere" boks arver reglerne */
#textContent {
    hyphens: inherit;
    display: inline;
}



/* --- JUSTERING AF LIGHTBOX TEKSTSTØRRELSE --- */

/* Standard (Mobil & Tablet) */
div[id^="elementor-lightbox"] .elementor-slideshow__description {
    font-size: 14px !important;
}

/* Specifikt for BÆRBAR (Laptop / 1025px - 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
    div[id^="elementor-lightbox"] .elementor-slideshow__description {
        font-size: 18px !important; /* Gør teksten større her */
    }
}

/* Specifikt for STORE SKÆRME (Desktop / over 1367px) */
@media (min-width: 1367px) {
    div[id^="elementor-lightbox"] .elementor-slideshow__description {
        font-size: 20px !important;
    }
}


/* --- LÆS MERE FUNKTION TIL INDLÆG (OPEN SANS) --- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600&display=swap');

.wrapper-box {
    position: relative;
    color: #F2F2F2 !important;
    font-family: 'Open Sans', sans-serif !important;
    overflow: hidden;
    transition: max-height 0.3s ease;
    display: block;
    margin-bottom: 20px;
    
    /* PC INDSTILLINGER */
    font-weight: 500 !important; /* Medium fedme på PC */
    line-height: 28px !important; 
    max-height: 140px; /* 5 linjer x 28px */
}

/* MOBIL OPTIMERING */
@media (max-width: 767px) {
    .wrapper-box {
        font-weight: 400 !important; /* Mindre fed (Normal) på mobil */
        line-height: 24px !important; 
        max-height: 120px; /* 5 linjer x 24px */
        font-size: 15px; 
    }
}

.wrapper-box.expanded {
    max-height: 5000px !important;
    overflow: visible;
}

.read-more-trigger {
    position: absolute;
    bottom: 0;
    right: 0;
    /* Gradient der fader teksten ud mod sort baggrund */
    background: linear-gradient(to right, rgba(0,0,0,0), #000 40%); 
    padding-left: 60px;
    color: #1FB7E8;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: none;
}

.wrapper-box.expanded .read-more-trigger {
    position: relative;
    display: block !important;
    background: none;
    padding-left: 0;
    margin-top: 10px;
}/* End custom CSS */