/* Shared floating navigation: retain document flow while the card sticks to the top. */
#lc-header{--sibolla-nav-gap:24px;--sibolla-nav-admin:0px;position:sticky;top:calc(var(--sibolla-nav-admin) - var(--sibolla-nav-gap));z-index:1035;padding:var(--sibolla-nav-gap) 24px;background:transparent;isolation:isolate}
body.admin-bar #lc-header{--sibolla-nav-admin:32px}
#lc-header .sibolla-floating-header{max-width:1440px;margin:0 auto;background:#fff;border:1px solid #e4e6e8;border-radius:14px;box-shadow:0 12px 36px rgba(25,42,61,.12);overflow:visible}
#lc-header .sibolla-floating-header .sibolla-mega{border-radius:10px;max-height:calc(100dvh - 150px - var(--sibolla-nav-admin));overflow-y:auto;overscroll-behavior:contain}
html:has(#lc-header .sibolla-floating-header){scroll-padding-top:112px}
html:has(body.admin-bar #lc-header .sibolla-floating-header){scroll-padding-top:144px}
@media(max-width:991px){
 #lc-header{--sibolla-nav-gap:12px;padding-left:12px;padding-right:12px}
 #lc-header .sibolla-floating-header{border-radius:12px}
 #lc-header .sibolla-floating-header .navbar-collapse{max-height:calc(100dvh - 132px - var(--sibolla-nav-admin));overflow-y:auto;overscroll-behavior:contain}
 #lc-header .sibolla-floating-header .sibolla-mega{max-height:none;overflow:visible}
 html:has(#lc-header .sibolla-floating-header){scroll-padding-top:96px}
 html:has(body.admin-bar #lc-header .sibolla-floating-header){scroll-padding-top:128px}
}
@media(max-width:782px){body.admin-bar #lc-header{--sibolla-nav-admin:46px}html:has(body.admin-bar #lc-header .sibolla-floating-header){scroll-padding-top:142px}}
@media(max-width:600px){body.admin-bar #lc-header{--sibolla-nav-admin:0px}html:has(body.admin-bar #lc-header .sibolla-floating-header){scroll-padding-top:96px}}
@media(max-width:575px){#lc-header .sibolla-floating-header>.container{padding-left:16px;padding-right:16px}}

/* On pages beginning with a Hero, let its background start at the page top. */
body:has(>#theme-main>:is(.sibolla-hero,.sibolla-contact-project-hero,.sibolla-catalog-hero,.sibolla-wh-hero,.sibolla-editorial-hero,.sibolla-about-hero,.sibolla-author-hero):first-child) #lc-header{height:0;padding-top:0;padding-bottom:0}
body:has(>#theme-main>:is(.sibolla-hero,.sibolla-contact-project-hero,.sibolla-catalog-hero,.sibolla-wh-hero,.sibolla-editorial-hero,.sibolla-about-hero,.sibolla-author-hero):first-child) #lc-header .sibolla-floating-header{top:var(--sibolla-nav-gap)}
#theme-main>.sibolla-hero:first-child{padding-top:225px;min-height:761px}
#theme-main>.sibolla-contact-project-hero:first-child{padding-top:205px}
#theme-main>.sibolla-catalog-hero:first-child{padding-top:251px;min-height:651px}
@media(max-width:991px){
 #theme-main>.sibolla-hero:first-child{padding-top:194px;min-height:670px}
 #theme-main>.sibolla-contact-project-hero:first-child{padding-top:158px}
 #theme-main>.sibolla-catalog-hero:first-child{padding-top:220px;min-height:620px}
}
@media(max-width:767px){#theme-main>.sibolla-catalog-hero:first-child{padding-top:178px;min-height:540px}}
@media(max-width:575px){
 #theme-main>.sibolla-hero:first-child{padding-top:160px;min-height:642px}
 #theme-main>.sibolla-contact-project-hero:first-child{padding-top:150px}
 #theme-main>.sibolla-catalog-hero:first-child{padding-top:170px;min-height:532px}
}

/* Other first-screen Heroes use the same overlay and retain safe content spacing. */
#theme-main>.sibolla-editorial-hero:first-child{padding-top:221px}
#theme-main>.sibolla-author-hero:first-child{padding-top:229px}
#theme-main>.sibolla-about-hero:first-child{padding-top:241px;min-height:631px}
/* Keep the whole-house picture and gradient in the grid, covering its added top space. */
#theme-main>.sibolla-wh-hero:first-child .wh-hero-grid{padding-top:141px;min-height:791px}
@media(max-width:991px){
 #theme-main>.sibolla-editorial-hero:first-child{padding-top:190px}
 #theme-main>.sibolla-author-hero:first-child{padding-top:198px}
 #theme-main>.sibolla-about-hero:first-child{padding-top:210px;min-height:600px}
 #theme-main>.sibolla-wh-hero:first-child .wh-hero-grid{padding-top:110px;min-height:760px}
}
@media(max-width:767px){
 #theme-main>.sibolla-wh-hero:first-child .wh-hero-grid{min-height:730px}
}
@media(max-width:575px){
 #theme-main>.sibolla-editorial-hero:first-child{padding-top:150px}
 #theme-main>.sibolla-author-hero:first-child{padding-top:154px}
 #theme-main>.sibolla-about-hero:first-child{padding-top:170px;min-height:542px}
 #theme-main>.sibolla-wh-hero:first-child .wh-hero-grid{padding-top:102px;min-height:722px}
}

/* Desktop menu thumbnails start early at low priority; mobile uses the inline fallback. */
#lc-header .sibolla-menu-picture{display:block}
@media(max-width:991px){#lc-header .sibolla-menu-picture{display:none}}
