#calendar-container .ec {
    --ec-border-color: rgba(var(--exp-grey-rgb), 0.5);
    --ec-border-radius: 5px;
    --ec-event-bg-color: #EB1414;
    --ec-event-text-color: #fff;
    /* --ec-accent-color: var(--ec-color-600);
    --ec-button-bg-color: var(--ec-bg-color);
    --ec-button-border-color: var(--ec-color-600);
    --ec-button-text-color: var(--ec-text-color);
    --ec-button-active-bg-color: var(--ec-color-300);
    --ec-button-active-border-color: var(--ec-color-700);
    --ec-button-active-text-color: var(--ec-button-text-color);
    
    
    --ec-bg-event-color: var(--ec-color-500);
    --ec-bg-event-opacity: 0.3;
    --ec-list-day-bg-color: var(--ec-bg-color, var(--ec-bg-fallback-color));
    --ec-today-bg-color: rgba(255, 220, 40, .15);
    --ec-highlight-color: rgba(188, 232, 241, .3);
    --ec-popup-bg-color: var(--ec-bg-color, var(--ec-bg-fallback-color));
    --ec-now-indicator-color: #ea4335; */
}

#calendar-container .ec-title {
	font-size: 18px;
    line-height: 1.1;
}

#calendar-container .ec-header,
#calendar-container .ec-header .ec-days:first-child {
    border-top-left-radius: var(--ec-border-radius);
    border-top-right-radius: var(--ec-border-radius);
}

#calendar-container .ec-body,
#calendar-container .ec-body .ec-days:last-child {
    border-bottom-left-radius: var(--ec-border-radius);
    border-bottom-right-radius: var(--ec-border-radius);
}

#calendar-container .ec-header .ec-days:first-child .ec-day:first-child {
    border-top-left-radius: var(--ec-border-radius);
}

#calendar-container .ec-header .ec-days:first-child .ec-day:last-child {
    border-top-right-radius: var(--ec-border-radius);
}

#calendar-container .ec-body .ec-days:last-child .ec-day:first-child {
    border-bottom-left-radius: var(--ec-border-radius);
}

#calendar-container .ec-body .ec-days:last-child .ec-day:last-child {
    border-bottom-right-radius: var(--ec-border-radius);
}

#calendar-container .ec-header .ec-day {
    background-color: var(--exp-dark-grey);
    color: #fff;
    padding: 10px 0;
    font-weight: 700;
}

#calendar-container .ec-day-grid .ec-events {
    margin: 0 5px 5px;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#calendar-container .ec-day-grid .ec-event-title {
    font-size: 14px;
    min-height: 0;
    text-box: inherit;
    text-wrap: balance;
    text-align: center;
}

#calendar-container .ec-event {
    padding: 5px;
    min-height: 30px;
    align-items: center;
    max-width: 100%;
    flex-grow: 1;
    cursor: pointer;
}

#calendar-container .ec-event-body {
    justify-content: center;
}

#calendar-container .ec-body .ec-day {
    background-color: #fff;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

#calendar-container .ec-body .ec-other-month {
    background-color: transparent !important;
}

#calendar-container .ec-icon {
    position: relative;
    height: 100%;
    line-height: 100%;
}

#calendar-container .ec-icon.ec-prev::after,
#calendar-container .ec-icon.ec-next::after {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}

#calendar-container .ec-icon.ec-prev::after {
    left: calc(50% - 1px);
}

#calendar-container .ec-icon.ec-next::after {
    left: calc(50% + 1px);
}

#calendar-container .ec-button {
    vertical-align: top;
    transition: .2s;
}

#calendar-container .ec-button-group .ec-button:nth-child(n+2) {
    border-left: 0 none !important;
}

#calendar-container .ec-button.ec-today {
    font-weight: 700;
    transition: .2s;
}

#calendar-container .ec-button.ec-today[disabled] {
    visibility: hidden;
    opacity: 0;
}

@media screen and (min-width: 576px) {
    #calendar-container .ec-title {    font-size: 20px;    }
}

@media screen and (min-width: 768px) {
    #calendar-container .ec-title {    font-size: 22px;    }
}

@media screen and (min-width: 1024px) {
	#calendar-container .ec-title {    font-size: 26px;    }
}

@media screen and (min-width: 1280px) {
    #calendar-container .ec-title {    font-size: 28px;    }
}

.event-popup {
    position: fixed;
    width: 100%;
    height: 100svh;
    top: 0;
    left: 0;
    backdrop-filter: blur(10px);
    z-index: 9999;
}

.event-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.event-popup .latest-events {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: clamp(320px, 100%, 550px);
    padding: 20px;
    max-height: 100%;
    overflow-y: auto;
}

.event-popup-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    z-index: 9999;
}

.event-popup-close::after,
.event-popup-close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 20px;
    height: 2px;
    background-color: white;
}

.event-popup-close::after {
    rotate: 45deg;
}

.event-popup-close::before {
    rotate: -45deg;
}
body:has(.event-popup) {
    overflow: hidden;
}

.workshops-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media screen and (min-width: 1280px) {
    .workshops-list {
        grid-column: span 2 / span 2;
    }
}

.workshops-list-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    place-content: stretch;
    place-items: stretch;
    min-height: 90px;
}

.workshops-list-date {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 0 10px;
    gap: 0;
}

.workshops-list-date .date {
    font-size: 40px;
    font-weight: 700;
    color: var(--exp-grey);
    line-height: 1;
    text-align: center;
}

.workshops-list-date .month {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
}

.workshops-list-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 15px 25px;
    gap: 12px;
}

.workshops-list-content h5 {
    margin-bottom: 0 !important;
}

.workshops-list-details {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
}

.workshops-list-detail {
    display: inline-grid;
    grid-template-columns: 24px 1fr;
    gap: 5px;
    align-items: center;
    justify-items: start;
    text-align: left;
}

.workshops-list-detail i {
    font-size: 22px;
    line-height: 22px;
    text-box: trim-both cap alphabetic;
}

.workshops-list-detail span {
    line-height: 1;
    text-box: trim-both cap alphabetic;
}

.workshops-list-sign-up {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
    gap: 5px;
    padding: 10px 25px;
}

.workshops-list-sign-up + .experia-block-bg .experia-corner {
    background-color: #dde3e6;
    transition: .2s;
}

.workshops-list-sign-up i {
    font-size: 22px;
    line-height: 22px;
    color: var(--exp-mid-grey);
    transition: .2s;
}

.workshops-list-sign-up span {
    font-weight: 700;
}

@media(hover: hover) and (pointer: fine) {
    .workshops-list .experia-block .has-shadow-small {
        transition: .2s;
    }

    .workshops-list .experia-block:hover .has-shadow-small {
        filter: drop-shadow(0px 6px 12px rgb(0 0 0 / 0.2));
    }

    .experia-block:hover .workshops-list-sign-up + .experia-block-bg .experia-corner {
        background-color: var(--exp-grey);
    }

    .experia-block:hover .workshops-list-sign-up i {
        color: var(--exp-dark-grey);
    }
}

/* Firefox fix */
@-moz-document url-prefix() { 
    .workshops-list-content {
        gap: 3px;
    }
}

/* Safari fix */
@media screen and (-webkit-min-device-pixel-ratio: 0) { 
	::i-block-chrome,.workshops-list .experia-block:hover .has-shadow-small {
		filter: none !important;
	}
}