/*****
Theme Name: CWR (MH Magazine Child Theme)
Theme URI: https://www.mhthemes.com/themes/mh/magazine/
Description: This is a child theme for MH Magazine WordPress theme for Catholic World Report.
Author: Dan Nicholls
Author URI: https://danicholls.com/
Template: mh-magazine
Version: 1.7.5
License: GNU General Public License v2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*****/

.entry-content img {
    max-width: 100%;
}

.entry-content iframe,
.entry-content object,
.entry-content embed {
    display: block;
    margin: 0 auto 1em;
    max-width: 100%;
}

.search-form input {
    font-size: 12px;
    line-height: 1.2;
}

.mh-widget .search-form {
    background: white;
    padding: 0;
}

.mh-widget .search-form .search-field {
    text-transform: none;
    display: inline-block;
    width: auto;
}

.mh-widget .search-form .search-submit {
    display: inline-block;
    color: #a22012;
    background: transparent;
    border-width: 0 0;
}

.entry-meta-print {
    float: right;
    clear: none;
}


/* header widgets */

.mh-custom-header {
    overflow: hidden;
}

.mh-custom-header .mh-header-2 {
    margin: 5px 20px 5px 0;
}

.mh-custom-header .widget_search {
    margin-top: 40px;
}

.mh-custom-header .search-form {
    display: inline-block;
    padding: 0;
}

.mh-custom-header .search-form .search-field {
    border-width: 0;
    width: 15em;
}

.mh-custom-header .search-form .search-field:focus {
    width: 24em;
}

.mh-custom-header .mh_magazine_social {
    background: #333;
    background: rgba(0,0,0,0.59);
    color: #fff;
    line-height: 30px;
    text-align: center;
    float: right;
    clear: none;
    padding: 2px 4px;
}

.mh-custom-header .mh_magazine_social .mh-widget-title {
    display: inline-block;
    text-transform: lowercase;
    border-width: 0 0 0;
    font-weight: normal;
    color: inherit;
    margin: 0 10px;
    padding: 0 0 0;
    vertical-align: middle;
    line-height: inherit;
    font-size: 14px;
}

.mh-custom-header .mh_magazine_social .mh-social-widget {
    background: none;
    padding: 0 0 0;
    display: inline-block;
    vertical-align: bottom;
}

.mh-custom-header .mh_magazine_social .mh-social-widget li {
    margin: 0 10px 0 0;
}

.mh-custom-header .mh_magazine_social .mh-social-widget li a {
    font-size: 20px;
    height: 30px;
    width: 20px;
    background: none;
    line-height: inherit;
}


.mh-social-icons li a[href$="free-newsletter/"] .fa-mh-social::before {
    content: '\f003';
}



.mh-ticker-item-cat { display: none; }

.mh-ticker-title a,
.mh-ticker-title a:hover,
.mh-ticker-title a:focus {
    color: white;
}

.mh-ticker-item a:hover .mh-ticker-item-title,
.mh-ticker-item a:focus .mh-ticker-item-title {
    text-decoration: underline;
}


.mh-header-image-link img {
    max-width: none;
}

.mh-header-bar-bottom-left {
    width: 100%;
}


/* CSS workaround for Dispatch widget */
#mh_magazine_custom_posts-9,
#mh_magazine_custom_posts-7 {
    background: #f5f5f5;
}

#mh_magazine_custom_posts-9 .mh-widget-title-link,
#mh_magazine_custom_posts-7 .mh-widget-title-link {
    display: block;
    text-indent: -999em;
    overflow: hidden;
    background-color: #ac1d0e;
    background-image: url("images/dispatch-sidebar_large.png");
    background-image: url("images/dispatch-sidebar.png")\9; /* IE8- contain workaround */
    background-repeat: no-repeat;
    background-position: top left;
    background-size: contain;
    width: 326px;
    height: 81px;
    max-width: 100%;
    margin: 0 auto;
}

#mh_magazine_custom_posts-9 .mh-widget-title,
#mh_magazine_custom_posts-7 .mh-widget-title {
    border-width: 0 0 0;
    padding-bottom: 0;
}

#mh_magazine_custom_posts-9 .mh-custom-posts-widget,
#mh_magazine_custom_posts-7 .mh-custom-posts-widget {
    margin: 0 12px 10px;
    margin: 0 1rem 0.8rem;
}


.dispatch-header,
.dispatch-title,
.dispatch-subtitle {
    min-height: 40px;
    line-height: 40px;
    font-size: 34px;
    vertical-align: top;
}

.dispatch-header {
    margin: 4px auto 21px;
}

.dispatch-title {
    color: #fffa9c;
    font-weight: normal;
    text-transform: uppercase;
}

.dispatch-subtitle {
    font-size: 28px;
    font-style: normal;
}


.single #main-content .post .entry-title {
    border-bottom: 2px solid black;
}

.single #main-content .post .deck {
    padding: 0.75em 0 0.25em;
}


.comment-warning {
    border: 1px solid #cc6e00;
    font-size: 110%;
    line-height: 1.5;
    padding: 1em;
    background: #ffdc50;
    margin: 1em 0;
    color: #703c00;
}

#commentform .comment-warning > :last-child {
    margin-bottom: 0;
}

.mh-author-box a {
    text-decoration: underline;
}

.mh-author-box a:hover,
.mh-author-box a:focus {
    text-decoration: none;
}


.mh-posts-digest-small .mh-meta-author--alt,
.mh-custom-posts-small .mh-meta-author--alt {
    display: block;
    margin: 4px 0 3px;
}


#newsletter-signup-dn, #donation-cta-dn {
	position: relative;
    color: white;
    padding: 10px 10px 14px;
    text-align: center;
    font-weight: bold;
    vertical-align: middle;
    background: #922411;
    background: rgba(169,3,41,1);
    background: -moz-linear-gradient(top, rgba(169,3,41,1) 0%, rgba(146,36,17,1) 88%, rgba(109,0,25,1) 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(169,3,41,1)), color-stop(88%, rgba(146,36,17,1)), color-stop(100%, rgba(109,0,25,1)));
    background: -webkit-linear-gradient(top, rgba(169,3,41,1) 0%, rgba(146,36,17,1) 88%, rgba(109,0,25,1) 100%);
    background: -o-linear-gradient(top, rgba(169,3,41,1) 0%, rgba(146,36,17,1) 88%, rgba(109,0,25,1) 100%);
    background: -ms-linear-gradient(top, rgba(169,3,41,1) 0%, rgba(146,36,17,1) 88%, rgba(109,0,25,1) 100%);
    background: linear-gradient(to bottom, rgba(169,3,41,1) 0%, rgba(146,36,17,1) 88%, rgba(109,0,25,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a90329', endColorstr='#6d0019', GradientType=0 );
}

#donation-cta-dn {
  font-weight: normal;
  font-size: 12px;
}

#newsletter-signup-dn * {
    display: inline;
    vertical-align: middle;
}

#newsletter-signup-dn label,
#newsletter-signup-dn input {
    display: inline-block;
    margin: 0 0.5em;
}

#newsletter-signup-dn input {
    font-weight: normal;
    width: 25em;
    max-width: 50%;
    font-size: 1.1em;
}

#newsletter-signup-dn button, #donation-cta-dn a {
    background-color: #821401;
    border: 2px solid white;
    color: white;
    border-radius: 10px;
    padding: 0.35em 0.7em;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal;
    font-size: 11px;
    margin: 0 0.5em;
}

#donation-cta-dn .cta-content {
    width: 90%;
    max-width: 1200px;
	display: block;
	margin: 0 auto;
}

#donation-cta-dn .bubble {
	padding: 7px;
  display: inline-block;
}

#donation-cta-dn .donation-closer {
	position: absolute;
	right: 15px;
	top: 10px;
}

@media(max-width: 625px) {
	#donation-cta-dn a {
		display: block;
		margin: 7px auto;
		max-width: 70px;
	}

	#donation-cta-dn .cta-content {
		width: 85%;
	}
}

#newsletter-signup-dn button:hover,
#newsletter-signup-dn button:focus,
#donation-cta-dn a:hover,
#donation-cta-dn a:focus{
    background-color: white;
    background-color: rgba(255,255,255,0.8);
    color: #821401;
    border-color: #821401;
}

#newsletter-signup-dn .signup-closer, #donation-cta-dn .donation-closer {
    color: #FFF;
    float: right;
    clear: none;
    border: 1px solid #FFF;
    border-radius: 50%;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    cursor: pointer;
    margin: 0.25em 0.5em 0 0.5em;
    box-shadow: 0 0 3px #590300;
}

#newsletter-signup-dn .signup-closer:hover,
#newsletter-signup-dn .signup-closer:focus {
    background-color: #590300;
    color: white;
}


.dn-modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: grey;
    background: rgba(255,255,255,0.9);
    padding: 40px;
    z-index: 99999;
}

.dn-modal-box {
    min-height: 50%;
    background: white;
    width: 500px;
    margin: 0 auto;
    padding: 1em;
    border: 1px solid #777;
    box-shadow: 0 0 3px #ccc;
}

.dn-modal-close {
    position: absolute;
    top: 2px;
    right: 2px;
    padding: 3px;
    font-weight: bold;
    color: #922411;
    border: 1px solid #ccc;
    cursor: pointer;
    text-align: center;
    line-height: 35px;
    height: 35px;
    width: 35px;
    overflow: hidden;
    text-transform: uppercase;
    background-color: white;
}

.dn-modal-close:hover,
.dn-modal-close:focus {
    background-color: #922411;
    color: white;
}

/* old, imported images -- import parent theme styles for .align classes */

.entry-content img[align="right"] {
    display: inline;
    float: right;
    margin: 5px 0 20px 20px;
    margin: 0.3125rem 0 1.25rem 1.25rem;
    max-width: 60%;
}

.entry-content img[align="left"] {
    display: inline;
    float: left;
    margin: 5px 20px 20px 0;
    margin: 0.3125rem 1.25rem 1.25rem 0;
    max-width: 60%;
}

.entry-content img[align="center"] {
    display: block;
    margin: 20px auto;
    margin: 1.25rem auto;
}

.tag-controversies-with-coren,
.tag-politics + .tag-politics,
.tag-media + .tag-media { display: none; }


/* CNA articles */
img[src^='http://www.catholicnewsagency.com/'] {
    display: block;
    margin: 0 auto 1em;
}


.mh-social-bottom {
    clear: both;
}

.mc4wp-form label {
    display: block !important;
    cursor: pointer !important;
}

.mc4wp-form input:hover,
.mc4wp-form input:focus {
    border-color: #777 !important;
}

.entry-content blockquote {
    font-style: inherit;
    font-size: 105%;
    border-color: #777;
}

@media screen and (min-width: 900px) {



}

@media screen and (max-width: 900px) {

    /* technically as variable as the logo itself, so was in custom CSS area instead */
    /* mh theme update nuked it, so now it's here. */
    .mh-site-logo {
        padding: 0 0 0 !important;
        background-image: url("/wp-content/uploads/2017/02/new-header-sliver.png");
        background-position: 0 0;
        background-repeat: repeat-x;
    }
    /* .mh-wrapper, #mh-mobile .mh-site-logo, .mh-slider-content, .mh-spotlight-widget, .mh-author-bio-widget, .mh-posts-horizontal-widget, .mh-posts-lineup-content {
        padding: 0;
    } */

}

@media screen and (min-width: 767px) {

    .mh-header-columns {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
    }

    .mh-site-identity {
        display:none;
    }

    .mh-header-widget-2 {
        width: 100%;
        margin-left: 0;
        padding-left: 3%;
    }

    .mh_magazine_slider {
        min-height: 375px;
    }

    .flexslider .slides img {
        height: 375px;
    }

}


@media screen and (max-width: 767px) {

    .mh-header-image-link,
    .mh-header-widget-2 {
        display: none;
    }

    .mh-site-identity {
        visibility: visible;
    }

    .custom-logo-link {
        display: block;
    }


    .dispatch-header {
        border-left: 0;
    }

    .dispatch-logo {
        margin: 14px 12px 7px 6px;
    }

}

.post-donation-box p {
    font-style: italic;
}

.post-donation-box hr {
    border: 1px solid;
}


/* MailChimp form overrides */
#mc_embed_signup #mc-embedded-subscribe-form .email-frequency,
.mc4wp-form .email-frequency {
  margin-bottom: 10px;
}

#mc_embed_signup #mc-embedded-subscribe-form .email-frequency .frequency-option,
.mc4wp-form .email-frequency .frequency-option {
  display: inline-block;
  margin-right: 10px;
  margin-left: 5px;
  min-width: 65px;
}

#mc_embed_signup #mc-embedded-subscribe-form .email-frequency .frequency-option input,
.mc4wp-form .email-frequency .frequency-option input  {
  display: inline-block;
  margin-right: 5px;
  width: auto;
}

#mc_embed_signup #mc-embedded-subscribe-form .email-frequency .frequency-option span,
.mc4wp-form .email-frequency .frequency-option span  {
  display: inline-block;
}