/*
 Theme Name:   MaxRiffner
 Theme URI:    http://maxriffner.com
 Description:  Divi Child Theme
 Author:       Max Riffner
 Author URI:   http://maxriffner
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  maxriffner
*/

/***** Turn off animations for CLS *****/
.et_animated {
	opacity: 1 !important
}
.et_pb_section * {
	-o-transition-property: none!important;
	-moz-transition-property: none!important;
	-webkit-transition-property: none!important;
	transition-property: none!important;
	-o-transform: none!important;
	-moz-transform: none!important;
	-ms-transform: none!important;
	-webkit-transform: none!important;
	transform: none!important;
	-webkit-animation: none!important;
	-moz-animation: none!important;
	-o-animation: none!important;
	animation: none !important;
}

body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.footer-widget .et_bloom_header_outer {
	display: none;
}

.entry-title {text-align: center;}

.mr-blog-post p:first-child {
	font-size: 130%;
	line-height: 1.9em;
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px dotted #333;
}

.mr-blog-post p:first-child sup{
	font-size: 70%;
}

.mr-blog-post p:first-child::first-line {
	font-weight: 700;
	text-transform: uppercase !important;
	color: #000;
}

.mr-blog-post blockquote p:first-child::first-line {
	font-weight: 500;
	text-transform: none !important;
	color: #666;
}

.mr-blog-post .et_bloom_fields p:first-child::first-line {
	font-weight: 500;
	text-transform: none !important;
	color: rgba(0,0,0,0.5);
}

.mr-blog-post blockquote p {
	font-size: 18px !important;
}

.mr-blog-post blockquote p:first-child {
	line-height: 1.8em;
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: 0px;
}

sup, sub {
  vertical-align: baseline;
  position: relative;
  top: -0.4em;
}
sub { 
  top: 0.4em; 
}

.pagination a, .et_pb_post a.more-link {
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    color: #000;
   	border: 2px solid #000;
	padding: 10px;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    display:block;
    float: none;
}

.pagination a:hover, .et_pb_post a.more-link:hover {
color: #fff;
background: #000;
}

.et_pb_post a.more-link {
	float: right;
	line-height: 1em;
	margin-top: 20px;
}

.dt-blog .et_pb_post a.more-link {
	float: left;
	line-height: 1em;
	margin-top: 20px;
}

.et_pb_button, .pagination a, .et_pb_post a.more-link {
	text-decoration: none !important;
}

.pagination a:hover, .et_pb_post a.more-link:hover {
	color: #fff !important;
}
/***** Hide Offscreen Read More Links *****/
.et_pb_post a.more-link span.offscreen {display: none !important;}

/****** Fix Fullwidth Header Buttons *****/
@media only screen and (max-width: 480px) {
	.et_pb_fullwidth_header .et_pb_fullwidth_header_container .et_pb_button_two {
		margin-left: 0;
		margin-bottom: 100px;
	}
}

/***** Left align blog posts ****/
@media only screen and (min-width: 1080px) {
	.dt-blog .et_pb_post.has-post-thumbnail .entry-featured-image-url {
		float: left;
		width: 30%;
		margin-right: 4%;
	}
	.dt-blog .et_pb_post.has-post-thumbnail:not(.format-gallery) > .post-content {
		padding-left: 34%;
	}
	
	.dt-blog .et_pb_post .post-meta {
		text-align: left;
		font-weight: 700;
		text-transform: uppercase;
		border-bottom: 2px solid #eee;
		padding-bottom: 10px;
		margin-bottom: 40px;
		margin-right: auto;
		margin-left: auto;
		width: 100%;
	}
	
	.dt-blog .et_pb_blog_grid .et_pb_post .post-meta {width: 100%;}
}

/***** Make captions responsive *****/

@media (max-width: 988px){
  .wp-caption {
	/* Force the box to be 100% */
	width: 100% !important;
  }
  #content .wp-caption a img {
	/* Scale down if too big */
	max-width: 99.03225806%; /* 614/620 */
	height: auto;
  }
}
