
.theme-custom .bom-gallery-link{background:color-mix(in srgb,var(--bom-custom-accent,#2f6f5e) 8%, #ffffff);border-color:var(--bom-custom-accent,#2f6f5e)}
.theme-custom .bom-gallery-item__plain-title{color:var(--bom-custom-accent,#2f6f5e)}
.theme-custom.shadow-outline .bom-gallery-link{--bom-drop-shadow:0 0 0 1px color-mix(in srgb,var(--bom-custom-accent,#2f6f5e) 55%, transparent)}
.caption-align-left .bom-gallery-caption,.caption-align-left .bom-gallery--slider .bom-gallery-item--thumb .bom-gallery-caption{text-align:left;align-items:flex-start}
.caption-align-center .bom-gallery-caption,.caption-align-center .bom-gallery--slider .bom-gallery-item--thumb .bom-gallery-caption{text-align:center;align-items:center}
.caption-align-right .bom-gallery-caption,.caption-align-right .bom-gallery--slider .bom-gallery-item--thumb .bom-gallery-caption{text-align:right;align-items:flex-end}
.caption-align-justify .bom-gallery-caption,.caption-align-justify .bom-gallery--slider .bom-gallery-item--thumb .bom-gallery-caption{text-align:justify;align-items:stretch}
.bom-gallery-paging{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:16px;flex-wrap:wrap}.bom-gallery-paging__btn,.bom-gallery-paging__dot{border:1px solid rgba(148,163,184,.28);background:#fff;color:#0f172a;border-radius:999px;padding:8px 12px;cursor:pointer}.bom-gallery-paging__dot{width:12px;height:12px;padding:0;border-radius:999px}.bom-gallery-paging__btn.is-active,.bom-gallery-paging__dot.is-active{background:var(--bom-custom-accent,#2f6f5e);border-color:var(--bom-custom-accent,#2f6f5e);color:#fff}.bom-gallery-paging__load{border-radius:999px;padding:10px 16px}.bom-gallery-page-hidden{display:none!important}
.bom-gallery-track[data-page-transition="fade"].bom-gallery-paging-is-transitioning{opacity:.18;transform:translateY(8px);transition:opacity .22s ease,transform .22s ease}.bom-gallery-track[data-page-transition="slide"].bom-gallery-paging-is-transitioning{opacity:.12;transform:translateX(20px);transition:opacity .24s ease,transform .24s ease}.bom-gallery-track.bom-gallery-paging-is-visible{opacity:1;transform:none;transition:opacity .26s ease,transform .26s ease}
.bom-gallery-watermark-picker__preview{min-height:72px;padding:10px;border:1px dashed #cbd5e1;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#fff}.bom-gallery-watermark-picker__preview img{max-width:100%;max-height:120px;display:block}.bom-gallery-watermark-picker__actions{margin-top:8px;display:flex;gap:10px;align-items:center}

.bom-gallery{position:relative}.bom-gallery-track{display:grid;grid-template-columns:repeat(var(--bom-gallery-columns,3),minmax(0,1fr));gap:var(--bom-gallery-gap,10px);align-items:start}.bom-gallery-link{position:relative;display:block;overflow:hidden;border-radius:20px;background:#fff;border:var(--bom-border-width,1px) solid rgba(148,163,184,.25);box-shadow:var(--bom-drop-shadow,0 12px 32px rgba(15,23,42,.08)),var(--bom-inner-shadow,none);transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease}.bom-gallery-link img{display:block;width:100%;height:var(--bom-thumb-height,230px);object-fit:cover;object-position:center center;transition:transform .28s ease,filter .28s ease,opacity .28s ease}.bom-gallery-item:hover .bom-gallery-link img{transform:scale(1.03)}
.bom-gallery-caption{position:absolute;left:0;right:0;bottom:0;padding:16px;background:linear-gradient(180deg,transparent,rgba(15,23,42,.78));color:#fff;display:flex;flex-direction:column;gap:4px}.bom-gallery-caption.is-hover{opacity:0;transform:translateY(10px);transition:.2s}.bom-gallery-item:hover .bom-gallery-caption.is-hover{opacity:1;transform:none}.bom-gallery-caption.is-always,.bom-gallery-caption.is-overlay{opacity:1}.bom-gallery-caption.is-overlay{top:auto}
.bom-gallery-track--justified{display:flex;flex-wrap:wrap;gap:var(--bom-gallery-gap,10px);align-items:flex-start}.bom-gallery-track--justified .bom-gallery-item{flex:0 0 auto;margin:0}.bom-gallery--justified .bom-gallery-link{height:100%}.bom-gallery--justified .bom-gallery-link img{display:block;width:100%;height:100%;object-fit:cover}
.bom-gallery--masonry .bom-gallery-track{column-count:var(--bom-gallery-columns,3);column-gap:var(--bom-gallery-gap,10px);display:block}.bom-gallery--masonry .bom-gallery-item{break-inside:avoid;margin-bottom:var(--bom-gallery-gap,10px)}

.bom-gallery--portfolio{padding:18px 0 6px}
.bom-gallery-track--portfolio{position:relative;display:block;min-height:min(72vw,760px);padding:18px;perspective:1600px}
.bom-gallery-track--portfolio{position:relative;min-height:clamp(560px,82vw,980px);padding:34px 40px 42px;overflow:hidden;isolation:isolate}
.bom-gallery-item--portfolio{position:absolute;left:50%;top:50%;display:flex;align-items:center;justify-content:center;pointer-events:none;will-change:transform,width,height;transform-origin:center center}
.bom-gallery-item--portfolio .bom-gallery-link{position:relative;display:block;width:100%;height:100%;max-width:none;aspect-ratio:auto;border-radius:20px;overflow:hidden;pointer-events:auto;transform-origin:center center;transition:transform .3s ease,box-shadow .3s ease,border-color .22s ease,filter .22s ease,opacity .22s ease;cursor:pointer;background:#fff;border:var(--bom-border-width,1px) solid rgba(15,23,42,.12);box-shadow:0 16px 34px rgba(15,23,42,.14),var(--bom-inner-shadow,none)}
.bom-gallery-item--portfolio .bom-gallery-link img{width:100%;height:100%;display:block;object-fit:cover;background:#f8fafc}
.bom-gallery-item--portfolio .bom-gallery-link:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.02) 28%,rgba(0,0,0,.02) 66%,rgba(0,0,0,.42));opacity:.72;transition:opacity .22s ease}
.bom-gallery-item--portfolio.is-active{z-index:60}
.bom-gallery-item--portfolio.is-active .bom-gallery-link{box-shadow:0 28px 64px rgba(15,23,42,.26),var(--bom-inner-shadow,none);border-color:color-mix(in srgb,var(--bom-custom-accent,#2f6f5e) 32%, rgba(15,23,42,.1))}
.bom-gallery-item--portfolio:not(.is-active) .bom-gallery-link{filter:saturate(.98) brightness(.99)}
.bom-gallery-item--portfolio:not(.is-active):hover .bom-gallery-link{box-shadow:0 18px 42px rgba(15,23,42,.18),var(--bom-inner-shadow,none);border-color:rgba(15,23,42,.18)}
.bom-gallery-item--portfolio .bom-gallery-caption--portfolio{top:0;bottom:0;padding:0;background:none;z-index:3;pointer-events:none}
.bom-gallery-item--portfolio .bom-gallery-caption__top,.bom-gallery-item--portfolio .bom-gallery-caption__bottom{position:absolute;left:0;right:0;padding:10px 14px;border-radius:0;background:rgba(0,0,0,.35);color:#fff;backdrop-filter:none;box-shadow:none;opacity:0;transform:translateY(8px);transition:opacity .22s ease,transform .22s ease;max-width:none}
.bom-gallery-item--portfolio .bom-gallery-caption__top{top:0;font-weight:700}
.bom-gallery-item--portfolio .bom-gallery-caption__bottom{bottom:0;font-size:14px;line-height:1.45}
.bom-gallery-item--portfolio.is-active .bom-gallery-caption__top,.bom-gallery-item--portfolio.is-active .bom-gallery-caption__bottom{opacity:1;transform:none}
.bom-gallery-item--portfolio .bom-gallery-caption__top:empty,.bom-gallery-item--portfolio .bom-gallery-caption__bottom:empty{display:none}
.bom-gallery-portfolio-plus{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:64px;border-radius:999px;border:1px solid rgba(255,255,255,.44);background:rgba(15,23,42,.84);color:#fff;font-size:36px;line-height:1;display:grid;place-items:center;z-index:4;opacity:0;pointer-events:none;transition:opacity .22s ease,transform .22s ease,background-color .18s ease,box-shadow .18s ease}
.bom-gallery-item--portfolio.is-active .bom-gallery-portfolio-plus{opacity:1;pointer-events:auto}
.bom-gallery-portfolio-plus:hover,.bom-gallery-portfolio-plus:focus-visible{background:var(--bom-custom-accent,#2f6f5e);box-shadow:0 16px 32px rgba(15,23,42,.22);transform:translate(-50%,-50%) scale(1.05)}
@media(max-width:900px){.bom-gallery-track--portfolio{min-height:clamp(460px,96vw,760px);padding:12px}.bom-gallery-item--portfolio .bom-gallery-caption__top,.bom-gallery-item--portfolio .bom-gallery-caption__bottom{left:0;right:0;max-width:none}.bom-gallery-portfolio-plus{width:58px;height:58px;font-size:34px}}

.bom-gallery-item--polaroid{padding:10px;background:#fff;border-radius:10px;box-shadow:0 8px 24px rgba(15,23,42,.08);transform:rotate(-1.5deg)}.bom-gallery-track--polaroid .bom-gallery-item:nth-child(2n){transform:rotate(1.2deg)}.bom-gallery-item__plain-title{padding:10px 6px 2px;text-align:center;font-weight:600;color:#334155}
.bom-gallery-track--carousel{display:flex;gap:18px;overflow-x:auto;padding:8px 60px;scroll-snap-type:x mandatory}.bom-gallery-item--carousel{min-width:min(300px,74vw);scroll-snap-align:center}.bom-gallery-item--carousel .bom-gallery-link{border-radius:24px}.bom-gallery-carousel-plus{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:56px;height:56px;border-radius:999px;display:grid;place-items:center;background:rgba(255,255,255,.86);color:#0f172a;font-size:34px;font-weight:300;box-shadow:0 12px 32px rgba(15,23,42,.18)}
.bom-gallery-nav{position:absolute;top:50%;transform:translateY(-50%);width:56px;height:56px;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:rgba(15,23,42,.78);color:#fff;cursor:pointer;z-index:2;font-size:28px;font-weight:700;line-height:1;box-shadow:0 12px 28px rgba(15,23,42,.24);transition:transform .18s ease,background .18s ease,box-shadow .18s ease,border-color .18s ease}.bom-gallery-nav:hover,.bom-gallery-nav:focus{transform:translateY(-50%) scale(1.08);background:rgba(15,23,42,.92);border-color:rgba(255,255,255,.42);box-shadow:0 18px 34px rgba(15,23,42,.34)}.bom-gallery-nav--prev{left:8px}.bom-gallery-nav--next{right:8px}
.bom-gallery-stage-shell,.bom-gallery-gridpro__viewer{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center}.bom-gallery-stage,.bom-gallery-gridpro{min-width:0}.bom-gallery-item--stage .bom-gallery-link{background:#f8fafc}.bom-gallery-item--stage .bom-gallery-link img{width:100%;height:min(58vw,620px);max-height:620px;object-fit:contain;object-position:center center;image-rendering:auto}.bom-gallery-stage-shell .bom-gallery-nav,.bom-gallery-gridpro__viewer .bom-gallery-nav{position:static;transform:none}.bom-gallery-stage-shell .bom-gallery-nav:hover,.bom-gallery-gridpro__viewer .bom-gallery-nav:hover,.bom-gallery-stage-shell .bom-gallery-nav:focus,.bom-gallery-gridpro__viewer .bom-gallery-nav:focus{transform:scale(1.08)}.bom-gallery-track--thumbs,.bom-gallery-track--product-thumbs,.bom-gallery-track--spotlight,.bom-gallery-track--gridpro{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:12px;margin-top:14px}.bom-gallery-item--thumb .bom-gallery-link img{height:110px}.bom-gallery-item--thumb.is-active .bom-gallery-link{outline:3px solid rgba(47,111,94,.38);outline-offset:2px}.bom-gallery--slider .bom-gallery-item--thumb .bom-gallery-caption{position:static;background:#fff;color:#334155;padding:10px}.bom-gallery--spotlight .bom-gallery-stage-shell .bom-gallery-nav{display:none}.bom-gallery-track--spotlight .bom-gallery-item--thumb .bom-gallery-link{border-radius:18px}.bom-gallery-gridpro__viewer{margin-bottom:16px}.bom-gallery-gridpro .bom-gallery-item--stage .bom-gallery-link{border-radius:24px}.bom-gallery-single-thumbnail__meta{display:flex;justify-content:center;gap:12px;align-items:center;margin-top:14px}.bom-gallery-open-all{border:0;border-radius:999px;background:#2f6f5e;color:#fff;padding:11px 16px}
.theme-dark .bom-gallery-link{background:#0f172a;border-color:rgba(255,255,255,.08)}.theme-dark .bom-gallery-item__plain-title{color:#e2e8f0}
.border-none .bom-gallery-link{--bom-border-width:0}.border-thin .bom-gallery-link{--bom-border-width:1px}.border-medium .bom-gallery-link{--bom-border-width:2px}.border-thick .bom-gallery-link{--bom-border-width:4px}
.shadow-none .bom-gallery-link{--bom-drop-shadow:none}.shadow-outline .bom-gallery-link{--bom-drop-shadow:0 0 0 1px rgba(148,163,184,.28)}.shadow-small .bom-gallery-link{--bom-drop-shadow:0 8px 20px rgba(15,23,42,.08)}.shadow-medium .bom-gallery-link{--bom-drop-shadow:0 14px 34px rgba(15,23,42,.12)}.shadow-large .bom-gallery-link{--bom-drop-shadow:0 18px 48px rgba(15,23,42,.16)}
.inner-shadow-none .bom-gallery-link{--bom-inner-shadow:none}.inner-shadow-outline .bom-gallery-link{--bom-inner-shadow:inset 0 0 0 1px rgba(15,23,42,.14)}.inner-shadow-small .bom-gallery-link{--bom-inner-shadow:inset 0 8px 18px rgba(15,23,42,.08)}.inner-shadow-medium .bom-gallery-link{--bom-inner-shadow:inset 0 12px 28px rgba(15,23,42,.12)}.inner-shadow-large .bom-gallery-link{--bom-inner-shadow:inset 0 18px 44px rgba(15,23,42,.18)}
.loaded-none .bom-gallery-item{opacity:1;transform:none}.loaded-fade_in .bom-gallery-item,.loaded-slide_up .bom-gallery-item,.loaded-slide_down .bom-gallery-item,.loaded-slide_left .bom-gallery-item,.loaded-slide_right .bom-gallery-item,.loaded-scale_up .bom-gallery-item,.loaded-swing_down .bom-gallery-item,.loaded-drop .bom-gallery-item,.loaded-fly .bom-gallery-item,.loaded-flip .bom-gallery-item{opacity:0;transition:opacity .42s ease,transform .42s ease;will-change:transform,opacity}.loaded-fade_in .bom-gallery-item.is-loaded{opacity:1}.loaded-slide_up .bom-gallery-item{transform:translateY(18px)}.loaded-slide_down .bom-gallery-item{transform:translateY(-18px)}.loaded-slide_left .bom-gallery-item{transform:translateX(18px)}.loaded-slide_right .bom-gallery-item{transform:translateX(-18px)}.loaded-scale_up .bom-gallery-item{transform:scale(.94)}.loaded-swing_down .bom-gallery-item{transform-origin:top center;transform:rotateX(-16deg) translateY(-8px)}.loaded-drop .bom-gallery-item{transform:translateY(-26px) scale(.97)}.loaded-fly .bom-gallery-item{transform:translateX(28px) translateY(-14px) scale(.95)}.loaded-flip .bom-gallery-item{transform:rotateY(-18deg) scale(.98)}.loaded-slide_up .bom-gallery-item.is-loaded,.loaded-slide_down .bom-gallery-item.is-loaded,.loaded-slide_left .bom-gallery-item.is-loaded,.loaded-slide_right .bom-gallery-item.is-loaded,.loaded-scale_up .bom-gallery-item.is-loaded,.loaded-swing_down .bom-gallery-item.is-loaded,.loaded-drop .bom-gallery-item.is-loaded,.loaded-fly .bom-gallery-item.is-loaded,.loaded-flip .bom-gallery-item.is-loaded{opacity:1;transform:none}
.bom-gallery-item.is-loaded .bom-gallery-link img{opacity:1}
.corners-none .bom-gallery-link{border-radius:0}.corners-small .bom-gallery-link{border-radius:10px}.corners-medium .bom-gallery-link{border-radius:18px}.corners-large .bom-gallery-link{border-radius:28px}.corners-full .bom-gallery-link{border-radius:999px}.hover-lift .bom-gallery-item:hover .bom-gallery-link{transform:translateY(-4px)}.hover-overlay .bom-gallery-item:hover img{filter:brightness(.84)}

.bom-gallery-lightbox{position:fixed;inset:0;background:rgba(15,23,42,.72);backdrop-filter:blur(10px);display:none;align-items:center;justify-content:center;padding:28px;z-index:99999}.bom-gallery-lightbox.is-open{display:flex}.bom-gallery-lightbox__dialog{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;max-width:96vw;max-height:94vh}.bom-gallery-lightbox__viewport{position:relative;display:flex;align-items:center;justify-content:center;max-width:96vw;max-height:84vh;overflow:visible}.bom-gallery-lightbox__frame{position:relative;display:flex;align-items:center;justify-content:center;max-width:96vw;max-height:84vh;padding:10px;background:#111827;border:10px solid var(--bom-box-accent,#fff);box-shadow:0 24px 80px rgba(0,0,0,.35)}.bom-gallery-lightbox__img{display:block;max-width:calc(96vw - 120px);max-height:calc(84vh - 80px);width:auto;height:auto;object-fit:contain;margin:0 auto}.bom-gallery-lightbox__btn{display:grid;place-items:center;border:0;cursor:pointer;transition:transform .18s ease,opacity .18s ease,background .18s ease}.bom-gallery-lightbox__btn:hover{transform:translateY(-1px) scale(1.08);background:rgba(255,255,255,.38);box-shadow:0 12px 30px rgba(0,0,0,.28)}.bom-gallery-lightbox__arrow:hover,.bom-gallery-lightbox__close:hover,.bom-gallery-lightbox__play:hover{filter:brightness(1.08)}.bom-gallery-lightbox__arrow span{transition:transform .18s ease}.bom-gallery-lightbox__arrow:hover span{transform:scale(1.12)}.bom-gallery-lightbox__chrome{display:flex;justify-content:space-between;align-items:center;width:100%;pointer-events:none}.bom-gallery-lightbox__chrome--top{position:absolute;top:0;left:0;right:0;bottom:0;z-index:6}.bom-gallery-lightbox__controls-left,.bom-gallery-lightbox__controls-right{display:flex;gap:10px;align-items:center;pointer-events:auto}.bom-gallery-lightbox__arrow,.bom-gallery-lightbox__close,.bom-gallery-lightbox__play{width:48px;height:48px;border-radius:999px;background:rgba(255,255,255,.18);color:#fff;font-size:22px}.bom-gallery-lightbox__arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:7}.bom-gallery-lightbox__arrow--prev{left:14px}.bom-gallery-lightbox__arrow--next{right:14px}.bom-gallery-lightbox__counter{color:#fff;font-size:13px;text-align:center}.bom-gallery-lightbox__thumbs{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;overflow:auto;max-width:min(95vw,960px);max-height:144px;padding-top:2px}.bom-gallery-lightbox__thumb{border:0;background:transparent;padding:0;opacity:.7}.bom-gallery-lightbox__thumb.is-active{opacity:1}.bom-gallery-lightbox__thumb img{width:62px;height:62px;object-fit:cover;border-radius:12px;border:2px solid rgba(255,255,255,.18)}.bom-gallery-lightbox__caption{position:absolute;left:0;right:0;bottom:0;padding:16px 18px;background:linear-gradient(180deg,transparent,rgba(0,0,0,.72));color:#fff;display:flex;flex-direction:column;gap:4px}.bom-gallery-lightbox[data-captions-hover="yes"] .bom-gallery-lightbox__caption{opacity:0;transition:opacity .18s ease}.bom-gallery-lightbox[data-captions-hover="yes"] .bom-gallery-lightbox__viewport:hover .bom-gallery-lightbox__caption{opacity:1}.bom-gallery-lightbox[data-captions-hidden="yes"] .bom-gallery-lightbox__caption{opacity:0}.bom-gallery-lightbox__social{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;max-width:95vw}.bom-gallery-lightbox__social[data-hpos="left"]{justify-content:flex-start}.bom-gallery-lightbox__social[data-hpos="right"]{justify-content:flex-end}.bom-gallery-lightbox__social[data-stack="yes"]{flex-direction:column}.bom-gallery-lightbox__social-link{width:38px;height:38px;border-radius:999px;background:rgba(255,255,255,.22);color:#fff;text-decoration:none;display:grid;place-items:center;box-shadow:0 8px 24px rgba(0,0,0,.18)}.bom-gallery-lightbox__social.is-hidden-initial{opacity:.68}.bom-gallery-lightbox__social.is-hover{opacity:0;transition:opacity .18s ease}.bom-gallery-lightbox__dialog:hover .bom-gallery-lightbox__social.is-hover{opacity:1}
.bom-gallery-lightbox[data-style="urban"] .bom-gallery-lightbox__frame{border-width:40px 10px 10px;border-color:var(--bom-box-accent,#fff);border-radius:0;background:#0f172a}.bom-gallery-lightbox[data-style="urban"] .bom-gallery-lightbox__chrome--top{top:0;left:0;right:0;height:40px;padding:0 10px}.bom-gallery-lightbox[data-style="urban"] .bom-gallery-lightbox__counter{margin-top:2px}.bom-gallery-lightbox[data-style="urban"] .bom-gallery-lightbox__arrow,.bom-gallery-lightbox[data-style="urban"] .bom-gallery-lightbox__close,.bom-gallery-lightbox[data-style="urban"] .bom-gallery-lightbox__play{background:rgba(15,23,42,.82);border:1px solid rgba(255,255,255,.16);position:static;transform:none}.bom-gallery-lightbox[data-style="urban"] .bom-gallery-lightbox__controls-left{display:flex}.bom-gallery-lightbox[data-style="urban"] .bom-gallery-lightbox__controls-right{display:flex}
.bom-gallery-lightbox[data-style="simple"] .bom-gallery-lightbox__frame{border:0;background:transparent;padding:0;box-shadow:none}.bom-gallery-lightbox[data-style="simple"] .bom-gallery-lightbox__chrome--top{position:absolute;inset:0;z-index:8;pointer-events:none}.bom-gallery-lightbox[data-style="simple"] .bom-gallery-lightbox__viewport{padding:0 64px}.bom-gallery-lightbox[data-style="simple"] .bom-gallery-lightbox__controls-left,.bom-gallery-lightbox[data-style="simple"] .bom-gallery-lightbox__controls-right{display:contents}.bom-gallery-lightbox[data-style="simple"] .bom-gallery-lightbox__arrow{background:rgba(255,255,255,.22)}.bom-gallery-lightbox[data-style="simple"] .bom-gallery-lightbox__arrow--prev{left:-58px}.bom-gallery-lightbox[data-style="simple"] .bom-gallery-lightbox__arrow--next{right:-58px}.bom-gallery-lightbox[data-style="simple"] .bom-gallery-lightbox__play{position:absolute;right:-56px;bottom:0;background:rgba(255,255,255,.22)}.bom-gallery-lightbox[data-style="simple"] .bom-gallery-lightbox__close{position:absolute;right:-56px;top:0;background:rgba(255,255,255,.22)}.bom-gallery-lightbox[data-style="simple"] .bom-gallery-lightbox__counter{color:#fff}.bom-gallery-lightbox[data-style="simple"] .bom-gallery-lightbox__caption{left:0;right:0;bottom:0}
.bom-gallery-lightbox[data-style="rounded"] .bom-gallery-lightbox__frame{border:5px solid var(--bom-box-accent,#fff);border-radius:28px;padding:0;background:#0f172a}.bom-gallery-lightbox[data-style="rounded"] .bom-gallery-lightbox__img{border-radius:22px}.bom-gallery-lightbox[data-style="rounded"] .bom-gallery-lightbox__chrome--top{position:absolute;inset:0;z-index:6;pointer-events:none}.bom-gallery-lightbox[data-style="rounded"] .bom-gallery-lightbox__arrow{background:rgba(255,255,255,.92);color:#111827;border-radius:14px}.bom-gallery-lightbox[data-style="rounded"] .bom-gallery-lightbox__arrow--prev{left:-18px}.bom-gallery-lightbox[data-style="rounded"] .bom-gallery-lightbox__arrow--next{right:-18px}.bom-gallery-lightbox[data-style="rounded"] .bom-gallery-lightbox__close{position:absolute;top:-6px;right:-6px;background:rgba(255,255,255,.96);color:#111827}.bom-gallery-lightbox[data-style="rounded"] .bom-gallery-lightbox__play{position:absolute;right:-6px;bottom:-6px;background:rgba(255,255,255,.96);color:#111827}.bom-gallery-lightbox[data-style="rounded"] .bom-gallery-lightbox__controls-left,.bom-gallery-lightbox[data-style="rounded"] .bom-gallery-lightbox__controls-right{display:contents}.bom-gallery-lightbox[data-style="rounded"] .bom-gallery-lightbox__counter{margin-top:4px}
.bom-gallery-lightbox[data-style="glass"] .bom-gallery-lightbox__frame{border:5px solid rgba(255,255,255,.42);background:rgba(255,255,255,.08);border-radius:20px;padding:0;overflow:hidden;backdrop-filter:blur(8px)}.bom-gallery-lightbox[data-style="glass"] .bom-gallery-lightbox__img{border-radius:16px}.bom-gallery-lightbox[data-style="glass"] .bom-gallery-lightbox__chrome--top{position:absolute;inset:0;display:block;z-index:6;pointer-events:none}.bom-gallery-lightbox[data-style="glass"] .bom-gallery-lightbox__controls-left,.bom-gallery-lightbox[data-style="glass"] .bom-gallery-lightbox__controls-right{display:contents}.bom-gallery-lightbox[data-style="glass"] .bom-gallery-lightbox__arrow,.bom-gallery-lightbox[data-style="glass"] .bom-gallery-lightbox__close,.bom-gallery-lightbox[data-style="glass"] .bom-gallery-lightbox__play{position:absolute;z-index:7;background:rgba(255,255,255,.2);backdrop-filter:blur(6px)}.bom-gallery-lightbox[data-style="glass"] .bom-gallery-lightbox__arrow--prev{left:16px}.bom-gallery-lightbox[data-style="glass"] .bom-gallery-lightbox__arrow--next{right:16px}.bom-gallery-lightbox[data-style="glass"] .bom-gallery-lightbox__close{top:16px;right:16px}.bom-gallery-lightbox[data-style="glass"] .bom-gallery-lightbox__play{right:16px;bottom:16px}.bom-gallery-lightbox[data-style="glass"] .bom-gallery-lightbox__counter{margin-top:4px}
.bom-gallery-lightbox .bom-gallery-lightbox__play.is-playing{font-size:18px}
.bom-gallery-lightbox[data-nav-mode="default"] .bom-gallery-lightbox__arrow{display:grid}
.bom-gallery-lightbox[data-nav-mode="sticky"] .bom-gallery-lightbox__arrow{position:fixed;top:50%}.bom-gallery-lightbox[data-nav-mode="sticky"] .bom-gallery-lightbox__arrow--prev{left:22px}.bom-gallery-lightbox[data-nav-mode="sticky"] .bom-gallery-lightbox__arrow--next{right:22px}
.bom-gallery-lightbox[data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow{position:fixed;top:0;bottom:0;height:100vh;width:72px;border-radius:0;background:rgba(0,0,0,.14);transform:none}.bom-gallery-lightbox[data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow--prev{left:0}.bom-gallery-lightbox[data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow--next{right:0}.bom-gallery-lightbox[data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow span{transform:translateY(50vh)}
.bom-gallery-lightbox[data-nav-mode="inside_hover"] .bom-gallery-lightbox__arrow{opacity:0}.bom-gallery-lightbox[data-nav-mode="inside_hover"] .bom-gallery-lightbox__viewport:hover .bom-gallery-lightbox__arrow{opacity:1}
.bom-gallery-lightbox[data-nav-mode="inside_hover"][data-style="simple"] .bom-gallery-lightbox__arrow--prev{left:18px}.bom-gallery-lightbox[data-nav-mode="inside_hover"][data-style="simple"] .bom-gallery-lightbox__arrow--next{right:18px}.bom-gallery-lightbox[data-nav-mode="inside_hover"][data-style="simple"] .bom-gallery-lightbox__arrow{position:absolute;top:50%;transform:translateY(-50%)}
.bom-gallery-lightbox[data-nav-mode="inside_hover"][data-style="rounded"] .bom-gallery-lightbox__arrow--prev{left:16px}.bom-gallery-lightbox[data-nav-mode="inside_hover"][data-style="rounded"] .bom-gallery-lightbox__arrow--next{right:16px}.bom-gallery-lightbox[data-nav-mode="inside_hover"][data-style="rounded"] .bom-gallery-lightbox__arrow{position:absolute;top:50%;transform:translateY(-50%)}
.bom-gallery-lightbox[data-nav-mode="inside_hover"][data-style="glass"] .bom-gallery-lightbox__arrow{position:absolute;top:50%;transform:translateY(-50%)}
.bom-gallery-lightbox[data-nav-mode="sticky"][data-style="urban"] .bom-gallery-lightbox__arrow,.bom-gallery-lightbox[data-nav-mode="full_height_sticky"][data-style="urban"] .bom-gallery-lightbox__arrow,.bom-gallery-lightbox[data-nav-mode="inside_hover"][data-style="urban"] .bom-gallery-lightbox__arrow{display:grid}

.bom-gallery-lightbox[data-style="simple"][data-nav-mode="default"] .bom-gallery-lightbox__arrow{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.22)}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="default"] .bom-gallery-lightbox__arrow--prev{left:-24px}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="default"] .bom-gallery-lightbox__arrow--next{right:-24px}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="default"] .bom-gallery-lightbox__close{position:absolute;top:0;right:0;background:rgba(255,255,255,.22)}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="default"] .bom-gallery-lightbox__play{position:absolute;right:0;bottom:0;background:rgba(255,255,255,.22)}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="sticky"] .bom-gallery-lightbox__close{position:fixed;top:22px;right:22px;background:rgba(255,255,255,.22)}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="sticky"] .bom-gallery-lightbox__play{position:fixed;right:22px;bottom:22px;background:rgba(255,255,255,.22)}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow{display:grid!important;position:fixed;top:0;bottom:0;height:100vh;width:72px;border-radius:0;background:rgba(255,255,255,.12);transform:none}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow--prev{left:0}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow--next{right:0}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow span{transform:none}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__close{position:fixed;top:22px;right:22px;background:rgba(255,255,255,.22)}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__play{position:fixed;right:22px;bottom:22px;background:rgba(255,255,255,.22)}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__controls-left,
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__controls-right{display:contents}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__arrow,
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__close,
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__play{display:grid!important;opacity:0;transition:opacity .18s ease,transform .18s ease;background:rgba(255,255,255,.22);pointer-events:auto;z-index:9}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__viewport:hover .bom-gallery-lightbox__arrow,
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__viewport:hover .bom-gallery-lightbox__close,
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__viewport:hover .bom-gallery-lightbox__play,
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__frame:hover .bom-gallery-lightbox__arrow,
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__frame:hover .bom-gallery-lightbox__close,
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__frame:hover .bom-gallery-lightbox__play{opacity:1}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__arrow{position:absolute;top:50%;transform:translateY(-50%)}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__arrow--prev{left:14px}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__arrow--next{right:14px}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__close{position:absolute;top:12px;right:12px}
.bom-gallery-lightbox[data-style="simple"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__play{position:absolute;right:12px;bottom:12px}
.bom-gallery-lightbox__thumbs{align-content:flex-start}
.bom-gallery-lightbox__thumb img{display:block}

@media(max-width:640px){.bom-gallery-track{grid-template-columns:repeat(var(--bom-gallery-columns-mobile,1),minmax(0,1fr))}.bom-gallery--masonry .bom-gallery-track{column-count:1}.bom-gallery-track--justified{display:grid;grid-template-columns:1fr}.bom-gallery-lightbox__dialog{grid-template-columns:1fr}.bom-gallery-lightbox__arrow{position:absolute;top:50%;transform:translateY(-50%)}.bom-gallery-lightbox__arrow--prev{left:8px}.bom-gallery-lightbox__arrow--next{right:8px}.bom-gallery-lightbox__thumbs{max-height:108px}.bom-album-grid{grid-template-columns:1fr}}


/* v1.2.85 BOMBox style parity pass */
.bom-gallery-lightbox__arrow:hover,.bom-gallery-lightbox__close:hover,.bom-gallery-lightbox__play:hover{transform:translateY(-1px) scale(1.12)!important;background:rgba(255,255,255,.42)!important;box-shadow:0 14px 34px rgba(0,0,0,.34)!important}
.bom-gallery-lightbox__arrow:hover span{transform:scale(1.18)}

/* Apply Simple-style inside-hover behavior to Glass, Rounded, and Urban */
.bom-gallery-lightbox[data-style="glass"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__controls-left,
.bom-gallery-lightbox[data-style="glass"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__controls-right,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__controls-left,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__controls-right,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__controls-left,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__controls-right{display:contents}

.bom-gallery-lightbox[data-style="glass"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__arrow,
.bom-gallery-lightbox[data-style="glass"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__close,
.bom-gallery-lightbox[data-style="glass"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__play,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__arrow,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__close,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__play,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__arrow,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__close,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__play{display:grid!important;opacity:0;transition:opacity .18s ease,transform .18s ease,background .18s ease;pointer-events:auto;z-index:9}

.bom-gallery-lightbox[data-style="glass"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__viewport:hover .bom-gallery-lightbox__arrow,
.bom-gallery-lightbox[data-style="glass"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__viewport:hover .bom-gallery-lightbox__close,
.bom-gallery-lightbox[data-style="glass"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__viewport:hover .bom-gallery-lightbox__play,
.bom-gallery-lightbox[data-style="glass"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__frame:hover .bom-gallery-lightbox__arrow,
.bom-gallery-lightbox[data-style="glass"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__frame:hover .bom-gallery-lightbox__close,
.bom-gallery-lightbox[data-style="glass"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__frame:hover .bom-gallery-lightbox__play,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__viewport:hover .bom-gallery-lightbox__arrow,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__viewport:hover .bom-gallery-lightbox__close,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__viewport:hover .bom-gallery-lightbox__play,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__frame:hover .bom-gallery-lightbox__arrow,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__frame:hover .bom-gallery-lightbox__close,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__frame:hover .bom-gallery-lightbox__play,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__viewport:hover .bom-gallery-lightbox__arrow,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__viewport:hover .bom-gallery-lightbox__close,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__viewport:hover .bom-gallery-lightbox__play,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__frame:hover .bom-gallery-lightbox__arrow,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__frame:hover .bom-gallery-lightbox__close,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__frame:hover .bom-gallery-lightbox__play{opacity:1}

.bom-gallery-lightbox[data-style="glass"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__arrow,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__arrow,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__arrow{position:absolute;top:50%;transform:translateY(-50%)}
.bom-gallery-lightbox[data-style="glass"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__arrow--prev,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__arrow--prev,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__arrow--prev{left:14px}
.bom-gallery-lightbox[data-style="glass"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__arrow--next,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__arrow--next,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__arrow--next{right:14px}
.bom-gallery-lightbox[data-style="glass"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__close,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__close,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__close{position:absolute;top:12px;right:12px}
.bom-gallery-lightbox[data-style="glass"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__play,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__play,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__play{position:absolute;right:12px;bottom:12px}

/* Keep full-height arrows visible on all styles when that nav mode is selected */
.bom-gallery-lightbox[data-style="glass"][data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow{display:grid!important;position:fixed;top:0;bottom:0;height:100vh;width:72px;border-radius:0;transform:none}
.bom-gallery-lightbox[data-style="glass"][data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow--prev,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow--prev,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow--prev{left:0}
.bom-gallery-lightbox[data-style="glass"][data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow--next,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow--next,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow--next{right:0}
.bom-gallery-lightbox[data-style="glass"][data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow span,
.bom-gallery-lightbox[data-style="rounded"][data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow span,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="full_height_sticky"] .bom-gallery-lightbox__arrow span{transform:none}


/* v1.2.87 Urban inside-hover refinement */
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__chrome--top{opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease;transform:translateY(-4px)}
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__controls-left,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__controls-right{display:flex!important;pointer-events:auto}
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__arrow,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__close,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__play{position:static!important;transform:none!important;opacity:1!important;display:grid!important}
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__viewport:hover .bom-gallery-lightbox__chrome--top,
.bom-gallery-lightbox[data-style="urban"][data-nav-mode="inside_hover"] .bom-gallery-lightbox__frame:hover .bom-gallery-lightbox__chrome--top{opacity:1;pointer-events:auto;transform:none}


/* v1.2.94 image viewer refinements */
.bom-gallery-nav{
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.bom-gallery-nav:hover,
.bom-gallery-nav:focus-visible{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.bom-gallery--image_viewer .bom-gallery-stage .bom-gallery-link{
  cursor: zoom-in;
}
.bom-gallery--image_viewer[data-paging-type="none"] .bom-gallery-track--thumbs{
  display:flex;
  flex-wrap:nowrap;
  align-items:stretch;
  overflow:hidden;
  gap:var(--bom-gallery-gap,12px);
}
.bom-gallery--image_viewer[data-paging-type="none"] .bom-gallery-track--thumbs .bom-gallery-item--thumb{
  flex:0 0 calc((100% - (var(--bom-gallery-gap,12px) * (var(--bom-image-viewer-per-page, 4) - 1))) / var(--bom-image-viewer-per-page, 4));
  max-width:calc((100% - (var(--bom-gallery-gap,12px) * (var(--bom-image-viewer-per-page, 4) - 1))) / var(--bom-image-viewer-per-page, 4));
}
.bom-gallery--image_viewer[data-paging-type="none"] .bom-gallery-track--thumbs .bom-gallery-item--thumb.is-thumb-hidden{
  display:none;
}


/* v1.2.95 image viewer fit + thumbnail nav */
.bom-gallery--image_viewer .bom-gallery-stage{
  display:flex;
  align-items:center;
  justify-content:center;
}
.bom-gallery--image_viewer .bom-gallery-item--stage{
  display:flex;
  justify-content:center;
}
.bom-gallery--image_viewer .bom-gallery-item--stage .bom-gallery-link{
  display:inline-block;
  width:auto;
  max-width:100%;
  background:transparent;
  border:0;
  box-shadow:none;
}
.bom-gallery--image_viewer .bom-gallery-item--stage .bom-gallery-link img{
  width:auto;
  max-width:100%;
  height:min(58vw,620px);
  max-height:620px;
  object-fit:contain;
}
.bom-gallery-thumb-shell{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:12px;
  align-items:center;
  margin-top:14px;
}
.bom-gallery-thumb-viewport{
  min-width:0;
  overflow:hidden;
}
.bom-gallery-thumb-nav{
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.28);
  background:#fff;
  color:#0f172a;
  cursor:pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.bom-gallery-thumb-nav:hover,
.bom-gallery-thumb-nav:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(15,23,42,.12);
}
.bom-gallery-thumb-nav[disabled]{
  opacity:.45;
  cursor:default;
  box-shadow:none;
  transform:none;
}
.bom-gallery--image_viewer[data-paging-type="none"] .bom-gallery-thumb-viewport .bom-gallery-track--thumbs{
  margin-top:0;
}


/* v1.2.96 image viewer stage visibility + sizing hardening */
.bom-gallery [data-bom-slide][hidden]{display:none !important;}
.bom-gallery--image_viewer .bom-gallery-stage-shell{
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
}
.bom-gallery--image_viewer .bom-gallery-stage{
  width:100%;
  min-width:0;
  display:block;
  text-align:center;
}
.bom-gallery--image_viewer .bom-gallery-item--stage{
  width:100%;
  margin:0;
}
.bom-gallery--image_viewer .bom-gallery-item--stage .bom-gallery-link{
  display:block;
  width:100%;
  text-align:center;
}
.bom-gallery--image_viewer .bom-gallery-item--stage .bom-gallery-link img{
  display:block;
  width:auto !important;
  height:auto !important;
  max-width:100%;
  max-height:min(58vw,620px);
  margin:0 auto;
  object-fit:contain;
}
.bom-gallery--image_viewer[data-caption-display="never"] .bom-gallery-caption{
  display:none !important;
}


/* v1.2.97 image viewer width/border + stronger nav */
.bom-gallery-nav,
.bom-gallery-thumb-nav{
  width:52px;
  height:52px;
  font-size:30px;
  line-height:1;
  font-weight:700;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(15,23,42,.82);
  color:#fff;
  box-shadow:0 14px 34px rgba(15,23,42,.22);
}
.bom-gallery-nav:hover,
.bom-gallery-nav:focus-visible,
.bom-gallery-thumb-nav:hover,
.bom-gallery-thumb-nav:focus-visible{
  background:var(--bom-custom-accent,#2f6f5e);
  border-color:var(--bom-custom-accent,#2f6f5e);
  color:#fff;
  box-shadow:0 18px 40px rgba(15,23,42,.3);
  transform:translateY(-2px) scale(1.04);
}
.bom-gallery-stage-shell .bom-gallery-nav,
.bom-gallery-gridpro__viewer .bom-gallery-nav,
.bom-gallery-thumb-shell .bom-gallery-thumb-nav{
  display:grid;
  place-items:center;
}
.bom-gallery--image_viewer .bom-gallery-stage-shell,
.bom-gallery--image_viewer .bom-gallery-thumb-shell{
  max-width:100%;
}
.bom-gallery--image_viewer .bom-gallery-stage{
  width:100%;
}
.bom-gallery--image_viewer .bom-gallery-item--stage .bom-gallery-link{
  width:100%;
  max-width:100%;
  background:transparent;
  border:0;
  box-shadow:none;
  overflow:visible;
}
.bom-gallery--image_viewer .bom-gallery-item--stage .bom-gallery-link img{
  width:100% !important;
  height:auto !important;
  max-width:100%;
  max-height:none;
  margin:0;
  border-radius:20px;
  border:var(--bom-border-width,1px) solid rgba(148,163,184,.25);
  box-shadow:var(--bom-drop-shadow,0 12px 32px rgba(15,23,42,.08)),var(--bom-inner-shadow,none);
  background:transparent;
}
.bom-gallery--image_viewer .bom-gallery-item--stage .bom-gallery-link:hover img{
  border-color:color-mix(in srgb,var(--bom-custom-accent,#2f6f5e) 55%, rgba(148,163,184,.25));
}
@media (max-width: 767px){
  .bom-gallery-nav,
  .bom-gallery-thumb-nav{
    width:46px;
    height:46px;
    font-size:26px;
  }
}

/* v1.2.98 image viewer options */
.bom-gallery-image-count{
  display:flex;
  justify-content:center;
  margin-top:12px;
}
.bom-gallery-image-count span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(148,163,184,.28);
  color:#0f172a;
  font-size:13px;
  line-height:1;
  box-shadow:0 8px 20px rgba(15,23,42,.08);
}
.bom-gallery[data-display-thumbnails="no"] .bom-gallery-track--thumbs,
.bom-gallery[data-display-thumbnails="no"] .bom-gallery-thumb-shell{
  display:none !important;
}

.bom-gallery--single-item .bom-gallery-nav,
.bom-gallery--single-item .bom-gallery-thumb-shell,
.bom-gallery--single-item .bom-gallery-track--thumbs,
.bom-gallery--single-item .bom-gallery-image-count,
.bom-gallery--single-item .bom-gallery-side-rail{
  display:none !important;
}
.bom-gallery--single-item .bom-gallery-stage-shell{
  grid-template-columns:minmax(0,1fr) !important;
  justify-items:center;
}
.bom-gallery--single-item .bom-gallery-stage{
  width:100%;
}
.bom-gallery--single-item .bom-gallery-item--stage .bom-gallery-link{
  max-width:min(100%, 820px);
  margin:0 auto;
}
.bom-gallery--single-item.bom-gallery-template--favorites_viewer .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery--single-item.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery--single-item.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link{
  max-width:min(100%, 900px);
}
.bom-gallery--single-item .bom-gallery-item--stage .bom-gallery-link img{
  margin:0 auto;
  object-fit:contain;
  object-position:center center;
}

/* v1.2.103 masonry alignment pass */
.bom-gallery--masonry .bom-gallery-track{
  column-count:var(--bom-gallery-columns,3);
  column-gap:var(--bom-gallery-gap,10px);
  display:block;
}
.bom-gallery--masonry .bom-gallery-item{
  display:inline-block;
  width:100%;
  break-inside:avoid;
  -webkit-column-break-inside:avoid;
  page-break-inside:avoid;
  margin:0 0 var(--bom-gallery-gap,10px);
  vertical-align:top;
}
.bom-gallery--masonry .bom-gallery-link{
  display:block;
  height:auto;
}
.bom-gallery--masonry .bom-gallery-link img{
  display:block;
  width:100%;
  height:auto;
  min-height:0;
  object-fit:cover;
}
.bom-gallery--masonry .bom-gallery-caption{
  pointer-events:none;
}
@media (max-width: 1024px){
  .bom-gallery--masonry .bom-gallery-track{
    column-count:var(--bom-gallery-columns-tablet,2);
  }
}


/* v1.2.105 portfolio collage refinements */
.bom-gallery--portfolio{--bom-portfolio-card-max: max(var(--bom-thumb-width,270px), var(--bom-thumb-height,230px));}
.bom-gallery--portfolio .bom-gallery-track--portfolio{cursor:default}

.bom-gallery-item--portfolio.is-page-hidden{display:block;visibility:hidden}
.bom-gallery-paging--portfolio{margin-top:18px;justify-content:center}

.bom-gallery-portfolio-count{margin-top:12px;text-align:center;font-weight:700;color:#0f172a;position:relative;z-index:140}
.bom-gallery-portfolio-count span{display:inline-block;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.96);border:1px solid rgba(15,23,42,.08);box-shadow:0 10px 24px rgba(15,23,42,.12)}

/* v1.2.0 dynamic gallery modal */
.bom-gallery-modal-open{overflow:hidden}
.bom-gallery-modal-launcher{display:block}
.bom-gallery-modal-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.bom-gallery-modal{position:fixed;inset:0;z-index:99998;display:none;align-items:center;justify-content:center;padding:16px}
.bom-gallery-modal[hidden]{display:none !important;}

.bom-gallery-modal.is-open{display:flex}
.bom-gallery-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(4px)}
.bom-gallery-modal__dialog{position:relative;z-index:1;width:min(1240px,calc(100vw - 32px));max-height:calc(100vh - 32px);margin:0;background:#fff;border-radius:24px;box-shadow:0 28px 90px rgba(15,23,42,.32);display:flex;flex-direction:column;overflow:hidden}
.bom-gallery-modal__header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid rgba(148,163,184,.2);background:#fff}
.bom-gallery-modal__title{font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#64748b;line-height:1.2}
.bom-gallery-modal__close{width:42px;height:42px;border-radius:999px;border:1px solid rgba(148,163,184,.32);background:#fff;color:#0f172a;font-size:28px;line-height:1;cursor:pointer;transition:background-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}
.bom-gallery-modal__close:hover,.bom-gallery-modal__close:focus-visible{transform:translateY(-1px);box-shadow:0 12px 24px rgba(15,23,42,.16);background:#0f172a;color:#fff}
.bom-gallery-modal__body{padding:20px;overflow:auto;background:#f8fafc}
.bom-gallery-modal__body .bom-gallery{margin:0}
@media (max-width: 767px){.bom-gallery-modal__dialog{width:min(100vw - 16px,100vw - 16px);max-height:calc(100vh - 16px);margin:8px auto;border-radius:18px}.bom-gallery-modal__header{padding:14px 16px}.bom-gallery-modal__body{padding:14px}}

/* v1.2.101 dynamic modal viewer templates */
.bom-gallery-empty-state{padding:32px 18px;text-align:center;color:#475569;font-weight:600}
.bom-gallery-viewer-actions{display:flex;justify-content:center;gap:12px;margin-top:14px}
.bom-gallery-template--favorites_viewer .bom-gallery-stage-shell,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-stage-shell,
.bom-gallery-template--project_materials_viewer .bom-gallery-stage-shell{
  align-items:stretch;
}
.bom-gallery-template--favorites_viewer .bom-gallery-thumb-shell,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-thumb-shell,
.bom-gallery-template--project_materials_viewer .bom-gallery-thumb-shell{
  margin-top:18px;
}
.bom-gallery-template--favorites_viewer[data-paging-type="none"] .bom-gallery-track--thumbs .bom-gallery-item--thumb,
.bom-gallery-template--plant_gallery_viewer[data-paging-type="none"] .bom-gallery-track--thumbs .bom-gallery-item--thumb,
.bom-gallery-template--project_materials_viewer[data-paging-type="none"] .bom-gallery-track--thumbs .bom-gallery-item--thumb{
  flex:0 0 148px;
  max-width:148px;
}
.bom-gallery-template--favorites_viewer .bom-gallery-item--thumb .bom-gallery-link img,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--thumb .bom-gallery-link img,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--thumb .bom-gallery-link img{
  width:100%;
  height:auto;
  aspect-ratio:4 / 3;
  border-radius:16px;
  object-fit:cover;
}
.bom-gallery-template--favorites_viewer .bom-gallery-item--thumb .bom-gallery-link,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--thumb .bom-gallery-link,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--thumb .bom-gallery-link{
  position:relative;
  overflow:hidden;
  border-radius:18px;
}
.bom-gallery-template--favorites_viewer .bom-gallery-item--thumb .bom-gallery-caption,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--thumb .bom-gallery-caption,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--thumb .bom-gallery-caption{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:auto;
  background:rgba(0,0,0,.84);
  color:#fff;
  padding:10px 12px;
  min-height:auto;
  justify-content:flex-start;
  align-items:flex-start;
  text-align:left;
}
.bom-gallery-template--favorites_viewer .bom-gallery-item--thumb .bom-gallery-caption strong,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--thumb .bom-gallery-caption strong,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--thumb .bom-gallery-caption strong{
  font-size:.82rem;
  line-height:1.15;
  font-weight:700;
}
.bom-gallery-template--favorites_viewer .bom-gallery-item--thumb .bom-gallery-caption,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--thumb .bom-gallery-caption,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--thumb .bom-gallery-caption{
  transition:opacity .18s ease,transform .18s ease;
}
.bom-gallery-template--favorites_viewer[data-caption-display="hover"] .bom-gallery-item--thumb .bom-gallery-caption,
.bom-gallery-template--plant_gallery_viewer[data-caption-display="hover"] .bom-gallery-item--thumb .bom-gallery-caption,
.bom-gallery-template--project_materials_viewer[data-caption-display="hover"] .bom-gallery-item--thumb .bom-gallery-caption{
  opacity:0;
  transform:translateY(-6px);
  pointer-events:none;
}
.bom-gallery-template--favorites_viewer[data-caption-display="hover"] .bom-gallery-item--thumb:hover .bom-gallery-caption,
.bom-gallery-template--favorites_viewer[data-caption-display="hover"] .bom-gallery-item--thumb:focus-within .bom-gallery-caption,
.bom-gallery-template--favorites_viewer[data-caption-display="hover"] .bom-gallery-item--thumb.is-active .bom-gallery-caption,
.bom-gallery-template--plant_gallery_viewer[data-caption-display="hover"] .bom-gallery-item--thumb:hover .bom-gallery-caption,
.bom-gallery-template--plant_gallery_viewer[data-caption-display="hover"] .bom-gallery-item--thumb:focus-within .bom-gallery-caption,
.bom-gallery-template--plant_gallery_viewer[data-caption-display="hover"] .bom-gallery-item--thumb.is-active .bom-gallery-caption,
.bom-gallery-template--project_materials_viewer[data-caption-display="hover"] .bom-gallery-item--thumb:hover .bom-gallery-caption,
.bom-gallery-template--project_materials_viewer[data-caption-display="hover"] .bom-gallery-item--thumb:focus-within .bom-gallery-caption,
.bom-gallery-template--project_materials_viewer[data-caption-display="hover"] .bom-gallery-item--thumb.is-active .bom-gallery-caption{
  opacity:1;
  transform:none;
}
.bom-gallery-template--favorites_viewer[data-caption-display="never"] .bom-gallery-item--thumb .bom-gallery-caption,
.bom-gallery-template--plant_gallery_viewer[data-caption-display="never"] .bom-gallery-item--thumb .bom-gallery-caption,
.bom-gallery-template--project_materials_viewer[data-caption-display="never"] .bom-gallery-item--thumb .bom-gallery-caption{
  display:none !important;
}
.bom-gallery-template--favorites_viewer .bom-gallery-item--thumb .bom-gallery-caption span,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--thumb .bom-gallery-caption span,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--thumb .bom-gallery-caption span{
  display:none;
}
.bom-gallery-template--favorites_viewer .bom-gallery-item--thumb.is-active .bom-gallery-link,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--thumb.is-active .bom-gallery-link,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--thumb.is-active .bom-gallery-link{
  outline:3px solid rgba(47,111,94,.55);
  outline-offset:3px;
}
.bom-gallery-template--favorites_viewer .bom-gallery-image-count span,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-image-count span,
.bom-gallery-template--project_materials_viewer .bom-gallery-image-count span{
  background:#0f172a;
  color:#fff;
  border-color:#0f172a;
}
.bom-gallery-template--favorites_viewer .bom-gallery-modal__body,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-modal__body,
.bom-gallery-template--project_materials_viewer .bom-gallery-modal__body{
  background:#f8fafc;
}


/* v1.3.865 image with info viewer */
.bom-gallery--image_with_info .bom-gallery-stage-shell,
.bom-gallery-template--image_with_info .bom-gallery-stage-shell,
.bom-gallery-template--favorites_viewer .bom-gallery-stage-shell,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-stage-shell,
.bom-gallery-template--project_materials_viewer .bom-gallery-stage-shell{
  grid-template-columns:auto minmax(84px,.18fr) minmax(0,.86fr) minmax(280px,.52fr) auto;
  align-items:stretch;
}
.bom-gallery--image_with_info .bom-gallery-stage,
.bom-gallery-template--image_with_info .bom-gallery-stage,
.bom-gallery-template--favorites_viewer .bom-gallery-stage,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-stage,
.bom-gallery-template--project_materials_viewer .bom-gallery-stage{
  min-width:0;
  min-height:0;
  background:transparent;
  border-radius:0;
  padding:0;
}
.bom-gallery--image_with_info .bom-gallery-item--stage,
.bom-gallery-template--image_with_info .bom-gallery-item--stage,
.bom-gallery-template--favorites_viewer .bom-gallery-item--stage,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage{
  align-items:center;
}
.bom-gallery--image_with_info .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery-template--image_with_info .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery-template--favorites_viewer .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link{
  background:transparent;
  border:none;
  box-shadow:none;
  border-radius:0;
}
.bom-gallery--image_with_info .bom-gallery-item--stage .bom-gallery-link img,
.bom-gallery-template--image_with_info .bom-gallery-item--stage .bom-gallery-link img,
.bom-gallery-template--favorites_viewer .bom-gallery-item--stage .bom-gallery-link img,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link img,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link img{
  width:100%;
  max-width:100%;
  height:min(38vh,420px);
  max-height:min(38vh,420px);
  object-fit:contain;
  object-position:center center;
  border-radius:0;
}
.bom-gallery-info-panel{
  min-width:0;
  background:#fff;
  border:1px solid rgba(148,163,184,.22);
  border-radius:24px;
  padding:20px;
  overflow:auto;
  max-height:min(50vh,560px);
  box-shadow:0 12px 28px rgba(15,23,42,.08);
}
.bom-gallery-info-panel__eyebrow{
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#64748b;
  margin-bottom:10px;
}
.bom-gallery-info-panel__title{
  margin:0 0 8px;
  font-size:1.45rem;
  line-height:1.2;
  color:#0f172a;
}
.bom-gallery-info-panel__subtitle{
  color:#334155;
  font-style:italic;
  margin-bottom:14px;
}
.bom-gallery-info-panel__chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:14px;
}
.bom-gallery-info-chip{
  display:inline-flex;
  gap:4px;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  background:#eef2f7;
  color:#0f172a;
  font-size:.84rem;
}
.bom-gallery-info-panel__body{
  color:#334155;
  line-height:1.65;
}
.bom-gallery-info-panel__body p{margin:0 0 12px}

.bom-gallery-side-rail{
  min-width:0;
  display:flex;
  align-items:stretch;
}
.bom-gallery-side-rail[hidden]{display:none !important}
.bom-gallery-side-rail__viewport{
  width:100%;
  max-height:min(38vh,420px);
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
  padding-right:6px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.bom-gallery-side-thumb{
  display:block;
  width:100%;
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
}
.bom-gallery-side-thumb img{
  display:block;
  width:100%;
  height:74px;
  object-fit:cover;
  border-radius:14px;
}
.bom-gallery-side-thumb.is-active img{
  outline:3px solid rgba(47,111,94,.55);
  outline-offset:2px;
}
.bom-gallery-thumb-viewport{
  overflow-x:auto;
  scrollbar-width:thin;
}
.bom-gallery-thumb-viewport .bom-gallery-track--thumbs{
  min-width:max-content;
}
.bom-gallery--image_with_info[data-paging-type="none"] .bom-gallery-track--thumbs,
.bom-gallery-template--image_with_info[data-paging-type="none"] .bom-gallery-track--thumbs,
.bom-gallery-template--favorites_viewer[data-paging-type="none"] .bom-gallery-track--thumbs,
.bom-gallery-template--plant_gallery_viewer[data-paging-type="none"] .bom-gallery-track--thumbs,
.bom-gallery-template--project_materials_viewer[data-paging-type="none"] .bom-gallery-track--thumbs{
  display:flex;
  flex-wrap:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:thin;
  padding-bottom:6px;
}
@media (max-width: 980px){
  .bom-gallery--image_with_info .bom-gallery-stage-shell,
  .bom-gallery-template--image_with_info .bom-gallery-stage-shell,
  .bom-gallery-template--favorites_viewer .bom-gallery-stage-shell,
  .bom-gallery-template--plant_gallery_viewer .bom-gallery-stage-shell,
  .bom-gallery-template--project_materials_viewer .bom-gallery-stage-shell{
    grid-template-columns:auto minmax(0,1fr) minmax(240px,.6fr) auto;
  }
  .bom-gallery-side-rail{
    display:none;
  }
  .bom-gallery-info-panel{
    grid-column:1 / -1;
    max-height:none;
  }
}
@media (max-width: 767px){
  .bom-gallery--image_with_info .bom-gallery-item--stage .bom-gallery-link img,
  .bom-gallery-template--image_with_info .bom-gallery-item--stage .bom-gallery-link img,
  .bom-gallery-template--favorites_viewer .bom-gallery-item--stage .bom-gallery-link img,
  .bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link img,
  .bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link img{
    height:min(30vh,280px);
    max-height:min(30vh,280px);
  }
}


/* v1.3.869 top-info dynamic viewer variation */
.bom-gallery-template--favorites_viewer .bom-gallery-top-info,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-top-info,
.bom-gallery-template--project_materials_viewer .bom-gallery-top-info{
  margin:0 0 18px;
}
.bom-gallery-template--favorites_viewer .bom-gallery-top-info .bom-gallery-info-panel__inner,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-top-info .bom-gallery-info-panel__inner,
.bom-gallery-template--project_materials_viewer .bom-gallery-top-info .bom-gallery-info-panel__inner{
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  border:1px solid rgba(148,163,184,.18);
  border-radius:24px;
  padding:22px 24px;
  box-shadow:0 10px 26px rgba(15,23,42,.06);
}
.bom-gallery-template--favorites_viewer .bom-gallery-top-info .bom-gallery-info-panel__title,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-top-info .bom-gallery-info-panel__title,
.bom-gallery-template--project_materials_viewer .bom-gallery-top-info .bom-gallery-info-panel__title{
  font-size:1.6rem;
  margin-bottom:6px;
}
.bom-gallery-template--favorites_viewer .bom-gallery-top-info .bom-gallery-info-panel__body,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-top-info .bom-gallery-info-panel__body,
.bom-gallery-template--project_materials_viewer .bom-gallery-top-info .bom-gallery-info-panel__body{
  max-width:900px;
}
.bom-gallery-template--favorites_viewer .bom-gallery-stage-shell,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-stage-shell,
.bom-gallery-template--project_materials_viewer .bom-gallery-stage-shell{
  grid-template-columns:auto minmax(84px,.18fr) minmax(0,1fr) auto;
}
.bom-gallery-template--favorites_viewer .bom-gallery-info-panel,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-info-panel,
.bom-gallery-template--project_materials_viewer .bom-gallery-info-panel{
  display:none;
}
@media (max-width: 980px){
  .bom-gallery-template--favorites_viewer .bom-gallery-top-info .bom-gallery-info-panel__inner,
  .bom-gallery-template--plant_gallery_viewer .bom-gallery-top-info .bom-gallery-info-panel__inner,
  .bom-gallery-template--project_materials_viewer .bom-gallery-top-info .bom-gallery-info-panel__inner{
    padding:18px 18px;
  }
  .bom-gallery-template--favorites_viewer .bom-gallery-stage-shell,
  .bom-gallery-template--plant_gallery_viewer .bom-gallery-stage-shell,
  .bom-gallery-template--project_materials_viewer .bom-gallery-stage-shell{
    grid-template-columns:auto minmax(0,1fr) auto;
  }
}


/* v1.3.871 plant/project dynamic viewer alignment */
.bom-gallery-template--favorites_viewer .bom-gallery-nav,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-nav,
.bom-gallery-template--project_materials_viewer .bom-gallery-nav{
  display:none !important;
}
.bom-gallery-template--favorites_viewer .bom-gallery-stage-shell,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-stage-shell,
.bom-gallery-template--project_materials_viewer .bom-gallery-stage-shell{
  grid-template-columns:64px minmax(0,780px);
  justify-content:center;
  column-gap:18px;
}
.bom-gallery-template--favorites_viewer .bom-gallery-stage,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-stage,
.bom-gallery-template--project_materials_viewer .bom-gallery-stage{
  display:flex;
  justify-content:center;
  align-items:center;
}
.bom-gallery-template--favorites_viewer .bom-gallery-item--stage,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage{
  width:100%;
}
.bom-gallery-template--favorites_viewer .bom-gallery-side-rail,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-side-rail,
.bom-gallery-template--project_materials_viewer .bom-gallery-side-rail{
  width:64px;
}
.bom-gallery-template--favorites_viewer .bom-gallery-side-rail__viewport,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-side-rail__viewport,
.bom-gallery-template--project_materials_viewer .bom-gallery-side-rail__viewport{
  padding-right:4px;
  gap:8px;
}
.bom-gallery-template--favorites_viewer .bom-gallery-side-thumb img,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-side-thumb img,
.bom-gallery-template--project_materials_viewer .bom-gallery-side-thumb img{
  width:100%;
  height:auto;
  aspect-ratio:4 / 3;
  object-fit:cover;
  border-radius:12px;
}
@media (max-width: 980px){
  .bom-gallery-template--favorites_viewer .bom-gallery-stage-shell,
  .bom-gallery-template--plant_gallery_viewer .bom-gallery-stage-shell,
  .bom-gallery-template--project_materials_viewer .bom-gallery-stage-shell{
    grid-template-columns:56px minmax(0,1fr);
  }
  .bom-gallery-template--favorites_viewer .bom-gallery-side-rail,
  .bom-gallery-template--plant_gallery_viewer .bom-gallery-side-rail,
  .bom-gallery-template--project_materials_viewer .bom-gallery-side-rail{
    width:56px;
  }
}


/* v1.3.874 rebuild: project materials hero size + proportional thumbs */
.bom-gallery-template--project_materials_viewer .bom-gallery-stage-shell{
  grid-template-columns:minmax(0,1100px);
  justify-content:center;
  column-gap:0;
}
.bom-gallery-template--project_materials_viewer .bom-gallery-side-rail,
.bom-gallery-template--project_materials_viewer .bom-gallery-nav{
  display:none !important;
}
.bom-gallery-template--project_materials_viewer .bom-gallery-stage{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:min(76vh,900px);
}
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
}
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  min-height:min(76vh,900px);
}
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link img{
  display:block;
  width:auto;
  height:auto;
  max-width:min(100%,980px);
  max-height:min(72vh,820px);
  object-fit:contain;
  object-position:center center;
  margin:0 auto;
}
.bom-gallery-template--project_materials_viewer .bom-gallery-thumb-shell{
  margin-top:20px;
}
.bom-gallery-template--project_materials_viewer[data-paging-type="none"] .bom-gallery-track--thumbs{
  justify-content:center;
  align-items:stretch;
  gap:12px;
}
.bom-gallery-template--project_materials_viewer[data-paging-type="none"] .bom-gallery-track--thumbs .bom-gallery-item--thumb{
  flex:0 0 148px;
  max-width:148px;
}
.bom-gallery-template--project_materials_viewer .bom-gallery-item--thumb .bom-gallery-link{
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio:1 / 1;
  min-height:148px;
  padding:10px;
  background:#fff;
  border:1px solid rgba(148,163,184,.22);
  border-radius:18px;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
}
.bom-gallery-template--project_materials_viewer .bom-gallery-item--thumb .bom-gallery-link img{
  width:100%;
  height:100%;
  aspect-ratio:auto;
  object-fit:contain;
  object-position:center center;
  border-radius:12px;
}
@media (max-width: 980px){
  .bom-gallery-template--project_materials_viewer .bom-gallery-stage{
    min-height:min(68vh,760px);
  }
  .bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link{
    min-height:min(68vh,760px);
  }
  .bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link img{
    max-width:100%;
    max-height:min(64vh,700px);
  }
}
@media (max-width: 767px){
  .bom-gallery-template--project_materials_viewer .bom-gallery-stage{
    min-height:min(58vh,620px);
  }
  .bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link{
    min-height:min(58vh,620px);
  }
  .bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link img{
    max-height:min(54vh,560px);
  }
  .bom-gallery-template--project_materials_viewer[data-paging-type="none"] .bom-gallery-track--thumbs{
    justify-content:flex-start;
  }
}


/* v1.3.878 unified dynamic modal header labels */
.bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer){
  align-items:center;
  justify-content:center;
}
.bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer) .bom-gallery-modal__dialog{
  width:min(1160px,calc(100vw - 40px));
  max-height:min(90vh,980px);
  margin:auto;
}
.bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer) .bom-gallery-modal__body{
  padding:16px 18px 14px;
  overflow:hidden;
}
.bom-gallery-template--project_materials_viewer .bom-gallery-top-info{
  margin:0 0 12px;
}
.bom-gallery-template--project_materials_viewer .bom-gallery-top-info .bom-gallery-info-panel__inner{
  padding:18px 20px;
}
.bom-gallery-template--project_materials_viewer .bom-gallery-top-info .bom-gallery-info-panel__title{
  margin-bottom:2px;
}
.bom-gallery-template--project_materials_viewer .bom-gallery-top-info .bom-gallery-info-panel__body{
  font-size:1.02rem;
  line-height:1.45;
}
.bom-gallery-template--project_materials_viewer .bom-gallery-stage-shell{
  grid-template-columns:minmax(0,980px);
  justify-content:center;
}
.bom-gallery-template--project_materials_viewer .bom-gallery-stage{
  min-height:0;
}
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link{
  min-height:0;
}
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link img{
  max-width:min(100%,560px);
  max-height:min(48vh,560px);
}
.bom-gallery-template--project_materials_viewer .bom-gallery-thumb-shell{
  margin-top:14px;
}
.bom-gallery-template--project_materials_viewer[data-paging-type="none"] .bom-gallery-track--thumbs{
  justify-content:center;
  overflow-x:auto;
  overflow-y:hidden;
}
.bom-gallery-template--project_materials_viewer[data-paging-type="none"] .bom-gallery-track--thumbs .bom-gallery-item--thumb{
  flex:0 0 120px;
  max-width:120px;
}
.bom-gallery-template--project_materials_viewer .bom-gallery-item--thumb .bom-gallery-link{
  min-height:120px;
  padding:8px;
  border-radius:16px;
}
.bom-gallery-template--project_materials_viewer .bom-gallery-item--thumb .bom-gallery-link img{
  border-radius:10px;
}
.bom-gallery-template--project_materials_viewer .bom-gallery-image-count{
  margin-top:10px;
}
@media (max-width: 980px){
  .bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer) .bom-gallery-modal__dialog{
    width:min(100vw - 24px,100vw - 24px);
    max-height:min(92vh,920px);
  }
  .bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer) .bom-gallery-modal__body{
    padding:14px;
    overflow:auto;
  }
  .bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link img{
    max-width:min(100%,480px);
    max-height:min(44vh,500px);
  }
}
@media (max-width: 767px){
  .bom-gallery-template--project_materials_viewer .bom-gallery-top-info .bom-gallery-info-panel__inner{
    padding:16px;
  }
  .bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link img{
    max-width:min(100%,360px);
    max-height:min(38vh,420px);
  }
  .bom-gallery-template--project_materials_viewer[data-paging-type="none"] .bom-gallery-track--thumbs .bom-gallery-item--thumb{
    flex:0 0 96px;
    max-width:96px;
  }
  .bom-gallery-template--project_materials_viewer .bom-gallery-item--thumb .bom-gallery-link{
    min-height:96px;
  }
}


/* v1.3.937 modal centering hardening */
.bom-gallery-modal.is-open{display:flex !important;align-items:center !important;justify-content:center !important;}
.bom-gallery-modal__dialog{margin:auto !important;}
.bom-gallery-modal:has(.bom-gallery-template--plant_gallery_viewer),
.bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer){align-items:center !important;justify-content:center !important;}
.bom-gallery-modal:has(.bom-gallery-template--plant_gallery_viewer) .bom-gallery-modal__dialog,
.bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer) .bom-gallery-modal__dialog{margin:auto !important;}


/* v1.3.943 centered dynamic gallery modal cleanup */
.bom-gallery-modal,
.bom-gallery-modal:has(.bom-gallery-template--plant_gallery_viewer),
.bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer){
  position:fixed !important;
  inset:0 !important;
  display:none;
  align-items:center !important;
  justify-content:center !important;
  padding:24px !important;
  overflow:auto !important;
}
.bom-gallery-modal.is-open{
  display:flex !important;
}
.bom-gallery-modal__dialog,
.bom-gallery-modal:has(.bom-gallery-template--plant_gallery_viewer) .bom-gallery-modal__dialog,
.bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer) .bom-gallery-modal__dialog{
  position:relative !important;
  top:auto !important;
  left:auto !important;
  transform:none !important;
  margin:0 !important;
  align-self:center !important;
}
@media (max-width: 767px){
  .bom-gallery-modal,
  .bom-gallery-modal:has(.bom-gallery-template--plant_gallery_viewer),
  .bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer){padding:12px !important;}
  .bom-gallery-modal__dialog,
  .bom-gallery-modal:has(.bom-gallery-template--plant_gallery_viewer) .bom-gallery-modal__dialog,
  .bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer) .bom-gallery-modal__dialog{
    width:min(100vw - 24px, 100vw - 24px) !important;
    max-height:calc(100vh - 24px) !important;
  }
}


/* v1.3.944 dynamic gallery modal compacting pass */
.bom-gallery-modal:has(.bom-gallery-template--plant_gallery_viewer) .bom-gallery-modal__dialog,
.bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer) .bom-gallery-modal__dialog{
  width:min(1160px,calc(100vw - 48px)) !important;
  max-height:min(88vh,940px) !important;
}
.bom-gallery-modal:has(.bom-gallery-template--plant_gallery_viewer) .bom-gallery-modal__header,
.bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer) .bom-gallery-modal__header{
  padding:14px 18px !important;
}
.bom-gallery-modal:has(.bom-gallery-template--plant_gallery_viewer) .bom-gallery-modal__body,
.bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer) .bom-gallery-modal__body{
  padding:14px 16px 12px !important;
  overflow:auto !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-top-info,
.bom-gallery-template--project_materials_viewer .bom-gallery-top-info{
  margin:0 0 10px !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-top-info .bom-gallery-info-panel__inner,
.bom-gallery-template--project_materials_viewer .bom-gallery-top-info .bom-gallery-info-panel__inner{
  padding:16px 18px !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-stage-shell,
.bom-gallery-template--project_materials_viewer .bom-gallery-stage-shell{
  min-height:0 !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link{
  min-height:min(60vh,700px) !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link img,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link img{
  max-height:min(50vh,540px) !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-thumb-shell,
.bom-gallery-template--project_materials_viewer .bom-gallery-thumb-shell{
  margin-top:12px !important;
}
@media (max-width: 980px){
  .bom-gallery-modal:has(.bom-gallery-template--plant_gallery_viewer) .bom-gallery-modal__dialog,
  .bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer) .bom-gallery-modal__dialog{
    width:min(100vw - 24px,100vw - 24px) !important;
    max-height:min(86vh,860px) !important;
  }
  .bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link,
  .bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link{
    min-height:min(52vh,620px) !important;
  }
  .bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link img,
  .bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link img{
    max-height:min(42vh,460px) !important;
  }
}


/* v1.3.946 modal z-layer + compact spacing cleanup */
.bom-gallery-modal,
.bom-gallery-modal:has(.bom-gallery-template--plant_gallery_viewer),
.bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer){
  z-index:2147483646 !important;
}
.bom-gallery-modal__dialog,
.bom-gallery-modal:has(.bom-gallery-template--plant_gallery_viewer) .bom-gallery-modal__dialog,
.bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer) .bom-gallery-modal__dialog{
  box-shadow:0 24px 70px rgba(15,23,42,.28) !important;
}
.bom-gallery-modal:has(.bom-gallery-template--plant_gallery_viewer) .bom-gallery-modal__header,
.bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer) .bom-gallery-modal__header{
  padding:10px 14px !important;
}
.bom-gallery-modal:has(.bom-gallery-template--plant_gallery_viewer) .bom-gallery-modal__body,
.bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer) .bom-gallery-modal__body{
  padding:8px 10px 8px !important;
  background:#f8fafc !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-top-info,
.bom-gallery-template--project_materials_viewer .bom-gallery-top-info{
  margin:0 0 6px !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-top-info .bom-gallery-info-panel__inner,
.bom-gallery-template--project_materials_viewer .bom-gallery-top-info .bom-gallery-info-panel__inner{
  padding:10px 12px !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-top-info .bom-gallery-info-panel__title,
.bom-gallery-template--project_materials_viewer .bom-gallery-top-info .bom-gallery-info-panel__title{
  margin:0 0 2px !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-top-info .bom-gallery-info-panel__body,
.bom-gallery-template--project_materials_viewer .bom-gallery-top-info .bom-gallery-info-panel__body{
  margin-top:2px !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-stage-shell,
.bom-gallery-template--project_materials_viewer .bom-gallery-stage-shell{
  gap:0 !important;
  margin:0 !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-stage,
.bom-gallery-template--project_materials_viewer .bom-gallery-stage{
  margin:0 !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link{
  margin:0 !important;
  padding:0 !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-thumb-shell,
.bom-gallery-template--project_materials_viewer .bom-gallery-thumb-shell{
  margin-top:0 !important;
  padding-top:0 !important;
  gap:0 !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-thumb-viewport,
.bom-gallery-template--project_materials_viewer .bom-gallery-thumb-viewport,
.bom-gallery-template--plant_gallery_viewer[data-paging-type="none"] .bom-gallery-track--thumbs,
.bom-gallery-template--project_materials_viewer[data-paging-type="none"] .bom-gallery-track--thumbs{
  margin-top:0 !important;
  padding-top:0 !important;
  gap:6px !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-image-count,
.bom-gallery-template--project_materials_viewer .bom-gallery-image-count{
  margin-top:4px !important;
}


/* v1.3.946 modal layering + compact stage cleanup */
.bom-gallery-modal,
.bom-gallery-modal.is-open{
  z-index:2147483000 !important;
}
.bom-gallery-modal__backdrop{
  z-index:0 !important;
}
.bom-gallery-modal__dialog{
  position:relative !important;
  z-index:1 !important;
}
#wpadminbar,
.bov2-site-header-shell,
.bov2-site-header,
.bov2-page-banner{
  z-index:auto;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-modal__dialog,
.bom-gallery-template--project_materials_viewer .bom-gallery-modal__dialog{
  width:min(1160px,calc(100vw - 24px)) !important;
  max-height:calc(100vh - 24px) !important;
  margin:0 auto !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-modal__header,
.bom-gallery-template--project_materials_viewer .bom-gallery-modal__header{
  padding:10px 14px !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-modal__body,
.bom-gallery-template--project_materials_viewer .bom-gallery-modal__body{
  padding:8px 10px 8px !important;
  overflow:auto !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-top-info,
.bom-gallery-template--project_materials_viewer .bom-gallery-top-info{
  margin:0 0 8px !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-top-info .bom-gallery-info-panel__inner,
.bom-gallery-template--project_materials_viewer .bom-gallery-top-info .bom-gallery-info-panel__inner{
  padding:10px 12px !important;
  border-radius:16px !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-stage-shell,
.bom-gallery-template--project_materials_viewer .bom-gallery-stage-shell{
  align-items:start !important;
  row-gap:0 !important;
  margin:0 !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-stage,
.bom-gallery-template--project_materials_viewer .bom-gallery-stage{
  min-height:0 !important;
  height:auto !important;
  align-items:flex-start !important;
  margin:0 !important;
  padding:0 !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage{
  min-height:0 !important;
  height:auto !important;
  align-items:flex-start !important;
  margin:0 !important;
  padding:0 !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link{
  display:inline-flex !important;
  width:auto !important;
  min-height:0 !important;
  height:auto !important;
  margin:0 auto !important;
  padding:0 !important;
  align-items:flex-start !important;
  justify-content:center !important;
  overflow:visible !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link img,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link img{
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:min(100%,980px) !important;
  max-height:min(58vh,680px) !important;
  margin:0 auto !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-thumb-shell,
.bom-gallery-template--project_materials_viewer .bom-gallery-thumb-shell{
  margin-top:4px !important;
  padding-top:0 !important;
}
.bom-gallery-template--plant_gallery_viewer[data-paging-type="none"] .bom-gallery-track--thumbs,
.bom-gallery-template--project_materials_viewer[data-paging-type="none"] .bom-gallery-track--thumbs{
  padding-top:0 !important;
  padding-bottom:2px !important;
  gap:8px !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-image-count,
.bom-gallery-template--project_materials_viewer .bom-gallery-image-count{
  margin-top:4px !important;
}


/* Viewer hero sizing controls */
.bom-gallery--image_with_info .bom-gallery-stage-shell,
.bom-gallery-template--image_with_info .bom-gallery-stage-shell,
.bom-gallery-template--favorites_viewer .bom-gallery-stage-shell,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-stage-shell,
.bom-gallery-template--project_materials_viewer .bom-gallery-stage-shell{
  row-gap: var(--bom-hero-gap, 8px) !important;
}

.bom-gallery--image_with_info .bom-gallery-item--stage,
.bom-gallery-template--image_with_info .bom-gallery-item--stage,
.bom-gallery-template--favorites_viewer .bom-gallery-item--stage,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage,
.bom-gallery--image_with_info .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery-template--image_with_info .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery-template--favorites_viewer .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link{
  min-height: 0 !important;
  height: auto !important;
}

.bom-gallery--image_with_info .bom-gallery-item--stage .bom-gallery-link img,
.bom-gallery-template--image_with_info .bom-gallery-item--stage .bom-gallery-link img,
.bom-gallery-template--favorites_viewer .bom-gallery-item--stage .bom-gallery-link img,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link img,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link img{
  width: auto !important;
  max-width: min(100%, var(--bom-hero-max-width, 960px)) !important;
  height: auto !important;
  max-height: var(--bom-hero-max-height, 620px) !important;
  object-fit: var(--bom-hero-fit, contain) !important;
  object-position: center var(--bom-hero-align-y, center) !important;
  margin: 0 auto !important;
}

.bom-gallery-template--plant_gallery_viewer .bom-gallery-thumb-shell,
.bom-gallery-template--project_materials_viewer .bom-gallery-thumb-shell,
.bom-gallery-template--favorites_viewer .bom-gallery-thumb-shell,
.bom-gallery-template--image_with_info .bom-gallery-thumb-shell,
.bom-gallery--image_with_info .bom-gallery-thumb-shell{
  margin-top: 0 !important;
}

/* v1.3.950 proportional controls + hero gap fix */
.bom-gallery-template--plant_gallery_viewer .bom-gallery-stage-shell,
.bom-gallery-template--project_materials_viewer .bom-gallery-stage-shell{
  margin-bottom: 0 !important;
  row-gap: 0 !important;
  padding-bottom: 0 !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-thumb-shell,
.bom-gallery-template--project_materials_viewer .bom-gallery-thumb-shell{
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.bom-gallery-template--plant_gallery_viewer[data-paging-type="none"] .bom-gallery-track--thumbs,
.bom-gallery-template--project_materials_viewer[data-paging-type="none"] .bom-gallery-track--thumbs{
  padding-top: var(--bom-hero-gap, 8px) !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-stage,
.bom-gallery-template--project_materials_viewer .bom-gallery-stage{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link{
  min-height: 0 !important;
  height: auto !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link img,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link img{
  width: auto !important;
  max-width: min(100%, var(--bom-hero-max-width, 960px)) !important;
  max-height: var(--bom-hero-max-height, 620px) !important;
  object-fit: var(--bom-hero-fit, contain) !important;
  object-position: center var(--bom-hero-align-y, center) !important;
}


/* v1.3.950 hero sizing normalization */
.bom-gallery-template--plant_gallery_viewer .bom-gallery-stage,
.bom-gallery-template--project_materials_viewer .bom-gallery-stage{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  width:100% !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  width:100% !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  width:100% !important;
  text-align:center !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link img,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link img{
  display:block !important;
  width:auto !important;
  height:auto !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link img.bom-gallery-image,
.bom-gallery-template--project_materials_viewer .bom-gallery-item--stage .bom-gallery-link img.bom-gallery-image{
  max-width:min(100%, var(--bom-hero-max-width, 960px)) !important;
  max-height:var(--bom-hero-max-height, 620px) !important;
}


/* v1.3.952 active single-media plant/materials/favorites layout */
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-side-rail,
.bom-gallery-template--project_materials_viewer.bom-gallery--active-single-media .bom-gallery-side-rail,
.bom-gallery-template--favorites_viewer.bom-gallery--active-single-media .bom-gallery-side-rail{
  display:none !important;
}
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-stage-shell,
.bom-gallery-template--project_materials_viewer.bom-gallery--active-single-media .bom-gallery-stage-shell,
.bom-gallery-template--favorites_viewer.bom-gallery--active-single-media .bom-gallery-stage-shell{
  grid-template-columns:auto minmax(0,1fr) minmax(260px,.48fr) auto !important;
}
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-stage,
.bom-gallery-template--project_materials_viewer.bom-gallery--active-single-media .bom-gallery-stage,
.bom-gallery-template--favorites_viewer.bom-gallery--active-single-media .bom-gallery-stage{
  justify-self:center;
}
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-item--stage .bom-gallery-link img,
.bom-gallery-template--project_materials_viewer.bom-gallery--active-single-media .bom-gallery-item--stage .bom-gallery-link img,
.bom-gallery-template--favorites_viewer.bom-gallery--active-single-media .bom-gallery-item--stage .bom-gallery-link img{
  max-width:min(100%, var(--bom-hero-max-width, 960px), 760px) !important;
}
@media (max-width: 980px){
  .bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-stage-shell,
  .bom-gallery-template--project_materials_viewer.bom-gallery--active-single-media .bom-gallery-stage-shell,
  .bom-gallery-template--favorites_viewer.bom-gallery--active-single-media .bom-gallery-stage-shell{
    grid-template-columns:1fr !important;
  }
}


/* v1.3.953 center active single-media stage for plant/material/favorites viewers */
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-stage-shell,
.bom-gallery-template--project_materials_viewer.bom-gallery--active-single-media .bom-gallery-stage-shell,
.bom-gallery-template--favorites_viewer.bom-gallery--active-single-media .bom-gallery-stage-shell{
  grid-template-columns:auto minmax(0,1fr) auto !important;
  justify-content:center !important;
  align-items:center !important;
}
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-stage,
.bom-gallery-template--project_materials_viewer.bom-gallery--active-single-media .bom-gallery-stage,
.bom-gallery-template--favorites_viewer.bom-gallery--active-single-media .bom-gallery-stage{
  width:100% !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  justify-self:center !important;
}
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-item--stage,
.bom-gallery-template--project_materials_viewer.bom-gallery--active-single-media .bom-gallery-item--stage,
.bom-gallery-template--favorites_viewer.bom-gallery--active-single-media .bom-gallery-item--stage{
  width:100% !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
}
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery-template--project_materials_viewer.bom-gallery--active-single-media .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery-template--favorites_viewer.bom-gallery--active-single-media .bom-gallery-item--stage .bom-gallery-link{
  width:100% !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-item--stage .bom-gallery-link img,
.bom-gallery-template--project_materials_viewer.bom-gallery--active-single-media .bom-gallery-item--stage .bom-gallery-link img,
.bom-gallery-template--favorites_viewer.bom-gallery--active-single-media .bom-gallery-item--stage .bom-gallery-link img{
  margin-left:auto !important;
  margin-right:auto !important;
}
@media (max-width: 980px){
  .bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-stage-shell,
  .bom-gallery-template--project_materials_viewer.bom-gallery--active-single-media .bom-gallery-stage-shell,
  .bom-gallery-template--favorites_viewer.bom-gallery--active-single-media .bom-gallery-stage-shell{
    grid-template-columns:1fr !important;
  }
}


.bom-gallery--bda_slider{max-width:560px;margin:0 auto}.bom-gallery-bda__header{max-width:840px;margin:0 auto 14px;text-align:left}.bom-gallery-bda__title{margin:0 0 6px;font-size:clamp(1rem,1.4vw,1.2rem)}.bom-gallery-bda__description p{margin:0;color:var(--bov2-muted,#70746f);font-size:.95rem}.bom-gallery--bda_slider .bom-gallery-stage-shell{grid-template-columns:minmax(0,1fr);gap:0;align-items:center}.bom-gallery--bda_slider .bom-gallery-stage{min-height:0}.bom-gallery--bda_slider .bom-gallery-item--stage .bom-gallery-link{position:relative;display:block;border-radius:20px;overflow:hidden;background:#f8fafc;box-shadow:0 14px 28px rgba(15,23,42,.08)}.bom-gallery--bda_slider .bom-gallery-item--stage .bom-gallery-link > img.bom-gallery-image{width:100%;height:clamp(220px,22vw,300px);object-fit:cover;object-position:center}.bom-gallery-stage-label{position:absolute;top:14px;left:14px;z-index:2;display:inline-flex;align-items:center;gap:8px;justify-content:center;padding:9px 16px 9px 13px;border-radius:999px;border:1px solid rgba(255,255,255,.45);background:linear-gradient(135deg,rgba(72,98,75,.98),rgba(94,128,98,.96));color:#fff!important;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;box-shadow:0 10px 24px rgba(15,23,42,.22);backdrop-filter:blur(8px)}.bom-gallery-stage-label::before{content:"";display:inline-block;width:10px;height:10px;border-radius:999px;background:rgba(255,255,255,.95);box-shadow:0 0 0 3px rgba(255,255,255,.16)}.bom-gallery-stage-label--before{background:linear-gradient(135deg,rgba(67,89,71,.98),rgba(98,130,103,.96))}.bom-gallery-stage-label--design{background:linear-gradient(135deg,rgba(36,49,65,.96),rgba(72,98,75,.96))}.bom-gallery-stage-label--after{background:linear-gradient(135deg,rgba(58,104,63,.98),rgba(86,145,92,.96))}.bom-gallery-stage-label,.bom-gallery-stage-label *{color:#fff!important}.bom-gallery--bda_slider .bom-gallery-nav,.bom-gallery--bda_slider .bom-gallery-image-count{display:none!important}.bom-gallery--bda_slider .bom-gallery-caption{display:none}@media (max-width: 782px){.bom-gallery--bda_slider{max-width:none}.bom-gallery--bda_slider .bom-gallery-item--stage .bom-gallery-link > img.bom-gallery-image{height:min(68vw,300px)}.bom-gallery-stage-label{top:12px;left:12px}}.bom-gallery--bda_slider{--bom-bda-speed:650ms;--bom-bda-easing:cubic-bezier(0.22,1,0.36,1)}.bom-gallery--bda_slider .bom-gallery-stage{position:relative;min-height:clamp(220px,22vw,300px)}.bom-gallery--bda_slider .bom-gallery-item--stage{position:absolute;inset:0;opacity:0;pointer-events:none;transform:translate3d(0,0,0);transition:opacity var(--bom-bda-speed,650ms) var(--bom-bda-easing,ease),transform var(--bom-bda-speed,650ms) var(--bom-bda-easing,ease),filter var(--bom-bda-speed,650ms) var(--bom-bda-easing,ease)}.bom-gallery--bda_slider .bom-gallery-item--stage.is-active{opacity:1;pointer-events:auto;z-index:2}.bom-gallery--bda_slider .bom-gallery-item--stage.is-leaving{z-index:1}.bom-gallery--bda_slider .bom-gallery-item--stage.is-entering{z-index:3}.bom-gallery--bda_slider[data-bda-effect="fade"] .bom-gallery-item--stage,.bom-gallery--bda_slider[data-bda-effect="crossfade"] .bom-gallery-item--stage{transform:none}.bom-gallery--bda_slider[data-bda-effect="slide"] .bom-gallery-item--stage.is-entering.is-forward{transform:translateX(8%)}.bom-gallery--bda_slider[data-bda-effect="slide"] .bom-gallery-item--stage.is-entering.is-backward{transform:translateX(-8%)}.bom-gallery--bda_slider[data-bda-effect="slide"] .bom-gallery-item--stage.is-leaving.is-forward{transform:translateX(-8%);opacity:0}.bom-gallery--bda_slider[data-bda-effect="slide"] .bom-gallery-item--stage.is-leaving.is-backward{transform:translateX(8%);opacity:0}.bom-gallery--bda_slider[data-bda-effect="zoom_fade"] .bom-gallery-item--stage.is-entering{transform:scale(1.06);filter:saturate(1.02)}.bom-gallery--bda_slider[data-bda-effect="zoom_fade"] .bom-gallery-item--stage.is-leaving{transform:scale(.96);opacity:0;filter:saturate(.96)}.bom-gallery--bda_slider[data-bda-effect="ken_burns"] .bom-gallery-item--stage .bom-gallery-link img{transform:scale(1);transition:transform calc(var(--bom-bda-speed,650ms) * 1.4) var(--bom-bda-easing,ease),opacity var(--bom-bda-speed,650ms) var(--bom-bda-easing,ease)}.bom-gallery--bda_slider[data-bda-effect="ken_burns"] .bom-gallery-item--stage.is-active .bom-gallery-link img{animation:bomGalleryKenBurns calc(var(--bom-bda-speed,650ms) + 4200ms) var(--bom-bda-easing,ease-out) both}.bom-gallery--bda_slider[data-bda-effect="ken_burns"] .bom-gallery-item--stage.is-entering{transform:none;opacity:1}.bom-gallery--bda_slider[data-bda-effect="ken_burns"] .bom-gallery-item--stage.is-leaving{opacity:0}.bom-gallery--bda_slider .bom-gallery-item--stage[hidden]{display:block!important}@keyframes bomGalleryKenBurns{0%{transform:scale(1) translate3d(0,0,0)}100%{transform:scale(1.08) translate3d(1.5%,-1.5%,0)}}

.bom-gallery-bda-badge-picker{margin:12px 0;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.bom-gallery-bda-badge-picker__label{display:block;font-weight:600;margin:0 0 8px}.bom-gallery-bda-badge-picker__preview{min-height:72px;padding:10px;border:1px dashed #cbd5e1;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#fff}.bom-gallery-bda-badge-picker__preview img{display:block;max-width:min(100%,220px);max-height:90px;width:auto;height:auto}.bom-gallery-bda-badge-picker__actions{margin-top:8px;display:flex;gap:10px;align-items:center}.bom-gallery-stage-label{padding:0;border:none;background:transparent;box-shadow:none;backdrop-filter:none}.bom-gallery-stage-label::before{display:none}.bom-gallery-stage-label__img{display:block;width:min(var(--bom-bda-badge-width,160px),42vw);height:auto;max-height:none;filter:drop-shadow(0 10px 24px rgba(15,23,42,.22))}.bom-gallery-stage-label--before,.bom-gallery-stage-label--design,.bom-gallery-stage-label--after{background:transparent}@media (max-width: 782px){.bom-gallery-stage-label__img{max-width:46vw;max-height:var(--bom-bda-badge-mobile-max-height,52px);width:auto}}

.bom-gallery-stage-label.has-image{padding:0;border:none;background:transparent!important;box-shadow:none;backdrop-filter:none}.bom-gallery-stage-label.has-image::before{display:none}.bom-gallery-stage-label.has-image .bom-gallery-stage-label__img{display:block;width:min(var(--bom-bda-badge-width,160px),42vw);height:auto;max-height:none;filter:drop-shadow(0 10px 24px rgba(15,23,42,.22))}@media (max-width: 782px){.bom-gallery-stage-label.has-image .bom-gallery-stage-label__img{max-width:46vw;max-height:var(--bom-bda-badge-mobile-max-height,52px);width:auto}}

.bom-gallery-stage-label--image,.bom-gallery-stage-label.has-image{padding:0!important;border:none!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;max-width:min(var(--bom-bda-badge-width,160px),42vw)!important}.bom-gallery-stage-label--image::before,.bom-gallery-stage-label.has-image::before{display:none!important}.bom-gallery-stage-label--image .bom-gallery-stage-label__img,.bom-gallery-stage-label.has-image .bom-gallery-stage-label__img{display:block!important;width:min(var(--bom-bda-badge-width,160px),42vw)!important;max-width:min(var(--bom-bda-badge-width,160px),42vw)!important;height:auto!important;max-height:none!important;object-fit:contain!important;object-position:left top!important;filter:drop-shadow(0 10px 24px rgba(15,23,42,.22))}.bom-gallery--bda_slider .bom-gallery-item--stage .bom-gallery-link .bom-gallery-stage-label--image img,.bom-gallery--bda_slider .bom-gallery-item--stage .bom-gallery-link .bom-gallery-stage-label.has-image img{width:min(var(--bom-bda-badge-width,160px),42vw)!important;height:auto!important;max-height:none!important;object-fit:contain!important}@media (max-width: 782px){.bom-gallery-stage-label--image,.bom-gallery-stage-label.has-image{max-width:46vw!important}.bom-gallery-stage-label--image .bom-gallery-stage-label__img,.bom-gallery-stage-label.has-image .bom-gallery-stage-label__img,.bom-gallery--bda_slider .bom-gallery-item--stage .bom-gallery-link .bom-gallery-stage-label--image img,.bom-gallery--bda_slider .bom-gallery-item--stage .bom-gallery-link .bom-gallery-stage-label.has-image img{width:auto!important;max-width:46vw!important;max-height:var(--bom-bda-badge-mobile-max-height,52px)!important;height:auto!important}}


/* BDA badge positioning and polish */
.bom-gallery-stage-label{top:var(--bom-bda-badge-offset-y,14px);left:var(--bom-bda-badge-offset-x,14px);right:auto;bottom:auto}
.bom-gallery-stage-label.is-pos-top_right{left:auto;right:var(--bom-bda-badge-offset-x,14px);top:var(--bom-bda-badge-offset-y,14px);bottom:auto}
.bom-gallery-stage-label.is-pos-bottom_left{top:auto;bottom:var(--bom-bda-badge-offset-y,14px);left:var(--bom-bda-badge-offset-x,14px);right:auto}
.bom-gallery-stage-label.is-pos-bottom_right{top:auto;bottom:var(--bom-bda-badge-offset-y,14px);left:auto;right:var(--bom-bda-badge-offset-x,14px)}
.bom-gallery-stage-label.has-backing-soft,.bom-gallery-stage-label.has-backing-glass{padding:8px;border-radius:14px}
.bom-gallery-stage-label.has-backing-soft{background:rgba(15,23,42,.18)!important}
.bom-gallery-stage-label.has-backing-glass{background:rgba(255,255,255,.18)!important;border:1px solid rgba(255,255,255,.35)!important;backdrop-filter:blur(8px)}
.bom-gallery-stage-label.has-shadow-none .bom-gallery-stage-label__img,.bom-gallery-stage-label.has-shadow-none{filter:none!important;box-shadow:none!important}
.bom-gallery-stage-label.has-shadow-soft .bom-gallery-stage-label__img{filter:drop-shadow(0 10px 24px rgba(15,23,42,.22))}
.bom-gallery-stage-label.has-shadow-strong .bom-gallery-stage-label__img{filter:drop-shadow(0 14px 28px rgba(15,23,42,.32))}
.bom-gallery-stage-label.has-shadow-soft:not(.has-image){box-shadow:0 10px 24px rgba(15,23,42,.22)}
.bom-gallery-stage-label.has-shadow-strong:not(.has-image){box-shadow:0 14px 28px rgba(15,23,42,.32)}
.bom-gallery--bda_slider[data-bda-effect="fade"] .bom-gallery-item--stage,.bom-gallery--bda_slider[data-bda-effect="crossfade"] .bom-gallery-item--stage{transition-duration:calc(var(--bom-bda-speed,650ms) + 80ms)}
.bom-gallery--bda_slider[data-bda-effect="zoom_fade"] .bom-gallery-item--stage.is-entering{transform:scale(1.035);filter:saturate(1.01)}
.bom-gallery--bda_slider[data-bda-effect="zoom_fade"] .bom-gallery-item--stage.is-leaving{transform:scale(.985)}

/* v1.3.988.76 Plant Detail Dynamic Gallery */
.bom-gallery--plant_detail_dynamic_gallery{
  --bom-plant-detail-stage-size: min(500px, var(--bom-hero-max-width, 500px));
  --bom-plant-detail-stage-height: min(500px, var(--bom-hero-max-height, 500px));
  --bom-plant-detail-thumb-rail: max(104px, calc(var(--bom-thumb-width, 96px) + 28px));
}
.bom-gallery--plant_detail_dynamic_gallery,
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-stage-shell--plant-detail,
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-stage-wrap--plant-detail,
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-stage,
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage,
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-image-link{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
.bom-pb-el-plant-detail-hero .bov2-plant-hero--viewer{
  display:grid !important;
  grid-template-columns: minmax(0, calc(var(--bom-plant-detail-thumb-rail, 120px) + var(--bom-plant-detail-stage-size, 500px) + var(--bom-gallery-gap, 12px))) minmax(320px, 1fr);
  align-items:start;
  gap:clamp(18px, 2.2vw, 32px);
}
.bom-pb-el-plant-detail-hero .bov2-plant-hero__media{
  flex:none !important;
  width:calc(var(--bom-plant-detail-thumb-rail, 120px) + var(--bom-plant-detail-stage-size, 500px) + var(--bom-gallery-gap, 12px));
  max-width:100%;
  min-width:0;
}
.bom-pb-el-plant-detail-hero .bov2-plant-hero__content{min-width:0;}
.bom-pb-el-plant-detail-hero .bov2-plant-hero__media .bom-gallery--plant_detail_dynamic_gallery{
  width:calc(var(--bom-plant-detail-thumb-rail, 120px) + var(--bom-plant-detail-stage-size, 500px) + var(--bom-gallery-gap, 12px));
  max-width:100%;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-stage-shell--plant-detail{
  display:grid;
  grid-template-columns: var(--bom-plant-detail-thumb-rail) var(--bom-plant-detail-stage-size);
  gap:var(--bom-gallery-gap, 12px);
  align-items:start;
  justify-content:start;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-thumb-shell--plant-detail{
  margin:0;
  display:block;
  width:var(--bom-plant-detail-thumb-rail);
  min-width:var(--bom-plant-detail-thumb-rail);
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-thumb-viewport--vertical{
  width:100%;
  max-height:calc(var(--bom-plant-detail-stage-height) + 18px);
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
  padding:4px 10px 10px 6px;
  box-sizing:border-box;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-track--plant-detail-thumbs{
  display:flex;
  flex-direction:column;
  gap:var(--bom-gallery-gap, 12px);
  width:100%;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-track--plant-detail-thumbs .bom-gallery-item--thumb{
  width:100%;
  margin:0;
  flex:0 0 auto;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-track--plant-detail-thumbs .bom-gallery-link{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-track--plant-detail-thumbs img{
  display:block;
  width:100%;
  max-width:100%;
  height:var(--bom-thumb-height, 96px);
  object-fit:cover;
  object-position:center center;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.28);
  box-shadow:none;
  background:transparent;
  box-sizing:border-box;
  outline:0 solid transparent;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--thumb.is-active img{
  border-color: color-mix(in srgb,var(--bom-custom-accent,#2f6f5e) 68%, rgba(148,163,184,.28));
  box-shadow:none;
  outline:3px solid rgba(47,111,94,.18);
  outline-offset:2px;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-stage-wrap--plant-detail,
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-stage,
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage,
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-image-link{
  position:relative;
  min-width:0;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-stage-wrap--plant-detail,
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-stage{
  cursor:default;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage{
  display:inline-flex;
  width:auto !important;
  max-width:var(--bom-plant-detail-stage-size);
  flex:0 0 auto;
  align-items:flex-start;
  justify-content:center;
  pointer-events:none;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-link{
  cursor:default;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-image-link img,
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-link img{
  cursor:zoom-in;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-stage-wrap--plant-detail{
  width:fit-content;
  max-width:var(--bom-plant-detail-stage-size);
  min-height:0;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-stage{
  width:fit-content;
  max-width:var(--bom-plant-detail-stage-size);
  min-height:0;
  height:auto;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage,
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-link,
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-image-link{
  width:auto !important;
  max-width:var(--bom-plant-detail-stage-size);
  display:inline-flex;
  align-items:flex-start;
  justify-content:center;
  margin:0;
  overflow:visible;
  min-height:0;
  height:auto;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-link{
  flex:0 0 auto;
  pointer-events:none !important;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-link--static{
  pointer-events:none !important;
}

.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-image-link img,

.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-link--static{
  display:inline-flex;
  width:auto !important;
  max-width:var(--bom-plant-detail-stage-size);
  align-items:flex-start;
  justify-content:center;
  cursor:default;
  pointer-events:none;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-image-link{
  display:inline-block;
  width:fit-content !important;
  max-width:none !important;
  flex:0 0 auto;
  align-self:flex-start;
  cursor:zoom-in;
  pointer-events:auto !important;
  line-height:0;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-image-link:hover{
  cursor:zoom-in;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-image-link img{
  display:block;
  cursor:zoom-in;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-link img{
  display:block;
  width:auto;
  height:auto;
  margin:0 auto;
  object-fit:contain;
  object-position:center top;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:transparent;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage[data-bom-orientation="landscape"] .bom-gallery-link img{
  width:auto;
  height:auto;
  max-width:var(--bom-plant-detail-stage-size);
  max-height:none;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage[data-bom-orientation="portrait"] .bom-gallery-link img{
  width:auto;
  height:auto;
  max-width:none;
  max-height:var(--bom-plant-detail-stage-height);
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-caption,
.bom-gallery-template--plant_detail_dynamic_gallery .bom-gallery-caption{display:none !important;}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-image-count--overlay{
  position:absolute;
  top:12px;
  right:12px;
  margin:0;
  z-index:3;
  justify-content:flex-end;
}
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-image-count--overlay span{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(148,163,184,.24);
  border-radius:999px;
  padding:8px 12px;
  box-shadow:0 10px 24px rgba(15,23,42,.12);
}
@media (max-width: 767px){
  .bom-pb-el-plant-detail-hero .bov2-plant-hero--viewer{
    grid-template-columns:1fr;
  }
  .bom-pb-el-plant-detail-hero .bov2-plant-hero__media .bom-gallery--plant_detail_dynamic_gallery,
  .bom-pb-el-plant-detail-hero .bov2-plant-hero__media{
    width:100%;
    max-width:100%;
  }
  .bom-gallery--plant_detail_dynamic_gallery .bom-gallery-stage-shell--plant-detail{
    grid-template-columns:1fr;
  }
  .bom-gallery--plant_detail_dynamic_gallery .bom-gallery-thumb-shell--plant-detail{
    order:2;
    width:100%;
    min-width:0;
  }
  .bom-gallery--plant_detail_dynamic_gallery .bom-gallery-thumb-viewport--vertical{
    max-height:none;
    overflow-x:auto;
    overflow-y:hidden;
    padding:6px 0 10px 0;
  }
  .bom-gallery--plant_detail_dynamic_gallery .bom-gallery-track--plant-detail-thumbs{
    flex-direction:row;
  }
  .bom-gallery--plant_detail_dynamic_gallery .bom-gallery-track--plant-detail-thumbs .bom-gallery-item--thumb{
    width:var(--bom-thumb-width, 96px);
    min-width:var(--bom-thumb-width, 96px);
  }
  .bom-gallery--plant_detail_dynamic_gallery .bom-gallery-track--plant-detail-thumbs img{
    height:var(--bom-thumb-height, 96px);
  }
  .bom-gallery--plant_detail_dynamic_gallery .bom-gallery-stage,
  .bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage,
  .bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-link{
    width:100%;
    max-width:100%;
    justify-content:center;
  }
  .bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage.is-landscape .bom-gallery-link img,
  .bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage.is-portrait .bom-gallery-link img,
  .bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-image-link img,
.bom-gallery--plant_detail_dynamic_gallery .bom-gallery-item--stage .bom-gallery-link img{
    max-width:100%;
    width:auto;
    max-height:min(70vh, var(--bom-plant-detail-stage-height));
  }
}




/* v1.3.988.109 plant gallery viewer supplemental side rail restore */
.bom-gallery-template--plant_gallery_viewer .bom-gallery-stage-shell{
  grid-template-columns:64px minmax(0,1fr) !important;
  justify-content:center !important;
  align-items:center !important;
  column-gap:18px !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-side-rail{
  display:flex;
  width:64px;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-side-rail[hidden]{
  display:none !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-side-rail__viewport{
  padding-right:4px;
  gap:8px;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-side-thumb img{
  width:100%;
  height:auto;
  aspect-ratio:4 / 3;
  object-fit:cover;
  border-radius:12px;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-stage-wrap{
  min-width:0 !important;
  width:100% !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-stage,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link{
  width:100% !important;
  justify-content:center !important;
}
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link img,
.bom-gallery-template--plant_gallery_viewer .bom-gallery-item--stage .bom-gallery-link img.bom-gallery-image{
  width:auto !important;
  max-width:min(100%, var(--bom-hero-max-width, 960px)) !important;
  max-height:var(--bom-hero-max-height, 620px) !important;
  height:auto !important;
}
@media (max-width: 980px){
  .bom-gallery-template--plant_gallery_viewer .bom-gallery-stage-shell{
    grid-template-columns:1fr !important;
  }
  .bom-gallery-template--plant_gallery_viewer .bom-gallery-side-rail{
    display:none !important;
  }
}

/* v1.3.988.103 plant gallery viewer desktop stage-shell fix */
.bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-stage-shell{
  grid-template-columns:auto 64px minmax(0,1fr) auto !important;
  justify-content:center !important;
  align-items:center !important;
  column-gap:18px !important;
}
.bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-nav--prev{
  grid-column:1;
}
.bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-side-rail{
  grid-column:2;
  display:flex;
  width:64px;
  min-width:64px;
}
.bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-stage-wrap{
  grid-column:3;
  min-width:0 !important;
  width:100% !important;
}
.bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-nav--next{
  grid-column:4;
}
.bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-stage,
.bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-item--stage,
.bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-item--stage .bom-gallery-link{
  width:100% !important;
  justify-content:center !important;
  align-items:center !important;
}
.bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-item--stage .bom-gallery-link img,
.bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-item--stage .bom-gallery-link img.bom-gallery-image{
  width:auto !important;
  height:auto !important;
  max-width:min(100%, var(--bom-hero-max-width, 960px)) !important;
  max-height:var(--bom-hero-max-height, 620px) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
@media (max-width: 980px){
  .bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-stage-shell{
    grid-template-columns:1fr !important;
  }
  .bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-side-rail{
    display:none !important;
  }
  .bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-stage-wrap,
  .bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-nav--prev,
  .bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-nav--next{
    grid-column:auto;
  }
}


/* v1.3.988.114 single-image plant gallery viewer: keep plant-to-plant navigation, hide only supplemental side rail */
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-side-rail{
  display:none !important;
}
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media [data-bom-slide]{
  display:none !important;
}
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media [data-bom-slide].is-active{
  display:flex !important;
}


/* v1.3.988.114 plant gallery viewer cosmetic polish */
.bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-stage-shell{
  grid-template-columns:auto 64px auto auto !important;
  column-gap:12px !important;
}
.bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-side-rail{
  justify-self:end !important;
  align-self:center !important;
  margin-right:-4px !important;
}
.bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-stage-wrap{
  width:auto !important;
  justify-self:start !important;
}
.bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-stage,
.bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-item--stage,
.bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-item--stage .bom-gallery-link{
  width:auto !important;
}
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-stage-shell{
  grid-template-columns:auto auto auto !important;
  column-gap:12px !important;
  justify-content:center !important;
}
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-stage-wrap{
  grid-column:2 !important;
  width:auto !important;
  justify-self:center !important;
}
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-nav--prev{
  grid-column:1 !important;
}
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-nav--next{
  grid-column:3 !important;
}
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-stage,
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-item--stage,
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-item--stage .bom-gallery-link{
  width:auto !important;
  justify-content:center !important;
}
@media (max-width: 980px){
  .bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-stage-shell,
  .bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-stage-shell{
    grid-template-columns:1fr !important;
  }
  .bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-stage-wrap,
  .bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-nav--prev,
  .bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-nav--next{
    grid-column:auto !important;
  }
}


/* v1.3.988.114 step 4c finish pass: plant/project viewer responsive hardening */
.bom-gallery-template--plant_gallery_viewer .bom-gallery-stage-shell,
.bom-gallery-template--project_materials_viewer .bom-gallery-stage-shell{
  max-width:min(100%, 1180px);
  margin-left:auto;
  margin-right:auto;
}
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-stage-shell{
  grid-template-columns:auto auto !important;
  justify-content:center !important;
  align-items:center !important;
  column-gap:12px !important;
}
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-stage-wrap{
  width:auto !important;
  justify-self:center !important;
}
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-stage,
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-item--stage,
.bom-gallery-template--plant_gallery_viewer.bom-gallery--active-single-media .bom-gallery-item--stage .bom-gallery-link{
  width:auto !important;
  justify-content:center !important;
}
.bom-gallery-template--project_materials_viewer .bom-gallery-stage-shell{
  column-gap:14px !important;
  align-items:center !important;
}
.bom-gallery-template--project_materials_viewer .bom-gallery-side-rail{
  justify-self:end !important;
}
.bom-gallery-template--project_materials_viewer .bom-gallery-stage-wrap{
  min-width:0 !important;
}
@media (max-width: 1200px){
  .bom-gallery-template--plant_gallery_viewer:not(.bom-gallery--active-single-media) .bom-gallery-stage-shell,
  .bom-gallery-template--project_materials_viewer .bom-gallery-stage-shell{
    max-width:100%;
  }
}


/* v1.3.988.114 PM gallery stage hotfix: force active slide only on stage */
.bom-gallery-template--project_materials_viewer [data-bom-slide]{
  display:none !important;
}
.bom-gallery-template--project_materials_viewer [data-bom-slide].is-active{
  display:flex !important;
}

.bom-album-grid{display:grid;grid-template-columns:repeat(var(--bom-album-columns,3),minmax(0,1fr));gap:var(--bom-album-gap,18px)}
.bom-album-card{background:#fff;border-radius:30px;box-shadow:0 18px 40px rgba(15,23,42,.08);overflow:hidden;border:1px solid rgba(15,23,42,.06)}
.bom-album-card__body{padding:20px 22px;color:#111}
.bom-album-card__body h3{margin:0;font-size:clamp(1.1rem,1.5vw,1.35rem);color:#111}
.bom-album-card__meta{margin:8px 0 0;color:#4b5563}
.bom-album-card__gallery--visible{padding:16px 16px 0}
.bom-album-card--our-work .bom-gallery{padding:0}
.bom-album-card--our-work .bom-gallery-stage-shell{grid-template-columns:1fr;gap:0}
.bom-album-card--our-work .bom-gallery-nav{display:none !important}
.bom-album-card--our-work .bom-gallery-track--thumbs,.bom-album-card--our-work .bom-gallery-image-count,.bom-album-card--our-work .bom-gallery-bda__header{display:none !important}
.bom-album-card--our-work .bom-gallery-stage-wrap{border-radius:22px;overflow:hidden}
.bom-album-card--our-work .bom-gallery-item--stage .bom-gallery-link{border-radius:22px;box-shadow:none;border:0}
.bom-album-card--our-work .bom-gallery-item--stage .bom-gallery-link img{height:clamp(260px,30vw,360px);object-fit:cover}
.bom-album-card--our-work .bom-album-card__cta{margin-top:14px}
.bom-album--our_work_cards{--bom-album-columns:2}
@media(max-width:900px){.bom-album--our_work_cards{--bom-album-columns:1}.bom-album-card--our-work .bom-gallery-item--stage .bom-gallery-link img{height:260px}}


.bom-album{
  --bom-album-card-bg:#ffffff;
  --bom-album-card-text:#111111;
  --bom-album-card-title:#111111;
  --bom-album-card-caption:#111111;
  --bom-album-card-overlay:#ffffff;
}
.bom-album-card{
  background:var(--bom-album-card-bg);
}
.bom-album-card__body{
  color:var(--bom-album-card-text);
}
.bom-album-card__body h3{
  color:var(--bom-album-card-title);
}
.bom-album--our_work_cards .bom-gallery-caption,
.bom-album--our_work_cards .bom-gallery-caption strong,
.bom-album--our_work_cards .bom-gallery-caption span{
  color:var(--bom-album-card-caption) !important;
}
.bom-album--our_work_cards .bom-gallery-caption{
  background:var(--bom-album-card-overlay) !important;
}
.bom-album--our_work_cards .bom-gallery-item--stage .bom-gallery-link,
.bom-album--our_work_cards .bom-gallery-stage-wrap,
.bom-album--our_work_cards .bom-album-card,
.bom-album--our_work_cards .bom-album-card__body{
  background:var(--bom-album-card-bg);
}


/* v1.3.988.238: full-page overlay with dialog centered in usable viewport below header */
.bom-gallery-modal,
.bom-gallery-modal.is-open{
  inset:0 !important;
}
.bom-gallery-modal__backdrop{
  position:absolute !important;
  inset:0 !important;
}
.bom-gallery-modal__dialog{
  margin:0 auto !important;
}


/* v1.3.988.238b final gallery modal overlay hardening */
.bom-gallery-modal[hidden]{display:none !important;}
.bom-gallery-modal{position:fixed !important;inset:0 !important;z-index:1000003 !important;}
.bom-gallery-modal__backdrop{position:absolute !important;inset:0 !important;background:rgba(16,24,16,.58) !important;z-index:0 !important;}
.bom-gallery-modal__dialog{position:relative !important;z-index:1 !important;}

/* v1.3.988.239: force full-viewport gallery overlay above admin bar/header */
html body .bom-gallery-modal[hidden]{display:none !important;}
html body .bom-gallery-modal{position:fixed !important;inset:0 !important;z-index:2147483000 !important;display:flex !important;align-items:center !important;justify-content:center !important;padding:24px !important;background:transparent !important;isolation:isolate !important;}
html body .bom-gallery-modal__backdrop{position:fixed !important;inset:0 !important;z-index:0 !important;background:rgba(16,24,16,.58) !important;backdrop-filter:none !important;}
html body .bom-gallery-modal__dialog{position:relative !important;z-index:1 !important;max-width:min(1200px, calc(100vw - 48px)) !important;max-height:calc(100vh - 48px) !important;margin:0 !important;}
html body #wpadminbar,
html body .bov2-site-header-shell.is-sticky{z-index:999999 !important;}


/* v1.3.988.244: scoped reset for LDP dynamic gallery modals (Plant Gallery + Project Materials)
   Keep shared BOM gallery infrastructure intact; only normalize wrapper/backdrop/dialog for these two viewer templates. */
body > .bom-gallery-modal:has(.bom-gallery-template--plant_gallery_viewer),
body > .bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer){
  position:fixed !important;
  inset:0 !important;
  z-index:2147483000 !important;
  display:none !important;
  align-items:center !important;
  justify-content:center !important;
  padding:24px !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
  background:transparent !important;
  isolation:isolate !important;
}
body > .bom-gallery-modal.is-open:has(.bom-gallery-template--plant_gallery_viewer),
body > .bom-gallery-modal.is-open:has(.bom-gallery-template--project_materials_viewer){
  display:flex !important;
}
body > .bom-gallery-modal[hidden]:has(.bom-gallery-template--plant_gallery_viewer),
body > .bom-gallery-modal[hidden]:has(.bom-gallery-template--project_materials_viewer){
  display:none !important;
}
body > .bom-gallery-modal:has(.bom-gallery-template--plant_gallery_viewer) .bom-gallery-modal__backdrop,
body > .bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer) .bom-gallery-modal__backdrop{
  position:fixed !important;
  inset:0 !important;
  z-index:0 !important;
  background:rgba(16,24,16,.58) !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  backdrop-filter:none !important;
}
body > .bom-gallery-modal:has(.bom-gallery-template--plant_gallery_viewer) .bom-gallery-modal__dialog,
body > .bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer) .bom-gallery-modal__dialog{
  position:relative !important;
  z-index:1 !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  transform:none !important;
  margin:0 !important;
  width:min(1200px, calc(100vw - 48px)) !important;
  max-width:min(1200px, calc(100vw - 48px)) !important;
  max-height:calc(100vh - 48px) !important;
  overflow:hidden !important;
}
@media (max-width: 767px){
  body > .bom-gallery-modal:has(.bom-gallery-template--plant_gallery_viewer),
  body > .bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer){
    padding:12px !important;
  }
  body > .bom-gallery-modal:has(.bom-gallery-template--plant_gallery_viewer) .bom-gallery-modal__dialog,
  body > .bom-gallery-modal:has(.bom-gallery-template--project_materials_viewer) .bom-gallery-modal__dialog{
    width:calc(100vw - 24px) !important;
    max-width:calc(100vw - 24px) !important;
    max-height:calc(100vh - 24px) !important;
  }
}
