/* N17: left aligned process badge, single-line mobile brand and spacious galleries. */
.theme-nivamek .niv-hero-badge{right:auto;left:max(56px,calc(50% - 100px));bottom:38px;z-index:2;pointer-events:none}
.theme-nivamek .mini-gallery>h2{margin:0 0 24px;line-height:1.35}
.theme-nivamek .mini-gallery-grid{gap:16px}
.theme-nivamek .niv-reference-detail .mini-gallery{margin-top:48px;margin-bottom:40px}
.gallery-lightbox{width:min(1120px,calc(100vw - 32px));height:calc(100dvh - 32px);max-width:none;max-height:none;margin:auto;padding:20px;border-radius:24px;overflow:hidden;background:linear-gradient(145deg,#13243a,#0b111c);box-shadow:0 30px 100px #0008}
.gallery-lightbox[open]{display:grid;grid-template-rows:48px minmax(0,1fr) 48px;gap:12px}
.gallery-lightbox-bar{min-width:0}.gallery-lightbox-bar [data-count]{font-size:14px;letter-spacing:2px;font-weight:700;color:#b6cce6}
.gallery-lightbox figure{min-height:0;min-width:0;margin:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;overflow:hidden}
.gallery-lightbox figure img{width:100%;height:100%;min-height:0;object-fit:contain;border-radius:12px;display:block;touch-action:pan-y}
.gallery-lightbox figcaption{padding:0 16px;line-height:1.5;font-size:14px;max-height:3em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#d8e6f6}
.gallery-lightbox button{padding:10px 18px;min-height:44px;transition:background .2s,border-color .2s}.gallery-lightbox button:hover{background:#1688ee35;border-color:#75b8ff}.gallery-lightbox-nav{align-items:center}.gallery-lightbox-nav button{min-width:120px}.gallery-lightbox [hidden]{display:none!important}
html.gallery-open{overflow:hidden}
@media(max-width:700px){
.theme-nivamek .niv-header .niv-brand{gap:7px;min-width:0;flex:1;width:auto;max-width:340px}
.theme-nivamek .niv-header .niv-brand-descriptor{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;font-size:clamp(5.8px,1.75vw,9px);letter-spacing:0;line-height:1.35}
.theme-nivamek .niv-header .niv-brand-descriptor>span{padding-inline:4px;border-left:1px solid #3c7ec9;grid-column:auto}
.theme-nivamek .niv-header .niv-brand-descriptor>span:first-child{border-left:0;padding-left:0}
.theme-nivamek .niv-nav{gap:12px}
.theme-nivamek .niv-hero-badge{left:24px;right:auto;bottom:90px;font-size:12px;padding:10px 14px}
.gallery-lightbox{width:calc(100vw - 16px);height:calc(100dvh - 16px);padding:12px;border-radius:18px}
.gallery-lightbox[open]{grid-template-rows:44px minmax(0,1fr) 44px;gap:10px}.gallery-lightbox figcaption{font-size:12px;padding:0 4px}.gallery-lightbox button{font-size:14px;padding:9px 13px}
}
