.workshops_past {
    display: flex;
    align-items: center;
}
.workshops_past .maxgridrow {
    width: 100%;
}
.workshops_past.fp_mobile {
    display: none;
}
.workshops_past.single-row {
    height: 50vh;
}
.workshops_past.two-rows {
    height: 100vh;
}

.workshops_past .fp-overflow {
    height: 100%;
    width: 100%;
}
.workshops_past_inner {
    height: 100%;
    width: 100%;
}

.workshops_past_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0px;
    width: 100%;
    height: 100%;
}

.workshops_past_grid.single-row {
    grid-template-rows: 1fr;
}
.workshops_past_grid.two-rows {
    grid-template-rows: repeat(2, 1fr);
}

.workshop_past_item {
    position: relative;
    display: block;
    overflow: hidden;
    height: 100%;
    width: 100%;
}
.workshop_past_image {
    width: 100%;
    height: 100%;
    position: relative;
}
.workshop_past_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.workshop_past_content {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 25px 30px;
    color: var(--white);
    z-index: 1;
}
.workshop_past_title {
    font-size: var(--size-menu);
    font-weight: var(--font-bold);
}
.workshop_past_date {
    font-size: var(--size-menu);
}

.workshop_past_year {
    color: var(--white);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    height: 100%;
    width: 100%;
}
.workshop_past_year span {
    font-size: var(--size-sub);
    font-weight: var(--font-bold);
}

.workshop_past_item::after {
    transition: .5s all ease-in-out;
}
.workshop_past_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;
}

@media (min-width: 1776px) {
    .first_in_line.workshop_past_year span {
        left: calc((100vw - 1775px) / 2 + 30px) !important;
        position: absolute;
    }
    .first_in_line.workshop_past_item .workshop_past_content {
        left: calc((100vw - 1775px) / 2 + 0px) !important;
        position: absolute;
    }
}

@media (max-width: 1250px) and (min-width: 993px) {
    .workshops_past.single-row,
    .workshops_past.two-rows {
        height: 100vh;
    }
    .workshops_past_grid.single-row,
    .workshops_past_grid.two-rows {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
    .workshops_past_inner {
        width: 100vw;
    }
}

@media (max-width: 992px) {
    .workshops_past.fp_desktop {
        display: none !important;
    }
    .workshops_past.fp_mobile {
        display: flex;
        height: 100vh;          
        height: 100dvh;          
        min-height: 0;
    }
    .workshops_past.fp_mobile .workshops_past_grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(0, 1fr);
        height: 100%;
    }
    .workshop_past_item,
    .workshop_past_year {
        height: 100%;
        min-height: 0;
    }
    .workshops_past.fp_mobile .workshops_past_grid > :only-child {
        grid-row: 1 / -1;
    }
    .workshops_past_inner {
        width: 100%;
    }
    .workshop_past_content,
    .workshop_past_year {
        padding: var(--mobile-spacing);
    }
}

@media (min-width: 993px) {
    .workshops_past.fp_mobile {
        display: none !important;
    }
}

@media (min-width: 1250px) {
    .page-template-workshops_past .footer_main .top .right_top,
    .page-template-workshops_past .footer_main .bottom .right_bottom {
        padding-left: 60px;
    }
}