/*
Theme Name:     Havespiren
Description:    
Author:         Digitalist.dk - Janus Lock
Template:       Divi

*/


/*------------------------------------*\
    Helper classes
\*------------------------------------*/

/* Vertical align */
.vertical-align { 
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    -ms-flex-align:center;
}

@media only screen and ( max-width: 980px ) {
	.flip { 
		display: -webkit-flex;
		-webkit-flex-direction: column-reverse;
		display: flex;
		flex-direction: column-reverse !important;
	}
}

/*------------------------------------*\
    General
\*------------------------------------*/
#main-header a{
	font-weight: 400!important;
}

#main-header a:hover,
.current-menu-item a{
	color: #d6a596!important;
}

.container:before { background-color:transparent !important; }
.et_pb_widget_area_right { border-left:0 !important; }
.et_pb_widget_area_left { border-right:0 !important; }
/*------------------------------------*\
    News
\*------------------------------------*/
.news .et_pb_ajax_pagination_container,
.news.ui-sortable div{
	display: -ms-flex;
	display: -webkit-flex;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: end;
}


.news .et_pb_post {
	background: #FFFFFF;
	padding: 0 0 30px 0;
	border: 0 solid;
	margin-bottom: 25px;
	box-shadow: 0px 0px 10px rgba(0,0,0,0.2);	
}

.news .et_pb_post:hover {
	background: #FFFFFF;
	box-shadow: 0px 0px 15px rgba(0,0,0,0.3);	
}


.news .entry-title {
    font-size: 30px !important;
    font-weight: 600;
    text-transform: uppercase;
    padding: 15px;
    text-align: center;
    line-height: 1em;
}

.news .post-content{
	font-size: 13px;
	padding: 0 15px 15px 15px;
	text-align: center;

}

.news .et_pb_post .entry-featured-image-url{
	margin-bottom: 0;
}


.news .et_pb_post .post-content p{
	font-size: 14px;
	line-height: 20px;
}


.news .published {
	top: 25px;
	left: 35px;
	position: absolute;
	font-size: 12px;
	font-weight: 300;
	line-height: 1;
	text-transform: uppercase;
}


.news .pagination{
	width: 100%;
}

.news .et_pb_post .entry-featured-image-url img{
	object-fit: cover!important;
	min-height: 300px;
}


@media (min-width: 980px) {
	.news .et_pb_post .entry-featured-image-url{
		margin-bottom: 0;
		height: 300px;
		overflow: hidden;
	}
	
	.news .et_pb_post  {

		width: calc(100% / 3 - 80px /3);
		margin-right: 40px;
	}

	.news .et_pb_post:nth-child(3n+0){
		margin-right: 0;
	}
}

@media (max-width:480px) {
	.news .et_pb_post  {
		width: 100%;
	}

}


/*------------------------------------*\
    Sidebar
\*------------------------------------*/
#sidebar .widgettitle,
.et_pb_widget_area_left .widgettitle{
	text-align: center;
	background: #d6a596;
	color: #55635e;
	padding: 10px 0;
	font-size: 16px;
	font-style: italic;
	margin-bottom: 25px;
}

/*------------------------------------*\
    Single post
\*------------------------------------*/
.single-post .entry-title{
	text-align: center;
	background: #d6a596;
	color: #55635e;
	font-size: 28px;
	margin-bottom: 0px;
	padding-top: 20px!important;
}

.single-post .post-meta,
.single-post .post-meta a{
	text-align: center;
	background: #d6a596;
	font-family: 'Fira';
	color: #55635e !important;
	text-transform: uppercase;
}