.elementor-kit-5{--e-global-color-primary:#272B37;--e-global-color-secondary:#E4E4D5;--e-global-color-text:#252423;--e-global-color-accent:#E4E4D5;--e-global-color-3c149ff:#272B37;--e-global-color-134bcff:#E4E4D5;--e-global-color-f05c735:#E4E4D5;--e-global-color-6b65eac:#E4ECF2;--e-global-color-24f8dcb:#88A5BD;--e-global-color-f029ba9:#C2765D;--e-global-color-bfa5332:#FFFFFF;--e-global-color-bc91178:#FFFFFF;--e-global-color-8dd0ccc:#000000;--e-global-typography-primary-font-family:"Baloo 2";--e-global-typography-primary-font-weight:600;--e-global-typography-primary-line-height:1.3em;--e-global-typography-primary-letter-spacing:0.03em;--e-global-typography-secondary-font-family:"Baloo 2";--e-global-typography-secondary-font-size:20px;--e-global-typography-secondary-font-weight:600;--e-global-typography-secondary-line-height:1.3em;--e-global-typography-secondary-letter-spacing:0.03em;--e-global-typography-text-font-family:"proxima-nova";--e-global-typography-text-font-size:20px;--e-global-typography-text-font-weight:400;--e-global-typography-text-line-height:1.3em;--e-global-typography-text-letter-spacing:0.03em;--e-global-typography-accent-font-family:"Baloo 2";--e-global-typography-accent-font-size:20px;--e-global-typography-accent-font-weight:600;--e-global-typography-accent-line-height:1.3em;--e-global-typography-accent-letter-spacing:0.03em;background-color:var( --e-global-color-secondary );color:var( --e-global-color-8dd0ccc );font-family:"proxima-nova", Sans-serif;font-size:20px;font-weight:400;line-height:1.4em;letter-spacing:0.03em;}.elementor-kit-5 button,.elementor-kit-5 input[type="button"],.elementor-kit-5 input[type="submit"],.elementor-kit-5 .elementor-button{background-color:var( --e-global-color-f029ba9 );font-family:"proxima-nova", Sans-serif;font-size:20px;font-weight:600;line-height:1.3em;letter-spacing:0.03em;color:var( --e-global-color-secondary );border-radius:0px 0px 0px 0px;padding:10px 15px 10px 15px;}.elementor-kit-5 button:hover,.elementor-kit-5 button:focus,.elementor-kit-5 input[type="button"]:hover,.elementor-kit-5 input[type="button"]:focus,.elementor-kit-5 input[type="submit"]:hover,.elementor-kit-5 input[type="submit"]:focus,.elementor-kit-5 .elementor-button:hover,.elementor-kit-5 .elementor-button:focus{background-color:var( --e-global-color-primary );color:var( --e-global-color-bfa5332 );}.elementor-kit-5 e-page-transition{background-color:#FFBC7D;}.elementor-kit-5 p{margin-bottom:30px;}.elementor-kit-5 a{color:var( --e-global-color-8dd0ccc );}.elementor-kit-5 h1{color:var( --e-global-color-text );font-family:"Baloo 2", Sans-serif;font-size:70px;font-weight:400;line-height:1.1em;letter-spacing:0.03em;}.elementor-kit-5 h2{color:var( --e-global-color-text );font-family:"Baloo 2", Sans-serif;font-size:50px;font-weight:400;line-height:1.1em;letter-spacing:0.03em;}.elementor-kit-5 h3{color:var( --e-global-color-text );font-family:"Baloo 2", Sans-serif;font-size:40px;font-weight:400;line-height:1.1em;letter-spacing:0.03em;}.elementor-kit-5 h4{color:var( --e-global-color-text );font-family:"Baloo 2", Sans-serif;font-size:30px;font-weight:400;line-height:1.1em;letter-spacing:0.03em;}.elementor-kit-5 h5{color:var( --e-global-color-text );font-family:"Baloo 2", Sans-serif;font-size:28px;font-weight:500;line-height:1.1em;letter-spacing:0.03em;}.elementor-kit-5 h6{color:var( --e-global-color-text );font-family:"Baloo 2", Sans-serif;font-size:16px;font-weight:500;line-height:1.1em;letter-spacing:0.03em;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1420px;}.e-con{--container-max-width:1420px;--container-default-padding-top:0px;--container-default-padding-right:0px;--container-default-padding-bottom:0px;--container-default-padding-left:0px;}.elementor-widget:not(:last-child){margin-block-end:0px;}.elementor-element{--widgets-spacing:0px 0px;--widgets-spacing-row:0px;--widgets-spacing-column:0px;}{}h1.entry-title{display:var(--page-title-display);}@media(max-width:1099px){.elementor-kit-5 h1{font-size:51px;}.elementor-kit-5 h2{font-size:45px;}.elementor-kit-5 h3{font-size:35px;}.elementor-kit-5 h5{font-size:23px;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-kit-5{font-size:18px;}.elementor-kit-5 h1{font-size:42px;}.elementor-kit-5 h2{font-size:38px;}.elementor-kit-5 h3{font-size:30px;}.elementor-kit-5 h5{font-size:22px;}.elementor-kit-5 button,.elementor-kit-5 input[type="button"],.elementor-kit-5 input[type="submit"],.elementor-kit-5 .elementor-button{font-size:18px;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}/* Start custom CSS *//*******************************
 * GLOBAL ELEMENTS
 *******************************/
*:focus {
    outline: none !important;
}

.elementor hr {
    border: 0;
    height: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 50px !important;
    margin-bottom: 50px !important;
}

.mobile-break {
  display: none;
}

@media (max-width: 767px) {
  .mobile-break {
    display: inline;
  }
}

/*******************************
 * LIST STYLING
 *******************************/
/* Basic List */
.hv-content ul {
    margin-bottom: 1em;
    padding-left: 1.2em;  /* Reduced from 1.5em */
    list-style-position: outside;
}
.hv-content li {
    margin-bottom: 0.5em;
    padding-left: 0.3em;  /* Reduced from 0.5em */
}

/* Nested Lists */
.elementor-widget-dyncontel-acf ul ul,
.elementor-widget-theme-post-content ul ul {
    margin-top: 0.5em;
    margin-left: 0;
}

/* No Indent List Style */
.no-indent-list ul {
    margin-bottom: 1em;
    padding-left: 1.2em;  /* Reduced from 1.5em */
    list-style-position: outside;
}

.no-indent-list li {
    margin-bottom: 0.5em;
    padding-left: 0.3em;  /* Reduced from 0.5em */
}

/* Nested lists in no-indent style */
.no-indent-list ul ul {
    margin-top: 0.5em;
    margin-left: 0;
}

/*******************************
 * LINK STYLING
 *******************************/

.hv-content a {
  text-decoration: underline;
  text-decoration-color: var(--e-global-color-primary);
  text-underline-offset: 3px;
  font-weight: 600;
  transition: text-decoration-color 0.3s ease;
}

.hv-content a:hover, 
.hv-content a:focus {
  text-decoration-color: var(--e-global-color-text);
}

.hv-content-footer a {
  color: var(--e-global-color-bfa5332) !important;
  text-decoration: underline;
  text-decoration-color: var(--e-global-color-bfa5332);
  text-underline-offset: 3px;
  font-weight: 600;
  transition: text-decoration-color 0.3s ease;
}

.hv-content-footer a:hover, 
.hv-content-footer a:focus {
  text-decoration-color: var(--e-global-color-bfa5332);
}

/*******************************
 * END JR STYLES
 *******************************/


/* Default styles */

h1, h2, h3, h4, h5, h6 { margin-bottom: 0; }
p + h1, p + h2, p + h3, p + h4, p + h5, p + h6,
ul + h1, ul + h2, ul + h3, ul + h4, ul + h5, ul + h6 {
	margin-top: 2em;
}
h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p,
h1 + ul, h2 + ul, h3 + ul, h4 + ul, h5 + ul, h6 + ul {
    margin-top: 0.9rem;
}

.grecaptcha-badge { visibility: hidden; }
.elementor-message {
	margin-top: 30px;
	line-height: inherit;
}

/* Custom styles */

.logoer figure.gallery-item {
    max-width: 33.33% !important;
}

.aspect-ratio-3-4 img {
	aspect-ratio: 3 / 4 !important;
	object-fit: cover !important;
}

.aspect-ratio-4-3 img {
	aspect-ratio: 4 / 3 !important;
	object-fit: cover !important;
}

.aspect-ratio-square img {
	aspect-ratio: 1 !important;
	object-fit: cover !important;
}

figcaption {
    padding: 0 !important;
}

p {
-webkit-column-break-inside: avoid; /* Chrome, Safari, Opera */
page-break-inside: avoid; /* Firefox */
break-inside: avoid; /* IE 10+ */
}

.home .fremhevet-bilde {
    display: none !important;
}

@media (max-width: 1099px) {
    .header .elementor-nav-menu {
        padding: 30px 0 !important;
    }
    .header .elementor-nav-menu .elementor-sub-item {
        line-height: 1.5em !important;
    }
}

/* Form */

#interesseskjema {
    overflow: hidden !important;
}

#interesseskjema .autoprospekt-widget-frame {
    width: 100% !important;
    height: auto !important;
}

#interesseskjema .autoprospekt-widget-frame label input {
    background-color: transparent !important;
    border-color: var(--e-global-color-text) !important;
    border-radius: 0 !important;
    margin-top: 10px !important;
    color: var(--e-global-color-text) !important;
}

#interesseskjema .autoprospekt-widget-frame input[type=checkbox] + span {
    background-color: transparent !important;
    border-color: var(--e-global-color-text) !important;
    border-radius: 0 !important;
    border-width: 1px !important;
}

#interesseskjema .autoprospekt-widget-frame input[type=checkbox]:checked + span:before {
    width: 7px !important;
    left: 8px !important;
    top: 4px !important;
    border-color: var(--e-global-color-text) !important;
}

#interesseskjema .autoprospekt-widget-frame label span, #interesseskjema .autoprospekt-widget-frame p, #interesseskjema .autoprospekt-widget-frame label {
    color: var(--e-global-color-text) !important;
}

#interesseskjema .autoprospekt-widget-frame a.autoprospekt-widget-link, #interesseskjema .autoprospekt-widget-frame label span.autoprospekt-widget-link {
    color: inherit !important;
    text-decoration: underline !important;
}

#interesseskjema .autoprospekt-widget-frame button {
    width: auto !important;
    padding: 10px 28px 14px !important;
    border-radius: 0 !important;
    background-color: var(--e-global-color-6b65eac) !important;
    color: var(--e-global-color-bc91178) !important;
    margin-top: 10px !important;
}

#interesseskjema .autoprospekt-widget-frame button:disabled {
    opacity: 0.4;
}

/* Bildegalleri */

.bildegalleri .gallery {
    display: grid !important;
    gap: 30px !important;
}

@media (min-width: 768px) {
    .bildegalleri .gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 3vw !important;
    }
    .bildegalleri figure:nth-of-type(3n) {
        max-width: 70% !important;
        grid-column: span 2 !important;
        margin-left: 22% !important;
    }
    .bildegalleri figure:nth-of-type(6n) {
        max-width: 60% !important;
        margin-left: 12% !important;
    }
    .bildegalleri figure:only-of-type {
        max-width: 76% !important;
        grid-column: span 2 !important;
        margin-left: 12% !important;
    }
}

/* Boligvelger */

#adunits .units .unit-list thead th {
    background-color: var(--e-global-color-primary) !important;
    color: var(--e-global-color-text) !important;
}

#adunits .units .unit-list td, #adunits .units .unit-list th {
    border-color: var(--e-global-color-primary) !important;
}

#adunits .unit-popup {
    box-shadow: none !important;
    border: 1px solid var(--e-global-color-primary) !important;
}

#adunits .button {
    padding: 10px;
    border: none;
    font-family: var(--e-global-typography-text-font-family);
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    text-transform: var(--e-global-typography-text-text-transform);
    line-height: var(--e-global-typography-text-line-height);
    letter-spacing: var(--e-global-typography-text-letter-spacing);
}

#adunits .actions .toggle-favorites i {
    display: none !important;
}

#adunits .ui-slider-handle {
    background-color: var(--ad-units-accent) !important;
}

#adunits .filters, #adunits .actions {
    padding: 0 0 2rem !important;
}

@media (max-width: 767px) {
    #adunits .actions .button:not(.go-back) {
        font-size: 14px;
        padding: 0;
    }
}

#adunits .unit-data-list li {
    overflow: hidden !important;
}

#adunits .preview-block.zoomed-in,
#adunits .preview-nav.global-nav {
    display: none !important;
}

#adunits .button.go-back {
    font-size: 20px !important;
    padding: 10px 28px 14px !important;
    background-color: var(--e-global-color-primary) !important;
    color: var(--e-global-color-text) !important;
    transition: all .3s !important;
    width: fit-content !important;
    line-height: 1.5em !important;
}

#adunits .button.go-back:hover {
    color: var(--e-global-color-text) !important;
}

#adunits .preview-nav.unit-nav li {
    margin: -74px 0 0 !important;
}

#adunits .ad-block.button-block a:not(.add-favorite) {
    text-decoration: none !important;
    background-color: var(--e-global-color-primary) !important;
    color: var(--e-global-color-text) !important;
}

#adunits .ad-block.button-block a:not(.add-favorite):hover {
    color: var(--e-global-color-text) !important;
}

.sunstudie-wrapper {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 56.25%;
    overflow: hidden;
    margin: 0 !important;
    display: block !important;
    min-height: 300px;
    background-color: var(--e-global-color-3c149ff) !important;
}

.sunstudie-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block !important;
    background-color: var(--e-global-color-3c149ff) !important;
    margin-top: -24px !important;
}

/* Reset any container spacing */
.elementor-widget-html,
.elementor-widget-container,
.elementor-section-wrap,
.elementor-section {
    margin: 0 !important;
    padding: 0 !important;
}

/* Additional style to inject into the iframe */
.sun-study-container {
    background-color: var(--e-global-color-3c149ff) !important;
}

/* Mobile styles */
@media (max-width: 767px) {
    .sunstudie-wrapper {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .elementor-widget-html {
        overflow: visible !important;
        max-width: none !important;
    }
    
    .elementor-widget-container {
        margin: 0 !important;
        padding: 0 !important;
    }
}/* End custom CSS */