/* Match the reference site's 1240px frame while retaining mobile gutters. */
body.decibel.page #main .content-wrapper{
    width:calc(100% - 32px);
    max-width:1240px;
    margin-left:auto;
    margin-right:auto;
}
/* Some theme page templates also constrain the entire Elementor document. */
body.decibel.page #main .page-entry-content > .elementor{
    width:100%;
    max-width:none;
    margin-left:0;
    margin-right:0;
}
/* Remove Elementor's second, narrower cap; keep nested section layouts intact. */
body.decibel.page #main .elementor-section.elementor-top-section.elementor-section-boxed > .elementor-container{
    max-width:1240px;
    width:100%;
}
/* Keep the desktop navigation aligned with the wider content. */
body.decibel.page.menu-width-boxed #nav-bar > .flex-wrap{
    max-width:1240px;
}
/* The front-page logo stays balanced above the wider, uncropped photographs. */
body.decibel.home .elementor-element-18d3d71 img{
    max-width:900px;
    width:100%;
    height:auto;
}
/* Photographs fill their slides and retain the complete original image. */
body.decibel.home .elementor-element-4836a26 .swiper-slide-image{
    display:block;
    width:100%;
    height:auto;
}

/* Keep the front page comfortable on phones, including a phone held sideways. */
@media (max-width:767px), (max-width:1024px) and (max-height:600px) and (orientation:landscape){
 body.decibel.home.page #main .content-wrapper{width:calc(100% - 24px);padding-top:18px;padding-bottom:28px}
 body.decibel.home #main .elementor-element-msdmztw>.elementor-container{flex-direction:column;gap:24px}
 body.decibel.home #main .elementor-element-1pwwhk3,body.decibel.home #main .elementor-element-fcowyvz{width:100%;min-width:0}
 body.decibel.home #main .elementor-element-9205363>.elementor-widget-wrap,
 body.decibel.home #main .elementor-element-1pwwhk3>.elementor-widget-wrap,
 body.decibel.home #main .elementor-element-fcowyvz>.elementor-widget-wrap{padding:0;row-gap:20px}
 body.decibel.home #main .elementor-element-18d3d71{margin-bottom:0}
 body.decibel.home #main .elementor-element-e96c8c7{margin-bottom:20px}
 body.decibel.home #main .elementor-element-1pwwhk3>.elementor-widget-wrap>.elementor-widget,
 body.decibel.home #main .elementor-element-fcowyvz>.elementor-widget-wrap>.elementor-widget{margin-bottom:0}
 /* Elementor's old white frame needlessly narrows the tour card on a phone. */
 body.decibel.home #main .elementor-element-76d7279>.elementor-widget-container{margin:0;padding:0;border:0;border-radius:0;background:transparent}
 body.decibel.home #main .elementor-element-3271f92 .elementor-divider,
 body.decibel.home #main .elementor-element-431ce34 .elementor-divider{padding-top:8px;padding-bottom:8px}
 body.decibel.home #main .elementor-element-ba29335>.elementor-widget-wrap{padding:20px 0 0}
 body.decibel.page #mobile-navigation .hamburger-container,
 body.decibel.page #mobile-navigation .hamburger-link{width:100px}
 body.decibel.page #mobile-navigation .hamburger-link::before{content:"Meny";position:absolute;right:45px;top:50%;transform:translateY(-50%);color:#fff8ee;font:700 12px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.2px}
 body.decibel.page #mobile-navigation .hamburger-icon{position:absolute;right:20px;left:auto;top:50%;margin:0;transform:translateY(-50%)}
}

/* In landscape, share the short screen between the logo and the photograph. */
@media (max-width:1024px) and (max-height:600px) and (orientation:landscape){
 body.decibel.home #main .elementor-element-9205363>.elementor-widget-wrap{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;gap:20px}
 body.decibel.home #main .elementor-element-18d3d71,
 body.decibel.home #main .elementor-element-4836a26{min-width:0;width:100%;align-self:center}
}

/* Bring desktop submenu links closer to the main navigation. */
body.decibel.page #desktop-navigation .nav-menu-desktop>li.mega-menu:not(.mega-menu-has-tagline)>.mega-menu-panel{padding-top:0!important;padding-bottom:8px!important;margin-top:var(--ap-submenu-lift,-12px)!important;z-index:100000!important}
body.decibel.page #desktop-navigation .nav-menu-desktop>li.mega-menu:not(.mega-menu-has-tagline)>.mega-menu-panel>.mega-menu-panel-inner{padding-top:0!important;padding-bottom:4px!important}
body.decibel.page #desktop-navigation .nav-menu-desktop>li:not(.mega-menu)>ul.sub-menu{padding-top:0!important;padding-bottom:6px!important;margin-top:var(--ap-submenu-lift,-12px)!important;z-index:100000!important}

/* Use the links' own widths instead of spreading three links across four columns. */
body.decibel.page #desktop-navigation .nav-menu-desktop>li.mega-menu:not(.mega-menu-has-tagline)>.mega-menu-panel>.mega-menu-panel-inner>ul.sub-menu{justify-content:center;align-items:center;gap:4px 24px}
body.decibel.page #desktop-navigation .nav-menu-desktop>li.mega-menu:not(.mega-menu-has-tagline)>.mega-menu-panel>.mega-menu-panel-inner>ul.sub-menu>li{flex:0 1 auto;width:auto!important;max-width:100%;padding:0!important;border:0}
body.decibel.page #desktop-navigation .nav-menu-desktop>li.mega-menu:not(.mega-menu-has-tagline)>.mega-menu-panel>.mega-menu-panel-inner>ul.sub-menu>li>a{width:auto!important;min-width:0}

/* Reduce the front-page spacing and hide only the logo image's empty black edges. */
body.decibel.home.page #main .content-wrapper{padding-top:12px}
body.decibel.home #main .elementor-element-9205363>.elementor-widget-wrap{row-gap:12px}
body.decibel.home #main .elementor-element-18d3d71{margin-bottom:0}
body.decibel.home #main .elementor-element-18d3d71>.elementor-widget-container:has(img[src*="ce4af0b9-7bbe-411e-99ba-a4ed95cac799"]){position:relative;width:100%;max-width:900px;height:auto;aspect-ratio:1200/260;overflow:hidden;margin-left:auto;margin-right:auto}
body.decibel.home #main .elementor-element-18d3d71 img[src*="ce4af0b9-7bbe-411e-99ba-a4ed95cac799"]{position:absolute;left:0;top:-21.153846%;display:block;width:100%;max-width:none;height:auto}
