/*
 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
*/
/* Ryder: legacy block markup inside migrated blog posts (rendered via Post Content, not styleable from the builder). */
.brxe-post-content figure { margin: 2em 0; }
.brxe-post-content img,
.brxe-post-content video { display: block; width: 100%; height: auto; border-radius: var(--ryder-radius); }
.brxe-post-content .wp-block-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.brxe-post-content .wp-block-gallery figure { margin: 0; }
.brxe-post-content .wp-block-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 478px) {
	.brxe-post-content .wp-block-gallery { grid-template-columns: minmax(0, 1fr); }
}

/* Sticky header (Bricks template setting): in-page anchors (/#engineering…) land below the header instead of under it.
   Heights = header template at each breakpoint (logo 62/58/46px + 20px padding + 1px border). */
html { scroll-padding-top: calc(83px + var(--wp-admin--admin-bar--height, 0px)); }
@media (max-width: 991px) { html { scroll-padding-top: calc(79px + var(--wp-admin--admin-bar--height, 0px)); } }
@media (max-width: 478px) { html { scroll-padding-top: calc(67px + var(--wp-admin--admin-bar--height, 0px)); } }
