/* Layout + cropping come from the core Gallery/Image block styles (wp-block-library);
   the theme styles the overlay caption. These rules add (a) the optional aspect-ratio
   crop and (b) styling for the plugin's optional meta-line caption mode. */

/* Aspect-ratio crop (when a per-gallery ratio is chosen) — self-contained so it works
   regardless of theme/is-cropped rules. The inline style sets aspect-ratio on the figure. */
.wp-block-gallery figure.brv-gallery-item.brv-has-ar{overflow:hidden}
.wp-block-gallery figure.brv-gallery-item.brv-has-ar>a{display:block;width:100%;height:100%}
.wp-block-gallery figure.brv-gallery-item.brv-has-ar>a>img,
.wp-block-gallery figure.brv-gallery-item.brv-has-ar>img{display:block;width:100%;height:100%;object-fit:cover}

/* Resilience: guarantee row-wrapping columns on our galleries even if WordPress
   renames/removes its own layout classes (e.g. is-layout-flex). Column widths still
   come from core's columns-N CSS; this only prevents a collapse to a single column
   (the v2.9.2 failure). Matches current spacing, so no visual change today. */
.wp-block-gallery.brv-gallery{display:flex;flex-wrap:wrap;gap:8px}

/* Meta-line caption mode (title/description/floorplan) */
.wp-block-gallery .brv-gallery-meta{margin-top:8px}
.wp-block-gallery .brv-gallery-id{font-size:12px;color:#666;margin-bottom:4px}
.wp-block-gallery .brv-gallery-text{font-size:16px;line-height:1.25;font-weight:600;color:#111}
.brv-feature-gallery .brv-gallery-text{font-size:16px;line-height:1.25;font-weight:600;color:#111}
