/* ----------------- FLEX & GRID ALIGNMENT ----------------- */
.flex--row {
    display: flex;
    flex-direction: row;
}

.flex--column {
    display: flex;
    flex-direction: column;
}

.flex--wrap {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
}

.flex--1 {
    flex: 1;
}

.items--center {
    align-items: center;
}

.items--end {
    align-items: end;
}

.justify--center {
    justify-content: center;
}

.justify--end {
    justify-content: end;
}

.justify--between {
    justify-content: space-between;
}

/* ----------------- TEXT ----------------- */
.text-decoration--none {
    text-decoration: none;
}

.text--capitalize {
    text-transform: capitalize;
}

.uppercase {
    text-transform: uppercase;
}

.lh--1-6 {
    line-height: 1.6;
}

.lh--1-4 {
    line-height: 1.4;
}

.lh--1-3 {
    line-height: 1.3;
}

.lh--1-2 {
    line-height: 1.2;
}

.lh--1-1 {
    line-height: 1.1;
}

.lh--1-0 {
    line-height: 1;
}

.text--center {
    text-align: center;
}
.underline {
    text-decoration: underline;
}

/* ----------------- WIDTH & HEIGHT ----------------- */
.width--full {
    width: 100%;
}
.width--80 {
    width: 80%;
}

.height--full {
    height: 100%;
}

.height--auto {
    height: auto;
}

.auto--left {
    margin-left: auto;
}
.auto--right {
    margin-right: auto;
}

/* ----------------- SIZES & FIT ----------------- */
.fit--cover {
    object-fit: cover;
}

.position--top {
    object-position: top;
}

.background-position--top-center {
    background-position: top center;
}

.background-position--center-center {
    background-position: center center;
}

.background-size--cover {
    background-size: cover;
}

.aspect--1-1 {
    aspect-ratio: 1;
}

.aspect--3-2 {
    aspect-ratio: 3/2;
}

.aspect--5-2 {
    aspect-ratio: 5/2;
    object-position: 50% 25%;
}

.aspect--5-3 {
    aspect-ratio: 5/3;
}

.aspect--5-4 {
    aspect-ratio: 5/4;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.width--fit {
    width: fit-content;
}

.height--fit {
    height: fit-content;
}

.overflow--hidden {
    overflow: hidden;
}



/* ---- RESPONSIVE MENU ---- */
.burger {
    display: none;
}
.hamburger .line {
    width: 35px;
    height: 2px;
    border-radius: 14px;
    display: block;
    margin: 8px auto;
    background: var(--darkblue);
    transition: all 0.3s ease-in-out;
}
.hamburger:hover {
    cursor: pointer;
}

#hamburger.is-active .line:nth-child(1) {
    -webkit-transform: translateY(6px) rotate(45deg);
    -ms-transform: translateY(6px) rotate(45deg);
    -o-transform: translateY(6px) rotate(45deg);
    transform: translateY(6px) rotate(45deg);
}

#hamburger.is-active .line:nth-child(2) {
    -webkit-transform: translateY(-4px) rotate(-45deg);
    -ms-transform: translateY(-4px) rotate(-45deg);
    -o-transform: translateY(-4px) rotate(-45deg);
    transform: translateY(-4px) rotate(-45deg);
}

.no-scroll {
    overflow: hidden;
}

.modal {
    display: none; /* Skjuler modalen som standard */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;    
    z-index: 98;
}

.modal-content {
    background: var(--blue50);
    padding: 30px 60px;
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.show-modal {
    display: block; /* Viser modalen */
}

.display--tablet {
    display: none;
}

@media (max-width: 1226px) {
    .burger {
        display: flex;
    }
}


/* ---- TABLET ---- */
@media (max-width: 992px) {
    .modal-content {
        padding: 125px 40px 25px 40px;
    }
    .collapse--tablet {
        flex-direction: column;
    }
    .tablet-align--start {
        align-items: start;
    }
    .hide--tablet {
        display: none;
    }
    .display--tablet {
        display: flex;
    }
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
    .modal-content {
        padding: 125px 30px 25px 30px;
    }
    .collapse--mobile {
        flex-direction: column;
    }
    .collapse-align--start {
        align-items: start;
    }
    .hide--mobile {
        display: none;
    }
    .aspect--5-2 {
        aspect-ratio: 3/2;
    }
}