/* ---------------------------------------------------------------------------------------------

	Theme Name: WorkDigital Foundation Child
	Version: 0.1
	Description: Child theme for WorkDigital Foundation theme
	Author: WorkDigital
	Author URI: https://workdigital.dk
    Template: wd-foundation

/* --------------------------------------------------------------------------------------------- */
/* 
    ——————————
    Variabler
    ——————————
*/

:root {
    --bold: 700;
    --medium-font-size: calc(var(--body-font-size) * 1.25);
    --large-font-size: calc(var(--body-font-size) * 2);
    --huge-font-size: calc(var(--body-font-size) * 2.75);
    --small-font-size: calc(var(--body-font-size) * 0.85);
    --tiny-font-size: calc(var(--body-font-size) * 0.75);
    --header-height: 80px;
    --standard-transition: 225ms cubic-bezier(0.4, 0.0, 0.2, 1);
    --slow-transition: 375ms cubic-bezier(0.4, 0.0, 0.2, 1);
    --body-line-height: 1.5;
    --theme-text-color: #363636;
    /* Legacy MW Film aliases mapped to the Foundation design tokens. */
    --theme-primary-color: var(--primary-color);
    --theme-highlight-color: var(--accent-color);
    --theme-highlight-color-hover: var(--accent-color-hover);
    --theme-bg-color: var(--background-color);
    --primary-font-stack: var(--standard-text-font-family);
    --secondary-font-stack: var(--standard-text-font-family);
    --theme-narrow-width: var(--small-width);
    --theme-standard-width: var(--standard-width);
    --theme-wide-width: var(--wide-width);
    /* Foundation defaults to the optional secondary color for buttons. MW
       Film does not use one, so use the configured accent color instead. */
    --btn-color: var(--accent-color);
    --btn-color-hover: var(--accent-color-hover);
    --btn-text-color: #FFFFFF;
    --btn-text-color-hover: #FFFFFF;
    --shadowlevel-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadowlevel-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --shadowlevel-3: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --shadowlevel-4: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    --shadowlevel-5: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
}

a {
    text-decoration: none;
}

/*
    ——————————
    Styling til body
    ——————————
*/

body {
    color: var(--theme-text-color);
    font-family: var(--standard-text-font-family);
    font-size: var(--body-font-size);
}

body strong {
    font-weight: 900;
    font-size: inherit;
}

.custom-background.page-template {
    background: var(--theme-bg-color);
}

body.custom-background.error404 {
    background: var(--theme-primary-color);
    color: #FFFFFF;
}

.entry-content {
    font-family: var(--standard-text-font-family);
    font-size: var(--body-font-size);
}

.entry-content p, .entry-content li {
    line-height: var(--body-line-height);
}


/* 
    ——————————
    Styling til UI-elementer
    ——————————
*/

.btn {
    background: var(--theme-primary-color);
    text-decoration: none;
    display: inline-block;
    padding: 12px 30px;
    color: var(--theme-bg-color);
    text-align: center;
    font-weight: var(--bold);
}

.btn-secondary {
    background: var(--theme-bg-color);
    color: var(--theme-primary-color);
}

.color-accent,
.color-accent-hover:hover,
.color-accent-hover:focus,
:root .has-accent-color,
.has-drop-cap:not(:focus)::first-letter,
a {
    color: var(--theme-highlight-color);
}


/* 
    ——————————
    Styling til plugins
    ——————————
*/

/* GUTENSLIDER */

.entry-content .wp-block-eedee-block-gutenslider .eedee-gutenslider-nav {
    z-index: 1;
}

.entry-content .wp-block-eedee-block-gutenslider .eedee-gutenslider-pagination {
    z-index: 1;
}


/* 
    ——————————
    Styling til header og tilhørende elementer
    ——————————
*/

/*
 * Legacy header styles from workdigital-theme.
 * Kept temporarily as a migration reference, but disabled because Foundation
 * uses .wd-header, .main-header and .main-header-menu instead.
 */
@media not all {

.header-topper {
    position: fixed;
    width: 100%;
    height: 32px;
    top: 0;
    left: 0;
    transform: translateY(10px);
    background: rgba(0, 0, 0, 0);
    z-index: 3;
    transition: all var(--standard-transition);
    transition-property: background-color, transform;
}

.header-topper.is-scrolled {
    background: rgba(0, 0, 0, 1);
    transform: translateY(0);
}

.header-topper-color {
    position: absolute;
    height: 100%;
    width: 100%;
    background: var(--theme-header-topper-color);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--standard-transition);
}

.header-topper.is-scrolled .header-topper-color {
    opacity: 1;
}

.header-topper-inner {
    position: relative;
    width: calc(100% - 8rem);
    max-width: 168rem;
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-auto-flow: column;
    justify-items: end;
    align-items: center;
    justify-content: end;
    grid-gap: 20px;
    box-sizing: border-box;
}

.header-topper-element {
    height: 100%;
}

.header-topper-link {
    text-decoration: none;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    font-size: var(--tiny-font-size);
    height: 100%;
    transition: color var(--standard-transition);
}

.header-topper-link:hover {
    color: var(--theme-highlight-color);
}

.header-topper-icon {
    fill: #FFFFFF;
    margin-right: 6px;
    height: 22px;
}

.site-header {
    position: fixed;
    top: 32px;
    left: 0;
    height: var(--header-height);
    width: 100%;
    z-index: 3;
    transition: height var(--standard-transition);
}

.site-header.is-scrolled {
    height: calc(var(--header-height) - 10px);
}

.footer-nav-widgets-wrapper,
#site-footer,
.menu-modal,
.menu-modal-inner,
.search-modal-inner,
.archive-header,
.singular
.entry-header,
.singular
.featured-media::before,
.wp-block-pullquote::before {
    background: var(--theme-primary-color);
}

.site-header-color {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--theme-primary-color);
    opacity: 0;
    transition: opacity var(--standard-transition);
}

.site-header.is-scrolled .site-header-color {
    opacity: 1;
}

.site-header-inner {
    padding: 0;
    width: calc(100% - 8rem);
    max-width: 168rem;
    margin: 0 auto;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    transition: height var(--standard-transition);
}

.site-header.is-scrolled .site-header-inner {
    height: calc(var(--header-height) - 10px);
}

.site-header-logo {
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-header-logo-img {
    max-height: calc(var(--header-height) - 40px);
}

span.text-logo {
    font-size: 33px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
}

.site-primary-menu li.current-menu-item > a,
.site-primary-menu li.current-menu-item > .link-icon-wrapper > a {
    text-decoration: none;
    color: var(--theme-highlight-color);
}

body:not(.overlay-header) .site-primary-menu > li > a,
body:not(.overlay-header) .-siteprimary-menu > li > .icon {
    color: #FFFFFF;
    transition: color var(--standard-transition);
}

body:not(.overlay-header) .site-primary-menu > li > a:hover {
    color: var(--theme-highlight-color);
}

body:not(.overlay-header) .site-primary-menu > li.current-menu-item > a {
    color: var(--theme-highlight-color);
}

.site-header-inner .menu-item {
    margin: 0 35px 0 0;
}

.site-header-inner .menu-item:last-child {
    margin: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    font-weight: 400;
    height: 100%;
    margin: 0;
    position: relative;
}

.menu-item > a {
    height: 100%;
    padding: auto 0;
    line-height: var(--header-height);
    transition: line-height var(--standard-transition);
}

.site-header.is-scrolled .menu-item > a {
    line-height: calc(var(--header-height) - 10px);
}

.current-menu-item::after,
.current_page_parent::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 6px;
    width: 100%;
    background: var(--theme-highlight-color);
    border-radius: 6px 6px 0 0;
}

.header-navigation-wrapper {
    height: 100%;
}

.primary-menu-wrapper {
    height: 100%;
}

.site-primary-menu {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.site-primary-menu .menu-item {
    font-size: var(--body-font-size);
}

.site-primary-menu .menu-item a {
    text-decoration: none;
}

.sub-menu {
    position: absolute;
    opacity: 0;
    transition: opacity var(--standard-transition);
    top: 100%;
    left: -20px;
    background: var(--theme-primary-color);
    margin: 0;
    padding: 0;
    min-width: 220px;
    pointer-events: none;
}

.sub-menu .menu-item {
    margin: 0;
    height: auto;
    padding: 0;
}

.site-header .sub-menu .menu-item a {
    padding: 20px 20px;
    display: block;
    line-height: 1em;
    color: #FFFFFF;
    width: 100%;
    transition: color var(--standard-transition);
}

.site-header .sub-menu .menu-item a:hover {
    color: var(--theme-highlight-color);
}

.site-header .sub-menu .current_page_item a {
    color: var(--theme-highlight-color);
}

.sub-menu .menu-item:first-child a {
    padding-top: 25px;
}

.sub-menu .menu-item:last-child a {
    padding-bottom: 25px;
}

.menu-item:hover .sub-menu {
    opacity: 1;
    pointer-events: initial;
}

.menu-item a:hover {
    color: var(--theme-highlight-color);
}

.menu-item .menu-booking-link {
    padding: 12px 20px;
    border: 3px solid #FFFFFF;
    line-height: 1em;
}

body:not(.overlay-header) .site-primary-menu > li > .menu-booking-link {
    transition: all var(--standard-transition);
    transition-property: background-color, color;
}

body:not(.overlay-header) .site-primary-menu > li > .menu-booking-link:hover {
    background: #FFFFFF;
    color: var(--theme-primary-color);
}

.site-header.is-scrolled .menu-item > .menu-booking-link {
    padding: 12px 20px;
    border: 3px solid #FFFFFF;
    line-height: 1em;
}

.site-header-mobile {
    height: 70px;
    width: 100%;
    position: fixed;
    top: 40px;
    left: 0;
    transform: translateY(10px);
    display: none;
    background: transparent;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
    transition: all var(--standard-transition);
    transition-property: background-color, transform;
}

.site-header-mobile.is-scrolled {
    background: var(--theme-primary-color);
    transform: translateY(0);
}

.mobile-header-logo {
    padding-left: 20px;
    box-sizing: content-box;
}

.mobile-header-logo img{
    max-width: 90px;
}


.menu-open {
    height: 100%;
    width: 32px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: content-box;
    transition: opacity var(--standard-transition);
}

.menu-open.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.hamburger {
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: column;
    overflow: hidden;
}

.hamburger-line {
    background: #FFFFFF;
    height: 3px;
    width: 32px;
    position: relative;
}

.hamburger-line:first-child {
    top: -6px;
}

.hamburger-line:last-child {
    top: 6px;
}

.hamburger-text {
    white-space: nowrap;
    font-size: var(--small-font-size);
    font-weight: var(--bold);
    color: #FFFFFF;
    margin: 0;
    line-height: 1em;
}

/* Gammel mobil menu
.main-nav-mobile {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    bottom: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    z-index: 3;
    transition: all var(--standard-transition);
    transition-property: opacity;
    min-height: 100vh;
    width: 100vw;
    background: rgba(0, 0, 0, 0.9);
}

.main-nav-mobile.is-toggled {
    opacity: 1;
    pointer-events: initial;
}
*/

.main-nav-mobile {
    color: #fff;
    display: block;
    background: var(--theme-primary-color);
    position: fixed;
    width: 90vw;
    max-width: 360px;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    border-radius: 12px 0 0 12px;
    border-top: 2px solid color-mix(in srgb, var(--header-bg-color) 20%, transparent);
    border-left: 2px solid color-mix(in srgb, var(--header-bg-color) 20%, transparent);
    border-bottom: 2px solid color-mix(in srgb, var(--header-bg-color) 20%, transparent);
    z-index: 3;
    pointer-events: none;
    transition: transform var(--standard-transition);
    transform: translateX(100%);
}

.main-nav-mobile.is-toggled {
    opacity: 1;
    pointer-events: initial;
    overflow-y: auto;
    pointer-events: all;
    transform: translateX(0);
}

.menu-close {
    cursor: pointer;
    position: relative;
    top: 20px;
    left: calc(100% - 20px);
    transform: translateX(-100%);
    height: 60px;
    width: 60px;
}

.menu-close__line {
    height: 3px;
    width: 35px;
    position: absolute;
    top: calc(50% - 3px);
    left: 50%;
    background: #FFFFFF;
}

.menu-close__line:first-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-close__line:nth-child(2) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-close__text {
    white-space: nowrap;
    font-size: var(--small-font-size);
    font-weight: var(--bold);
    color: #FFFFFF;
    margin: 0;
    line-height: 1em;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.site-primary-menu-mobile {
    height: auto;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
}

.site-primary-menu-mobile * {
    pointer-events: none;
}

.main-nav-mobile.is-toggled .site-primary-menu-mobile * {
    pointer-events: initial;
}

.site-primary-menu-mobile > .menu-item {
    margin-top: 20px;
    font-size: var(--medium-font-size);
    font-weight: var(--bold);
}

.site-primary-menu-mobile > .menu-item:first-child {
    margin-top: 0;
}

.main-nav-mobile .menu-item {
    height: auto;
    flex-direction: column;
}

.main-nav-mobile .current-menu-item::after,
.main-nav-mobile .current_page_parent::after {
    background: transparent;
}

.main-nav-mobile .menu-item a {
    line-height: 3em;
    color: #FFFFFF;
}

.main-nav-mobile .menu-item a:hover {
    color: var(--theme-highlight-color);
}

.main-nav-mobile .sub-menu .menu-item:first-child a {
    padding-top: 0;
}

.main-nav-mobile .sub-menu .menu-item:last-child a {
    padding-bottom: 0;
}

.main-nav-mobile .sub-menu {
    opacity: 1;
    top: 0;
    left: 0;
    background: transparent;
    position: relative;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 0;
}

body:not(.overlay-header) .site-primary-menu.site-primary-menu-mobile > li > .menu-booking-link {
    padding: 15px 25px;
    font-size: var(--body-font-size);
    line-height: var(--body-font-size);
    font-weight: normal;
    margin-top: 10px;
}

}

/*
 * WorkDigital Foundation header overrides.
 * Structure and behaviour come from the parent theme; visual changes live here.
 */

header.wd-header {
    background: transparent;
    box-shadow: none;
    transition: background-color var(--standard-transition);
}

header.wd-header .main-header {
    background-color: transparent;
    transition: background-color var(--standard-transition);
}

body:has(header.wd-header .main-header) {
    padding-top: 0;
}

header.wd-header.is-scrolled {
    background-color: var(--header-bg-color);
}

header.wd-header.is-scrolled .main-header {
    background-color: var(--header-bg-color);
}

.header-topper {
    background: transparent;
    transform: translateY(10px);
    transition:
        background-color var(--standard-transition),
        transform var(--standard-transition);
}

header.wd-header.is-scrolled .header-topper {
    background: var(--header-topper-bg-color, var(--header-bg-color));
    transform: translateY(0);
}

.header-topper-inner,
.main-header-inner {
    width: calc(100% - 40px);
    max-width: 1680px;
    margin-inline: auto;
}

.header-topper-items {
    min-height: 32px;
    padding: 0;
    gap: 20px;
}

.header-topper--items-left .header-topper-items {
    justify-content: flex-start;
}

.header-topper--items-center .header-topper-items {
    justify-content: center;
}

.header-topper--items-right .header-topper-items {
    justify-content: flex-end;
}

.header-topper-item a {
    transition: color var(--standard-transition);
}

.header-topper-item a:hover,
.header-topper-item a:focus-visible {
    color: var(--header-active-color);
}

.main-header-inner {
    padding-inline: 0;
    overflow: visible;
}

.main-header-logo-link {
    position: relative;
    z-index: 3;
}

.main-header--menu-open .main-header-logo-link {
    z-index: 0;
}

.main-header-logo-link img {
    width: 90px;
    height: 90px;
    max-width: none;
    max-height: none;
    padding: 0;
    object-fit: contain;
    transform: translateY(20px);
}

.main-header-nav-open,
.main-header-nav-close {
    color: var(--header-text-color);
}

.main-header-nav {
    color: var(--header-text-color);
    background: var(--header-bg-color);
}

.main-header-menu .menu-item > a {
	transition:
		color var(--standard-transition),
		background-color var(--standard-transition);
}

.wd-header .main-header-menu > .menu-item.menu-item-has-children > a {
	cursor: pointer;
}

.main-header-menu .menu-item > a:hover,
.main-header-menu .menu-item > a:focus-visible,
.main-header-menu .current-menu-item > a,
.main-header-menu .current-menu-parent > a {
    color: var(--header-active-color);
}

.main-header-menu .menu-booking-link {
    height: auto;
    min-height: 44px;
    padding: 12px 20px;
    border: 3px solid currentColor;
    border-radius: 0;
    line-height: 1;
}

.main-header-menu .menu-booking-link:hover,
.main-header-menu .menu-booking-link:focus-visible {
    background: var(--header-text-color);
    border-color: var(--header-text-color);
    color: var(--header-bg-color);
}

@media screen and (min-width: 600px) {
    .header-topper-inner,
    .main-header-inner {
        width: calc(100% - 64px);
    }
}

@media screen and (min-width: 1190px) and (hover: hover) {
    .header-topper-inner,
    .main-header-inner {
        width: calc(100% - 80px);
    }

    .header-topper-items {
        padding-right: 0;
    }

    body.sometimes-burger .main-header-inner {
        padding-inline: 0;
    }

    .main-header-logo-link img {
        width: 128px;
        height: 128px;
        transform: translateY(10px);
    }

    body.sometimes-burger .main-header-menu {
        gap: 35px;
    }

    body.sometimes-burger .main-header-menu > .menu-item:hover > a,
    body.sometimes-burger .main-header-menu > .menu-item:focus-within > a,
    body.sometimes-burger .main-header-menu > .current-menu-item > a,
    body.sometimes-burger .main-header-menu > .current-menu-parent > a {
        color: var(--header-active-color);
    }

    body.sometimes-burger .main-header-menu > .menu-item > a::before {
        width: 100%;
        height: 6px;
        border-radius: 6px 6px 0 0;
        background-color: var(--header-active-color);
        opacity: 0;
        transform: translateX(-50%) scaleX(0);
        transform-origin: center;
        transition:
            opacity var(--standard-transition),
            transform var(--standard-transition);
        will-change: opacity, transform;
    }

    body.sometimes-burger .main-header-menu > .current-menu-item > a::before,
    body.sometimes-burger .main-header-menu > .current-menu-parent > a::before {
        opacity: 0.7;
        transform: translateX(-50%) scaleX(1);
    }

    body.sometimes-burger .main-header-menu > .menu-item:not(.current-menu-item):not(.current-menu-parent):hover > a::before,
    body.sometimes-burger .main-header-menu > .menu-item:not(.current-menu-item):not(.current-menu-parent):focus-within > a::before {
        opacity: 0;
        transform: translateX(-50%) scaleX(0);
    }

    body.sometimes-burger .main-header--hide-icons .main-header-menu > .menu-item.menu-item-has-children > a::before,
    body.sometimes-burger .main-header--hide-icons-on-desktop .main-header-menu > .menu-item.menu-item-has-children > a::before,
    body.sometimes-burger .main-header--show-icons .main-header-menu > .menu-item > a::before,
    body.sometimes-burger .main-header--show-icons .main-header-menu > .menu-item.menu-item-has-children > a::before {
        left: 50%;
    }

    body.sometimes-burger .main-header-menu > .menu-item.menu-item-has-children > a::after {
        display: none;
    }

    body.sometimes-burger .main-header-menu ul.sub-menu {
        display: block;
        top: 100%;
        right: auto;
        left: -20px;
        min-width: 220px;
        margin: 0;
        padding: 0;
        border-radius: 0;
        background: var(--header-bg-color);
        color: var(--header-text-color);
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(10px);
        transition:
            opacity var(--standard-transition),
            transform var(--standard-transition),
            visibility 0s linear var(--standard-transition);
        will-change: opacity, transform;
        z-index: 2;
    }

    body.sometimes-burger .main-header-menu > .menu-item.menu-item-has-children:hover > ul.sub-menu,
    body.sometimes-burger .main-header-menu > .menu-item.menu-item-has-children:focus-within > ul.sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition-delay: 0s;
    }

    body.sometimes-burger .main-header-menu ul.sub-menu li:not(:last-child) {
        border-bottom: 0;
    }

    body.sometimes-burger .main-header .main-header-menu ul.sub-menu > li.menu-item > a {
        width: 100%;
        height: auto;
        padding: 20px;
        border-radius: 0;
        line-height: 1;
        color: inherit;
        background: transparent;
        transition: color var(--standard-transition);
    }

    body.sometimes-burger .main-header .main-header-menu ul.sub-menu > li.menu-item:first-child > a {
        padding-top: 25px;
    }

    body.sometimes-burger .main-header .main-header-menu ul.sub-menu > li.menu-item:last-child > a {
        padding-bottom: 25px;
    }

    body.sometimes-burger .main-header .main-header-menu ul.sub-menu > li.menu-item > a:hover,
    body.sometimes-burger .main-header .main-header-menu ul.sub-menu > li.menu-item > a:focus-visible,
    body.sometimes-burger .main-header .main-header-menu ul.sub-menu > li.current-menu-item > a,
    body.sometimes-burger .main-header .main-header-menu ul.sub-menu > li.current_page_item > a {
        color: var(--header-active-color);
        background: transparent;
    }
}


/* 
    ——————————
    Styling til hero-sektion
    ——————————
*/


.hero-section {
    height: 550px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-section h1.wp-block-heading {
    margin: 0;
    font-size: var(--huge-font-size);
    max-width: 768px;
    margin-bottom: 20px;
}

.hero-section h1.wp-block-heading.has-text-align-center {
    margin: 0 auto 20px;
}

.hero-section p{
    max-width: 600px;
}

.hero-section:not(.mwfilm-video-hero) .hero-section-inner > p {
    margin: 0 0 17px;
}

.hero-section p.has-text-align-center {
    margin-left: auto;
    margin-right: auto;
}

.hero-section.hero-section-type-video {
    min-height: 80vh;
}

.hero-section-video-wrapper {
    height: 100%;
}

.hero-section-video-wrapper iframe{
    min-width: 100vw;
    min-height: 56.25vw;
}

.hero-section-video-wrapper video {
    position: absolute;
    width: auto!important;
    height: auto!important;
    aspect-ratio: var(--video-width) / var(--video-height);
    min-height: 100%;
    min-width: 100%;
    top: 0;
    left: 50%;
    right: 0;
    bottom: 0;
    transform: translateX(-50%);
}

.hero-section-image-wrapper,
.hero-section-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-section-image-wrapper .hero-image{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
    object-position: center center;
    height: 100%;
    width: 100%;
}

.hero-section-content.hero-color-theme-light{
    background: linear-gradient(0deg, black, transparent 50%, transparent 75%, rgba(0,0,0,0.65));
    color: #fff;
    display: flex;
    align-items: flex-end;
}

.hero-section-content.hero-color-theme-dark{
    background: linear-gradient(0deg, #fff, transparent 50%, transparent 75%, rgba(255,255,255,0.65));
    color: var(--theme-text-color);
}

.hero-section-content{
    transition: opacity var(--slow-transition);
}

.hero-section-content--hidden{
    pointer-events: none;
    opacity: 0;
}

.hero-section-inner{
    width: min(1200px, calc(100% - 40px));
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-section .wp-block-buttons {
    margin: 0 0 30px;
    display: flex;
    gap: 10px;
}

.hero-section .wp-block-buttons:has(.has-text-align-center),
.hero-section *.has-text-align-center + .wp-block-buttons {
    justify-content: center;
}

@media screen and (max-width: 767px){
    .hero-section-inner {
        padding: 60px 0 0px;
        width: calc(100% - 40px);
    }
}

/*styling til cookie blokerede videoer*/
.hero-section-video-wrapper .video-placeholder-normal{
    width: 100%!important;
    height: 100%!important;
    align-items: center;
}

.hero-section-video-wrapper .video-placeholder-normal p{
    transform: translateY(90px);
}

@media screen and (max-width: 768px) {
    .hero-section h1.wp-block-heading{
        font-size: var(--large-font-size);
    }
}


@media screen and (max-width: 420px) {
    .hero-section .wp-block-buttons{
        flex-direction: column;
    }
}

/* 
    ——————————
    Styling til site content og tilhørende elementer
    ——————————
*/

#site-content .post-inner {
    padding-top: 0;
}

body .entry-content > :not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide).wp-block-contact-form-7-contact-form-selector {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.wpcf7 {
    width: 100%;
    max-width: 600px;
}

.content-wrapper {
    display: grid;
    width: 100%;
}

.content-wrapper--has-right-side {
    grid-template-columns: 1fr 360px;
}

/*
    Gutenberg content spacing

    These are fallback values for blocks without spacing set in the editor.
    Inline Gutenberg margin and padding choices are deliberately excluded.
*/
:root {
    --mw-section-spacing: clamp(48px, 6vw, 80px);
    --mw-group-spacing: clamp(30px, 3.2vw, 40px);
    --mw-heading-spacing: clamp(20px, 2.4vw, 30px);
    --mw-text-spacing: clamp(16px, 1.8vw, 22px);
}

.entry-content > .wp-block-group:first-child:not([style*="padding"]) {
    padding-top: clamp(40px, 4.8vw, 60px);
    padding-bottom: var(--mw-group-spacing);
}

.entry-content > .wp-block-group.alignfull.has-background:not([style*="padding"]) {
    padding-block: var(--mw-section-spacing);
}

.entry-content > .wp-block-group.alignfull.has-background + .wp-block-group:not([style*="padding"]) {
    padding-block: var(--mw-group-spacing);
}

.entry-content > .wp-block-heading:not([style*="margin"]) {
    margin-top: clamp(40px, 4.8vw, 60px);
    margin-bottom: var(--mw-heading-spacing);
}

.entry-content > .wp-block-heading + .wp-block-group:not([style*="margin"]) {
    margin-top: var(--mw-group-spacing);
    margin-bottom: var(--mw-group-spacing);
}

.entry-content .wp-block-heading:not([style*="margin"]) {
    margin-bottom: var(--mw-heading-spacing);
}

.entry-content :is(p, .wp-block-paragraph) + :is(p, .wp-block-paragraph):not([style*="margin"]) {
    margin-top: var(--mw-text-spacing);
}

.entry-content :is(p, .wp-block-paragraph) + .wp-block-heading:not([style*="margin"]) {
    margin-top: var(--mw-group-spacing);
}

.entry-content :is(p, .wp-block-paragraph) + .wp-block-columns:not([style*="margin"]) {
    margin-top: var(--mw-group-spacing);
}

.entry-content .wp-block-group.alignwide:not([style*="margin"]) {
    margin-top: var(--mw-group-spacing);
    margin-bottom: var(--mw-group-spacing);
}

/* Single posts: retain the more generous reading rhythm from the old theme.
   Keep this on the article column so sidebar cards and forms are unaffected. */
body.single-post .entry-content .wp-block-columns.wdf-width--standard-width > .wp-block-column:first-child > .wp-block-heading:not([style*="margin"]) {
    margin-top: clamp(40px, 4.8vw, 60px);
    margin-bottom: 30px;
}

body.single-post .entry-content .wp-block-columns.wdf-width--standard-width > .wp-block-column:first-child > .wp-block-heading:first-child:not([style*="margin"]) {
    margin-top: 0;
}

body.single-post .entry-content .wp-block-columns.wdf-width--standard-width > .wp-block-column:first-child > .wp-block-paragraph:not([style*="margin"]) {
    margin-top: 0;
    margin-bottom: 17px;
}

body.single-post .entry-content .wp-block-columns.wdf-width--standard-width > .wp-block-column:first-child > :is(.wp-block-image, .wp-block-embed):not([style*="margin"]) {
    margin-top: clamp(24px, 3.2vw, 40px);
    margin-bottom: clamp(24px, 3.2vw, 40px);
}

body.single-post .entry-content .wp-block-columns.wdf-width--standard-width > .wp-block-column:first-child > .wp-block-columns:not([style*="margin"]) {
    margin-top: clamp(24px, 3.2vw, 40px);
    margin-bottom: clamp(24px, 3.2vw, 40px);
}

body.single-post .entry-content .wp-block-columns.wdf-width--standard-width > .wp-block-column:first-child > .wp-block-list:not([style*="margin"]) {
    margin-top: 25px;
    margin-bottom: 30px;
}

@media screen and (max-width: 767px) {
    :root {
        --mw-section-spacing: 48px;
        --mw-group-spacing: 30px;
        --mw-heading-spacing: 20px;
        --mw-text-spacing: 16px;
    }
}

/* 
    ——————————
    Styling til footer og tilhørende elementer
    ——————————
*/

/* Legacy footer markup from workdigital-theme. */
@media not all {

.footer {
    background: var(--theme-primary-color);
    color: var(--theme-bg-color);
    text-decoration: none;
    padding: 60px 0;
}

.footer-inner {
    width: calc(100% - 8rem);
    max-width: 120rem;
    margin: 0 auto;
    overflow: hidden;
}

.footer-logo {
    margin-bottom: 50px;
    display: flex;
    width: 100%;
    justify-content: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 40px;
}

.footer-column {
    width: 100%;
    margin: 0 40px 0 0;
}

.footer-column:last-child {
    margin: 0;
}

.footer-column-heading {
    font-size: var(--medium-font-size);
    font-weight: var(--bold);
    margin: 0 0 30px;
}

.footer-list {
    margin: 0;
}

.footer-list-item {
    margin: 0;
    list-style: none;
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: var(--body-font-size);
}

.footer-list-item:last-child {
    margin-bottom: 0;
}

.company-city {
    white-space: nowrap;
}

.opening-hours-table {
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0 0 10px 0;
    border: none;
}

.opening-hours-table:last-child {
    margin: 0;
}

.opening-hours-table * {
    border: none;
}

.opening-hours,
.opening-day {
    font-size: var(--body-font-size);
    padding: 0;
    margin: 0;
}

.opening-day {
    box-sizing: border-box;
    width: 160px;
    padding-right: 10px;
}

.footer-list-item-link {
    display: flex;
    align-items: center;
    color: var(--theme-bg-color);
    text-decoration: none;
}

.footer-list-item-link:hover {
    text-decoration: underline;
}

.footer-icon {
    margin-right: 14px;
    fill: var(--theme-bg-color);
}

}

/*
 * WorkDigital Foundation footer overrides.
 * Foundation supplies the content and settings; the child theme supplies the
 * MW Film presentation.
 */

footer.site-footer {
    background: var(--primary-color);
    color: var(--light);
}

footer.site-footer .footer-inner {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin-inline: auto;
    padding: 60px 0;
    overflow: visible;
}

footer.site-footer .footer-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

footer.site-footer .footer-column {
    width: 100%;
    min-width: 0;
    margin: 0;
}

footer.site-footer .footer-column:first-child {
    grid-column: 1 / -1;
    margin-bottom: 10px;
}

footer.site-footer .footer-column:first-child .footer-headline-wrapper {
    width: 100%;
    height: 100px;
    margin: 0;
    align-items: center;
    justify-content: center;
}

footer.site-footer img.footer-logo {
    display: block;
    width: 100px;
    height: 100px;
    max-width: 100px;
    margin: 0;
    object-fit: contain;
}

footer.site-footer .footer-logo-link {
    display: inline-flex;
    color: inherit;
    line-height: 0;
    text-decoration: none;
}

footer.site-footer .footer-logo-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

footer.site-footer .footer-column:not(:first-child) .footer-headline-wrapper {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0 0 30px;
    align-items: flex-start;
}

footer.site-footer .footer-headline {
    margin: 0;
    color: inherit;
    font-size: var(--medium-font-size);
    font-weight: var(--bold);
    line-height: 1.25;
}

footer.site-footer ul.footer-column-list {
    margin: 0;
    padding: 0;
    gap: 20px;
}

footer.site-footer li.footer-item {
    margin: 0;
    padding: 0;
    gap: 14px;
    align-items: flex-start;
    color: inherit;
    font-size: var(--body-font-size);
    line-height: 1.5;
}

footer.site-footer li.footer-item .wd-icon,
footer.site-footer li.footer-item span.icon-space {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

footer.site-footer li.footer-item .wd-icon svg,
footer.site-footer li.footer-item .wd-icon svg * {
    fill: currentColor;
}

footer.site-footer li.footer-item a {
    color: inherit;
    text-decoration: none;
    transition: color var(--standard-transition);
}

footer.site-footer li.footer-item a:hover,
footer.site-footer li.footer-item a:focus-visible {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

footer.site-footer img.footer-item-image {
    display: block;
    width: 150px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

footer.site-footer .footer-column:last-child li.footer-item:not(:has(.wd-icon)) > a {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

footer.site-footer .footer-column:last-child li.footer-item:not(:has(.wd-icon)) > a::before {
    content: "";
    width: 0;
    height: 0;
    margin-top: 0.45em;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid currentColor;
}

@media screen and (min-width: 620px) {
    footer.site-footer .footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 60px;
    }
}

@media screen and (min-width: 900px) {
    footer.site-footer .footer-inner {
        width: calc(100% - 80px);
    }

    footer.site-footer .footer-columns {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 40px;
    }
}


/* 
    ——————————
    Styling til to-top-btn
    ——————————
*/

.to-top {
    appearance: none;
    position: fixed;
    right: 40px;
    bottom: 20px;
    height: 50px;
    width: 50px;
    padding: 0;
    border: 1px solid rgba(20, 29, 40, 0.12);
    background: #FFFFFF;
    opacity: 0;
    pointer-events: none;
    transform: translateX(calc(100% + 100px));
    transition:
        transform var(--standard-transition),
        opacity var(--standard-transition),
        box-shadow var(--standard-transition);
    z-index: 1000;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

#to-top:hover,
#to-top:focus-visible {
    background-color: #FFFFFF;
    box-shadow: var(--shadowlevel-2);
}

#to-top:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

.to-top__icon {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid var(--primary-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* 
    ——————————
    Styling til 404-side
    ——————————
*/

.error404-content {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.to-front-page-btn {
    color: #FFFFFF;
    padding: 12px 20px;
    border: 3px solid #FFFFFF;
    line-height: 1em;
    transition: all var(--standard-transition);
    transition-property: background-color, color;
    text-decoration: none;
}

.to-front-page-btn:hover {
    background: #FFFFFF;
    color: var(--theme-primary-color);
}


@media screen and (max-width: 999px) {

    .mute-btn {
        bottom: 20px;
        right: 20px;
    }
}

@media screen and (max-width: 999px) {

    .hero-section-inner {
        padding: 60px 16px 120px;
    }
}

@media screen and (max-width: 899px) {

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 60px;
    }
}

@media screen and (max-width: 767px) {
    
    .hero-section {
        height: 400px;
    }

    .hero-section-inner {
        padding: 60px 0 50px;
        width: calc(100% - 40px);
    }

    .hero-title {
        font-size: var(--large-font-size);
    }

    .usps {
        display: none;
    }

    .footer-inner {
        width: calc(100% - 40px);
    }

    .to-top {
        right: 20px;
    }
}

@media screen and (max-width: 619px) {

    .hero-title {
        font-size: var(--medium-font-size);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

html .privacy-policy{
    margin: 0;
}

/*Bottom nav*/

.bottom-nav{
    display: none;
}

@media screen and (max-width: 768px){
    .bottom-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: color-mix(in srgb, var(--theme-primary-color) 10%, #fff);
        z-index: 9;
        transition: transform var(--slow-transition);
    }

    .bottom-nav.bottom-nav--hidden{
        transform: translateY(100%);
    }

    .bottom-nav-list {
        margin: 12px 0 16px;
        list-style: none;
        display: flex;
        justify-content: space-around;
    }

    .bottom-nav-item {
        margin: 0;
    }

    .bottom-nav-item .wd-icon {
        width: 64px;
        height: 32px;
        border-radius: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    li.bottom-nav-item.bottom-nav-item--current .wd-icon {
        background: rgba(0,0,0,0.1);
    }

    .bottom-nav-item a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-decoration: none;
    }

    span.bottom-nav-label {
        line-height: 16px;
        font-size: 12px;
        text-decoration: none;
        color: var(--theme-text-color);
        letter-spacing: normal;
    }
}

.hero-section.hero-section-type-video{
    min-height: unset;
    height: 56.25vw;
    max-height: 880px;
}

@supports (-webkit-appearance:none) {
    iframe.hero-video-iframe,
    iframe.updated-src{
        width: 100vw!important;
        height: 56.25vw!important;
        display: block;
        max-width: unset;
        aspect-ratio: 64 / 36;
        object-fit: cover;
        position: absolute;
        top: 50%;
        left: 50%;
        right: 0;
        bottom: 0;
        transform: translate(-50%, -50%);
    }
}

@media screen and (max-width: 999px) {
    .hero-section.hero-section-type-video{
        min-height: 700px;
    }
    .hero-section.hero-section-type-video iframe{
        width: calc(700px * 1.775)!important;
        height: 100%!important;
    }
}

.has-primary-color-background-color {
    background-color: var(--primary-color);
}

/* 
    ——————————
    Styling til standard kontaktformular
    ——————————
*/

:root{
    --kontaktformular-bg: #f7f7f2;
}

.wpcf7{
    max-width: 100%;
    margin-top: 60px;
}

.wp-block-contact-form-7-contact-form-selector {
    border-radius: 10px;
    background-color: var(--kontaktformular-bg);
}

.entry-content .wp-block-contact-form-7-contact-form-selector h3{
    padding: 20px;
    margin: 0;
    display: block;
    text-align: center;
    background: var(--theme-highlight-color);
    font-weight: bold;
    color: #fff;
    border-radius: 10px 10px 0 0;
}

.kontaktform-rows{
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.kontaktform-rows.kontaktform-rows--mini-form{
    display: block;
    padding: 20px;
}

@media screen and (max-width: 540px) {
    .kontaktform-rows.kontaktform-rows--mini-form{
        padding: 0;
    }   
}

.kontaktform-rows:not(.kontaktform-rows--mini-form) .kontatkform-form-row{
    position: relative;
    background-color: var(--kontaktformular-bg);
    padding: 20px;
    border-radius: 0 0 10px 0;
    color: var(--theme-text-color);
}

.wpcf7 .kontaktform-rows .kontatkform-form-row *{
    color: var(--theme-text-color);
}

.kontatkform-form-row p:last-child{
    margin-bottom: 0;
}

.kontaktform-image-row{
    position: relative;
}

.kontaktform-image-row img{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 0 0 0 10px;
}

.kontatkform-form-row .wpcf7-spinner {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="date"], input[type="month"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="week"], input[type="number"], input[type="search"], input[type="tel"], input[type="color"], textarea {
    padding: 1rem 1.8rem;
}

.kontaktform-rows :is(h1, h2, h3) {
    margin: 0 0 10px;
}

.right-side-elements__element .wpcf7{
    margin-top: 0;
}

.kontatkform-form-row textarea {
    height: 9rem;
}

.maps-container iframe{
    border-radius: 0 0 10px 10px;
}

.content-right-side:nth-child(even) {
    background: color-mix(in srgb, var(--theme-highlight-color), transparent 80%)!important;
}

.wpcf7-form{
    position: relative;
}

.wpcf7 form:not(.invalid) .wpcf7-response-output:not(:empty) {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0 94 40 / 90%);
    border-radius: 10px;
    border-width: 3px;
    display: grid;
    color: #fff;
    place-items: center;
    font-weight: bold;
    font-size: 33px;
    text-align: center;
    z-index: 2;
}

.wpcf7,
.wpcf7 label{
    position: relative;
}

.wpcf7 *::placeholder{
    color: transparent;
    user-select: none;
    pointer-events: none;
}

.wpcf7 .label-text{
    position: absolute;
    top: 9px;
    z-index: 1;
    left: calc(19px - 0.5ch);
    font-size: 17px;
    background-color: var(--kontaktformular-bg);
    transition: transform var(--standard-transition);
    padding: 0 0.5ch;
    pointer-events: none;
}

.wpcf7 label:has(input:not(:placeholder-shown)) .label-text,
.wpcf7 label:has(textarea:not(:placeholder-shown)) .label-text,
.wpcf7 label:focus-within .label-text{
    transform: translateY(-22px);
}

.wpcf7 label input,
.wpcf7 label textarea {
    letter-spacing: normal;
    background: transparent;
    border-radius: 8px;
    border: 1px solid #79747E;
    outline: none;
}

.wpcf7 label input:focus,
.wpcf7 label textarea:focus {
    outline: 2px solid #333;
    outline-offset: -2px;
}

.wpcf7-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px var(--kontaktformular-bg) inset !important;
}

.wpcf7 .kontaktform-rows .kontatkform-form-row input.wpcf7-submit{
    height: 40px;
    line-height: 40px;
    padding: 0 24px 0 48px;
    border-radius: 20px;
    text-transform: none;
    font-weight: 500;
    letter-spacing: normal;
    background-image: url(../wd-foundation/icons/send-white.svg);
    background-repeat: no-repeat;
    background-position: 16px 8px;
    background-size: 24px;
    background-color: var(--theme-highlight-color);
    margin: 0 auto;
    display: block;
    color: #fff;
    transition: background-color var(--standard-transition);
    text-decoration: none!important;
}

.wpcf7 input.wpcf7-submit:hover{
    background-color: var(--theme-highlight-color-hover);
    text-decoration: none;
}

.wpcf7-not-valid-tip {
    position: absolute;
    bottom: 1px;
    right: 3px;
    font-size: 0.7em;
}

.wpcf7 form.invalid .wpcf7-response-output {
    border-color: red;
    border-radius: 10px;
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background: #ffefef;
    text-align: center;
    margin: 0;
    font-size: 0.8em;
}

.form-img{
    display: block;
    position: relative;
    z-index: 2;
    width: 230px;
    max-width: min(230px, 80%);
    height: auto;
    margin: -120px auto 20px;
    border-radius: 10px;
    box-shadow: var(--shadowlevel-1);
}

/* Foundation clips overflowing form content by default. Allow only forms
   with the raised MW Film image to extend above their form box. */
.wd-contact-form:has(.form-img),
.wd-contact-form .wd-contact-form-inner:has(.form-img),
.wd-contact-form .kontaktform-form-row:has(> .form-img) {
    overflow: visible;
}

.right-side-elements__element:has(.form-img),
.right-side-elements__element:first-child:has(.form-img){
    margin-top: 120px;
}

.right-side-elements__element{
    background: #f7f7f2;
    padding: 40px 30px 50px;
}

.right-side-elements__element > [class*="wp-"]:first-child,
.right-side-elements__element [class*="wp-"] > *:first-child{
    margin-top: 0!important;
}

.right-side-elements__element > [class*="wp-"]:last-child,
.right-side-elements__element [class*="wp-"] > *:last-child{
    margin-bottom: 0!important;
}

main article figure.featured-media,
main article .pagination-single,
main article .comments-wrapper{
    display: none!important;
}


:not(.content-right-side) .wp-block-contact-form-7-contact-form-selector {
    padding: 20px;
}

.no-animation-form span.label-text {
    position: relative;
    left: 0;
    line-height: normal;
    padding: 2px 2px;
}

.no-animation-form .kontatkform-form-row > p {
    margin-bottom: 8px;
}


/* 
    ——————————
    Gutenberg Farvevælger
    ——————————
*/

.has-white-background-color{
    background-color: #fff;
}
.has-black-background-color{
    background-color: #000;
}
.has-primary-color-background-color{
    background-color: var(--primary-color);
}
.has-highlight-color-background-color{
    background-color: var(--accent-color);
}
.has-bg-color-background-color{
    background-color: var(--background-color);
}
.has-text-color-background-color{
    background-color: var(--theme-text-color);
}

.has-white-color{
    color: #fff;
}
.has-black-color{
    color: #000;
}
.has-primary-color-color {
    color: var(--primary-color);
}
.has-highlight-color-color {
    color: var(--accent-color);
}
.has-bg-color-color {
    color: var(--background-color);
}
.has-text-color-color {
    color: var(--theme-text-color);
}

/*TEMP - fjern nedenstående*/
/*
.wp-block-contact-form-7-contact-form-selector {
    display: none!important;
}

.right-side-elements__element:has(.wp-block-contact-form-7-contact-form-selector) {
    display: none!important;
}
*/


/*TEMP - FJERN OVENSTÅENDE*/


figure.kampagneside-quotes:before{
	color: var(--theme-highlight-color);
}

figure.kampagneside-quotes cite{
	font-weight: 300;
    font-size: 18px;
}

/* ekstra styling */

body.template-full-width .entry-content > p:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide).forside-top-selling-text,
body.template-full-width [class*="__inner-container"] > p:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide
).forside-top-selling-text{
	font-size: 20px;
    max-width: 740px;
    margin-bottom: 50px;
}

@media screen and (max-width: 540px) {
    .wpcf7 {
        margin-top: 120px;
    }
}

/* Video placeholder billede styling */

.hero-section {
    background: #000;
}

.hero-section-video-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    opacity: 1;
    transition: all ease-in-out 1s;
}

.hero-section-video-placeholder img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
}

.hero-section-video-placeholder.placeholder-remove {
    opacity: 0;
}

.wp-block-buttons .wp-block-button.video-pause-btn {
    display: none;
}

.hero-section-type-video.video-playing .wp-block-buttons .wp-block-button.video-play-btn {
    display: none;
}

.hero-section-type-video.video-playing .wp-block-buttons .wp-block-button.video-pause-btn {
    display: inline-block;
}

.hero-section-type-video.video-paused .wp-block-buttons .wp-block-button.video-play-btn {
    display: inline-block;
}

.hero-section-type-video.video-paused .wp-block-buttons .wp-block-button.video-pause-btn {
    display: none;
}

figure.wp-block-gallery.logo-galleri figure.wp-block-image {
    align-self: center;
    margin: auto !important;
    padding: 10px;
}

/* MW Film video hero — child-theme compatibility for the legacy ACF hero. */
.mwfilm-video-hero {
    height: min(56.25vw, 880px);
    min-height: 0;
    background: #000000;
    isolation: isolate;
    font-family: var(--standard-text-font-family) !important;
    font-size: 17px;
}

.mwfilm-video-hero * {
    font-family: var(--standard-text-font-family) !important;
}

.mwfilm-video-hero .hero-section-video-wrapper,
.mwfilm-video-hero .hero-section-video,
.mwfilm-video-hero .hero-video-iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.mwfilm-video-hero .hero-section-video,
.mwfilm-video-hero .hero-video-iframe {
    object-fit: cover;
    transform: none;
}

.mwfilm-video-hero .hero-section-video-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.mwfilm-video-hero .hero-section-content {
    z-index: 2;
}

.mwfilm-video-hero .hero-section-inner {
    width: min(var(--theme-standard-width), calc(100% - 40px));
    max-width: 1200px;
}

.mwfilm-video-hero h1.wp-block-heading {
    max-width: 768px;
    margin: 0 0 20px;
    font-size: var(--huge-font-size);
    font-weight: 800;
    line-height: 1.139;
}

.mwfilm-video-hero .hero-section-inner > p {
    max-width: 600px;
    margin: 0 0 17px;
    font-size: 17px;
    line-height: 1.5;
}

.mwfilm-video-hero .wp-block-buttons {
    margin: 0 0 30px;
    gap: 10px;
}

.mwfilm-video-hero .wp-block-button .wp-block-button__link {
    min-height: 52px;
    padding: 14px 24px;
    background-color: var(--accent-color);
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
}

.mwfilm-video-hero .wp-block-button .wp-block-button__link:hover,
.mwfilm-video-hero .wp-block-button .wp-block-button__link:focus-visible {
    background-color: var(--accent-color-hover);
    color: #FFFFFF;
}

.mwfilm-video-hero .hero-section-content.hero-color-theme-light {
    background: linear-gradient(0deg, #000000, transparent 50%, transparent 75%, rgba(0, 0, 0, 0.65));
    color: #FFFFFF;
}

.mwfilm-video-hero .hero-section-content.hero-color-theme-dark {
    background: linear-gradient(0deg, #FFFFFF, transparent 50%, transparent 75%, rgba(255, 255, 255, 0.65));
    color: var(--text-color);
}

@media screen and (max-width: 999px) {
    .mwfilm-video-hero {
        height: 700px;
        min-height: 700px;
    }

    .mwfilm-video-hero .hero-video-iframe {
        left: 50%;
        width: calc(700px * 1.7778) !important;
        max-width: none;
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 767px) {
    .mwfilm-video-hero h1.wp-block-heading {
        font-size: var(--large-font-size);
    }

    .mwfilm-video-hero .hero-section-inner {
        width: calc(100% - 40px);
        padding: 100px 0 0;
    }

    .mwfilm-video-hero .wp-block-buttons {
        flex-wrap: wrap;
    }
}

/* MW Film buttons. Colors continue to come from Foundation's --btn-*
   variables, including colors selected on individual Gutenberg buttons. */
.entry-content .wp-block-button .wp-block-button__link,
.entry-content .btn,
.entry-content .button,
.wd-contact-form .wd-form-actions .wd-submit-btn {
    min-height: 52px;
    padding: 14px 24px;
    border-radius: 30px;
    gap: 6px;
    font-size: var(--body-font-size);
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition:
        background-color var(--standard-transition),
        border-color var(--standard-transition),
        color var(--standard-transition),
        box-shadow var(--standard-transition);
}

:is(
    .entry-content .wp-block-button .wp-block-button__link,
    .entry-content .btn,
    .entry-content .button,
    .wd-contact-form .wd-form-actions .wd-submit-btn
):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent-color) 45%, #FFFFFF);
    outline-offset: 3px;
}

:is(
    .entry-content .wp-block-button .wp-block-button__link,
    .entry-content .btn,
    .entry-content .button,
    .wd-contact-form .wd-form-actions .wd-submit-btn
) .wd-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.wd-contact-form .wd-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.wd-contact-form .wd-form-actions .wd-submit-btn {
    width: auto;
    min-width: 180px;
    padding-left: 50px;
    background-image: url(../wd-foundation/icons/send-white.svg);
    background-repeat: no-repeat;
    background-position: 18px center;
    background-size: 22px;
}

.wd-contact-form .wd-form-actions .wd-submit-btn:hover:not(:disabled) {
    background-color: var(--btn-color-hover);
}

/* Card actions use a more compact version of the standard button. */
.entry-content .wd-card-button.wp-block-button .wp-block-button__link {
    min-height: 40px;
    padding: 10px 18px;
    border-radius: 22px;
    font-size: 14px;
    line-height: 1.2;
}

.entry-content .wd-card-button.wp-block-button .wp-block-button__link .wd-icon svg {
    width: 18px;
    height: 18px;
}

.wd-card-content-wrapper .wd-card-excerpt p, .wd-card-content-wrapper .wd-card-content p {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.25px;
    margin-bottom: 8px;
}

.wd-contact-form .wd-contact-form-inner {
    background-color: var(--surface-color);
}

/* Shared content/sidebar layout. Keep the Gutenberg container width, but
   let its fixed 440px sidebar shrink before the columns stack on tablets. */
.entry-content .wp-block-columns > .right-side-elements {
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: min(440px, 40%) !important;
    width: 100%;
    max-width: 440px;
    min-width: 0;
}

@media screen and (max-width: 899px) {
    .entry-content .wp-block-columns:has(> .right-side-elements) {
        flex-wrap: wrap !important;
    }

    .entry-content .wp-block-columns:has(> .right-side-elements) > .wp-block-column {
        flex-basis: 100% !important;
        width: 100%;
    }

    .entry-content .wp-block-columns > .right-side-elements {
        max-width: none;
    }
}

.right-side-elements .right-side-element {
    padding: 50px 30px;
    background-color: var(--surface-color);
}

.right-side-elements .right-side-element .wd-contact-form .wd-contact-form-inner {
    box-shadow: none;
    padding: 0;
}

.right-side-elements .right-side-element h2 {
    font-size: 20px;
    text-align: center;
}

.right-side-elements .right-side-element:not(:last-child) {
    margin-bottom: 60px;
}

.right-side-elements > .right-side-element:not(:nth-child(1 of .right-side-element)):has(.form-img) {
    margin-top: 140px;
}

.right-side-elements:has(> .right-side-element:nth-child(1 of .right-side-element) .form-img):not(:has(> .wp-block-spacer:first-child)) {
    padding-top: 100px;
}

.right-side-elements:has(> .right-side-element:nth-child(1 of .right-side-element) .form-img) > .wp-block-spacer:first-child {
    height: 140px !important;
}

/* Gutenberg columns stack at 781px. Reserve space for the raised contact
   image so it overlaps only its own form box, not the preceding column. */
@media screen and (max-width: 781px) {
    .entry-content .wp-block-columns > .wp-block-column:has(> .wd-contact-form .form-img) {
        margin-top: 120px;
    }
}

/* Compact Foundation FAQ, matched to the typography of the original site. */
.entry-content .workdigital-faq-wrapper {
    width: 100%;
    margin-bottom: 60px;
}

/* Gutenberg quotes, based on the original MW Film presentation. */
.entry-content .wp-block-quote {
    margin: 40px 0;
    padding: 5px 0 5px 20px;
    border: 0;
    border-left: 2px solid var(--accent-color);
}

.entry-content .wp-block-quote > p {
    margin: 0 0 17px;
    font-size: var(--body-font-size);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
}

.entry-content .wp-block-quote > cite {
    display: block;
    margin: 20px 0 0;
    color: color-mix(in srgb, var(--theme-text-color), transparent 28%);
    font-size: var(--small-font-size);
    font-style: normal;
    font-weight: 600;
    line-height: 1.25;
}

/* Drone-video examples section. */
.entry-content .wp-block-group.alignfull:has(#h-eksempler-pa-dronevideoer) {
    padding-top: 80px;
    padding-bottom: 80px;
}

.entry-content #h-eksempler-pa-dronevideoer {
    font-size: var(--huge-font-size);
    font-weight: 700;
    line-height: 1.25;
}

.entry-content #h-eksempler-pa-dronevideoer ~ .wp-block-columns .wp-block-embed {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Keep the FAQ separated from the footer without changing Foundation's
   front-page section rhythm used by the other drone-page groups. */
.page-id-916 .entry-content > .wp-block-group.wdf-width--full:has(#h-faq) {
    padding-top: 60px;
    padding-bottom: 0;
    margin-bottom: 60px;
}

.page-id-916 .entry-content > .wp-block-group.wdf-width--full:has(#h-faq) .workdigital-faq-wrapper {
    margin-bottom: 0;
}

@media screen and (max-width: 767px) {
    .entry-content .wp-block-group.alignfull:has(#h-eksempler-pa-dronevideoer) {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .entry-content #h-eksempler-pa-dronevideoer {
        font-size: var(--large-font-size);
    }

    .entry-content #h-eksempler-pa-dronevideoer ~ .wp-block-columns .wp-block-embed {
        margin-top: 24px;
        margin-bottom: 24px;
    }

}

.entry-content .workdigital-faq-wrapper .wd-faq-item {
    padding: 0;
    border: 0;
}

.entry-content .workdigital-faq-wrapper .faq-question {
    gap: 24px;
    padding: 10px 0;
}

.entry-content .workdigital-faq-wrapper .faq-question-content,
.entry-content .workdigital-faq-wrapper .faq-answer-content {
    margin: 0;
    font-family: var(--standard-text-font-family);
    font-size: var(--body-font-size);
    line-height: 1.5;
}

.entry-content .workdigital-faq-wrapper .faq-question-content {
    font-weight: 600;
}

.entry-content .workdigital-faq-wrapper .faq-answer {
    display: block;
    max-height: 0;
    padding: 0 42px 0 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height var(--standard-transition),
        padding-bottom var(--standard-transition),
        opacity var(--standard-transition);
}

.entry-content .workdigital-faq-wrapper .faq-question.open + .faq-answer {
    max-height: 600px;
    padding: 0 42px 12px 0;
    opacity: 1;
}

.entry-content .workdigital-faq-wrapper .faq-answer-content {
    overflow: hidden;
    font-weight: 400;
}

.entry-content .workdigital-faq-wrapper .faq-switch-icon {
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    margin: 0 4px 5px 0;
    border-right-width: 2px;
    border-bottom-width: 2px;
    border-radius: 0;
}

.entry-content .workdigital-faq-wrapper .faq-answer p:nth-child(2){
    margin-top: 0;
}

@media screen and (max-width: 767px) {
    .entry-content .workdigital-faq-wrapper .faq-question {
        gap: 18px;
        padding: 10px 0;
    }

    .entry-content .workdigital-faq-wrapper .faq-answer,
    .entry-content .workdigital-faq-wrapper .faq-question.open + .faq-answer {
        padding-right: 28px;
    }
}
