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

	Theme Name: WorkDigital Foundation
    Text Domain: wd-foundation
	Version: 0.1
	Description: WorkDigital Foundation theme for wordpress
	Author: WorkDigital
	Author URI: https://workdigital.dk
	License: GNU General Public License version 2.0
	License URI: https://gnu.org/licenses/gpl-2.0.html

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== ARVET FRA DET GAMLE TEMA (herunder) ===== */

/* 
    ——————————
    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.8);
    --tiny-font-size: calc(var(--body-font-size) * 0.75);
    --header-height: 60px;
    --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;
    --text-color: var(--text-color);
    --theme-off-white: var(--surface-color);
    --btn-color: var(--secondary-color);
    --btn-color-hover: var(--secondary-color-hover);
    --btn-text-color: var(--light);
    --theme-border-radius: 10px;
    --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);
    --parallax-percent: 0%;
    --hero-section-height: 550px;
    --theme-narrow-width: 700px;
    --theme-standard-width: 1200px;
    --theme-wide-width: 1440px;
}

:root body.dark-mode{
    --shadowlevel-1: 0 0 0 3px rgba(255,255,255,0.04);
    --shadowlevel-2: 0 0 0 3px rgba(255,255,255,0.08);
    --shadowlevel-3: 0 0 0 3px rgba(255,255,255,0.12);
    --shadowlevel-4: 0 0 0 3px rgba(255,255,255,0.16);
    --shadowlevel-5: 0 0 0 3px rgba(255,255,255,0.20);
}

/*
    ——————————
    Generel styling
    ——————————
*/

*[id]{
	scroll-margin-top: 150px;
}

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

body {
    color: var(--text-color);
    background-color: var(--background-color);
}

body:has(.header-topper.header-topper--only-desktop) {
	padding-top: var(--header-height);
}
/*
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .headline,
h1 *, h2 *, h3 *, h4 *, h5 *, h6 *, .h1 *, .h2 *, .h3 *, .h4 *, .h5 *, .h6 *, .headline *{
    font-family: var(--primary-font-stack)!important;
}

*{
    font-family: var(--secondary-font-stack)!important;
}*/

html body.custom-background,
.custom-background.page-template {
    background: var(--background-color);
}

.wp-block-heading {
	margin-bottom: 0.4em;
}

.wdf-width{
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (min-width: 769px) {

	body:has(.header-topper.header-topper--only-desktop) {
		padding-top: calc(var(--header-height) + 28px);
	}
}


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

.color-accent,
.color-accent-hover:hover,
.color-accent-hover:focus,
:root .has-accent-color,
.has-drop-cap:not(:focus)::first-letter,
.wp-block-button.is-style-outline,
a {
    color: var(--secondary-color);
}

ul,
ol {
    margin: 2.5rem 0 3rem 2ch;
}

li {
    margin: 0.5rem 0 0 1.5ch;
}

/*Kompentation for fixed header*/


body:not(:has(.header-topper)) {
    padding-top: var(--header-height);
}

body:has(.header-topper) {
    padding-top: calc(var(--header-height) + 28px);
}

header.wd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--header-bg-color);
    color: var(--header-text-color);
    z-index: 99;
    box-shadow: var(--shadowlevel-1);
}

/*Sticky element - sæt blot klassen på i backend, så er den sticky ift. header*/

.wd-sticky {
    position: sticky;
    top: calc(var(--header-height) + 40px);
}

/*  ——————————
header topper
    ——————————  */

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

.header-topper--only-desktop {
	display: none;
}

.header-topper-item .wd-icon {
	position: relative;
	top: 1px;
}

.header-topper-items{
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-around;
    font-size: var(--small-font-size);
    margin: 0;
    padding: 2px 0;
}

.header-topper-item{
    margin: 0;
    list-style: none;
}
.header-topper-item a{
    display: flex;
    align-items: center;
    gap: 0.5ch;
    color: inherit;
    text-decoration: none;
}

@media screen and (min-width: 600px){
    .header-topper-items{
        justify-content: center;
    }
}

 @media screen and (min-width: 1190px) and (hover: hover){

    .header-topper--only-desktop {
		display: block;
	}

    .header-topper.header-topper--only-mobile{
        display: none;
    }

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

/*  ——————————
main header
    ——————————  */

.main-header-inner {
    display: flex;
    justify-content: space-between;
    padding: 0 24px 0 16px;
    height: var(--header-height);
}

.nav-backdrop {
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1;
    user-select: none;
    pointer-events: none;
    transition: opacity var(--standard-transition);
    opacity: 0;
}

.main-header--menu-open .nav-backdrop {
    opacity: 1;
    pointer-events: all;
}

.main-header-logo-link,
.main-header-nav-open{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: var(--header-height);
    margin-right: auto;
}

.main-header-logo-link img {
    max-height: 58px;
    height: 100%;
    box-sizing: border-box;
    padding: 14px 0;
    width: auto;
}

@media screen and (min-width: 600px) {
    .main-header-inner {
        padding: 0 32px 0 24px;
    }
}

/*  ——————————
main nav
    ——————————  */

.main-header-nav{
    color: var(--text-color);
    display: block;
    background: var(--background-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: 2;
    pointer-events: none;
    transition: transform var(--standard-transition);
    transform: translateX(100%);
}

.main-header--menu-open .main-header-nav{
    overflow-y: auto;
    pointer-events: all;
    transform: translateX(0);
}

.nav-drawer-header{
    display: flex;
    justify-content: space-between;
    padding: 28px;
}

.nav-drawer-title {
    line-height: 24px;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: inherit;
    text-decoration: none;
}

.main-header-menu{
    list-style: none;
    margin: 0 12px;
}

.main-header-menu .menu-item{
    position: relative;
    list-style: none;
    margin: 0px;
}

.main-header-menu .menu-item > a {
    display: grid;
    grid-template-columns: 24px 1fr;
    color: inherit;
    gap: 12px;
    text-decoration: none;
    align-items: center;
    height: 56px;
    padding: 0 0 0 16px;
    border-radius: 28px;
    white-space: nowrap;
}

.main-header:not(.main-header--hide-icons) .menu-item > a:not(:has(.wd-icon)) {
    padding-left: 32px;
}

.main-header.main-header--hide-icons .menu-item > a {
    padding-left: 16px;
}


.main-header.main-header--hide-icons .menu-item .wd-icon.menu-icon{
    display: none;
}

.main-header-menu .menu-item > a.expand-sub-menu {
    padding: 0;
    place-items: center;
    position: absolute;
    top: 0;
    right: 0;
    grid-template-columns: initial;
    aspect-ratio: 1 / 1;
}

.main-header-menu .menu-item.is-expanded > a.expand-sub-menu .wd-icon.dropdown-icon {
    transform: rotate(180deg) translateY(2px);
}

.main-header-menu .menu-item > a:focus,
.main-header-menu .menu-item > a:active {
    background-color: color-mix(in srgb, var(--header-bg-color), var(--dark) 10%);
}

.main-header-menu:not(:has(a:focus, a:active)) .menu-item.current_page_item > a {
    background-color: color-mix(in srgb, var(--header-bg-color), var(--dark) 10%);
}

.main-header-menu .menu-item.menu-item-has-children > span.icon {
    position: absolute;
    width: 0px;
    height: 0px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid var(--text-color);
    top: 26px;
    right: 24px;
    pointer-events: none;
}

.sub-menu{
    margin: 0;
    padding-left: 36px;
    transition: max-height var(--standard-transition);
    max-height: 100vh;
    overflow: hidden;
    --submenu-element-height: 56px;
}

.menu-item-has-children .sub-menu{
    max-height: calc(var(--submenu-element-height) * var(--num-children));
}

.main-header-menu .menu-item:has(> a[href="#"]):not(.is-expanded) .sub-menu {
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    will-change: max-height;
}


.main-header-nav-open,
.main-header-nav-close{
    cursor: pointer;
    margin-right: 0;
}

@media screen and (min-width: 1190px) and (hover: hover){
    body.sometimes-burger .sub-menu,
    body.sometimes-burger .main-header-nav-open,
    body.sometimes-burger .nav-backdrop,
    body.sometimes-burger .nav-drawer-header,
    body.sometimes-burger .main-header-menu .menu-item.menu-item-has-children > span.icon {
        display: none;
    }

    body.sometimes-burger .main-header-inner {
        height: auto;
        align-items: center;
        max-height: var(--header-height);
        padding: 0px 24px;
        --dropdown-menu-distance: 5px;
    }

    body.sometimes-burger nav.main-header-nav {
        position: relative;
        height: auto;
        background: none;
        border: none;
        width: auto;
        max-width: unset;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        border-radius: 0;
        transform: none;
        transition: none;
        color: inherit;
        pointer-events: all;
    }

    body.sometimes-burger .main-header-menu .menu-item.menu-item-has-children:hover > a{
        position: relative;
        z-index: 1;
    }

    body.sometimes-burger .main-header.main-header--hide-icons-on-desktop .menu-item .wd-icon{
        display: none;
    }

    body.sometimes-burger .main-header.main-header--hide-icons .menu-item > a,
    body.sometimes-burger .main-header:not(.main-header--hide-icons) .menu-item > a:not(:has(.wd-icon)),
    body.sometimes-burger .main-header:not(.main-header--hide-icons-on-desktop) .menu-item > a:not(:has(.wd-icon)) {
        padding-left: 0;
    }

    body.sometimes-burger .main-header-menu {
        display: flex;
        gap: 24px;
        margin: 0;
    }

    body.sometimes-burger .main-header-menu .menu-item.menu-item-object-custom.menu-item-has-children > a {
        pointer-events: none;
    }

    body.sometimes-burger .main-header-menu .menu-item.menu-item-has-children > a:after {
        content: "";
        display: block;
        width: 0px;
        height: 0px;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 6px solid var(--header-text-color);
    }

    body.sometimes-burger .main-header-menu .menu-item > a{
        display: flex;
        border-radius: 0;
        padding: 0;
        height: var(--header-height);
    }

    body.sometimes-burger .main-header-menu .menu-item > a.expand-sub-menu{
        display: none;
    }

    body.sometimes-burger .main-header-menu > .menu-item > a:active,
    body.sometimes-burger .main-header-menu > .menu-item > a:focus,
    body.sometimes-burger .main-header-menu > .menu-item.current_page_item > a{
        background: none!important;
    }

    body.sometimes-burger .sub-menu{
        max-height: unset;
    }

    body.sometimes-burger .main-header:not(.main-header--hide-icons-on-desktop) .sub-menu .menu-item > a {
        padding-left: 16px;
    }
        
    body.sometimes-burger .main-header-menu .menu-item:has(> a[href="#"]):not(.is-expanded) .sub-menu {
        max-height: unset;
        pointer-events: all;
    }

    body.sometimes-burger .main-header-menu .menu-item.menu-item-has-children:hover > ul.sub-menu{
        overflow: visible;
        display: block;
    }

    body.sometimes-burger .main-header-menu > .menu-item > a:before {
        content: "";
        bottom: 0;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 42px;
        height: 3px;
        background-color: var(--header-active-color);
        border-radius: 3px 3px 0 0;
        opacity: 0;
        transition: opacity var(--standard-transition);
    }

    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 {
        left: calc(-10px + 50%);
    }

    body.sometimes-burger .main-header--show-icons .main-header-menu > .menu-item > a:before {
        left: calc(18px + 50%);
    }

    body.sometimes-burger .main-header--show-icons .main-header-menu > .menu-item.menu-item-has-children > a:before {
        left: calc(8px + 50%);
    }

    body.sometimes-burger .main-header-menu > .menu-item.current_page_item > a:before,
    body.sometimes-burger .main-header-menu > .menu-item.current-menu-parent > a:before {
        opacity: 0.7;
    }

    body.sometimes-burger .main-header-menu > .menu-item.current_page_item:hover > a:before,
    body.sometimes-burger .main-header-menu > .menu-item:hover > a:before,
    body.sometimes-burger .main-header-menu > .menu-item.current-menu-parent:hover > a:before {
        opacity: 1;
    }
            

    body.sometimes-burger .main-header-menu ul.sub-menu {
        display: none;
        list-style: none;
        margin: 0;
        padding: 0;
        position: absolute;
        background: var(--background-color);
        box-shadow: var(--shadowlevel-1);
        border-radius: var(--theme-border-radius);
        transform: translateY(var(--dropdown-menu-distance));
        top: 100%;
        right: 0;
        min-width: 180px;
    }
    
    body.sometimes-burger .main-header-menu ul.sub-menu:after{
        content: "";
        height: calc(var(--dropdown-menu-distance) + 28px);
        width: 100%;
        background: transparent;
        position: absolute;
        display: block;
        top: calc((var(--dropdown-menu-distance) * -1) - 28px);
        left: auto;
        right: 0;
        bottom: -7px;
        clip-path: polygon(60% 0, 100% 0, 100% 100%, 0% 100%);
    }
    
    body.sometimes-burger .main-header-menu ul.sub-menu li{
        margin: 0;
        padding: 0;
    }
    body.sometimes-burger .main-header-menu ul.sub-menu li:not(:last-child){
        border-bottom: 1px solid var(--surface-color);
    }
    
    body.sometimes-burger .main-header-menu ul.sub-menu li a{
        display: flex;
        margin: 0;
        padding: 8px 16px;
        color: inherit;
        text-decoration: none;
        transition: background-color var(--slow-transition);
        color: var(--text-color);
        height: auto;
        border-radius: 0;
        white-space: nowrap;
    }

    body.sometimes-burger .main-header-menu ul.sub-menu li a .wd-icon{
        width: 24px;
    }
    
    body.sometimes-burger .main-header-menu ul.sub-menu li:first-child a{
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }
    
    body.sometimes-burger .main-header-menu ul.sub-menu li:last-child a{
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }
    
    body.sometimes-burger .main-header-menu ul.sub-menu li a:hover{
        background-color: var(--surface-color);
    }
    
    body.sometimes-burger .main-header-menu > ul > li.menu-item-has-children:hover ul.sub-menu{
        display: flex;
        flex-direction: column;
    }

    body.sometimes-burger .main-header-menu ul.sub-menu .menu-item.menu-item-has-children ul.sub-menu {
        display: none;
        right: calc(100% - 10px);
        top: 0;
        z-index: 1;
    }

    body.sometimes-burger .main-header-menu ul.sub-menu .menu-item.menu-item-has-children:hover > ul.sub-menu {
        display: block;
    }

}



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


.hero-section {
    min-height: var(--hero-section-height);
    width: 100%;
    position: relative;
    overflow: hidden;
}

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

.hero-section p{
    max-width: 60rem;
    margin-bottom: 15px;
}

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

.hero-section.hero-section-type-farve{
    background: var(--hero-section-background);
}

.hero-section.hero-section-type-farve .hero-section-content{
    background: none;
}

.hero-section.hero-section--auto-height {
    min-height: unset;
    height: auto;
}

.hero-section.hero-section--auto-height .hero-section-content {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 80px 0 20px;
}

.hero-section.hero-section-type-video {
    min-height: unset;
    height: 56.25vw;
    max-height: var(--hero-section-height);
}

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

.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%);
}

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

.hero-section-video-placeholer{
    height: 100%;
    width: 100%;
    position: absolute;
    background-color: var(--dark);
    background-image: var(--placeholder-img);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
    pointer-events: none;
}

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

.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--parallax .hero-section-image-wrapper .hero-image{
    object-position: center var(--parallax-percent);
    scroll-behavior: smooth;
    transition: object-position 1ms linear;
    perspective: 1px;
    transform: translateZ(1px);
    height: var(--hero-section-height);
    min-width: var(--img-width);
}

.hero-section--parallax.hero-section--parallax-bottom .hero-section-image-wrapper .hero-image{
    object-position: center calc((var(--parallax-percent) * -1) + 50%);
}

.hero-section .hero-section-content{
    color: var(--hero-section-text-color);
    display: flex;
    align-items: flex-end;
}

.hero-section.hero-section-gradient .hero-section-content{
    background: linear-gradient(0deg, var(--hero-section-separator-color), transparent 50%);
}

.hero-section.hero-section-triangle{
    clip-path: polygon(100% 0, 100% calc(100% - min(10vw, 100px)), 70% 100%, 0 calc(100% - min(10vw, 100px)), 0 0);
    -webkit-backface-visibility: hidden;
}

.hero-section-triangle .hero-section-inner {
    padding-top: 40px;
    margin-bottom: 70px;
}

.hero-section-inner{
    width: var(--theme-standard-width);
    max-width: calc(100% - 40px);
    margin: 0 auto;
    padding: 60px 0;
}

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

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

.hero-section.hero-section--low-res .hero-section-image-wrapper:not(.hero-section-image-wrapper--low-res){
    background-color: #000;
}
.hero-section.hero-section--low-res .hero-section-image-wrapper:not(.hero-section-image-wrapper--low-res) .hero-image{
    filter: blur(10px);
}

.hero-section-image-wrapper .hero-image.hero-image--low-res{
    width: var(--img-width);
    height: var(--img-height);
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    box-shadow: var(--shadowlevel-5);
}

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

@media screen and (min-width: 700px) {

    .hero-section-inner{
        max-width: calc(100% - 80px);
    }
}

/* 
    ——————————
    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%;
}


/* 
    ——————————
    Styling af footer
    ——————————
*/

.footer-leadin.footer-leadin-border {
    border-top-style: solid;
    border-top-width: 2px;
}

.footer-leadin.footer-leadin--triangle {
    height: 100px;
    background: var(--footer-leadin-color);
    clip-path: polygon(70% calc(100% - 1px), 100% 0, 100% 100%, 0 100%, 0 0);
    transform: translateY(1px);
    -webkit-backface-visibility: hidden;
}

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

footer.site-footer .footer-inner{
    width: var(--theme-standard-width);
    max-width: calc(100% - 40px);
    margin: 0 auto;
    padding: 40px 0;
}

.footer-columns {
    display: flex;
    flex-direction: column;
    gap: calc(var(--footer-gap) * 3);
    align-items: center;
}

@media screen and (min-width: 600px) {
    .footer-columns {
        display: grid;
        grid-template-columns: repeat(var(--num-footer-columns), 1fr);
        gap: var(--footer-gap);
        align-items: start;
    }
}

@media screen and (min-width: 700px) {

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

@media screen and (max-width: 600px) {
    .footer-column {
        max-width: 90vw;
        width: 300px;
    }
}

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

.footer-columns.footer-columns--horizontal ul.footer-column-list {
    flex-direction: row;
    justify-content: space-between;
}
.footer-headline-wrapper {
    height: var(--footer-logo-height);
    display: flex;
    align-items: flex-end;
    margin-bottom: 1em;
}

ul.footer-column-list,
li.footer-item {
    margin: 0;
    list-style: none;
}

ul.footer-column-list {
    display: flex;
    flex-direction: column;
    gap: var(--footer-item-gap);
}

img.footer-logo {
    display: block;
    margin-bottom: 0;
    max-width: 100%;
    height: auto;
}

li.footer-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

li.footer-item.footer-item--type-opening-hours {
    justify-content: space-between;
    max-width: 280px;
}
li.footer-item.footer-item--type-textarea .icon-space {
    display: none;
}

li.footer-item .wd-icon {
    position: relative;
	top: 1px;
}

li.footer-item a {
    color: inherit;
    text-decoration: none;
}

li.footer-item span.icon-space {
    display: block;
    width: 24px;
}

li.footer-item a:hover {
    text-decoration: underline;
}

.footer-item-space {
    height: var(--footer-item-space);
}



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

.to-top {
    position: fixed;
    right: 40px;
    bottom: 20px;
    height: 50px;
    width: 50px;
    background: var(--background-color);
    opacity: 0;
    transform: translateX(calc(100% + 100px));
    transition: transform var(--standard-transition);
    transition-property: transform, opacity;
    z-index: 2;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

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

.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: var(--background-color);
    padding: 12px 20px;
    border: 3px solid var(--background-color);
    line-height: 1em;
    transition: all var(--standard-transition);
    transition-property: background-color, color;
    text-decoration: none;
}

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


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

    .header-topper {
        height: 40px;
    }

    .header-topper-inner {
        width: 100%;
        padding: 0 20px;
    }
    
    .site-header {
        display: none;
    }
    
    .site-header-mobile {
        display: flex;
    }

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

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

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

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

    .usps {
        display: none;
    }

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

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

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

html .privacy-policy{
    margin: 0;
}

body *:not(.post-inner) > .entry-content > *:first-child{
    margin-top: 3.5rem;
}

body .entry-content > *:first-child{
    margin-top: 3.5rem;
}
body .entry-content > *:last-child{
    margin-bottom: 3.5rem;
}

@media screen and (min-width: 700px) {
    body .entry-content > *:first-child{
        margin-top: 6rem;
    }
    body .entry-content > *:last-child{
        margin-bottom: 6rem;
    }
}

.wp-block-image .is-style-rounded img,
.wp-block-image.is-style-circle-mask img,
.wp-block-image.is-style-rounded img {
    border-radius: 16px;
}

.wd-icon {
    display: flex;
    align-items: center;
}

.wd-icon * {
    fill: currentColor;
}

.wd-icon path {
    transition: fill var(--standard-transition);
}

/*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(--background-color) 90%, transparent);
        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: var(--small-font-size);
        text-decoration: none;
        color: var(--text-color);
        letter-spacing: normal;
    }
}

/*
    ——————————
	Styling til Gutenberg
    ——————————
*/

*[style*="--custom-margin-top"] { margin-top: var(--custom-margin-top)!important;}
*[style*="--custom-margin-right"] { margin-right: var(--custom-margin-right)!important;}
*[style*="--custom-margin-bottom"] { margin-bottom: var(--custom-margin-bottom)!important;}
*[style*="--custom-margin-left"] { margin-left: var(--custom-margin-left)!important;}

*[style*="--custom-padding-top"] { padding-top: var(--custom-padding-top)!important;}
*[style*="--custom-padding-right"] { padding-right: var(--custom-padding-right)!important;}
*[style*="--custom-padding-bottom"] { padding-bottom: var(--custom-padding-bottom)!important;}
*[style*="--custom-padding-left"] { padding-left: var(--custom-padding-left)!important;}

*[style*="--custom-max-width"]{ max-width: var(--custom-max-width)!important; }

/* forbedret custom styling på knapper*/

.wp-block-button[style*=font-weight] .wp-block-button__link{
    font-weight: inherit;
}
 
.wp-block-button[style*=font-size] .wp-block-button__link{
    font-size: inherit;
}
 
.wp-block-button[style*=text-transform] .wp-block-button__link{
    text-transform: inherit;
}
 
.wp-block-button[style*=font-style] .wp-block-button__link{
    font-style: inherit;
}
 

body .entry-content *[style*="--custom-max-width"] {
    max-width: var(--custom-max-width) !important;
}


.align-full:not([class*="wdf-"]),
.alignfull:not([class*="wdf-"]) {
    width: 100%!important;
    max-width: 100%!important;
}

.wp-block-group > :first-child,
.wp-block-column > :first-child,
.wp-block-group__inner-container > :first-child {
    margin-top: 0!important;
}

.wp-block-group > :last-child:not(.wp-block-heading),
.wp-block-column > :last-child:not(.wp-block-heading),
.wp-block-group__inner-container > :last-child:not(.wp-block-heading) {
    margin-bottom: 0!important;
}

p:empty{
    display: none;
}

/* Knapper */

.wp-block-button .wp-block-button__link,
.btn,
.wpcf7 input.wpcf7-submit {
    text-transform: initial;
    letter-spacing: 0;
    line-height: 0;
    background-color: var(--btn-color);
    color: var(--btn-text-color);
    border-radius: 26px;
    display: flex;
    gap: 6px;
    align-items: center;
    text-align: center;
    justify-content: center;
    transition: background-color var(--standard-transition);
    text-decoration: none;
    font-weight: var(--bold);
    border: none;
	padding: 10px 20px;
	cursor: pointer;
    font-size: var(--body-font-size);
    line-height: normal;
}

.btn--from-shortcode {
    display: inline-flex;
}

.btn:has(a) {
    padding: 0;
}

.btn a {
    display: flex;
    gap: inherit;
    color: inherit;
    text-decoration: inherit;
    font-weight: inherit;
    font-size: inherit;
    text-transform: inherit;
    padding: 10px 20px;
}

.wp-block-button .wp-block-button__link:hover,
.btn:hover,
.wpcf7 .kontaktform-rows .kontaktform-form-row input.wpcf7-submit:hover {
    background-color: var(--btn-color-hover);
}

.wp-block-button .wp-block-button__link svg{
    fill: currentColor;
}

/* 
    ——————————
    Styling til custom classes inde i Gutenberg
    ——————————
*/

ul.firmainfo {
    margin: 0 0 20px;
    list-style: none;
    padding: 0;
}

ul.firmainfo li{
    margin: 0 0 4px;
    list-style: none;
    padding: 0;
    display: flex;
    gap: 0.5ch;
}

ul.firmainfo li.icon-space {
    padding-left: calc(24px + 0.5ch);
}


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

:root body {
    --kontaktformular-bg: var(--background-color);
    --kontaktformular-inner-bg: var(--background-color);
}

.wpcf7{
    max-width: 100%;
}

.wp-block-contact-form-7-contact-form-selector {
    margin-top: 40px;
}

.wpcf7-form {
    border-radius: var(--theme-border-radius);
    overflow: hidden;
    box-shadow: var(--shadowlevel-1);
}

.entry-content .wp-block-contact-form-7-contact-form-selector h3{
    padding: 20px;
    margin: 0;
    display: block;
    text-align: center;
    background: var(--secondary-color);
    font-size: var(--medium-font-size);
    font-weight: var(--bold);
    color: var(--background-color);
}

.kontaktform-rows{
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media screen and (min-width: 520px) {
    .kontaktform-rows{
        grid-template-columns: 1fr 1fr;
    }
}

.kontaktform-form-row{
    position: relative;
    background-color: var(--kontaktformular-bg);
    padding: 20px;
    color: var(--text-color);
    display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 15px;
}

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

.kontaktform-form-row p {
	position: relative;
}

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

.kontaktform-image-row{
    position: relative;
    min-height: 160px;
}

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

.kontaktform-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-form-row textarea {
    height: 9rem;
}

.wpcf7-form{
    position: relative;
}

.wpcf7 form:not(.invalid) .wpcf7-response-output:not(:empty) {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--theme-border-radius);
    display: grid;
    place-items: center;
    font-weight: var(--bold);
    text-align: center;
    z-index: 1;
    border: none;
    background-color: var(--dark);
    background-color: color-mix(in srgb, var(--dark), transparent 10%);
    box-shadow: var(--shadowlevel-3);
    height: calc(100% - 40px);
    width: calc(100% - 40px);
    margin: auto;
    font-size: var(--medium-font-size);
    color: var(--light);
}

.wpcf7 {
    position: relative;
}

.wpcf7 label {
	position: static;
}

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

.wpcf7 .label-text{
    position: absolute;
    top: 8px;
    z-index: 1;
    left: calc(19px - 0.5ch);
    font-size: var(--body-font-size);
    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);
    background: linear-gradient(0deg, var(--kontaktformular-inner-bg) 13px, transparent);
    /* background: linear-gradient(0deg, var(--kontaktformular-inner-bg) 13px, transparent 13px); hvis der er stor farveforskel*/
}

.wpcf7 label input,
.wpcf7 label textarea {
    letter-spacing: normal;
    background: var(--kontaktformular-inner-bg);
    border-radius: 8px;
    border: 1px solid var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
    outline: none;
    color: var(--text-color);
}

.wpcf7 label input {
	padding: 5px 20px;
	min-height: 44px;
	width: 100%;
}

.wpcf7 label textarea {
	padding: 15px 20px;
	width: 100%;
}

.wpcf7 label input:focus,
.wpcf7 label textarea:focus {
    outline: 2px solid var(--text-color);
    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-inner-bg) inset !important;
}

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

.wpcf7 form.invalid .wpcf7-response-output {
    border-color: red;
    border-radius: var(--theme-border-radius);
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background: var(--background-color);
    opacity: 0.8;
    text-align: center;
    margin: 0;
    font-size: var(--small-font-size);
    pointer-events: none;
}

/* Ny alignment til core/group (gruppe)*/

body .entry-content > .align-narrow.wp-block-group:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide),
body .entry-content > .align-standard.wp-block-group:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide),
body .entry-content > .align-wide.wp-block-group:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    margin-left: auto;
    margin-right: auto;
}

body .entry-content > .align-narrow.wp-block-group:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    max-width: var(--theme-narrow-width);
}
body .entry-content > .align-standard.wp-block-group:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    max-width: var(--theme-standard-width);
}
body .entry-content > .align-wide.wp-block-group:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    max-width: var(--theme-wide-width);
}

html body.template-full-width [class*="__inner-container"]:not(.align-narrow.wp-block-group):not(.align-standard.wp-block-group):not(.align-wide.wp-block-group) > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide){
    max-width: unset;
}

html body.template-full-width *:not(.align-narrow.wp-block-group):not(.align-standard.wp-block-group):not(.align-wide.wp-block-group) > [class*="__inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    max-width: 120rem;
}

/*Lightbox dialog*/


dialog:not([open]) {
    pointer-events: none;
    opacity: 0;
}

html:has(dialog[open]){
    overflow: hidden;
}

dialog::backdrop {
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
}

.lightbox-dialog,
.lightbox-dialog *{
    user-select: none;
}

.lightbox-dialog{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 999;
    padding: 0;
    border: none;
    border-radius: 16px;
    background: transparent;
}

.lightbox-dialog img {
    border-radius: 16px;
    max-height: 80vh;
    max-width: calc(100vw - 50px);
}

.lightbox-dialog .arrow {
    display: none;
    position: absolute;
    bottom: 10px;
    background: none;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
    transition: opacity var(--standard-transition);
    cursor: pointer;
    opacity: 0.7;
    outline: none;
}

dialog:has(*:hover) .arrow{
    display: grid;
}

.lightbox-dialog .arrow:hover{
    opacity: 1;
}

.lightbox-dialog .arrow svg{
    transform: scale(1.6);
    fill: var(--secondary-color);
}

.lightbox-dialog .arrow.arrow-prev{
    left: 10px;
}
.lightbox-dialog .arrow.arrow-next{
    right: 10px;
}

button.dialog-close {
    position: absolute;
    top: 3px;
    right: 3px;
    padding: 0px;
    background: transparent;
    border-radius: 50%;
    border: 5px solid transparent;
    transition: all var(--standard-transition);
    outline: none;
}

.lightbox-dialog button.dialog-close:hover{
    border-color:var(--secondary-color);
}

.lightbox-dialog button.dialog-close svg{
    display: block;
    width: 42px;
    height: 42px;
    fill: var(--secondary-color);
}

.dialog-alt {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 0px;
    z-index: 1;
    user-select: none;
    pointer-events: none;
}

.dialog-alt-p {
    display: inline-block;
    margin: 0;
    padding: 5px 10px;
    background: var(--text-color);
    border-radius: 8px;
    font-weight: var(--bold);
    color: var(--background-color);
    user-select: none;
    pointer-events: none;
    max-width: calc(100% - 60px);
}

.dialog-alt-p:empty {
    display: none!important;
}

/* FAQ Block*/

.wp-block-yoast-faq-block,
.schema-faq {
    width: 100%;
    max-width: 850px!important;
    margin-left: auto;
    margin-right: auto;
    margin-top: 70px;
}

.wp-block-yoast-faq-block .schema-faq-answer,
.schema-faq .schema-faq-answer {
    display: none;
    padding-left: 38px;
    padding-top: 10px;
}

.wp-block-yoast-faq-block .schema-faq-section.active .schema-faq-answer,
.schema-faq .schema-faq-section.active .schema-faq-answer {
    display: block;
}

.schema-faq-question{
    user-select: none;
    cursor: pointer;
}

.schema-faq-section {
    margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid color-mix(in srgb, var(--text-color), transparent 70%);
}

strong.schema-faq-question {
    display: flex;
    font-weight: 600;
    align-items: center;
}

strong.schema-faq-question::before {
    display: inline-block;
    content: url(icons/plus.svg);
    width: 24px;
    height: 24px;
    margin-right: 14px;
    opacity: 0.3;
}

.wp-block-yoast-faq-block .schema-faq-section.active strong.schema-faq-question::before,
.schema-faq .schema-faq-section.active strong.schema-faq-question::before {
    content: url(icons/minus.svg);
}

body.dark-mode strong.schema-faq-question::before {
	content: url(icons/plus-white.svg);
}

body.dark-mode .wp-block-yoast-faq-block .schema-faq-section.active strong.schema-faq-question::before,
body.dark-mode .schema-faq .schema-faq-section.active strong.schema-faq-question::before {
	content: url(icons/minus-white.svg);
}


/*Breadcrumb kategorier til shortcode*/

.breadcrumbs-kategorier{
    display: inline-flex;
    gap: 4px;
}

.breadcrumbs-kategori {
    font-size: var(--small-font-size);
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    padding: 1px 4px;
    background: color-mix(in srgb, var(--primary-color), transparent 80%);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color var(--standard-transition);
    user-select: none;
}

a.breadcrumbs-kategori:hover {
    background: color-mix(in srgb, var(--primary-color), transparent 60%);
}

.theme-toggle-button {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 999;
    background-color: var(--background-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    box-shadow: var(--shadowlevel-2);
    cursor: pointer;
    transition: background-color var(--standard-transition), box-shadow var(--standard-transition);
}

.theme-toggle-button svg{
    fill: var(--text-color);
}

.theme-toggle-button:hover {
    background-color: var(--background-color-hover);
    box-shadow: var(--shadowlevel-3);
}

body.dark-mode img{
    filter: brightness(0.8) contrast(1.2);
}

/*
    Cookies
*/

.cky-btn-revisit-wrapper {
    display: none!important;
}


/* SEARCH START */

.main-header-inner-search{
    list-style: none;
}

.main-header-inner-search * {
    color: var(--header-text-color);
}

.search-bar-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
}

.search-bar-wrapper.search-bar-wrapper--active{
    display: block;
}

.search-bar-wrapper:has(:focus) {
    box-shadow: 0 0 100vh 100vh rgba(0, 0, 0, 0.4);
}

body.dark-mode .search-bar-wrapper:has(:focus) {
    box-shadow: 0 0 100vh 100vh rgba(0, 0, 0, 0.9);
}

.search-bar-inner {
    display: block;
    position: fixed;
    top: 10%;
    width: 100%;
    background: var(--background-color);
    z-index: 99;
    border-top: 1px solid var(--separator);
    box-shadow: var(--shadowlevel-2);
    transition: box-shadow var(--standard-transition);
    padding: 20px 0;
}

form.search-bar-form {
    display: grid;
    grid-template-columns: 1fr auto;
    width: var(--theme-standard-width);
    margin: 0 auto;
}

button.search-bar-submit-btn {
    background: none;
    display: block;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

button.search-bar-submit-btn svg {
    width: 40px;
    height: 40px;
}

form.search-bar-form {
    display: grid;
    grid-template-columns: 1fr auto;
}

.search-bar-form input.search-bar {
    padding: 0 0 0 18px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--separator);
    font-size: 20px;
    color: var(--text-color);
}

.search-bar-form input.search-bar:focus {
    outline: none;
    border-bottom-color: var(--text-color);
}

@keyframes spin {
    100% {
        transform:rotate(360deg);
    }
}

.as--hidden{
    display: none!important;
}

.as-wrapper {
    position: absolute;
    top: 100%;
    background: var(--background-color);
    z-index: 9;
    width: 100%;
    left: 0;
    right: 0;
    box-shadow: var(--shadowlevel-2);
    padding: 10px 0;
}

.as-loading {
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
}

.as-loading .wd-icon{
    animation: spin 600ms linear infinite;
}

.as-loading svg{
    display: block;
}

.as {
    width: 100%;
    max-width: calc(var(--theme-standard-width) + 40px);
    margin: 0 auto;
}

.as-categories{
    padding: 0 20px;
    margin-bottom: 16px;
}

.as-cateogies-inner {
    display: flex;
    flex-direction: column;
    padding: 7px 0;
}

.as-cateogies-inner a{
    text-decoration: none;
    font-size: 15px;
    padding: 7px 0;
}

.as-wrapper .embolden{
    font-weight: var(--bold);
}

.as-posts {
    max-height: 50vh;
    overflow: auto;
}

.as-posts-inner a {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 20px;
    color: var(--text-color);
    transition: background-color var(--standard-transition);
    text-decoration: none;
    font-size: 15px;
}
.as-posts-inner a:hover {
    background-color: var(--surface-color);
}

.as-post-image {
    width: 45px;
    height: 45px;
    border: 1px solid var(--separator);
    border-radius: 3px;
    overflow: hidden;
}

.as-post-image:empty {
    display: none;
}

.as-post-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.as-posts-more a {
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    justify-content: center;
    padding: 7px 10px;
    transition: background-color var(--standard-transition);
}

.as-posts-more a:hover {
    background-color: var(--surface-color);
}

.as-failed {
    padding: 0px 10px 10px;
    text-align: center;
    font-size: 15px;
}



