.workshops_upcoming_desktop {
    height: 100vh;
}
.workshops_upcoming {
    height: 100%;
    display: flex;
    align-items: center;
}
.workshops_upcoming .fp-overflow {
    height: 100%;
    width: 100%;
}
.workshops_upcoming .maxgridrow {
    width: 100%;
}
.workshops_upcoming_inner {
    height: 100%;
    width: 100%;
}
.workshops_upcoming.fp_mobile {
    display: none;
}
.workshops_upcoming_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0px;
    height: 100%;
    width: 100%;
}
.workshop_upcoming_item {
    position: relative;
    display: block;
    overflow: hidden;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.workshop_upcoming_content {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 30px;
    color: var(--white);
    z-index: 1;
}
.workshop_upcoming_title {
    font-size: var(--size-menu);
    font-weight: var(--font-bold);
}
.workshop_upcoming_date {
    font-size: var(--size-menu);
}

.workshop_upcoming_item::after {
    transition: .5s all ease-in-out;
}
.workshop_upcoming_item:hover::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--overlay);
    opacity: 0.5;
    transition: .5s all ease-in-out;
}
.workshop_upcoming_item.empty:hover::after {
    display: none;
}
.workshop_upcoming_item:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
}

@media (min-width: 1776px) {
    .first_in_line.workshop_upcoming_item .workshop_upcoming_content {
        left: calc((100vw - 1775px) / 2 + 30px) !important;
        position: absolute;
    }
    .workshops_upcoming_grid .workshop_upcoming_item:first-child .workshop_upcoming_content {
        left: calc((100vw - 1775px) / 2 + 0px) !important;
        right: auto !important;
    }
}

.workshops_upcoming_grid--compact {
    grid-template-columns: repeat(var(--cell-count), 1fr);
    grid-template-rows: 1fr;
    height: 100%;
}
.workshops_upcoming_grid--compact .workshop_upcoming_item {
    height: 100%;
}
.workshops_upcoming_grid--compact .workshop_upcoming_item:last-child:nth-child(3n+1) {
    grid-column: auto;
}

@media (max-width: 1250px) and (min-width: 993px) {
    .workshops_upcoming_grid,
    .workshops_upcoming_grid--compact {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        height: 100%;
    }
    .workshop_upcoming_item {
        height: 100%;
    }
    .workshops_upcoming_grid--compact .workshop_upcoming_item:last-child:nth-child(3n+1) {
        grid-column: auto;
    }
    .workshops_upcoming {
        height: 100%;
    }
    .workshops_upcoming_inner {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .workshops_upcoming_desktop {
        height: auto;
    }
    .workshops_upcoming.fp_desktop {
        display: none !important;
    }
    .workshops_upcoming.fp_mobile {
        display: flex;
        height: 100vh;         
        height: 100dvh;         
        min-height: 0;
    }
    .workshops_upcoming_grid,
    .workshops_upcoming_grid--compact {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        height: 100%;
    }
    .workshop_upcoming_item {
        height: 100%;
        min-height: 0;
    }
    .workshop_upcoming_item:last-child:nth-child(3n+1),
    .workshops_upcoming_grid--compact .workshop_upcoming_item:last-child:nth-child(3n+1) {
        grid-column: auto;
    }
    .workshops_upcoming_grid .workshop_upcoming_item:only-child {
        grid-row: 1 / -1;
    }
    .workshop_upcoming_content {
        padding: var(--mobile-spacing);
    }
}

@media (min-width: 993px) {
    .workshops_upcoming.fp_mobile {
        display: none !important;
    }
}
.workshop_upcoming_item.pasted {
    position: relative;
    background-image:
        linear-gradient( to top right, transparent calc(50% - 1px), var(--white) calc(50% - 1px), var(--white) calc(50% + 1px), transparent calc(50% + 1px)),
        var(--pasted-bg-image, none);
}
.workshop_upcoming_item.pasted::before {
    content: "OVERDUE";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: var(--size-menu);
    font-weight: var(--font-bold);
    letter-spacing: 0.05em;
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
    background: linear-gradient( to top right, transparent calc(50% - 1px), var(--white) calc(50% - 1px), var(--white) calc(50% + 1px), transparent calc(50% + 1px));
    width: 100%;
    height: 100%;
    margin: auto;
    text-align: center;
    justify-content: center;
    align-items: center;
    display: flex;
}

@media (min-width: 1250px) {
    .page-template-workshops_coming .footer_main .top .right_top,
    .page-template-workshops_coming .footer_main .bottom .right_bottom {
        padding-left: 60px;
    }
}