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

	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

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

/* Tema opdatering */

/* Header */

header.wd-header:before {
    content: '';
    display: block;
    background-image: url(/wp-content/uploads/2023/08/peaks.png);
    background-repeat: no-repeat;
    background-position: top left calc(50vw - 33rem);
    position: absolute;
    width: 100%;
    height: 42px;
    pointer-events: none;
}

.header-topper .header-topper-item a {
    border-bottom: 2px solid var(--separator-faded);
    transition: all var(--standard-transition);
}

.header-topper .header-topper-item a:hover {
    text-decoration: underline;
    color: var(--accent-color);
    border-bottom-color: var(--separator);
}

.main-header-logo-link img {
    max-height: 150px;
    padding: 0 0 14px;
    margin-bottom: 14px;
    position: absolute;
}

/* Content */

body *:is(strong) {
    font-weight: bold;
}

.entry-content > * {
    padding-left: 2rem;
    padding-right: 2rem;
}

.entry-content > :is(.wdf-width, .wp-block-cover) > *:not(.wp-block-cover__background, .wp-block-cover__image-background) {
    max-width: 100%;
}

.entry-content .wd-topsektion.topsektion-video-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: unset;
    height: 56.25vw;
    max-height: 700px;
	display: flex;
	align-items: center;
}

.wd-topsektion .topsektion-video-iframe {
    width: 100vw;
    height: 100%;
    display: block;
    max-width: unset;
    position: absolute;
    top: 50%;
    left: 50%;
    right: 0;
    bottom: 0;
    transform: translate(-50%, -50%);
}

.entry-content .wd-topsektion .topsektion-content {
    position: relative;
	color: var(--light);
}

.entry-content a:hover {
    text-decoration: none;
}

.right-side-elements {
	display: flex;
    gap: 30px;
    flex-direction: column;
}

.right-side-elements__element {
	background: var(--surface-color);
	padding: 25px;
	border-radius: 10px;
}

.entry-content .right-side-elements h2.wdf-small-headline {
    text-wrap: pretty;
}

.entry-content .right-side-elements .right-side-elements__element .wp-block-image:not(:last-child) {
    margin-bottom: 2rem;
}

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

/* Gallerier */

.referencer.type-referencer .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
    margin: 0 auto;
    max-width: 400px;
}

/* Video embed */

.entry-content .wp-has-aspect-ratio .wp-block-embed__wrapper:before {
    content: "";
    display: block;
    padding-top: 50%;
}

.entry-content .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before {
    padding-top: 56.25%;
}

.entry-content .is-type-video.wp-block-embed iframe {
    max-width: var(--theme-standard-width);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* WD cards */

.wd-cards:not(.wd-cards.wd-cards--employees, .wd-cards.wd-cards--ledige-moduler, .wd-cards.wd-cards--posts) .wd-card .wd-card-title {
    font-size: 16px;
    text-align: center;;
}

.wd-cards.wd-cards--employees .wd-card {
    border-radius: 10px;
    background-color: var(--surface-color);
}

.wd-cards.wd-cards--employees .wd-card-content-wrapper p.wd-card-job-title {
    color: var(--text-color);
    font-weight: normal;
}

.wd-cards.wd-cards--employees .wd-card-content-wrapper {
    background: var(--surface-color);
    border-radius: 10px;
    padding: 15px;
}

.wd-cards.wd-cards--employees .wd-card .wd-card-image-wrapper, .wd-cards.wd-cards--employees .wd-card .wd-card-image-wrapper .wd-card-image {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.wd-cards.wd-cards--employees .wd-card a:hover {
    color: var(--accent-color);
}

.wd-cards.wd-cards--posts .wd-card,
.wd-cards.wd-cards--posts .wd-card .wd-card-image-wrapper,
.wd-cards.wd-cards--posts .wd-card .wd-card-content-wrapper,
.wd-cards.wd-cards--posts .wd-card .wd-card-content-wrapper > * {
    max-width: 250px;
}

.wd-cards.wd-cards--posts .wd-card .wd-card-content-wrapper .wd-card-content p {
    font-size: 14px;
}

.wd-cards.wd-cards--posts .wd-card .wd-card-content-wrapper .wd-card-title:is(h1,h2,h3,h4,h5,h6,p) {
    font-size: 16px;
    font-weight: bold;
}

.wd-cards.wd-cards--ledige-moduler .wd-card {
    max-width: 310px;
}

.wd-cards.wd-cards--ledige-moduler .wd-card .wd-card-image-wrapper, .wd-cards.wd-cards--ledige-moduler .wd-card .wd-card-image-wrapper .wd-card-image {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.wd-cards.wd-cards--ledige-moduler .wd-card .wd-card-content-wrapper p {
    font-size: 14px;
}

.wd-cards.wd-cards--ledige-moduler .wd-card .wd-card-content-wrapper .wd-card-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 0;
}

/* WD kontaktformular */

.entry-content .kontaktformular-headline {
    margin: 0;
	padding: 20px;
	text-align: center;
	background: var(--secondary-color);
	color: var(--light);
	font-size: 38px;
}

.wd-contact-form .wd-contact-form-inner:has(.kontaktform-image) {
	padding: 0;
	border-radius: 10px;
}

.wd-contact-form .kontaktform-form-row:has(.kontaktform-image) {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
 
.kontaktform-form-row .kontaktform-image {
    position: relative;
    width: 100%;
    min-height: 165px;
    overflow: hidden;
}
 
.kontaktform-form-row .kontaktform-image img{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
 
.wd-contact-form .kontaktform-form-row:has(.kontaktform-image) .kontaktform-rows {
    display: flex;
    flex-direction: column;
	padding: 20px;
}

.contact-container--referencer {
    background-color: var(--secondary-color);
}

.contact-container--referencer h2, .contact-container--referencer p {
    color: var(--light);
}

.contact-container--referencer .wd-contact-form:has(.kontaktform-rows--mini-form) {
    max-width: 340px;
}

.contact-container--referencer .wd-contact-form:has(.kontaktform-rows--mini-form) .wd-contact-form-inner {
    border-radius: 10px;
}

/* Footer */

footer.site-footer {
    background-image: url(/wp-content/uploads/2023/08/footer-peaks.png);
    background-repeat: no-repeat;
    background-position: bottom right calc(50vw - 50rem);
}

footer .bottom-footer {
    display: flex;
    gap: var(--gap);
    justify-content: center;
    border-top: 1px solid #ccc;
    padding: 2.5rem;
    max-width: var(--theme-standard-width);
    margin: 0 auto;
}

footer .bottom-footer .footer-list-item {
    margin: 0;
    list-style: none;
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

footer .bottom-footer .footer-list-item,
footer .bottom-footer .footer-list-item-link {
    font-size: calc(var(--body-font-size) - 2px);
}

footer .bottom-footer .footer-icon {
    margin-right: 14px;
    fill: var(--text-color);
    max-width: 20px;
}

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

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

/* Media queries */

/* Header */

@media screen and (min-width: 1190px) and (hover: hover) {
    body.sometimes-burger .main-header:not(.main-header--hide-icons) .sub-menu .menu-item > a {
        padding-left: 16px;
    }

    body.sometimes-burger .main-header-menu ul.sub-menu li a:hover {
        color: var(--accent-color);
    }
}

@media screen and (max-width: 1000px) {
    header.wd-header:before {
        display: none;
    }
}

@media screen and (max-width: 800px) {
    .main-header-logo-link img {
        max-height: 60px;
    }
}

/* Footer */

@media screen and (min-width: 600px) {
    .footer-column {
        min-width: 220px;
        width: calc(90% / var(--num-footer-columns) - var(--footer-gap));
    }
}

@media screen and (max-width: 600px) {
    footer .bottom-footer {
        flex-direction: column;
    }
}