/*
Theme Name: Beye PTO
Theme URI: https://www.beyeschoolpto.org
Author: Beye PTO
Description: A warm, friendly block theme for the William Beye Elementary PTO. Content is driven by simple custom post types (Board Members, Events, Working Groups, Resources, After School, Ways to Give) so volunteers can edit by filling out forms. Colors are Beye blue + gold and live in theme.json for easy adjustment.
Version: 0.1.0
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beye-pto
*/

/*
 * After School program images are provider logos, not photos. Inside the
 * fixed 16/9 featured-image box, fit them whole instead of crop-zooming:
 * scale-down behaves like `contain` for large images but never enlarges
 * small ones (which is what made low-res logos pixelated).
 */
/* A buttons row whose buttons were all skipped (e.g. Ways to Give cards
 * without a CTA link) should not leave its spacing behind. */
.wp-block-buttons:not(:has(.wp-block-button)) {
	display: none;
}

/* Lift the hero logo plaque off the gradient background. */
.beye-hero-logo img {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Once hero columns stack (WP breakpoint 782px), the plaque would sit below
 * the buttons and duplicate the header logo just above — hide it there. */
@media (max-width: 781px) {
	/* Outranks core's `.wp-block-image.aligncenter { display: table }`. */
	figure.wp-block-image.beye-hero-logo {
		display: none;
	}
}

.post-type-archive-after_school .wp-block-post-featured-image img,
.single-after_school .wp-block-post-featured-image img {
	/* !important: the block renders object-fit:cover inline on the img. */
	object-fit: scale-down !important;
	box-sizing: border-box;
	padding: 1.25rem;
	background-color: #fff;
}
