/*
Theme Name: Eden Garden Club
Theme URI: https://edengardenclub.com/
Author: Eden Garden Club, Inc.
Description: A lightweight block theme for the Eden Garden Club of Castro Valley, California. Pages are built entirely from standard WordPress blocks, and the header, footer, colors and fonts can all be changed in Appearance > Editor.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eden-garden
Tags: block-theme, full-site-editing, one-column, custom-colors, editor-style
*/

/*
 * Almost all styling lives in theme.json so it can be edited from
 * Appearance > Editor > Styles. Only layout details that theme.json
 * cannot express are kept here.
 */

/* Let the header, page content and footer sit flush against each other so
   full-width coloured sections meet the footer without a white strip. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* Full-width sections (photo banners, coloured groups) stack directly on top
   of each other instead of leaving a white gap between them. */
.entry-content > .alignfull + .alignfull,
.is-root-container > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* Breathing room above the footer, unless the page already ends with a
   full-width section. */
.wp-site-blocks > main {
	padding-bottom: var(--wp--preset--spacing--60);
}

.wp-site-blocks > main:has(> .entry-content > .alignfull:last-child),
.wp-site-blocks > main:has(> .entry-content > .alignfull:only-child) {
	padding-bottom: 0;
}

/* Gallery captions sit under each photo (as on the old site) instead of
   being overlaid on it. Captioned photos get an even 4:3 crop so each row
   of a gallery lines up. */
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image):has(figcaption) img {
	flex: none;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption.wp-element-caption {
	position: static;
	margin: 0.4rem 0 0;
	padding: 0;
	max-height: none;
	overflow: visible;
	background: none;
	color: inherit;
	text-align: center;
	text-shadow: none;
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption) {
	flex-direction: column;
	justify-content: flex-start;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before {
	display: none;
}

.wp-block-gallery .blocks-gallery-caption {
	font-weight: 600;
}
