/*
Theme Name: Baptist Messenger
Version: 1.0
Description: Child Theme of Extra
Author: Grant Bivens
Template: Extra
Author URI: http://www.oklahomabaptists.org
*/
@import url("../Extra/style.css");


/* Message Status Boxes */
	.isa_info, .isa_success, .isa_warning, .isa_error {
	    margin: 10px 0px;
	    padding:20px;
	    font-size: 1.3em;
	    line-height: 1.5em; 
	}
	.isa_info {
	    color: #00529B;
	    background-color: #BDE5F8;
	}
	.isa_success {
	    color: #4F8A10;
	    background-color: #DFF2BF;
	}
	.isa_warning {
	    color: #9F6000;
	    background-color: #FEEFB3;
	}
	.isa_error {
	    color: #D8000C;
	    background-color: #FFD2D2;
	}

	
/* Post Meta Overrides */
	.post-meta a {
		text-decoration: underline;
	}

/* Post Header Overrides */
	.post-header {
		padding: 60px 60px 40px 60px;
	}
	
	.post-header h1.entry-title {
		font-size: 26px;
	}


/* Post Thumbnail Overrides on single post page - Set aspect-ratio: to 16x9 */
	body.single-post .et_post_format-et-post-format-standard .post-thumbnail {
		position: relative;
		width: 100%;
		margin: 0 0 40px;
		display: block;
		padding-top: 56.25%;
	}
	
	body.single-post .et_post_format-et-post-format-standard .post-thumbnail img {
		display: block;
		width: 100%;
		position: absolute;
		height: 100%;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		object-fit: cover;
	}	
		

/* Change widget title text color */
	.et_pb_extra_column_sidebar .et_pb_widget .widgettitle { 
		background: #002a3a;
	}

/* PowerPress widget spacing fix */
	.pp-ssb-widget { 
	    width: 90% !important;
	    margin: 10px auto !important;
	}
	
/* PowerPress Podcast Styling */
	.powerpress_player {
		display: block;
		clear: both;
		float: left;
		margin-top: 20px;
	}
	
	p.powerpress_links {
		display: block;
		float: left;
		margin: 5px 0 20px 0;
	}
	
	p.powerpress_links.powerpress_links_mp3,
	p.powerpress_links.powerpress_links_mp4 {
		float: right;
	}
	
	.pp-sub-widget {
	  margin: 0 !important;
	  border: none !important;
	}
	
	.pp-sub-widget .pp-sub-h {
		display: none !important;
	}
	
	.pp-sub-widget .pp-sub-t {
		display: none !important;
	}
	
	.pp-sub-widget .pp-sub-bx {
		margin: 0 !important;
	  -webkit-column-count: 1 !important;
	  -moz-column-count: 1 !important;
	  column-count: 1 !important;
	}
	
	.pp-sub-widget .pp-sub-bx .pp-sub-l {
		display: none !important;
	}
	
	.pp-sub-widget .pp-sub-bx .pp-sub-btns {
	  -webkit-column-count: 3;
	  -moz-column-count: 3;
	  column-count: 3;
	  -webkit-column-gap: 20px;
	  -moz-column-gap: 20px;
	  column-gap: 20px;
	  width: auto;
	  height: auto;
	}
	
	.pp-sub-widget .pp-sub-bx .pp-sub-btns a {
		
	}


/* Classifieds Form/Page Overrides */
	#gform_38 .ginput_container_consent {
		font-weight: bold;
		color: #ff0000;
		margin-top: 10px;
	}
	
	.gbaptis-12 {
		max-width: 100% !important; //Fixes display issue with floats
	}

/* Gravity Form Overrides */
	/* Give some extra space between fields */
	/* .gfield {
		margin-top: 25px !important;
	} */
	
	/* Address Fix (City, State, Zip on one line) */
	.gform_body .address_city,
	.gform_body .address_state,
	.gform_body .address_zip {
		width: 31% !important;
	}
	
	.gform_body .address_state {
		margin-right: 8px !important;
	}
	
	.gform_body .address_zip {
		margin-right: 0 !important;
	}
	
	/* Fix select box height to match other input boxes */
	.gform_body select {
		/* margin-top: 8px !important;
		height: 31px; */
	}
	
	@media only screen and (min-width: 641px) {
		.gform_wrapper .ginput_complex.ginput_container_address .ginput_left {
		  margin-right: 5px !important;
		}
		.gform_wrapper .ginput_complex.ginput_container_address span.ginput_right+span.ginput_left.address_zip {
	    margin-right: -8px !important;
		}
	}


/* Subscription Management Page */
	.image-choices-field .image-choices-choice-image-wrap {
	    width: 240px !important;
	    height: 166px !important;
	}
	
	
/* Ad Rotate Overrides */
	/* 	Sidebar Ag Group 3 */
	#custom_html-4.et_pb_widget,
	#custom_html-5.et_pb_widget {
		background: none;
		border: none;
	    -webkit-box-shadow: none;
	    box-shadow: none;		
	}
	
	#custom_html-4.et_pb_widget .textwidget,
	#custom_html-5.et_pb_widget .textwidget	 {
		padding: 0;
	}
	
	#custom_html-4 h4.widgettitle,
	#custom_html-5 h4.widgettitle {
		display: none;
	}

	.aRotate {
		max-width: 300px;
		margin: 0 auto 10px;
		text-align: center;
	}
	
	.aRotateLeader {
		max-width: 728px;
		margin: 0 auto 10px;
		text-align: center;
	}
	
	.aRotateText {
		font-size: 0.8em;
	    margin: 0;
	    padding: 0;
	    display: block;
	    position: relative;
	}
	
/* Print Styles */	
	@page {
		margin: 5mm; // margin for each printed piece of paper
	}

	@media print {
		
		body {
			background-color: #ffffff;
		}
		
		#page-container::before {
			content: url(https://cdn.baptistmessenger.com/2020/12/17110658/logo-e1608224932924.png);
			display: block;
			text-align: center;
			max-width: 100%;
			height: auto;
		}
		
		body {
			font-size: 12px !important;
			color: #000000 !important;
		}

		h1, h2, h3, h4, h5, h6 {
			page-break-after: avoid;
		}

		p {
			orphans: 2;
			widows: 2;
		}
		
		#page-container {
			background-color: #ffffff !important;
		}
		
		#main-content {
			padding: 0;
		}
		
		.post-header {
			padding: 30px;		
		}
		
		.post-thumbnail {
			width: 50%;
			margin: 0 auto;
		}
		
		.page article, .single article {
			margin: 0;
		}
		
		.page .post-wrap, .post-wrap {
			padding: 0;
		}
		
		/* Add link text inline */
		/*
			a[href]:after {
				content: " (" attr(href) ")";
			}
		*/
		a[href^="http"]:not([href*="baptistmessenger.com"]):after {
			content: " (" attr(href) ")";
		}
		
		.page article, .single article {
			-webkit-box-shadow: none;
			box-shadow: none;
		}
		
		.author-box {
			-webkit-box-shadow: none;
			box-shadow: none;
			break-inside: avoid !important;
			page-break-inside: avoid !important;	
		}
		
		.author-box-header h3,
		.author-box-header a.author-link,
		.author-box-description {
			font-size: 14px;
		}
	
		/* Hide stuff */
		header,
		.et_pb_extra_column_sidebar,
		.post-footer,
		.post-nav,
		.social-icons,
		.author-box-description h4,
		.related-posts,
		#disqus_thread,
		footer,
		#back_to_top,
		.aRotateLeader,
		#custom_html-4 /* Sidebar ads */ {
			display: none !important;
		}
		
		.et_pb_extra_column_main {
			max-width: 100%;
		    width: 100%;
		    min-width: 100% !important;
		    padding: 0 !important;
		}
	}