.calendar{
	background: #fff;
	padding: 40px;
	overflow: hidden;
	height: 420px;
	position: relative;
}

.hexa-events-calendar{
	margin: 0;
}

.hexa-events-calendar caption a{
	color: #2f2f2f;
}

.hexa-events-calendar td, .hexa-events-calendar th{
	text-align: center;
	height: 41px;
	width: 14.29%;
}

.hexa-events-calendar caption{
	text-align: center;
	padding: 10px 0;
	font-size: 20px;
	border-top: 1px solid #f3f3f3;
	border-bottom: 1px solid #f3f3f3;
}

.hexa-events-calendar td a{
	background: #fff;
	color: #2f2f2f;
	border: 2px solid #39ace5;
	font-size: 13px;
	text-transform: uppercase;
	border-radius: 0;
	line-height: 26px;
	width: 30px;
	display: inline-block;
}

.hexa-events-calendar td a:hover, .hexa-events-calendar td a:active, .hexa-events-calendar td a:focus{
	background: #1b6cab;
	color: #fff;
	border: 2px solid #1b6cab;
	text-decoration:none;
}

@media only screen and (min-width : 992px) and (max-width : 1199px) {
	.calendar{padding: 35px;height: 345px;}
	.hexa-events-calendar td, .hexa-events-calendar th{
		height: 32px;
	}
	.hexa-events-calendar td a{
		line-height: 24px;
		width: 28px;
	}
}

@media only screen and (min-width : 768px) and (max-width : 991px) {
	.calendar{padding: 30px;height: 275px;}
	.hexa-events-calendar caption{font-size: 18px;}

	.hexa-events-calendar td, .hexa-events-calendar th{
		height: 24px;
	}
	.hexa-events-calendar td a{
		line-height: 16px;
		width: 20px;
	}
}

/* Events elements */

.events-wrap{
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	align-content: stretch;
}

.events-wrap .events_section1{
	/*flex: 1 1 228px;*/
	flex-basis: 228px;
	height: 420px;
}

.events-wrap .events_section2{
	/*flex: 1 1 532px;*/
	flex-basis: 542px;
	height: 420px;
}

.events-wrap .events_section2 img{
	height: 100%;
	object-fit: cover;
}

.event-element{
	width:280px;
	background:#fff;
	padding:10px 10px;
	height: 84px;
	overflow: hidden;
}

.event-element img{
	display: none;
}

.event-element:hover{
	background:#fafafa;
}


.event-first-element{
	background:#fafafa;
}

.event-element .entry-meta{
	margin: 0;
	color: #767676;
}

.event-element strong{
	color: #2f2f2f;
}

.event-element a{
	display: block;
	height: 100%;
}

.event-thumb{
	
}

@media only screen and (min-width : 992px) and (max-width : 1199px) {
	.event-element{height: 69px;}
	.events-wrap .events_section1, .events-wrap .events_section2{height: 345px;}
	.event-element{width:233px;}

}

@media only screen and (min-width : 768px) and (max-width : 991px) {
	.event-element{height: 55px;}
	.events-wrap .events_section1, .events-wrap .events_section2{height: 275px;}
	.event-element{width:182px;}
}

@media only screen and (max-width : 767px) {
	.event-element{height: auto;}
	.events-wrap .events_section1, .events-wrap .events_section2{height: auto;}
	.events-wrap .events_section1{flex-basis: 100%;}
	.events-wrap .events_section2{flex-basis: 0;}
	.event-element{width:100%;}
}

.calendar-left{
	position: absolute;
	left: 30px;
	top: 50px;
	font-size: 20px;
	z-index: 1;
}

.calendar-right{
	position: absolute;
	right: 30px;
	top: 50px;
	font-size: 20px;
	z-index: 1;
}

@media only screen and (max-width : 991px) {
	.calendar-left{top: 40px;}
	.calendar-right{top: 40px;}
}
