.swiper-upcoming-carousel::after {
    content: '';
    width: 150px;
    height: calc(100% + 2px);
    position: absolute;
    z-index: 5;
    top: -1px;
    right: 0;
    background: #F3EFE4;
    background: linear-gradient(90deg, rgba(243, 239, 228, 0) 0%, rgba(243, 239, 228, 0.95) 70%);
}

@media(max-width: 781px) {
    .swiper-upcoming-carousel::after {
        content: none;
        display: none;
    }
}

.swiper-slide.upcoming-event-carousel-item {
    max-width: 287px;
    height: auto;
}

.swiper-upcoming-carousel .swiper-button-next,
.swiper-upcoming-carousel .swiper-button-prev {
    width: 30px;
    height: 30px;
    border-radius: 100%;
    background: black;
    color: white;
    background-size: 50%;
    background-position: center center;
    background-repeat: no-repeat;
    margin-top: calc(-60px - (var(--swiper-navigation-size)/ 2));
}

@media(min-width: 782px) {
    .swiper-upcoming-carousel .swiper-button-next,
    .swiper-upcoming-carousel .swiper-button-prev {
        width: 50px;
        height: 50px;
    }
}

.swiper-upcoming-carousel .swiper-button-next:hover,
.swiper-upcoming-carousel .swiper-button-prev:hover {
    background-color: var(--wp--preset--color--primary-alt-accent);
    background-size: 50%;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow:
    0px 1px 2.2px rgba(0, 0, 0, 0.062),
    0px 2.4px 5.3px rgba(0, 0, 0, 0.089),
    0px 4.5px 10px rgba(0, 0, 0, 0.11),
    0px 8px 17.9px rgba(0, 0, 0, 0.131),
    0px 15px 33.4px rgba(0, 0, 0, 0.158),
    0px 36px 80px rgba(0, 0, 0, 0.22)
    ;
}

.swiper-upcoming-carousel .swiper-button-next {
    right: 2%;
    background-image: url("data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25.43 15'%3E%3Cpath fill='white' d='M25.36,7.88c.05-.12.08-.25.08-.38s-.03-.26-.08-.38c-.05-.12-.12-.22-.21-.31L18.63.29c-.38-.38-1-.38-1.38,0s-.38,1,0,1.38l4.85,4.85H.98c-.54,0-.98.44-.98.98s.44.98.98.98h21.12l-4.85,4.85c-.38.38-.38,1,0,1.38s1,.38,1.38,0l6.52-6.52c.09-.09.16-.2.21-.32'/%3E%3C/svg%3E");
}

.swiper-upcoming-carousel .swiper-button-next:hover {
    background-image: url("data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25.43 15'%3E%3Cpath fill='black' d='M25.36,7.88c.05-.12.08-.25.08-.38s-.03-.26-.08-.38c-.05-.12-.12-.22-.21-.31L18.63.29c-.38-.38-1-.38-1.38,0s-.38,1,0,1.38l4.85,4.85H.98c-.54,0-.98.44-.98.98s.44.98.98.98h21.12l-4.85,4.85c-.38.38-.38,1,0,1.38s1,.38,1.38,0l6.52-6.52c.09-.09.16-.2.21-.32'/%3E%3C/svg%3E");
}

.swiper-upcoming-carousel .swiper-button-prev {
    left: 2%;
    background-image: url("data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25.43 15'%3E%3Cpath fill='white' d='M.08,7.88C.03,7.76,0,7.63,0,7.5s.03-.26.08-.38c.05-.12.12-.22.21-.31L6.81.29c.38-.38,1-.38,1.38,0s.38,1,0,1.38L3.34,6.52h21.12c.54,0,.98.44.98.98s-.44.98-.98.98H3.34s4.85,4.85,4.85,4.85c.38.38.38,1,0,1.38s-1,.38-1.38,0L.29,8.19c-.09-.09-.16-.2-.21-.32'/%3E%3C/svg%3E");
}

.swiper-upcoming-carousel .swiper-button-prev:hover {
    background-image: url("data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25.43 15'%3E%3Cpath fill='black' d='M.08,7.88C.03,7.76,0,7.63,0,7.5s.03-.26.08-.38c.05-.12.12-.22.21-.31L6.81.29c.38-.38,1-.38,1.38,0s.38,1,0,1.38L3.34,6.52h21.12c.54,0,.98.44.98.98s-.44.98-.98.98H3.34s4.85,4.85,4.85,4.85c.38.38.38,1,0,1.38s-1,.38-1.38,0L.29,8.19c-.09-.09-.16-.2-.21-.32'/%3E%3C/svg%3E");
}

.swiper-upcoming-carousel .swiper-button-next.swiper-button-disabled,
.swiper-upcoming-carousel .swiper-button-prev.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

.swiper-upcoming-carousel .swiper-button-next:after,
.swiper-upcoming-carousel .swiper-button-prev:after {
    display: none;
}

.upcoming-event-carousel-item .event-image {
    aspect-ratio: 1/1;
    width: 100%;
    height: auto;
    position: relative;
    line-height: 0.5;
}

.upcoming-event-carousel-item .event-image img {
    object-fit: cover;
    height: 100%;
    width: auto;
    clip-path: polygon(0% 0%, 100% 0, 100% calc(100% - 55px), calc(100% - 55px) 100%, 0% 100%);
}

.upcoming-event-carousel-item p {
    margin: 0;
}

.upcoming-event-carousel-item .event-image .event-date-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 85px;
    height: 85px;
    overflow: hidden;
    text-align: center;
    background: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    border-left: 0;
    border-bottom: 0;
}

.upcoming-event-carousel-item .event-image .event-date-box p {
    color: white;
    font-family: var(--wp--preset--font-family--fortress-mono);
    word-spacing: -0.6em;
    font-size: clamp(14px, 1.5vw, 18px);
    line-height: 1;
    margin: 5px 0;
    letter-spacing: -0.5px;
}

.upcoming-event-carousel-item .event-image:hover .event-date-box {
    background: white;
    border-color: black;
}

.upcoming-event-carousel-item .event-image:hover .event-date-box p {
    color: black;
}

.upcoming-event-carousel-item .event-image .event-date-box p:last-child {
    margin-bottom: 0;
}

.upcoming-event-carousel-item .event-image .event-date-box p.multi-day {
    font-size: clamp(12px, 1vw, 15px);
}

.upcoming-event-carousel-item .event-image .event-date-box p.multi-month {
    font-size: clamp(12px, 1vw, 14px);
    letter-spacing: -1px;
}

.upcoming-event-carousel-item p.date-friendly {
    text-transform: uppercase;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--wp--preset--color--secondary);
}

.upcoming-event-carousel-item p.event-title {
    font-size: clamp(14px, 2vw, 17px);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 24px;
    margin-bottom: 8px;
    padding-right: 20px;
}

.upcoming-event-carousel-item p.event-title a:not(:hover) {
    text-decoration: none;
}