/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/
/* Make post images full-width on mobile */
@media (max-width: 768px) {
  /* ensure wrappers are full width */
  .brxe-post-content .wp-block-image,
  .brxe-post-content .wp-block-image > figure {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* force images to scale to container (beats inline widths) */
  .brxe-post-content .wp-block-image img,
  .brxe-post-content img[class*="wp-image"] {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* drop floats so they don’t squeeze on mobile */
  .brxe-post-content figure.alignleft,
  .brxe-post-content figure.alignright {
    float: none !important;
    margin: 0 0 1rem 0;
  }
}