/*
Theme Name: ChristianPress
Theme URI: https://christianpress.com
Author: ChristianPress.com
Description: The ChristianPress.com press release theme. Royal blue, navy and gold with classic serif headlines. On activation it creates the site's pages (Pricing, Send a Release, For Journalists, Editorial Standards, About, Contact) and sets Home and Newsroom. Works with the ChristianPress Releases plugin.
Requires at least: 6.5
Tested up to: 7.2
Requires PHP: 7.4
Version: 1.0.13
License: GPLv2 or later
Text Domain: christianpress
*/

/* Small touches theme.json can't express. */
.wp-block-post-terms a {
	display: inline-block;
	background: #efe9dc;
	color: #5a4a26;
	border-radius: 999px;
	padding: 1px 10px;
	margin: 2px 2px 2px 0;
	font-weight: 600;
	text-decoration: none;
	font-size: 12px;
}
.wp-block-post-terms .wp-block-post-terms__separator { display: none; }
.wp-block-post-title a { text-decoration: none; }
.wp-block-post-title a:hover { text-decoration: underline; }
.wp-block-site-title a { text-decoration: none; }
.wp-block-navigation a { text-decoration: none; }
.wp-block-navigation a:hover { text-decoration: underline; }
.wp-block-button.is-style-outline > .wp-block-button__link { border-color: currentColor; }
.wp-block-post-excerpt__more-link { font-weight: 600; }
.cp-wordmark, .cp-wordmark a { font-weight: 700; }
.cp-wordmark a { color: #ffffff; text-decoration: none; }
.cp-wordmark mark { background: none; padding: 0; }

/* About page bios: each photo stays beside its own section. */
.cp-bio { display: flow-root; margin-top: 2.2em; }
.cp-bio .wp-block-image.alignleft { margin: 0.3em 1.6em 1em 0; }
.cp-bio .wp-block-image img { border-radius: 10px; }
@media (max-width: 600px) {
	.cp-bio .wp-block-image.alignleft { float: none; margin: 0 0 1em; }
	.cp-bio .wp-block-image.alignleft img { width: 200px !important; }
}

/* Release thumbnails in the newsroom and on the home page. */
.cp-item-row .cp-item-text { flex: 1; min-width: 0; }
.cp-item-row .cp-thumb { flex-shrink: 0; margin: 4px 0 0; }
.cp-item-row .cp-thumb img { border-radius: 8px; border: 1px solid #e3ddd1; }
@media (max-width: 600px) {
	.cp-item-row .cp-thumb { width: 96px !important; height: 72px !important; }
}

/* Home page photo: keep the headline readable on phones, where the
   photo is cropped and sits behind the text. */
.cp-hero .wp-block-cover__inner-container .wp-block-heading { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
@media (max-width: 781px) {
	.cp-hero { min-height: 520px !important; }
	.cp-hero .wp-block-cover__gradient-background {
		background: linear-gradient(180deg, rgba(11,22,49,.86) 0%, rgba(11,22,49,.72) 60%, rgba(11,22,49,.55) 100%) !important;
		opacity: 1 !important;
	}
}

/* Header logo */
.cp-logo img { height: 40px; width: auto; display: block; }
@media (max-width: 600px) { .cp-logo img { height: 30px; } }
.cp-logo-footer img { height: 32px; }
.cp-logo-footer { margin-bottom: 6px; }
