body #site-header-inner {
    position: relative;
    height: 100px;
}

.em-event-wrapper {
    padding: 50px 30px;
    background-color: #f4f4f4;
}

.em-event-container {
    max-width: 1600px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

#em-events-sidebar {
	width: min(28%, 280px);
}

#em-event-content {
	flex: 1;
}

#em-event-content.single-event-content {
    width: 70%;
    margin-left: auto;
    margin-right: 0;
    padding: 0;
}

@media screen and (max-width: 900px){
    .em-event-wrapper {
        padding: 0;
    }

    .em-event-container { display: block; }
		

    #em-events-sidebar {
        width: 100%;
        padding: 30px 20px;
    }

    #em-event-content {
        width: 100%;
    }

    #em-event-content {
			padding: 0 20px 1px;
    }
    #em-event-content.single-event-content {
        width: 90%;
        margin: 30px auto;
    }
    #em-event-content .em-calendar .header {
        padding: 0 20px !important;
    }
    .em-calendar .header .month-year {
        text-align: center;
    }
    .em-calendar .days .day_name {
        padding: 5px!important;
        text-align: center;
    }
}

#em-event-content .em-event-title {
    margin: 0 0 10px;
    text-decoration: none;
    border: 0;
    font-size: 30px;
		line-height: 1.2em;
}

#em-event-content .em-event-title a {
	text-decoration: none;
	border: 0;
}

.em-back-button {
    display: block;
    margin-bottom: 30px;
}

.em-events-filter-option {
    display: flex;
    align-items: center;
    text-decoration: none;
    border-bottom: 1px solid #f6f6f6;
}

.em-events-filter-option .em-events-filter-content {
		font-size: 15px;
		line-height: 1.2em;
		text-decoration: none!important;
}

.em-events-filter-option a, a.em-events-filter-option {
    color: #625a5e;
}

.em-events-filter-option .em-events-filter-icon {
		width: 16px;
		height: 16px;
		min-width: 16px;
		margin-right: 11px;
		line-height: 1em;
}

.em-events-filter-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: 0;
}

.em-events-filter-option .em-events-filter-icon svg {
    width: 100%;
    height: auto;
}

.em-events-sidebar-group {
    border: 1px solid #ccc;
    background: #fff;
    padding: 0;
    margin-bottom: 20px;
}

.em-events-sidebar-group .em-events-subtitle {
    margin: 0;
    padding: 10px 15px;
    border-bottom: 1px solid #ccc;
    font-size: 14px;
    letter-spacing: 3px;
}

.em-events-filter-option label {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    line-height: 1.2em;
    font-size: 15px;
    margin-bottom: 0;
}

.em-events-filter-option label:hover {
    background-color: #e9e9e9;
    cursor: pointer;
}

.em-events-filter-option input[type=checkbox] {
    margin-top: 0px;
}

.em-events-filter-option.em-events-filter-option-with-icon {
    width: 100%;
    padding: 10px 15px;
}

.em-event-inner {
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 30px;
}
.em-event-inner a.em-event-button {
    color: #fff;
}

img.em-event-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.em-event-meta {
    display: flex;
    line-height: 1.2em;
}

.em-event-meta-icon svg {
    min-width: 20px;
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.em-event-meta-content {
	font-size: 18px;
}

.event-meta-header {
	font-size: 14px;
	letter-spacing: 3px;
	line-height: 1.3em;
	text-transform: uppercase;
	color: #58585b;
	/* text-decoration: underline; */
	margin-bottom: 5px;
	padding-bottom: 2px;
	/* border-bottom: 1px solid; */
}

.em-event-details {
    display: flex;
		flex-flow: row wrap;
    gap: 10px 40px;
    margin-bottom: 20px;
}

.em-meta-row .event-meta {
    margin-right: 50px;
}

.em-meta-row {
    display: flex;
}

.em-event-content {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.em-events-mobile-toggle svg {
    width: 17px;
    height: 17px;
    min-width: 17px;
    opacity: 0.3;
    margin-left: auto;
}

.em-events-mobile-toggle.em-active svg {
    transform: rotate(180deg);
}

.em-events-mobile-toggle {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px;
    line-height: 1.2em;
    border: 1px solid #ccc;
}

.em-events-mobile-toggle:hover {
    cursor: pointer;
}

@media screen and (min-width: 901px){
    .em-events-mobile-toggle { display: none; }
    .em-events-sidebar-content { display: block!important; }
}

@media screen and (max-width: 900px){
    .em-events-mobile-toggle { display: flex; }
    .em-events-sidebar-content { display: none; }

    #em-event-content {
        margin-bottom: 30px;
    }

    .em-events-sidebar-content.em-active {
        display: block;
    }

    .em-events-mobile-toggle {
        margin-bottom: 20px;
    }

		#em-event-content .em-event-inner {
			padding: 20px;
		}
		#em-event-content .em-event-inner .em-event-title {
				font-size: 24px;
				margin-bottom: 20px;
		}
		#em-event-content .em-event-inner.em-event-list-inner {
			margin-bottom: 20px;
		}

		.em-event-terms {
			display: none!important;
		}
		.em-event-meta-content {
			font-size: 16px;
		}
}

.em-event-button {
    background-color: #cd0d40;
    padding: 10px 20px;
		font-size: 15px;
    line-height: 1em;
    color: #fff;
    border-radius: 25px;
    text-decoration: none!important;
    display: inline-block;
}

.em-event-button:hover {
    color: #fff;
}

.em-event-inner.em-event-list-inner {
	position: relative;
	margin-bottom: 30px;
}

/***** CALENDAR *****/
.em-calendar {
    display: flex;
    flex-flow: column;
}
.em-calendar .header .month-year {
    font-size: 28px;
    font-weight: bold;
    color: #636e73;
    padding: 0 0 0 0;
    text-transform: uppercase;
}
.em-calendar .days {
    display: flex;
    flex-flow: wrap;
}


.em-calendar .days .day_name,
.em-calendar .days .day_num {
	display: flex;
	flex-flow: column;
	width: calc(100% / 7);
	font-weight: bold;
	line-height: 1em;
}
.em-calendar .days .day_name:not(.sat) {
	border-right: 1px solid #8e092d;
	padding: 10px;
	text-transform: uppercase;
	font-size: 12px;
	color: #fff;
	background-color: #cd0d40;
}
.em-calendar .days .day_name.sat {
	border: none;
}
.em-calendar .days .day_num {
	border-right: 1px solid #e6e9ea;
	border-bottom: 1px solid #e6e9ea;
	color: #7c878d;
	cursor: pointer;
	background-color: #fff;
}

.em-calendar .day_inner {
    line-height: 1em;
}

.em-calendar .days .day_num span {
    display: inline-flex;
    /* width: 30px; */
    font-size: 14px;
    line-height: 1em;
		margin-left: 4px;
}
.em-calendar .days .day_num.ignore span {
	margin-top: 4px;
}

.em-calendar .days .day_num .event {
	display: block;
	font-size: 13px;
	line-height: 1.3em;
	font-weight: 500;
	padding: 3px 6px;
	border-radius: 4px;
	/* border: 1px solid #ccc; */
	background-color: #f4f4f4;
	color: #222;
	word-wrap: break-word;
	text-decoration: none!important;
	margin: 4px;
	overflow: hidden;
}
.em-calendar .days .day_num .event.green {
    background-color: #51ce57;
}
.em-calendar .days .day_num .event.blue {
    background-color: #518fce;
}
.em-calendar .days .day_num .event.red {
    background-color: #ce5151;
}
.em-calendar .days .day_num:nth-child(7n+1) {
    border-left: 1px solid #e6e9ea;
}
.em-calendar .days .day_num:hover {
    background-color: #fdfdfd;
}
.em-calendar .days .day_num.ignore {
    background-color: #f4f4f4;
    color: #ced2d4;
    cursor: inherit;
}
.em-calendar .days .day_num.selected {
    /* border: 1.5px solid #cd0d40; */
    cursor: inherit;
}
/* .em-calendar .days .day_num.selected span.day_date {
	position: relative;
	color: #cd0d40;
	z-index: 10;
	align-items: center;
}
.em-calendar .days .day_num.selected span.day_date:after {
	content: "Today";
	background: rgb(205 13 64);
	border-radius: 100px;
	color: #fff;
	font-size: 10px;
	font-weight: normal;
	padding: 0px 5px;
	margin-left: 4px;
} */

.month-navigation .month-nav-next {
    text-align: right;
}
.month-navigation {
    margin-bottom: 20px;
    display: flex;
		justify-content: space-between;
		gap: 20px;
}


.em-event-terms {
	/* position: absolute; */
	/* top: 0; */
	/* left: 30px; */
	/* transform: translateY(-50%); */
	display: flex;
	flex-flow: row wrap;
	gap: 5px 8px;
	margin-bottom: 20px;
}

.em-event-terms .em-event-term {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    line-height: 1em;
    font-size: 14px;
    border-radius: 100px;
    background-color: #e9e9e9;
    color: #555;
}

.em-event-terms .em-event-term.em-event-term-location {
    color: #fff;
}

.em-sidebar-post {
    padding: 15px;
}
.em-sidebar-post p {
		margin-bottom: 10px;
}
.em-sidebar-post a.em-event-button {
    color: #ffffff;
}
.em-sidebar-post a.em-event-button:hover {
    color: #ffffff;
}

.em-search-wrapper {
    width: 100%;
    padding: 15px;
}

form input.em-search[type="text"] {
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    display: block;
    border: 2px solid #ccc;
    transition: all 0.2s ease;
}

form input.em-search[type="text"]:hover {
    border-color: #999;
}

form input.em-search[type="text"]:focus {
    border-color: #222;
}

.em-event-registration h4 {
    margin-bottom: 12px;
    color: #444;
}



.day_num {
    padding: 0px!important;
}
.day_inner {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: -17px; /* Increase/Decrease this value for cross-browser compatibility */
    overflow-y: scroll;
}
.day_num {
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
}

.day_num {
	min-height: 160px !important;
	aspect-ratio: 5/6;
}

.d-none {
	display: none;
}


@media only screen and (max-width: 1200px) {
	.em-event-container {
		gap: 20px;
	}
	.day_num {
			padding: 0px!important;
	}
	.em-calendar .days .day_num .event {
			font-size: 11px;
			white-space: nowrap;
			padding: 1px 2px;
			/* margin-top: 3px!important; */
	}
	.day_inner {
			position: absolute;
			top: 0;
			bottom: 0;
			left: 0;
			right: -17px; /* Increase/Decrease this value for cross-browser compatibility */
			overflow-y: scroll;
	}
	.day_num {width: 100%;height: 100%;overflow: hidden;position: relative;}
}

/* Hides Saturday and Sundays on Calendar */
.em-calendar.hide_weekends .days > :nth-child(7n+1),
.em-calendar.hide_weekends .days >:nth-child(7n+7) {
	display: none;
}
.em-calendar.hide_weekends .days .day_name,
.em-calendar.hide_weekends .days .day_num {
	width: calc(100% / 5);
}
.em-calendar.hide_weekends .days .day_name.fri {
	border: none;
}
