.events-carousel-homepage {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-start;
}

.events-carousel-homepage .carousel-control-prev,
.events-carousel-homepage .carousel-control-next {
    top: 55% !important;
}

.events-calendar {
    background: none repeat scroll 0 0 #ffffff !important;
    box-shadow: 5px 5px 4px 10px #00000040;
    border: none !important;
    border-radius: 10px !important;
    padding: 25px !important;
    min-height: 600px;
    position: relative;
}

.events-calendar-homepage {
    background: none repeat scroll 0 0 #ffffff !important;
    /* box-shadow: 4px 4px 10px 0px #00000040;
    box-shadow: -1px -1px 10px 0px #00000040; */
    border: none !important;
    border-radius: 10px !important;
    padding: 25px !important;
    min-height: 590px;
    position: relative;
}

.calendar-title {
    font-weight: 500;
    font-size: 24px;
    letter-spacing: 0%;
    text-align: center;
    margin: 1em 0;
}

.events-calendar-title h2 {
    font-size: 30px;
    font-weight: 500;
    color: #DDD7CC;
    text-align: center;
    margin: 1em 0;
}

.fc .fc-scroller-liquid-absolute,
.fc .fc-scroller {
    getboundingclientrect-y: hidden !important;
}

.fc-scrollgrid-sync-table {
    height: 290px !important;
}

.fc-theme-standard td,
.fc-theme-standard th {
    border: none;
    padding: 0;
}

.fc table {
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 17px;
    /* font-weight: bold; */
}

.fc table a {
    color: #44434d;
    text-decoration: none !important;
    font-weight: 500;
}

.fc .fc-daygrid-day-top {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

table thead,
.pe-table thead {
    background: #ffffff;
    color: #44434d;
    font-weight: 400;
}

.fc .fc-scrollgrid-liquid {
    height: 100%;
    border: none;
}

.fc-scrollgrid-sync-table tr+tr {
    border-top: none;
}

.fc .fc-button {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: #ffffff !important;
    color: #54543d;
    border: none;
    padding: 0.4em 0.4em;
    font-size: 1em;
    line-height: 1em;
    border-radius: 2em;
}

.fc .fc-button .fc-icon {
    font-size: 1.85em !important;
}

.fc-icon {
    speak: none;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    font-weight: 900;
    height: 1em;
    line-height: 1;
    text-align: center;
    text-transform: none;
    user-select: none;
    width: 1em;
    font-family: fcicons !important;
}

.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child) {
    margin-left: -1px;
    border-top-left-radius: 2em;
    border-bottom-left-radius: 2em;
    /* margin-left: 530px; */
    border-top-left-radius: 2em;
    border-bottom-left-radius: 2em;
    color: #797762;
}

.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child) {
    border-top-right-radius: 2em;
    border-bottom-right-radius: 2em;
    color: #797762;
}

.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 1.3em;
    /* flex-direction: row-reverse; */
    /* margin-top: 1em; */
}

.fc .fc-toolbar-title {
    font-size: 1.75em;
    margin: 0;
    /* position: absolute; */
    /* left: 20%;
  top: 3.5%; */
    /* width: 60%; */
    text-align: left;
    font-weight: 700;
    color: #383937;
    margin-left: 0.5em;
}

.fc .fc-daygrid-day-frame {
    position: relative;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    height: 100%;
}

.fc .fc-daygrid-body-balanced .fc-daygrid-day-events {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    display: flex;
    align-self: flex-end;
    justify-content: center;
}

.fc-day:has(.fc-daygrid-event-harness-abs) .fc-daygrid-day-number {
    font-weight: bold;
}

/* Only adjust abs harness events */
.fc .fc-daygrid-event-harness-abs {
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Leave normal harnesses alone */
.fc .fc-daygrid-event-harness {
    display: flex;
    justify-content: center;
}

a.fc-daygrid-more-link.fc-more-link {
    color: #797762;
    font-size: 36px !important;
    font-weight: 700;
    width: 60px;
    height: 60px;

    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 50%;
}

a.fc-event {
    font-size: 14px;
}

.fc-h-event {
    display: block;
    border-bottom: 1px solid #ddd !important;
    background-color: #ffffff !important;
    border: 0;
    border-radius: 0;
}

.fc-theme-standard .fc-popover-header {
    background: #54543d;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
}

.fc-daygrid-event-dot {
    border-color: #54543d;
}

a.fc-event {
    color: #24211c;
}

.fc-daygrid-dot-event:hover,
.fc-daygrid-dot-event:focus,
.fc-daygrid-dot-event:active {
    background: none;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: transparent !important;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-top {
    background-color: #797762;
    width: 50px;
    height: 50px;
    /* background-color: #656d4a; */
    border-radius: 60px;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-top a {
    color: #24211c !important;
}

.fc-day-today .fc-daygrid-day-top span {
    color: #ffffff !important;
}

.fc-today-button {
    display: none !important;
}

.fc .fc-col-header-cell-cushion {
    color: #2f2f2f;
    font-weight: bold;
    text-transform: uppercase;
}

.fc .fc-scrollgrid-section {
    margin-top: 1em;
}

.fc-daygrid-body.fc-daygrid-body-balanced {
    margin-top: 2em !important;
}

.fc-custom-more-popup {
    background: #ffffff;
    border: 1px solid #ffffff;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 6px;
    position: absolute;
    z-index: 9999;
    min-width: 150px;
    /* minimum width */
    max-width: 350px;
    /* maximum width */
    width: auto;
    /* let content grow between min/max */
}

.popup-header {
    display: flex;
    justify-content: space-between;
    background: #797762;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    padding: 5px;
}

.popup-title {
    flex-grow: 1;
    flex-shrink: 1;
    font-weight: 700;
    min-width: 0px;
    overflow: hidden;
    font-size: 14px;
    color: #24211c;
}

.popup-event {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 5px;
}

.popup-time {
    margin-right: 0.5em;
    white-space: nowrap;
}

.fc-daygrid-day {
    min-width: 14.28%;
    /* 100% / 7 days */
    box-sizing: border-box;
    position: relative;
    /* ensures popovers can calculate positions */
}

/* Keep popovers in layout so getBoundingClientRect works */
.fc-popover {
    visibility: hidden;
    /* still takes up space but invisible */
    position: absolute;
    top: 0;
    left: 0;
    width: auto !important;
    height: auto !important;
}

.popup-close {
    cursor: pointer;
}

/* Show only the last one (current month) */
.fc-toolbar-title:last-child {
    visibility: visible;
}

.fc-toolbar-title:not(:last-child) {
    display: none;
}

.fc .fc-toolbar-title {
    min-height: 50px;
    transition: all 0.2s linear !important;
    line-height: 1.2;
}

button.popup-close {
    background: #797762;
    color: #ffffff;
    border: none;
    font-weight: bold;
}

.event-image-vertical img {
    height: 100%;
    object-fit: cover;

}