/*!
egen css
 */
   body {
  max-width: 1400px; /* Set your desired maximum page width here */
  margin-left: auto;  /* Centers the page content horizontally */
  margin-right: auto; /* Centers the page content horizontally */
  width: 100%;        /* Keeps it fluid on smaller devices */
}  


   p {
        font-family: 'Roboto', sans-serif;
        line-height: 1.8;
        color: #1C0100;
    }   
   .p2 {
        font-family: 'Roboto', sans-serif;
        line-height: 3;
        color: #808080;
        font-size: .85em;
    } 
   .p3 {
        font-family: 'Roboto', sans-serif;
        line-height: 2;
        color: #1C0100;
        font-size: .85em;
    } 

.br-space {
  display: block;
  height: 15px;   /* juster luft her */
}


   .image-text {
        font-family: 'Roboto', sans-serif;
        line-height: 1.5;
        color: #1C0100;
        font-size: .80em;
     text-decoration: none;
    } 

        .navbar-brand {
        position: relative;
        background: url(images/logo.png);
        left: 15px;
        background-size: contain;

    }



    
    #img-fluid {
        height: auto;
        max-width: 60%;
        }

    .img-fluid {
        height: auto;
        max-width: 80%;
        }


        h1 {
         font-family: 'Playfair Display', serif;
        line-height: 1.8;
            color: #3c3569;
    } 

        h2 {
         font-family: 'Playfair Display', serif;
        line-height: 1.8;
            color: #870031;
    }





h4 { 
       font-family: 'Roboto', sans-serif; 
    font-size: 1.3em;
      font-weight: 700;
     color: #254277;
}

h5 { 
       font-family: 'Roboto', sans-serif; 
    font-size: 1em;
     color: #305199;
}

h6 { 
       font-family: 'Roboto', sans-serif;
    font-size: .75em;
  font-weight: lighter;
}


.featurette-heading {
  font-size: 1.5rem;
  line-height: 1.2; /* Adjust line distance here */
  margin-bottom: 1rem;
}

.text-muted
 {
    color: #3c3569 !important;
}

.custom-spacing {
  display: inline-block;
  line-height:.7; /* Multiplies by the current font size */
}


      .bg-1 { 
        background-color: #f5f2ef; /* main background */
        color: #ffffff;
      }

      .bg-2 { 
        background-color: #E9E6E3; /* Dark Blue */
        color: #ffffff;
      }
      .bg-3 { 
        background-color: #ffffff; /* White */
        color: #555555;
      }
      .bg-4 { 
        background-color: #e9e6e3; /* Black Gray */
        color: #fff;
      }
    
        .bg-5 { 
        background-color: #e8e3de; /* lightGray */
        color: #fff;
      } 
        .bg-6 { 
        background-color: #C0C0C0; /* Silver */
        color: #fff;
      } 
        .bg-7 { 
        background-color: #A9A9A9; /* darkGray */
        color: #fff;
      } 
        .bg-8 { 
        background-color: #808080; /* Gray */
        color: #fff;
      } 

        .bg-9 { 
        background-color: #152d59; /* Gray */
        color: #fff;
      } 


    
.border-10{
border-style:solid;
 border-width: 5px;
}
    
 .container-fluid {
        padding-top: 1000px;
        padding-bottom: 70px;
      }


    .mt-0 {
  margin-bottom:0 !important;
}
    
    /* w3schools link */
      .aw3 { color: #1C0100; } /* CSS link color */


.my-custom-header {
  background-color: #f5f2ef !important; /* Your custom hex color */
}



.custom-nav .navbar-nav .nav-link {
    color: #353969; 
}



.nav-item.active {
  font-weight: 900; 
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .show > .nav-link,
.navbar-light .navbar-nav .active > .nav-link {
    color: #353969; /* Replace with your desired color */
}

.navbar-nav .nav-link:hover {
    color: #353969!important;
  
}

.dropdown-item.active,
.dropdown-item:active {
    color: #353969 !important;      /* text color */
    background-color: transparent; /* remove Bootstrap blue background */
   font-weight: 900; 
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #fff !important;
    background-color: #353969 !important;
}

.dropdown-toggle::after {
    color: #353969; /* Bootstrap blue */
}

/*email text dark  */

label {
  color: #808080; 
}

a:hover {
  font-weight: bold;
}


.display-3 {
  font-size: 1.5rem; /* Default large size */
}

.display-4 {
  font-size: 1.8rem; /* Default large size */
}

@media (min-width: 1200px) {
  .display-3 {
    font-size: 4rem; /* Hard stop max size on big desktops */
  }
}


.dropdown-menu {
    background-color: #f6f6f6; 
}


@media (max-width: 576px) {
  .btn-group {
    display: block;
    width: 100%;
  }
  .btn-group .btn {
    width: 100%;
    text-align: left;
  }
}
.btn {
  border-radius: 0 !important;
}


.btn-secondary
{
    background-color: #717a89; 
     border: none !important;
}

.thumbnail a {
  text-decoration: none;
}

.thumbnail a p {
  text-decoration: none;
}

.w-20 { width: 22% !important; }


/* Remove padding + margin under siden GALLERI */

.custom-modal {
  max-width: 95vw;   /* nesten full bredde */
}

#modalImage {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0;
}

#imageModal .modal-body {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* sentrerer horisontalt */
  align-items: center;        /* sentrerer vertikalt */
  padding: 0 !important;      /* fjerner kant rundt bildet */
}


/* Minimalistisk hvit X-knapp for imageModal */
#imageModal .close-x {
  position: absolute;
  top: 0x;
  right: 0px;
  z-index: 2000;
  font-size: 26px;        /* tynn, ren X */
  font-weight: 300;       /* lett typografi */
  background: #343a40;        /* btn-dark farge */
  color: white;
  border: none;
  padding: 20;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;           /* litt subtil */
}


#imageModal .close-x:hover {
  opacity: 1;
}

#imageModal .modal-content {
    background: rgba(255,255,255,0.85); /* transparent hvit */
    border: 0;
    border-radius: 0;
    box-shadow: none;
}


#modalCaption {
    width: 100%;
    padding: 15px;
    color: #000;
    background: rgba(255,255,255,0.7);
    text-align: center;
}


/* Full bredde popup */
#imageModal .modal-dialog {
    max-width: 100vw !important;
    width: 100vw;
    margin: 0;
}


#closeBtn,
#prevBtn,
#nextBtn {
  all: unset;                 /* nullstill ALT fra Chrome og Bootstrap */
  position: absolute;
  background: #343a40;        /* btn-dark farge */
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0 !important; /* firkantet */
  z-index: 3000;
}



#closeBtn {
  top: 0;
  right: 0;
  padding: 3px 7px 5px 7px;
  font-size: 1.3rem;
  line-height: 1;
}


/* Prev */
#prevBtn {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 7px 6px 7px;
  font-size: 1.3rem;
}

/* Next */
#nextBtn {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 7px 6px 7px;
  font-size: 1.3rem;
}

/* Caption disappears when empty */
#modalCaption:empty {
  display: none !important;
}



#closeBtn:hover {
  opacity: 1;
}









@media (max-width: 767.98px) {
    .pop-image {
        display: block;
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .mobile-top-padding {
        padding-top: 2rem;
    }
}




/* Remove padding + margin on general pages */
#galleryModal .modal-dialog {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100vw;
}

#galleryModal .modal-content {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}


#galleryModal .modal-body {
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  justify-content: center;   /* centers image horizontally */
  align-items: center;        /* centers image vertically */
}

#modalPreview {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  max-height: 95vh;
  object-fit: contain;
}


#modalCaption {
  display: block;
  width: 100%;
  text-align: center;
  background: #3e3f40; /* soft black */
  padding: 10px 15px;
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  
}

#modalCaption:empty {
  display: none !important;
}


.modal-body {
  display: block !important;
    padding: 0 !important;
}
.modal-backdrop.show {
  background-color: rgba(255, 255, 255, 0.75) !important;
  opacity: 1 !important;
}


/* Position the close button */
/* Minimalistisk hvit X-knapp */
#galleryModal .close-x {
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 2000;
  font-size: 32px;        /* tynn, ren X */
  font-weight: 300;       /* lett typografi */
  color: white;           /* hvit X */
  background: transparent;/* ingen bakgrunn */
  border: none;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;           /* litt subtil */
}

#galleryModal .close-x:hover {
  opacity: 1;             /* tydeligere ved hover */
}

/* Open first level menu on hover */
.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
}

/* Allow submenus to extend outside the dropdown */
.dropdown-menu {
    overflow: visible !important;
}

/* Submenu container */
.dropdown-submenu {
    position: relative;
}

/* Position submenu to the right */
.dropdown-submenu .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    display: none;
    margin-top: 0;
    z-index: 1001;
}

/* Show submenu on hover */
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}
/* FARGER
 
burgunder farger: 
8e4355

Blue dark color: #152d59;

691d39
691c3e
6e344b

821a52
811b4c
894862


802847
80274d
84415a


blaa farger: 
005b92
3b6e9f

005184
356490

465390
1c4185


1b3b79
414c84

*/

