.custom-sermon-grid-container{
  display:flex;
  flex-wrap: wrap;
}
.custom-sermon-image{
  width: 100%;
  padding-bottom: 56.25%;
  background-size: cover;
  background-position: center;
}
.custom-sermon-grid-item{
  width: 100%;
  padding: 1rem;
}
.custom-sermon-grid-item:hover{
  background-color: rgb(240,240,240);
}
.custom-sermon-w-100{
    width: 100%;    float: left;    margin-bottom: 10px;    padding: 0px;
}.custom-sermon-series-post .custom-sermon-text p {	color: #7e7f82;    font-size: 1em;    line-height: 1.4;}.custom-sermon-series-post .custom-sermon-text h4 {color: #323233;    font-weight: 700;    line-height: 1.2;    margin-bottom: 10px;    overflow: hidden;	}.custom-sermon-image-container {    padding: 20px;	}.custom-sermon-w-100.custom-sermon-series-post:hover {    background: #f2f2f2;}.custom-sermon-w-100.custom-title {    text-align: center;}.custom-sermon-w-100.custom-title h3 {    font-size: 2.2em;    font-weight: 700;    margin-bottom: 8px;}.custom-sermon-related .custom-sermon-w-100.custom-title {    text-align: left;    font-size: 7px;}.custom-sermon-grid-container.search-form form {    text-align: center;    margin: auto;}.custom-sermon-grid-item h3 {    font-size: 17px;    text-align: left;}

.custom-sermon-grid-container.search-form button {
    display: none;
}
.custom-sermon-grid-container.search-form {
    margin-bottom: 22px;
}
.custom-sermon-grid-container.search-form input[type=text] {
width: 280px;
    box-sizing: border-box;
    border: 1px solid #dad3d3;
    border-radius: 0;
    font-size: 16px;
    background-color: white;
    background-image: url(../images/searchicon.png);
    background-position: 10px 10px;
    background-repeat: no-repeat;
    padding: 12px 20px 12px 40px;
    -webkit-transition: width 0.4s ease-in-out;
    transition: width 0.4s ease-in-out;
    background-size: 10%;
    background-color: #dad3d3;
}

.custom-sermon-grid-container.search-form ::placeholder {
    color: #000;
}
.custom-sermon-grid-container.search-form :-ms-input-placeholder {
    color: #000;
}
.custom-sermon-grid-container.search-form ::-ms-input-placeholder {
    color: #000;
}

.wpfc-sermon-container > a {
    overflow: hidden;
    display: block;
}
.custom-sermon-grid-container {
    padding: 2%;
}

@media (min-width: 576px) {
  .custom-sermon-grid-item, .custom-sermon-series-post .custom-sermon-image-container{
    width: 50%;
  }
}
@media (min-width: 768px) {
  .custom-sermon-grid-item, .custom-sermon-series-post .custom-sermon-image-container{
    width: 33.33%; float:left;
  }  .custom-sermon-text {    width: 66.67%;    float: left;    padding: 50px 20px 0;}
}







.site-header.float-header {
	background-color: #171717 !important;
	padding: 17px;
}
.site-header.float-header #mainnav {
	padding: 0;
}

.site-header.float-header #mainnav > ul > li > a {
	height: 70px;
	line-height: 70px;
}

.site-header.float-header .logo {
	margin: 20px 0;
}
.header-image{
	display:flex !important;
	justify-content:center;
	align-items:center;
	height:400px !important;
}
.header-image h2{
	position:relative;
	z-index:999;
	color:white;
	margin-bottom:0;
	margin-top:80px;
}
/*Main Content*/
.custom-sermon-grid-container{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}
.custom-sermon-grid-item {
	max-width:350px;
	padding:10px 15px !important;
	border:none !important;
	border-radius:5px;
	margin-bottom:10px;
}
.custom-sermon-grid-item:hover{
	background:#eee;
	cursor:pointer;
}
.custom-sermon-grid-item .title-post{
	padding:0 !important;
}
.custom-sermon-grid-item .posted-on {
	text-decoration: none !important;
	color:grey;
}
.sermon-custom-header-image {
	/
	*background-size:cover;
	background-repeat:no-repeat;
	background-position:center;*/
	width:80%;
	/*height:330px;*/
	position: relative;
	margin: -220px auto 30px;
}
.custom-sermon-container-custom {
	width:80%;
	padding:0 10px;
	margin:0 10%;
}
.custom-sermon-grid-container.search-form {
	float:none !important;
	position:relative;
	padding-bottom:0;
	margin-bottom: 0;
}
.custom-sermon-grid-container.search-form input[type=text] {
	width:420px;
	background-color:#f5f6f7;
	border: 0;
	box-shadow: none;
	cursor: text;
	font-size: 1.286em;
	height: 46px;
	color:#222;
	border-radius:3px;
	background-position: 10px center;
	background-size: auto 60%;
	padding:8px 20px 8px 45px;
}
.custom-sermon-grid-container.search-form input[type=text]:focus{
	background-color:white;
	box-shadow:2px 10px 30px 0 #ccc;
}
/*.wpfc-sermon-single-media {
	position: relative;
	top: -280px;
	z-index: 10;
	width:80%;
	margin: 0 auto -280px !important;
	max-width:none !important;
	max-height:none !important;
}*/

.wpfc-sermon-single-media {
    position: relative;
    top: 44px;
    z-index: 10;
    margin: 0 auto 44px !important;
        width: 80%!important;
        max-width:unset!important;
        max-height:unset!important;
}

.wpfc-sermon-single-media  + div {
	width:80%!important;
	margin:10px auto !important;
}
.custom-sermon-related {
	width:80%;
	margin:auto;
	overflow: hidden;
	margin-top: 40px;
}
.custom-sermon-description {
	width:100% !important;
}
.custom-sermon-related-link {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	    width: 100%;
}
.wpfc-sermon-single-audio-download {
    border: none!important; 
}
.custom-sermon-notes a {
    padding: 15.4px 22px;
    background: #000;
    color: white;
    text-transform: uppercase;
    border-radius: 40px;
    font-size: 14px;
	cursor: pointer;
	transition:background-color 0.3s ease-in-out;
}
.custom-sermon-notes a:hover {
	background:#222;
	color:#fff !important;
}
.custom-sermon-notes br, .custom-sermon-notes strong {
    display: none;
}
.custom-sermon-notes {
    background: none!important;
    border: none!important;
    padding: 0!important;
}
.wpfc-sermon-container h3 {
    font-size: 35px;
    margin-bottom: 7px!important;
    
}

.wpfc-sermon-container h4 {
    font-size: 24px;
    margin-bottom: 0!important;
}
.custom-sermon-related>div>h3>a {

    color: #6f6f6f;
}
.custom-sermon-w-100.custom-title {
    margin-bottom: 0;
}
.wpfc-sermon-single-audio {
    justify-content: flex-end!important;
}


























@media(max-width:768px){
	.custom-sermon-grid-item {
		max-width:100%;
	}

	.custom-sermon-grid-container.search-form input[type=text] {
		width:80%;
		display:block;
		margin:auto;
		max-width: 350px;
	}
	/*.wpfc-sermon-single-media {
		top: -180px;
		margin: 0 auto -180px !important;
	}*/
}
@media(max-width:991px) {
	.header-image {
		flex-direction:column;
	}
	.header-image h2{
		margin-top: -110px;
		padding-bottom: 50px;
	}
}

@media(max-width:520px) {
	/*.wpfc-sermon-single-media {
		top: -90px;
		margin: 0 auto -90px !important;
	}*/
}


.background-top-media {
    background: #d8d8d8;
    text-align: center;
    font-size: 50px;
    padding: 150px 0;
    color: #dedede78;
    font-family: Montserrat;
    display: block;
    font-weight: 800;
    background-position: center center;
}
.sermon-custom-header-image {
    margin: 0 auto 80px;
    text-align: center;
	width:928px;
	position:relative;
	top:44px;
}
@media(max-width:959px) {
	.sermon-custom-header-image {
		width:80%;
	}
}
.sermon-custom-header-image img {
    width: auto;
}
main.wpfc-sermon-container:before {
    background: #171717;
    width: 100%;
    content: "";
    left: 0;
    position: absolute;
    display: block;
}

.custom-sermon-notes{
	margin-bottom:0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	width:auto !important;
	margin-right:10px;
}
.admin-bar .wpbf-navigation-active {
	margin-top: 0 !important;
}
.custom-sermon-share {
	display: flex;
	justify-content: center;
	align-items: center;
}
.custom-sermon-share a {
	padding: 10px 34px;
	background: black;
	color: white;
	text-transform: uppercase;
	border-radius: 40px;
	font-size: 14px;
}

/*Edit*/
.wpfc-sermon-single-audio {
	justify-content: flex-start !important;
	margin: 40px 0 !important;
	flex-wrap: wrap;
}
.wpfc-sermon-container  {
	margin-bottom:100px;
}
.wpfc-sermon-container > a {
	display:flex;
	justify-content: center;
}
.custom-sermon-container-custom {
	margin: 0 !important;
    padding:0 !important;
}
.sermon-custom-header-image img{
	margin-top:24px;
}
audio {
	margin:10px 0;
}
@media (max-width:471px) {
	audio {
		width:200px;
	}
}
@media (max-width:959px) {
	main.wpfc-sermon-container:before{
		height: calc(45vw + 70px);
	}
	.custom-sermon-text {
		padding-top: 30px;
	}
}
@media (min-width:960px) {
	main.wpfc-sermon-container:before{
		height:600px;
	}
	.wpfc-sermon-single-media{
		margin:0 !important;
		width:100% !important;
        padding-bottom:20px;
	}
	.wpfc-sermon-single-media>div,.wpfc-sermon-single-media + div, .custom-sermon-container-custom, .custom-sermon-related {
		width:928px !important;
	}

    .wpfc-sermon-single-media>div {
        margin: 24px auto 0 !important;
    }
    .wpfc-sermon-single-media + div {
        margin: 24px auto !important;
    }

}
@media(max-width:768px) {
	.custom-sermon-text {
		padding:20px !important;
	}
}
/*@media(max-width:830px){*/
	/*.wpfc-sermon-single-audio{*/
		/*justify-content:center !important;*/
	/*}*/
/*}*/