/*Megamenu*/

/* Change the off-canvas hamburger menu icon color */
.t4-offcanvas-toggle,
.t4-offcanvas-toggle .toggle-bars {
  color: #ffffff !important;
}

/* Optional: Change the color when hovering over the icon */
.t4-offcanvas-toggle:hover,
.t4-offcanvas-toggle:hover .toggle-bars {
  color: #bbe6ff !important;
}

/* Bakgrunn på hovedmenyen */
.t4-header {
    background-color: #0077bb !important;
}
.t4-megamenu {
    background-color: #0077bb !important;
}

/* Bakgrunn på nedtrekksmenyene */
.t4-header .nav-child,
.t4-header .dropdown-menu {
    background-color: #444444 !important;
}

/* Venstrejuster hovedinnholdet */
.item-page.layout-default.no-sidebar .top-article-info {
    text-align: left !important;
}
/*Megamenu END*/

/*Buttons Override*/

.btn.btn-primary, .btn-primary, .search .btn-toolbar .btn, .search .btn-toolbar .blog-list .item-readmore a, .blog-list .item-readmore .search .btn-toolbar a {
  --t4-btn-color: #ffffff;
  --t4-btn-bg: #0077bb;
  --t4-btn-border-color: #00a1ff;
  --t4-btn-hover-color: #fff;
  --t4-btn-hover-bg: #00a1ff;
  --t4-btn-hover-border-color: #00a1ff;
  --t4-btn-focus-shadow-rgb: 49, 132, 253;
  --t4-btn-active-color: #0077bb;
  --t4-btn-active-bg: #ffffff;
  --t4-btn-active-border-color: #00a1ff;
  --t4-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --t4-btn-disabled-color: #fff;
  --t4-btn-disabled-bg: #0d6efd;
  --t4-btn-disabled-border-color: #0d6efd;
}

.btn.btn-primary {
    background-color: #0077bb;
    border-color: #00a1ff;
}
.btn.btn-primary:hover {
    color: #fff;
    background-color: #00a1ff;
    border-color: #0077bb;
}

/*Buttons Override END*/

/* Frontpage Styling */

.frontpage-module {
    margin-left: 32px;
}

/* Frontpage Styling */

/* CSS Frontpage Slideshow */

/* Slideshow heading */
.acm-slideshow .item .slide-title {
    font-size: 22px !important;
    line-height: 1.2;
}

/* Slideshow description */
.acm-slideshow .item .description {
    font-size: 15px !important;
    line-height: 1.5;
}

.acm-slideshow .item {
  border-radius: 5px;
  padding-bottom: 15px;
  padding-top: 350px;
  position: relative;
  margin-top: 15px;
   }
  @media (max-width: 991.98px) {
    .acm-slideshow .item {
      padding-bottom: 15px;
      padding-top: 15px; } }
  @media (max-width: 767.98px) {
    .acm-slideshow .item {
      padding-bottom: 15px;
      padding-top: 15px; } }
  .acm-slideshow .item .background {
    border-radius: 5px;
    background-size: cover;
    background-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%; }
  .acm-slideshow .item .container {
    position: relative;
    z-index: 2; }
  @media (max-width: 991.98px) {
    .acm-slideshow .item .slide-title {
      font-size: var(--h2-font-size); } }
  @media (max-width: 767.98px) {
    .acm-slideshow .item .slide-title {
      font-size: var(--h4-font-size); } }
  .acm-slideshow .item .description {
    margin-bottom: 1.5rem; }
    @media (max-width: 767.98px) {
      .acm-slideshow .item .description {
        margin-bottom: 1rem; } }
  .acm-slideshow .item .slide-action .btn {
    margin-right: 0.5rem; }

.acm-slideshow .slider-content {
  border-radius: 5px;
  background: -webkit-gradient(linear, left top, right top, color-stop(1.81%, rgba(0, 119, 187, 0.95)), to(rgba(50, 180, 255, 0.95)));
  background: -webkit-linear-gradient(left, rgba(0, 119, 187, 0.95) 1.81%, rgba(50, 180, 255, 0.95) 100%);
  background: -o-linear-gradient(left, rgba(0, 119, 187, 0.95) 1.81%, rgba(50, 180, 255, 0.95) 100%);
  background: linear-gradient(45deg, rgba(50, 180, 255, 0.95) 1.81%, rgba(0, 119, 187, 0.95) 50%);
  padding: 1rem;
  max-width: 700px; }
  @media (max-width: 767.98px) {
    .acm-slideshow .slider-content {
      padding: 36px 18px;
      text-align: center; } }

.owl-dots button:focus {
  outline: none; }

/* CSS Frontpage Slideshow end */
/* ==========================================
   DESIGNFJOTTEN - FRONT PAGE HERO SLIDESHOW
   ACM Hero Module 302
   ========================================== */

/* Main hero wrapper */
#acm-hero-wrap-302 {
    width: 100%;
    margin: 0 auto;
}

/* Individual slides */
#acm-hero-wrap-302 .acm-hero-item {
    position: relative;
    min-height: 250px;
    height: 250px;
    padding-top: 0;
    padding-bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 15px;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Text container */
#acm-hero-wrap-302 .hero-content {
    width: 100%;
    align-items: center;
}

/* Text background */
#acm-hero-wrap-302 .hero-content-inner {
    background-color: rgba(30, 30, 30, 0.90);
    border-radius: 5px;
    padding: 30px;
    max-width: 700px;
    width: 100%;
    box-sizing: border-box;
}

/* Subheading */
#acm-hero-wrap-302 .sub-heading {
    margin-bottom: 12px;
}

#acm-hero-wrap-302 .sub-heading h4 {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #aaaaaa;
}

/* Main heading */
#acm-hero-wrap-302 .hero-title {
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
}

/* Description */
#acm-hero-wrap-302 .hero-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #dddddd;
    margin-bottom: 25px;
}

/* Buttons */
#acm-hero-wrap-302 .acm-action .btn {
    padding: 11px 25px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* Button hover */
#acm-hero-wrap-302 .acm-action .btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

/* Carousel navigation dots */
#acm-hero-wrap-302 .owl-dots {
    margin-top: 15px;
}

#acm-hero-wrap-302 .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 991px) {

    #acm-hero-wrap-302 .acm-hero-item {
        min-height: 420px;
        padding-top: 70px;
        padding-bottom: 70px;
    }

    #acm-hero-wrap-302 .hero-content-inner {
        max-width: 600px;
    }

    #acm-hero-wrap-302 .hero-title {
        font-size: 30px;
    }
}

@media (max-width: 575px) {

    #acm-hero-wrap-302 .acm-hero-item {
        min-height: 450px;
        padding-top: 45px;
        padding-bottom: 45px;
        background-position: center center;
    }

    #acm-hero-wrap-302 .hero-content-inner {
        padding: 20px;
        max-width: 100%;
    }

    #acm-hero-wrap-302 .hero-title {
        font-size: 25px;
    }

    #acm-hero-wrap-302 .hero-desc {
        font-size: 13px;
        line-height: 1.6;
    }

    #acm-hero-wrap-302 .acm-action .btn {
        padding: 10px 16px;
        font-size: 11px;
    }
}

/* HERO SLIDESHOW - HEIGHT FIX */

#acm-hero-wrap-302 .acm-hero-item {
    height: 350px !important;
    min-height: 350px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#acm-hero-wrap-302 .item {
    height: 100%;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#acm-hero-wrap-302 .row {
    height: 100%;
}

#acm-hero-wrap-302 .hero-content {
    height: 250px;
    min-height: 0;
}
/* ==========================================
   END HERO SLIDESHOW
   ========================================== */

/* Article Styling */

.page-header h2 {
    border-bottom: 3px solid #0077bb;
}

.img-thumbnail {
    margin-right: 10px;
}

/* END Article Styling */

/* Designfjotten Archives — layout only; typography inherited from JA Purity IV / T4 */
#df-archives {
  --df-blue: #0077bb;
  --df-green: #669900;
  --df-line: #ddd;
  margin: 0 auto;
  max-width: 100%;
}
#df-archives * { box-sizing: border-box; }

#df-archives .df-hero {
  background: #dddddd;
  padding: clamp(25px, 5vw, 56px);
  margin: 0 0 30px;
  border-left: 5px solid var(--df-blue);
}
#df-archives .df-kicker {
  text-transform: uppercase;
  letter-spacing: .16em;
  margin: 0 0 10px;
}
#df-archives .df-hero h2 { line-height: 1.08; margin: 0 0 12px; }
#df-archives .df-hero p { max-width: 780px; margin: 0; }
#df-archives .df-intro { line-height: 1.75; margin: 0 0 30px; }

#df-archives .df-section { margin: 42px 0; }
#df-archives .df-section-head {
  border-bottom: 3px solid var(--df-blue);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
#df-archives .df-section-head h2 { margin: 0 0 5px; }
#df-archives .df-section-head p { margin: 0; }

#df-archives .df-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
#df-archives .df-grid.df-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#df-archives .df-card {
  border: 2px solid #cfcfcf;
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
#df-archives .df-card > img,
#df-archives .df-card img {
  display: block;
  width: 100%;
  height: auto;
}
#df-archives .df-card > img { background: #101820; }
#df-archives .df-card-body { padding: 14px 16px 16px; }
#df-archives .df-card h3 { margin: 0 0 6px; }
#df-archives .df-card p { margin: 0; line-height: 1.55; }

#df-archives .df-label {
  color: var(--df-blue);
  display: inline-block;
  background: #f8eeee;
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 8px;
}
#df-archives .df-label.green { color: var(--df-green); background: #f8eeee; }
#df-archives .df-label.red { color: #ff0000; background: #f8eeee; }

#df-archives .df-download-link {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 11px;
  background: var(--df-blue);
  text-decoration: none;
  border-radius: 2px;
  color: #f8eeee
}
#df-archives .df-download-link:hover { background: #444444; text-decoration: none; }

#df-archives .df-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr);
  background: #dddddd;
  border: 2px solid #cfcfcf;
  margin: 20px 0;
}
#df-archives .df-feature img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#df-archives .df-feature-copy { padding: 22px; align-self: center; }
#df-archives .df-feature-copy h3 { margin: 0 0 10px; }
#df-archives .df-feature-copy p { margin: 0; line-height: 1.7; }

#df-archives .df-timeline {
  border-left: 3px solid var(--df-blue);
  margin: 24px 0 0 8px;
  padding-left: 22px;
}
#df-archives .df-timeline-item { position: relative; margin: 0 0 22px; }
#df-archives .df-timeline-item:before {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--df-blue);
  left: -29px;
  top: 6px;
}
#df-archives .df-timeline-item h3 { margin: 0 0 5px; }
#df-archives .df-timeline-item p { margin: 0; }

#df-archives .df-note {
  border-left: 4px solid var(--df-green);
  background: #f5f7f1;
  padding: 16px 20px;
  margin: 25px 0;
}
#df-archives .df-note p { margin: 0; }

#df-archives .df-end {
  background: #dddddd;
  padding: 24px;
  margin-top: 40px;
}
#df-archives .df-end h2 { margin: 0 0 8px; }
#df-archives .df-end p { margin: 0; }

#df-archives .df-story > p { line-height: 1.75; margin: 0 0 14px; }
#df-archives .df-story h3 { margin: 25px 0 9px; }

#df-archives .df-download-cta {
  text-align: center;
  background: #dddddd;
  padding: clamp(25px, 5vw, 44px);
  margin: 42px 0 0;
  border-top: 4px solid var(--df-blue);
}
#df-archives .df-download-cta h2 { margin: 0 0 10px; }
#df-archives .df-download-cta p {
  max-width: 720px;
  margin: 0 auto 8px;
  line-height: 1.7;
}
#df-archives .df-download-cta .df-download-link {
  margin-top: 14px;
  padding: 10px 18px;
}

@media (max-width: 700px) {
  #df-archives .df-grid,
  #df-archives .df-grid.df-three { grid-template-columns: 1fr; }
  #df-archives .df-feature { grid-template-columns: 1fr; }
  #df-archives .df-hero { padding: 25px 20px; }
}

/* jDownloads */

/* categori info .bg-body-secondary */

.bg-body-secondary {
    border: 1px solid #0077bb !important;
}
.card {
    --t4-border-color: #ffffff;
}

/* END .bg-body-secondary */

/*  jDownloads - Blue buttons */

a.jdbutton.jblue,
.jdbutton.jblue {
    background: #0077bb !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 1px solid #00a1ff !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    text-shadow: none !important;
    box-shadow: 0 2px 5px rgba(136,136,136,0.75) !important;
    transition: all 0.25s ease !important;
}

a.jdbutton.jblue:hover,
.jdbutton.jblue:hover {
    background: #00a1ff !important;
    background-image: none !important;
    border-color: #0077bb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(136,136,136,0.75) !important;
}

a.jdbutton.jblue:active,
.jdbutton.jblue:active {
    background: #0077bb !important;
    top: 1px;
}
/* jDownloads Button icon spacing */

.jdbutton [class*="icon-"] {
    margin-right: 5px;
}

/* END jDownloads Button icon spacing */

/*  END jDownloads - Blue buttons */

/* Search Feald */

.form-control {
    border: 1px solid #0077bb;
}

/* END Search Feald */

/* Category Stying */ 

.subcategories-section .card-title {
    font-size: 18px;
}

/* End Category Stying */ 

/* END jDownloads */

/* Keep lightbox popup above the sticky header */
#workModal {
  z-index: 99999 !important;
}
.modal-backdrop {
  z-index: 99998 !important;
}

/* Force full uncropped image centered inside the popup */
#workModal {
  z-index: 99999 !important;
}
.modal-backdrop {
  z-index: 99998 !important;
}
#workModal .modal-dialog {
  max-width: 95vw !important;
  width: auto !important;
  margin: 1rem auto !important;
}
#workModal .modal-body {
  padding: 0 !important;
  overflow: visible !important;
}
#workModal img {
  max-width: 92vw !important;
  max-height: 88vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}
.btn-close {
  filter: none;
}

.gallery-box {
  border: 1px solid #0077bb;
  border-radius: 5px;
  padding: 5px;
  margin: 5px;
}
/* END Keep lightbox popup above the sticky header */