.csla-events-app {
    margin-top: 1em;
    hr {
        border-bottom: 1px solid #000;
        border-width: 0 0 1px;
    }
}

.event-toolbar {
    button, input[type=button], input[type=reset], input[type=submit] {
        appearance: none;
        background-color: grey;
        border: 0;
        border-radius: 0;
        color: #fff;
        cursor: pointer;
        display: inline-block;
        font-family: "klavika-web", arial, sans-serif;
        font-size: 0.7em;
        -webkit-font-smoothing: antialiased;
        font-weight: 500;
        line-height: 1;
        padding: 0.375em 1.2em;
        text-decoration: none;
        transition: background-color 150ms ease;
        user-select: none;
        vertical-align: middle;
        white-space: nowrap;
        margin-right: 1em;
    }

    button.active {
        background: rgb(205, 120, 40);
    }

    select.filter {
        display: inline-block;
        margin-right: .5vw;
        padding: .25em;
        font-size: 0.55em;
    }
}

.event-card.listing_content_wrapper {
    border-bottom: 1px solid #000;
    border-width: 0 0 1px;
    padding-bottom: 1.5em;
    margin-bottom: 1.5em;
}

.event-card.listing_content_wrapper.last-item {
    border: none;
}


.columns {
  display: inline-block;
  width: 49%;
  vertical-align: top;
  padding: 0 5% 0 0;
}

.columns.left {
    width: 55%;
    padding-right: 5%;
}

.columns.right {
    width: 44%;
    padding: 0;
}

h4.event-title {
    font-size: 1.3em; 
    color: #000; 
    line-height: 1.1; 
    margin-top: 0; 
}

.columns.left p.event-date {
    color: #cd7828;
    margin-bottom: 0;
    font-size: 1.1em;
    margin-top: 0.6em;
}

p.event-location {
    font-size: 0.8em;
    margin-bottom: 0;
    margin-top: 1em;
}

p.event-host {
    font-size: 0.8em;
}

p.event-format {
    margin-top: 1em;
    font-size: 0.8em;
}

h3.event-month-header {
    font-size: 1.3em;
    font-weight: 500;
    text-align: center;
    padding: 0.75em;
    background: rgb(205, 120, 40);
    color: white;
    margin-top: 0;
    margin-bottom: 1.5em;
}

.event-card .event-details {
    font-size: 0.8em;
    color: #4f81be;
    font-weight: 100;
}

.event-card p.event-details:hover {
    text-decoration: underline;
}

.columns.right img {
    margin-top: 0.4em;
    width: 100%;
}

.modal-content-inner {
    display: none;
}

div#colorbox {
    outline: solid 1px #000;
    -webkit-box-shadow: 10px 10px 20px -12px rgba(102,102,102,0.6);
    -moz-box-shadow: 10px 10px 20px -12px rgba(102,102,102,0.6);
    box-shadow: 10px 10px 20px -12px rgba(102,102,102,0.6);
     h5 {
        margin-top: 0.5em;
        color: #cd7828;
        margin-left: 0.1em;
     }
     i.fa-solid.fa-calendar-days {
      margin-left: -0.15em;
    }

    .hosted-by {
        margin-top: 0.8em;
    }

    @media (min-width: 35em) {
        .service-popup-content {
            display: flex;
        }
    }

    button#cboxClose {
        display: none;
    }

    .service-popup-content a.close-popup {
        position: absolute;
        z-index: 100;
        right: 0.8em;
        top: .7em;
        font-size: 1.6em;
        font-weight: 100;
        color: #000000;
    }
    .service-popup-content h4 {
        color: #000;
        line-height: 1.12;
        margin-top: 0.3em;
    }
    .service-popup-content .views-field.views-field-details {
        width: 75%;
    }
    .service-popup-content .views-field.views-field-details .fieldset-wrapper {
        padding: 1em 3.5rem 0 2rem;
    }
    .service-popup-content .views-field.views-field-field-person-portrait {
        padding: 2rem 2rem 0 0;
        width: 40%;
        .fieldset-wrapper {
            padding: 0.5rem 2.5rem 0 0;
        }
        p.event-format {
            font-size: 1em;
        }
        p.address {
            color: #cd7828;
            font-size: 0.8em;
        }
    }
    a.more-information {
        color: #4f81be;
    }
    a.more-information:hover {
        text-decoration: underline;
    }
}

/** Calendar Styles */
.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: rgb(205, 120, 40);
}

.calendar-header button {
    background-color: transparent;
    color: white;
    display: flex;
    align-items: start;
    margin: auto;
    font-size: 0.6em;
    font-weight: 500;
    text-transform: uppercase;
}

.calendar-header button:hover {
    background: transparent;
    color: black;
}

h2.calendar-title {
    grid-column: 3 / 6;
    text-align: center;
    color: white;
    font-size: 1.3em;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
    padding: 0.75em;
    margin: 0;
}

button.calendar-prev {
    grid-column: 1;
    position: relative;
}

button.calendar-prev::before {
    content: '<';
    position: absolute;
    left: 0.5em;
    bottom: 0.75em;
}

button.calendar-next {
    grid-column: 7;
    position: relative;
}

button.calendar-next::after {
    content: '>';
    position: absolute;
    right: 0.5em;
    bottom: 0.75em;
}


.calendar-grid {
    position: relative;
}

.calendar-weekday-wrapper {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-weekday {
    border: 1px solid #ddd;
    padding: 2px 8px;
    text-align: center;
    color: #000;
    font-size: .7em;
}

.calendar-event-bars {
  position: absolute;
  z-index: 10;
  top: 34px;
  left: 0;
  right: 0;
  pointer-events: none;
}

.calendar-event-bars .calendar-event-lane {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
}

.calendar-week-row {
    position: relative;
}

.calendar-event-bar {
    margin-top: .1em;
    border-radius: 4px;
    padding: 1px 6px;
    overflow: hidden;
}

/* Event type color classes */
[class*=" event-type-"] {
  background-color: antiquewhite;
  outline: solid 0.02em;
}


.event-type-conference {
  background: #ddbdb2;
  outline: none;
}

.event-type-agm {
  background: #dea773;
  outline: none;
}

.event-type-webinar {
  background: #a69bb9;
  outline: none;
}

.event-type-workshop {
    background: #979ad0;
    outline: none;
}

.event-type-forum {
    background: #d97b5c;
    outline: none;
}

.event-type-symposium {
  background: #c9a089;
  outline: none;  
}

.event-type-training {
  background: #b9a1a6;
  outline: none;
}

.calendar-legend {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.25em 0;
}

.calendar-legend span {
    margin-right: 2.5em;
    font-size: 0.6em;
}

.calendar-legend span::before {
    content: '';
    width: 0.5em;
    height: 0.5em;
    display: inline-block;
    border-radius: 50%;
    position: relative;
    margin-right: .5em;
    margin-bottom: 0.05em;
}

span.agm:before {
    background: #dea773;
}

span.conference:before {
    background: #ddbdb2;
}

span.webinar:before {
    background: #a69bb9;
}

span.workshop:before {
    background: #979ad0;
}

span.forum:before {
    background: #d97b5c;
}

span.symposium:before {
    background: #c9a089;
}

span.training:before {
    background: #b9a1a6;
}

.calendar-event-bar.calendar-overflow {
    background: transparent;
    outline: .01rem solid;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    min-height: 140px;
    border: 0.9px solid #d8d8d7;
    padding: 8px;
}

.calendar-day.today {
    background: rgb(255, 255, 255);
}

.calendar-day.adjacent-month,
.calendar-day.outside-month {
    background-color: #ebebeb;
}

.calendar-day.today .calendar-date {
    float: right;
    width: 1.5em;
    height: 1.5em;
    background: #fff;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.3rem;
}

.calendar-date {
    margin-bottom: 10px;
    font-size: .7em;
    text-align: right;
    color: #000;
}

.calendar-date.colorbox-trigger {
    cursor: pointer;
}

.calendar-date.colorbox-trigger:hover {
    text-decoration: underline;
}

.calendar-event, .calendar-bar-event {
    padding: 0.6px 1.3px;
    font-size: 0.5em;
    font-weight: 500;
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
    position: relative;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Daily pop-up content */
div#colorbox {
    .service-popup-content.daily {
        display: flex;
        flex-direction: column;
        padding: 0 4em 1em 4em;
        min-height: 20vw;
        h4 {
            font-size: 1.4em;
            margin-top: 1em;
            margin-bottom: 1.75em;
            text-align: center;
        }
        .calendar-bar-event {
            font-size: .8em;
            margin-bottom: .25em;
            padding: 0.25em .5em;
            border-radius: 0.5em;
        }
    }
}