@media screen and (max-width: 769px) {
  .close-sidebar {
    position: relative;
    width: 30px;
    height: 30px;
    top: 10px;
    right: 10px;
  }
  .close-sidebar span {
    width: 20px;
  }
  .lang-menu {
    font-size: 12px;
    line-height: 50px;
  }
  .lang-menu ul {
    height: 50px;
  }
  .lang-menu ul li a {
    height: 50px;
  }

  #mobilmenu div[class^="menu-hovedmenu-"][class$="-container"] {
    margin-top: 50px !important;
  }

  #mobilmenu div[class^="menu-hovedmenu-"][class$="-container"] ul.menu li a {
    font-size: 18px !important;
    padding-bottom: 0 !important;
  }
  #mobilmenu
    [class^="menu-hovedmenu-"][class$="-container"]
    ul.menu
    > li
    .sub-menu {
    margin-top: 0 !important;
  }

  #mobilmenu
    div[class^="menu-hovedmenu-"][class$="-container"]
    ul.menu
    ul
    li
    a {
    font-size: 14px !important;
    line-height: 16px !important;
    position: relative !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  amp-sidebar#mobilmenu
    [class^="menu-hovedmenu-"][class$="-container"]
    ul.menu
    > li
    .sub-menu
    li {
    margin-bottom: 5px !important;
  }
}

@media screen and (max-width: 769px) {
  amp-sidebar#mobilmenu
    div[class^="menu-hovedmenu-"][class$="-container"]
    ul.menu
    ul
    li
    a:before {
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Contact page */
#medarbejdere > div .medarbejder .medarbejder-billede-container {
  height: 305px;
  width: 305px;
}
@media screen and (max-width: 500px) {
  #medarbejdere > div .medarbejder {
    flex-direction: column !important;
  }
  #medarbejdere > div .medarbejder .medarbejder-info-container {
    height: 140px !important;
  }
  #medarbejdere
    > div
    .medarbejder
    .medarbejder-info-container
    .medarbejder-info-inner {
    position: static;
    transform: none;
    width: 305px;
    margin: 10px auto 0;
  }
  /* #medarbejdere > div .medarbejder .medarbejder-info-container .medarbejder-info-inner {
        position: relative;
        transform: none!important;
        width: 305px;
        margin: 0 a;
    } */
  #medarbejdere
    > div
    .medarbejder
    .medarbejder-info-container
    p.medarbejder-titel {
    margin-bottom: 0 !important;
  }
}
@media screen and (max-width: 500px) {
  #medarbejdere > div .medarbejder .medarbejder-billede-container {
    height: 305px !important;
    width: 305px !important;
  }
}

/* Reference archive and single page */
.page-template,
.reference-template-default,
.single-reference {
  padding: 0;
}
.page-template,
.single-reference {
  max-width: 100%;
}

.single-reference .width-full img {
  object-fit: cover !important;
}

@media screen and (max-width: 769px) {
  .article-grid .grid-cell.height-two {
    min-height: initial !important;
  }
  .grid-cell.bgimage {
    z-index: 2;
  }
}



/* Reference contact section */
.reference-contact {
    width: 100%;
    background-color: var(--reference-contact-bg, #cf2e2e);
    color: var(--reference-contact-text, #ffffff);
}

.reference-contact,
.reference-contact * {
    box-sizing: border-box;
}

.reference-contact__inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
    gap: 80px;
    align-items: center;
}

.reference-contact__content {
    max-width: 620px;
}

.reference-contact__intro,
.reference-contact__intro p {
    margin: 0;
    color: inherit;
    font-size: 18px;
    line-height: 1.55;
}

.reference-contact__cta {
    margin: 28px 0 0;
    color: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.reference-contact__person {
    width: 100%;
    max-width: 620px;
    justify-self: end;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
}

.reference-contact__image {
    width: 170px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.reference-contact__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reference-contact__details {
    min-width: 0;
}

.reference-contact__details:only-child {
    grid-column: 1 / -1;
}

.reference-contact__department,
.reference-contact__department-description,
.reference-contact__position,
.reference-contact__contact-line {
    margin: 0;
    color: inherit;
    line-height: 1.45;
}

.reference-contact__department {
    font-size: 18px;
    font-weight: 700;
}

.reference-contact__department-description {
    margin-top: 2px;
    font-size: 16px;
    font-weight: 600;
}

.reference-contact__name {
    margin: 24px 0 0;
    color: inherit;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.reference-contact__position {
    margin-top: 3px;
    font-size: 16px;
}

.reference-contact__contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 16px;
}

.reference-contact__position + .reference-contact__contact-line,
.reference-contact__name + .reference-contact__contact-line {
    margin-top: 10px;
}

.reference-contact__contact-line a {
    color: var(--reference-contact-link, #ffffff);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.reference-contact__contact-line a:hover,
.reference-contact__contact-line a:focus {
    color: var(--reference-contact-link, #ffffff);
    opacity: 0.8;
}

@media (max-width: 900px) {
    .reference-contact__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .reference-contact__content,
    .reference-contact__person {
        max-width: none;
        justify-self: stretch;
    }
}

@media (max-width: 600px) {
    .reference-contact__inner {
        padding: 36px 20px;
    }

    .reference-contact__intro,
    .reference-contact__intro p,
    .reference-contact__cta {
        font-size: 16px;
    }

    .reference-contact__person {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 20px;
    }

    .reference-contact__image {
        width: 120px;
    }

    .reference-contact__name {
        margin-top: 18px;
        font-size: 18px;
    }
}

@media (max-width: 440px) {
    .reference-contact__person {
        grid-template-columns: 1fr;
    }

    .reference-contact__image {
        width: 140px;
    }

    .reference-contact__details {
        grid-column: 1;
    }
}

@media print {
    .reference-contact {
        display: none !important;
    }
}