/*
Theme Name: Double Play Gear
Template: twentytwentyfive
Description: Child theme of Twenty Twenty-Five recreating the Double Play Gear site with Gutenberg blocks.
Version: 1.0.2
Requires at least: 6.7
Text Domain: doubleplaygear
*/

/* Stack full-width sections and the header/main/footer with no gaps between them. */
.wp-site-blocks > * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block-start: 0; }

/* Header */
.dpg-top-bar a { color: inherit; text-decoration: none; }
.dpg-top-bar p { margin: 0; }
.dpg-main-header { box-shadow: 0 1px 0 rgba(0, 0, 0, .1); }
.dpg-main-header .wp-block-navigation a { color: rgba(0, 0, 0, .6); }
.dpg-main-header .wp-block-navigation a:hover { color: var(--wp--preset--color--teal); }

/* Hero */
.dpg-hero-quote strong { font-weight: 700; }
.dpg-hero-photo img {
	border-radius: 100px 0 100px 0;
	box-shadow: 0 2px 18px 0 rgba(66, 66, 66, .4);
}

/* Equipment counters */
.dpg-counter {
	line-height: 1;
	text-shadow: .08em .08em .08em rgba(0, 0, 0, .4);
	font-variant-numeric: tabular-nums;
}
.dpg-equipment-icon { min-height: 125px; display: flex; align-items: center; justify-content: center; }

/* Gallery: show every photo as a square, center-cropped, whatever its original shape */
.dpg-gallery .wp-block-gallery .wp-block-image img {
	aspect-ratio: 1 / 1;
	width: 100%;
	height: auto;
	object-fit: cover;
	/* Set per image with the "Crop position" control in the editor sidebar. */
	object-position: var(--dpg-focal, 50% 50%);
}

/* Contact section */
.dpg-contact-boxes { border-top-left-radius: 40px; overflow: hidden; }
.dpg-contact-boxes a { color: inherit; text-decoration: none; }
.dpg-contact-boxes a:hover { text-decoration: underline; }
.dpg-contact-icon .wp-social-link { font-size: 56px; }
.dpg-contact-icon.wp-block-social-links .wp-social-link { padding: 22px; }

/* Footer */
.dpg-footer p { margin: 0; }

@media (max-width: 980px) {
	.dpg-hero-photo img { border-radius: 50px 0 50px 0; }
}
@media (max-width: 767px) {
	.dpg-hero-photo img { border-radius: 20px 0 20px 0; }
	.dpg-contact-boxes { border-top-left-radius: 20px; }
}

/* Contact icon circles (social-links custom rgba backgrounds aren't output, so set them here) */
.dpg-icon-on-lime .wp-social-link { background-color: rgba(0, 39, 37, .1); }
.dpg-icon-on-green .wp-social-link { background-color: rgba(255, 255, 255, .1); }
