.bl-gallery { width: 100%; min-width: 0; margin: 0 0 28px; color: #142f3b; font: 16px/1.5 "Segoe UI", Arial, sans-serif; container: bl-gallery / inline-size; }
.bl-gallery *, .bl-gallery *::before, .bl-gallery *::after { box-sizing: border-box; }
.bl-gallery :focus-visible { outline: 3px solid #328c84; outline-offset: 4px; }
.bl-gallery .bl-gallery-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 21px; font-weight: 600; }
.bl-gallery .bl-gallery-heading > span + span { font-size: 15px; align-self: center; }
.bl-gallery .bl-mosaic { position: relative; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; height: clamp(280px, 40vw, 550px); overflow: hidden; border-radius: 5px; background: #e8eeeb; }
.bl-gallery .bl-mosaic-image { display: block; min-height: 0; overflow: hidden; }
.bl-gallery .bl-mosaic-image:first-child { grid-row: 1 / 3; }
.bl-gallery .bl-mosaic-image img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.bl-gallery .bl-mosaic-1 { grid-template-columns: minmax(0, 1fr); }
.bl-gallery .bl-mosaic-2 > .bl-mosaic-image:nth-child(2) { grid-row: 1 / 3; }
.bl-gallery .bl-gallery-all { position: absolute; right: 16px; bottom: 16px; padding: 12px 16px; border: 1px solid #aebfbe; border-radius: 3px; background: white; color: #142f3b; text-decoration: none; font-size: 14px; font-weight: 600; }
.bl-gallery .bl-gallery-placeholder { display: grid; min-height: 280px; place-items: center; background: #e8eeeb; border-radius: 5px; }
.bl-gallery .bl-lightbox { position: fixed; inset: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 20px; border: 0; background: #0f191f; color: white; }
.bl-gallery .bl-lightbox::backdrop { background: #0f191f; }
.bl-gallery .bl-lightbox[open] { display: flex; flex-direction: column; }
.bl-gallery .bl-lightbox-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.bl-gallery .bl-lightbox-toolbar p { margin: 0; }
.bl-gallery .bl-lightbox button { min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid #83959c; border-radius: 4px; background: #20333e; color: white; font: 16px/1.5 "Segoe UI", Arial, sans-serif; box-shadow: none; cursor: pointer; text-transform: none; }
.bl-gallery .bl-lightbox button:disabled { opacity: .4; cursor: default; }
.bl-gallery .bl-lightbox-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; flex: 1; min-height: 0; }
.bl-gallery .bl-lightbox-stage figure { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; width: 100%; height: 100%; min-height: 0; margin: 0; touch-action: pan-y pinch-zoom; }
.bl-gallery .bl-lightbox-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 160px); object-fit: contain; }
.bl-gallery .bl-lightbox-stage figcaption { max-width: 100%; text-align: center; font-size: 14px; }
@container bl-gallery (max-width: 650px) {
    .bl-gallery .bl-mosaic { display: block; height: 340px; }
    .bl-gallery .bl-mosaic-image:first-child { height: 100%; }
    .bl-gallery .bl-mosaic-image:not(:first-child) { display: none; }
}
@media (max-width: 600px) {
    .bl-gallery .bl-lightbox { padding: 12px; }
    .bl-gallery .bl-lightbox-stage { gap: 4px; }
    .bl-gallery .bl-lightbox-stage button { padding: 5px; }
}
