/*
Theme Name: Tommy Brunett (Hello Elementor child)
Theme URI: https://www.tommybrunett.com
Description: Hello Elementor child theme for the Tommy Brunett Band site. Layout and styling live in Elementor (Site Settings, Theme Builder templates and page content); this file holds only what Elementor has no control for.
Author: B Square Web
Author URI: https://bsquareweb.com
Template: hello-elementor
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: tommybrunett-child
*/

/* Keep in-page anchors clear of the sticky header. */
html { scroll-padding-top: 100px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/*
 * WooCommerce buttons (Cart block link, account/login buttons) carry WooCommerce's
 * own styles, which Site Settings → Buttons does not override. Match them to the global red.
 */
.wc-block-components-button:not(.is-link),
.woocommerce :is(a, button, input).button {
	background: var(--e-global-color-primary);
	color: #fff;
	border-radius: 0;
	text-decoration: none;
	font-weight: 700;
}
.wc-block-components-button:not(.is-link):hover,
.wc-block-components-button:not(.is-link):focus,
.woocommerce :is(a, button, input).button:hover {
	background: #000;
	color: #fff;
}

/* Hello Elementor pulls wide-aligned blocks out by 80px; inside Elementor page templates the section padding already provides the gutter. */
.elementor-widget-theme-post-content .alignwide { margin-inline: 0; }

/*
 * Header logo: hangs below the bar over the hero at the top of the page,
 * then shrinks back into the bar once the visitor scrolls (body.tbb-scrolled, set in functions.php).
 * Sizes at the top are set in the Elementor header template (widget 4ccebb8).
 */
.elementor-117 .elementor-element.elementor-element-4ccebb8,
.elementor-117 .elementor-element.elementor-element-4ccebb8 img {
	transition: width .3s ease, margin .3s ease;
}
body.tbb-scrolled .elementor-117 .elementor-element.elementor-element-4ccebb8 { margin-bottom: 0; }
body.tbb-scrolled .elementor-117 .elementor-element.elementor-element-4ccebb8 img { width: 88px; }
@media (max-width: 767px) {
	body.tbb-scrolled .elementor-117 .elementor-element.elementor-element-4ccebb8 img { width: 48px; }
}
@media (prefers-reduced-motion: reduce) {
	.elementor-117 .elementor-element.elementor-element-4ccebb8,
	.elementor-117 .elementor-element.elementor-element-4ccebb8 img { transition: none; }
}

/* Home → About photo fills its column: 100% width, 100% of the row's height on desktop/tablet (Elementor image 0c92bcd). */
.elementor-element-a856821 > .elementor-element-0c92bcd { flex: 1 1 auto; display: flex; flex-direction: column; }
.elementor-element-a856821 > .elementor-element-0c92bcd img { width: 100%; height: 100%; flex: 1 1 auto; object-fit: cover; }
@media (max-width: 767px) {
	.elementor-element-a856821 > .elementor-element-0c92bcd img { height: auto; }
}
