/****** STORE SKRÆME ******/

@media only screen and (min-width: 1920px) {
  body .site.header-sticky.header-sticky-active.scrolled .section-wrap.clear.top-bar.sub-inherit-color.has-background {
    display: none;
  }
}
@media only screen and (min-width: 1240px) {
  body .site.header-sticky.header-sticky-active.scrolled .section-wrap.clear.top-bar.sub-inherit-color.has-background {
    display: none;
  }

}
/****** BÆRBAR / MINDRE SKÆRME ******/


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

  .page-id-803 main#main-content section.section-wrap.box-ansoeg-om-laan-section .grid-element {
    min-height: 270px;
  }
  body .stomGFAS-container-field .stomGFAS-icon {
    font-size: 26px;
  }
  body aside .gform_wrapper.gravity-theme form {
    padding: 0;
    margin-top: -10px;
  }
  section.stom-grid-section.box-medarbejdere-section .grid-element .overlay img {
    width: 127px;
  }
}

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

  .page-id-803 main#main-content section.section-wrap.box-ansoeg-om-laan-section .grid-element {
    min-height: 250px;
  }
  body.page-id-809 aside#secondary.widget-area.sidebar-setup-after-content .widget-title {
    --h4:20px;
  }
  section.stom-grid-section.box-medarbejdere-section .grid-element .overlay img {
    width: 112px;
  }
}


@media only screen and (max-width: 1270px) {
  body.laaneberegner #resultLeftDiv,
  #resultRightDiv {
    border: 0;
    width: 100%;
    padding-right: 10px;
    margin-right: 10px;
  }
  .page-id-803 main#main-content section.section-wrap.box-ansoeg-om-laan-section .grid-element {
    min-height: 230px;
  }
}
@media only screen and (max-width: 1240px) {
  :root body {
    /* Font sizes */
    --h1: 33px;
    --h2: 28px;
    --h3: 18px;
    --h4: 19px;
    --h5: 15px;
    --h6: 13px;
    --p: 15px;
    /* Gaps */
    --gap-l: 60px;
    --gap-m: 25px;
    --gap-s: 20px;
    /* Sidebar */
  }

  section.stom-grid-section.box-medarbejdere-section .grid-element .overlay img {
    width: 100%;
  }
  section.stom-grid-section.box-medarbejdere-section .grid-element .overlay h2 {
    white-space: nowrap;
  }
  section.stom-grid-section.box-medarbejdere-section .grid-element .overlay {
    grid-template-columns: 32% 1fr;
    gap: 10px;
  }

  body.laaneberegner.page-id-809 main section.section-wrap{
    margin-inline: auto;
  }

  body .stomGFAS-container-field .stomGFAS-label {
    font-size: 12px;
  } 

  header .main-navigation ul.menu a {
    white-space: nowrap;
    padding-inline: 3px;
  }

  body .stomGFAS-container-field .stomGFAS-the-element {
    width: 18px;
    height: 18px;
  }

  .page-slider-section .slider-text-inner .slider-text-inner-wrapper {
    gap: 30px;
  }

  

  body.laaneberegner main section.section-wrap, body.laaneberegner.page-id-811 main section.section-wrap, body.laaneberegner.page-id-138 main section.section-wrap {
    margin-inline: auto;
    width: 55%;
    padding-inline: var(--gap-m);
  }
  body.laaneberegner.page-id-138 main section.section-wrap {
    width: 58%;
  }

  body.main-margin-top main {
    margin-top: calc(var(--gap-l) + var(--header-height));
  }
  body.home .page-slider-section .slider-text-inner {
    margin-top: var(--gap-l);
  }
  div.scrolled header#masthead .top-bar {
    position: unset;
  }
  body.laaneberegner.page-id-138 {
    --sidebar-width: 20%;
  }


  aside#secondary:has(.ansoeg-om-laan-sidebar) {
    padding-right: 10px;
  }

}
@media only screen and (max-width: 1100px) {
  .page-id-803 main#main-content section.section-wrap.box-ansoeg-om-laan-section .grid-element {
    min-height: 210px;
  }
}

@media only screen and (max-width: 1073px) {
  section.section-wrap.box-ansoeg-om-laan-section .section .grid-elements .grid-element .overlay h3 {
    font-size: 12px;
  }
}

@media only screen and (max-width: 1025px) {
  aside#secondary:has(.ansoeg-om-laan-sidebar) {
    display: none;
  }
  body.ansoeg-om-laan-sidebar.page-id-803 main section.section-wrap, body.ansoeg-om-laan-sidebar main section.section-wrap {
    max-width: calc(100% - 20px);
    padding-left: 10px;
  }
  main#main-content section.section-wrap.box-ansoeg-om-laan-section, body.ansoeg-om-laan-sidebar.page-id-803 main section.section-wrap {
    margin-left: auto;
    padding-right: 50px;
  }
  body.laaneberegner.page-id-138 main section.section-wrap {
    width: calc(100% - var(--sidebar-width));
    margin-left: 0;
  }
  body.ansoeg-om-laan-sidebar.page-id-803 main#main-content.site-main:after {
    right: 20px;
  }
  body.laaneberegner.page-id-138 {
    --sidebar-width: 250px;
  }
  body.laaneberegner.page-id-809 main section.section-wrap, body.laaneberegner.page-id-811 main section.section-wrap, body.laaneberegner main section.section-wrap {
    margin-left: 0;
    padding-inline: var(--gap-m);
    max-width: calc(100% - 280px);
    width: 100%;
  }
  body.laaneberegner {
        --sidebar-width: 250px;
  }
  body.page-id-809 aside#secondary.laaneberegner-custom-sidebar {
    width: 280px;
  }
}

/****** IPADS - VERTIKALT ******/

@media only screen and (max-width: 959px) {
  :root body {
    /* Grid columns */
    --grid-2-cols: 1;
    --grid-3-cols: 2;
    --grid-4-cols: 2;
    --grid-5-cols: 3;
    --grid-6-cols: 3;
    --grid-7-cols: 4;
    --grid-8-cols: 4;
    --grid-9-cols: 5;
    --grid-10-cols: 5;
    --grid-11-cols: 6;
    --grid-12-cols: 6;
  }

  main#main-content section.section-wrap.box-ansoeg-om-laan-section .grid-elements, main#main-content section.section-wrap.box-medarbejdere-section .grid-elements {
    --grid-2-cols:2;
  }
  body.page-id-24 #page aside#secondary {
    float: right;
    width: 260px;
  }
  body.page-id-24 #page #primary {
    width: calc(100% - 310px);
    float: left;
  }
  /*section.section-wrap.dark-background-with-tip.box-mit-id-section p{
    margin-bottom: 0;
  }*/
  section.section-wrap.stom-grid-section.box-green-icons-section {
    margin-top: 10px;
  }
  section.section-wrap.box-mit-id-section .section .grid-elements .grid-element:last-of-type {
    margin-left: 0;
  }
  /*section.section-wrap.dark-background-with-tip.box-mit-id-section .section h3 {
    text-align: center;
  }*/
  section.section-wrap.box-green-icons-section .grid-elements .grid-element .overlay p:has(span.stom-custom-svg) {
    margin-bottom: 0;
  }

  section.section-wrap.dark-background-with-tip.box-mit-id-section .overlay{
    gap:0
  }
  /* Move this rule if you change the the grid columns */
  .last-on-mobile {
    order: 66;
  }
  section.section-wrap.box-mit-id-section .section .grid-elements {
    grid-template-columns: repeat(var(--grid-2-cols), minmax(0, 1fr));
    gap: var(--gap-l);
  }
  section.section-wrap.box-mit-id-section
  .section
  .grid-elements
  .grid-element:first-of-type {
    border-right: 0;
  }
  section.section-wrap.box-numbers-section .section .grid-elements {
    gap: var(--gap-m);
  }

  section.section-wrap.box-kontakt-section .section .grid-elements {
    --grid-2-cols: 2;
  }
  section.section-wrap.box-kontakt-section
  .section
  .grid-elements
  .grid-element
  .overlay
  div.right-setup
  span {
    grid-template-columns: 0.4fr 1fr;
  }

  /* section.section-wrap.box-mit-id-section
    .section
    .grid-elements
    .grid-element:last-of-type {
    display: none;
  } */
  .page-slider-section
  .slider-text-inner
  .slider-text-inner-wrapper
  .white-text {
    padding-left: unset;
    margin-left: unset;
    margin-top: unset;
  }

  .page-slider-section .slider-text {
    padding: var(--gap-m);
  }
  .page-slider-section.main-slider-section {
    font-size: 1.2rem;
  }

  section.section-wrap.box-green-icons-section
  .grid-elements
  .grid-element
  .overlay
  p {
    max-width: 100%;
  }
  body:not(.page-id-809) aside#secondary.laaneberegner-custom-sidebar {
    display: none;
  }
#secondary.sidebar-setup-after-content {
margin-top: 10px
}
  body.kundeudtalelser aside#secondary.sidebar-setup-after-content {
    width: 260px;
  }

body.page-id-813 aside#secondary .custom-overflow-wrapper {
      border-left: 1px solid rgba(0, 0, 0, 0.05);
}

  body.kundeudtalelser aside#secondary.sidebar-setup-after-content .custom-overflow-wrapper {
    border-left: 1px solid rgba(0, 0, 0, 0.05);
  }
  section.section-wrap.dark-background-with-tip {
    padding-inline: var(--gap-m);
  }
  section.section-wrap.dark-background-with-tip {
    margin-top: 30px;
  }
  section.section-wrap.box-green-icons-section .grid-elements {
    --grid-3-cols: 3;
  }
  section.section-wrap.stom-grid-section.dark-background-with-tip.box-numbers-section .grid-elements {
    --grid-4-cols: 4;
  }
  body.hvem-er-vi aside#secondary:not(.hvem-er-vi-custom-sidebar) {
    display: block;
    width: var(--sidebar-width);
  }
  body.laaneberegner.page-id-138 main section.section-wrap {
    width: calc(100% - var(--sidebar-width)) !important;
  }
  body.laaneberegner.page-id-138 main section.section-wrap.box-medarbejdere-section {
    margin-top: 0;
    padding-top: 50px;
  }
  body.laaneberegner.page-id-138 main section.section-wrap {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
  }
}
@media only screen and (max-width: 925px) {
  .stom_theme_logo img {
    max-width: 660px;
  }
}
@media only screen and (max-width: 880px) {
  .page-slider-section .slider-text-inner .slider-text-inner-wrapper {
    grid-template-columns: 1fr;
  }
  section.stom-grid-section.box-medarbejdere-section .grid-element .overlay {
    grid-template-columns: 28% 1fr;
  }
  .page-slider-section .slider-text-inner .slider-text-inner-wrapper {
    gap: 0;
  }
  header .top-bar .top-bar-right {
    display: none;
  }

  .page-slider-section.image-pos-center-center .image-aligner img {
    object-position: left bottom;
  }
  section.section-wrap.box-numbers-section
  .section
  .grid-elements
  .grid-element:first-of-type,
  section.section-wrap.box-numbers-section
  .section
  .grid-elements
  .grid-element:nth-last-of-type(2),
  section.section-wrap.box-numbers-section
  .section
  .grid-elements
  .grid-element:last-of-type,
  section.section-wrap.box-numbers-section
  .section
  .grid-elements
  .grid-element:nth-child(3) {
    border-right: none;
  }
  section.section-wrap.stom-grid-section.dark-background-with-tip.box-numbers-section .grid-elements {
    --grid-4-cols: 2;
  }
}

@media only screen and (max-width: 800px) {
  section.section-wrap.box-green-icons-section .section {
    padding-block: 35px;
  }
}

/****** MINDRE END IPADS VERTIKALT ******/

@media only screen and (max-width: 782px) {
}

@media only screen and (max-width: 767px) {
  :root body {
    /* Font sizes */
    --h1: 33px;
    --h2: 25px;
    --h3: 20px;
    --h4: 18px;
    --h5: 14px;
    --h6: 12px;
    --p: 14px;
    /* Gaps */
    --gap-l: 50px;
    --gap-m: 20px;
    --gap-s: 15px;
    /* Outer margin */
    --content-margin: 0;
  }
}
@media only screen and (max-width: 704px) {
  section.section-wrap.box-green-icons-section .grid-elements {
    --grid-3-cols: 1;
  }
  section.stom-grid-section.box-medarbejdere-section .grid-element .overlay {
    gap: 20px;
  }
  body.hvem-er-vi aside#secondary:not(.hvem-er-vi-custom-sidebar) {
    display: none;
  }
  body.laaneberegner.page-id-138 main section.section-wrap {
    width: 100% !important;
  }
  body.laaneberegner.page-id-138 main section.section-wrap {
    border-right: none;
  } 
  body.ansoeg-om-laan-sidebar.page-id-803 main section.section-wrap.no-margin-top, body.ansoeg-om-laan-sidebar main section.section-wrap {
    padding-top: 70px;
  }
  body.ansoeg-om-laan-sidebar.page-id-803 main section.section-wrap, main#main-content section.section-wrap.box-ansoeg-om-laan-section {
    padding-right: 10px;
  }
  body.ansoeg-om-laan-sidebar.page-id-803 main#main-content.site-main:after {
    display: none;
  }
  body.page-id-809 aside#secondary.laaneberegner-custom-sidebar, body.kundeudtalelser aside#secondary.sidebar-setup-after-content {
    display: none;
  }
  body.laaneberegner.page-id-809 main section.section-wrap, body.laaneberegner.page-id-811 main section.section-wrap {
    max-width: 100%;
  }
  body.page-id-24 #page div#content{
    margin-inline: 0;
  }
  main#main-content section.section-wrap.box-medarbejdere-section .grid-elements {
    --grid-2-cols:1;
  }
  body.page-id-24 #page #primary {
    width: 100%;
    float: none;
    padding-top: 70px;
    padding-inline: var(--gap-s);
    margin: 0;
  }
  body.page-id-24 #page aside#secondary {
    float: none;
    width: 100%;
    border-left: none;
    margin-top: 30px;
  }
  body.page-id-24 #page aside#secondary section .textwidget {
    border-top: 1px solid #97c527;
    padding-top: 20px;
  }
  body.laaneberegner #primary {
    padding-top: 70px;
  }
  body.laaneberegner main section.section-wrap {
    width: 100%;
    max-width: 100%;
  }
}

@media only screen and (max-width: 639px) {
  :root body {
    /* Grid columns */
    --grid-2-cols: 1;
    --grid-3-cols: 1;
    --grid-4-cols: 1;
    --grid-5-cols: 1;
    --grid-6-cols: 1;
    --grid-7-cols: 1;
    --grid-8-cols: 1;
    --grid-9-cols: 1;
    --grid-10-cols: 1;
    --grid-11-cols: 1;
    --grid-12-cols: 1;
  }
  section.section-wrap.box-numbers-section
  .section
  .grid-elements
  .grid-element {
    border-right: 0 !important;
  }
  section.section-wrap.box-numbers-section .section .grid-elements {
    gap: var(--gap-l);
  }
  section.section-wrap.box-kontakt-section
  .section
  .grid-elements
  .grid-element
  .overlay
  div.right-setup
  span {
    grid-template-columns: 0.5fr 1fr;
  }
}

/****** MOBILER ******/

@media only screen and (max-width: 479px) {
  section.section-wrap.stom-grid-section.dark-background-with-tip.box-numbers-section .grid-elements {
    --grid-4-cols: 1;
  }
  main#main-content section.section-wrap.box-ansoeg-om-laan-section .grid-elements {
    grid-template-columns: repeat(var(--grid-2-cols), minmax(0, 1fr));
  }
}

@media only screen and (max-width: 400px) {
}
