/* Elementor wrapper: keep the custom gallery in normal document flow and full width.
 * This prevents the following section/footer from overlapping the gallery on mobile. */
.elementor-widget-balduabc-service-gallery,
.elementor-widget-balduabc-service-gallery > .elementor-widget-container {
	width:100%;
	max-width:100%;
	min-width:0;
}

/* Gallery only; surrounding page spacing belongs to the Elementor parent. */
.ba-service-gallery { width:100%; min-width:0; font-family:var(--ba-font-body,"Plus Jakarta Sans",Arial,sans-serif); }
.ba-service-gallery, .ba-service-gallery *, .ba-service-gallery-lightbox, .ba-service-gallery-lightbox * { box-sizing:border-box; border-radius:0; }
.ba-service-gallery .ba-service-gallery-grid { display:grid; grid-template-columns:repeat(var(--ba-service-gallery-columns,3),minmax(0,1fr)); gap:var(--ba-service-gallery-gap,20px); margin:0; padding:0; list-style:none; }
.ba-service-gallery .ba-service-gallery-item { min-width:0; margin:0; padding:0; }
.ba-service-gallery .ba-service-gallery-item[hidden], .ba-service-gallery .ba-service-gallery-more[hidden] { display:none; }
.ba-service-gallery .ba-service-gallery-link { display:block; position:relative; width:100%; aspect-ratio:var(--ba-service-gallery-ratio,4/3); overflow:hidden; color:var(--ba-color-secondary,#121212); border-radius:0; }
.ba-service-gallery .ba-service-gallery-image { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:var(--ba-service-gallery-focal-x,50%) var(--ba-service-gallery-focal-y,50%); transition:transform 280ms ease; border-radius:0; }
.ba-service-gallery.is-natural .ba-service-gallery-link { aspect-ratio:auto; }
.ba-service-gallery.is-natural .ba-service-gallery-image { position:static; width:100%; height:auto; object-fit:contain; }
.ba-service-gallery .ba-service-gallery-link:focus-visible { outline:3px solid var(--ba-color-secondary,#121212); outline-offset:3px; }
.ba-service-gallery .ba-service-gallery-more { display:flex; justify-content:center; margin-top:36px; }
.ba-service-gallery .ba-service-gallery-more-button { min-height:48px; max-width:100%; padding:12px 24px; border:1px solid var(--ba-color-secondary,#121212); border-radius:0; background:transparent; color:var(--ba-color-secondary,#121212); font:500 15px/1.5 var(--ba-font-body,"Plus Jakarta Sans",Arial,sans-serif); cursor:pointer; transition:color 180ms ease,background-color 180ms ease; }
.ba-service-gallery .ba-service-gallery-more-button:focus-visible { outline:2px solid var(--ba-color-secondary,#121212); outline-offset:4px; }
.ba-service-gallery-lightbox { position:fixed; inset:0; width:100%; max-width:none; height:100vh; height:100dvh; max-height:none; margin:0; padding:clamp(16px,3vw,40px); border:0; background:rgba(18,18,18,.96); color:var(--ba-color-neutral,#f8f7f5); overflow:auto; font:400 15px/1.5 var(--ba-font-body,"Plus Jakarta Sans",Arial,sans-serif); }
.ba-service-gallery-lightbox[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; gap:16px; }
.ba-service-gallery-lightbox::backdrop { background:rgba(18,18,18,.96); }
.ba-service-gallery-lightbox .ba-service-gallery-lightbox-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.ba-service-gallery-lightbox .ba-service-gallery-lightbox-control { display:flex; align-items:center; justify-content:center; width:44px; height:44px; min-width:44px; min-height:44px; padding:0; border:1px solid #666; border-radius:0; background:transparent; color:var(--ba-color-neutral,#f8f7f5); cursor:pointer; }
.ba-service-gallery-lightbox .ba-service-gallery-lightbox-control:focus-visible { outline:2px solid var(--ba-color-primary,#e84a10); outline-offset:3px; }
.ba-service-gallery-lightbox .ba-service-gallery-lightbox-figure { display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:0; min-height:0; margin:0; }
.ba-service-gallery-lightbox .ba-service-gallery-lightbox-image { display:block; min-height:0; min-width:0; width:auto; height:auto; max-width:100%; max-height:100%; flex:0 1 auto; object-fit:contain; touch-action:pan-y pinch-zoom; user-select:none; }
.ba-service-gallery-lightbox .ba-service-gallery-lightbox-image[hidden], .ba-service-gallery-lightbox [hidden] { display:none; }
.ba-service-gallery-lightbox .ba-service-gallery-lightbox-caption { flex:0 0 auto; width:min(100%,800px); max-height:20vh; overflow:auto; margin-top:12px; font-size:14px; text-align:center; color:#c8c8c8; overflow-wrap:anywhere; }
.ba-service-gallery-lightbox .ba-service-gallery-lightbox-status { max-width:100%; text-align:center; overflow-wrap:anywhere; }
.ba-service-gallery-lightbox .ba-service-gallery-lightbox-status a { color:var(--ba-color-neutral,#f8f7f5); }
.ba-service-gallery-lightbox .ba-service-gallery-lightbox-status a:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
.ba-service-gallery-lightbox .ba-service-gallery-lightbox-nav { display:flex; justify-content:center; gap:12px; }
@media(hover:hover) and (pointer:fine) { .ba-service-gallery .ba-service-gallery-link:hover .ba-service-gallery-image { transform:scale(1.03); } .ba-service-gallery .ba-service-gallery-more-button:hover { background:var(--ba-color-secondary,#121212); color:var(--ba-color-neutral,#f8f7f5); } .ba-service-gallery-lightbox .ba-service-gallery-lightbox-control:hover { color:var(--ba-color-primary,#e84a10); } }
@media(max-width:1024px) { .ba-service-gallery .ba-service-gallery-grid { grid-template-columns:repeat(var(--ba-service-gallery-columns-tablet,2),minmax(0,1fr)); gap:var(--ba-service-gallery-gap-tablet,16px); } }
@media(max-width:767px) { .ba-service-gallery .ba-service-gallery-grid { grid-template-columns:repeat(var(--ba-service-gallery-columns-mobile,1),minmax(0,1fr)); gap:var(--ba-service-gallery-gap-mobile,12px); } }
@media(prefers-reduced-motion:reduce) { .ba-service-gallery .ba-service-gallery-image, .ba-service-gallery .ba-service-gallery-more-button { transition:none; } .ba-service-gallery .ba-service-gallery-link:hover .ba-service-gallery-image { transform:none; } }

.ba-service-gallery-lightbox .ba-service-gallery-lightbox-caption:focus-visible { outline:2px solid var(--ba-color-neutral,#f8f7f5); outline-offset:3px; }
