/**
 * MBA Gallery Pro — Gallery Layout overrides.
 *
 * Forces the main gallery grid (#medbeafgallery-gallery-grid, rendered by the
 * free plugin) to show ONE case per row, and caps + centers its width so the
 * single column doesn't stretch edge to edge.
 *
 * The free plugin's base rule is:
 *   .medbeafgallery-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
 * plus media-query variants at 767px and 480px. We use !important on the
 * column rule so this single-column layout holds at every breakpoint
 * regardless of source order.
 *
 * The max-width is driven by the --mba-pro-grid-max custom property, which the
 * PHP module sets from the `mba_gallery_pro_gallery_max_width` filter
 * (default 720px). Override that filter to change the width without editing
 * this file.
 *
 * @package MBA_Gallery_Pro
 */

.medbeafgallery-gallery-grid {
    grid-template-columns: 1fr !important;   /* one case per row */
    max-width: var(--mba-pro-grid-max, 720px);
    margin-left: auto;
    margin-right: auto;
}

/* Keep the centered cap consistent inside the free plugin's mobile rules too. */
@media (max-width: 767px) {
    .medbeafgallery-gallery-grid {
        grid-template-columns: 1fr !important;
    }
}
