.custom-cards-5-across .widget-inner {
    position: relative;
}

.custom-cards-5-across .widget-inner::before {
    content: '';
    pointer-events: none;
    display: block;
    background-color: var(--white-ff);
    height: 100%;
    width: calc(100% - 96px);
    position: absolute;
    top: 16px;
    left: 48px;
    z-index: -1;
}

.custom-cards-5-across .widget-inner .wave.mobile {
    position: absolute;
    bottom: -17px;
    z-index: -1;
    left: 47px;
    width: calc(100% - 64px);
}

.custom-cards-5-across .wave.desk {
    display: none;
}

.custom-cards-5-across .title-col {
    gap: 7px;
    padding: 0 32px;
    margin-bottom: 12px;
    text-align: center;
}

.custom-cards-5-across .slides {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 5px;
    row-gap: 12px;
	max-width: 1300px;
	padding: 0 ;
	margin: 0 auto;
}

.custom-cards-5-across .slides::after {
    content: '';
    pointer-events: none;
    display: block;
    background-image: url(../svg/orange-dashed-wave-lg.svg);
    background-repeat: no-repeat;
    background-repeat: repeat-x;
    height: 142px;
    width: 100%;
    position: absolute;
    top: -40px;
    z-index: 0;
}

.custom-cards-5-across .slide {
    flex-basis: 45%;
}

.custom-cards-5-across .slide:last-child {
    grid-column: span 2;
}

.custom-cards-5-across .slide .inner {
    overflow: hidden;
    margin-bottom: 8px;
}

.custom-cards-5-across .slide-top .credits {
    right: unset;
    left: 0;
}

.custom-cards-5-across .slide .img-cont {
    border: 6px solid var(--white);
    border-radius: 999px 999px 999px 0;
}

.custom-cards-5-across .slide-title {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sw-key-color);
}

.custom-cards-5-across .widget-view-all {
    margin-top: 2px;
    background-color: var(--sw-button-secondary-bg-hover);
    border: solid 3px var(--sw-button-secondary-bg-hover);
    color: var(--sw-button-secondary-color);
}

.custom-cards-5-across .widget-view-all:after {
    color: var(--sw-button-secondary-color);
}

@media screen and (min-width: 40em) {
    .custom-cards-5-across .slides::after {
        top: -10px;
    }
}

@media screen and (min-width: 64em) {
    .custom-cards-5-across .widget-header {
        background-color: var(--white-ff);
        width: calc(100% - 100px);
        max-width: 1016px;
        padding: 0;
        margin: 0 auto 20px;
    }

    .custom-cards-5-across .widget-inner {
        display: grid;
        gap: 0;
    }

    .custom-cards-5-across .widget-inner::before {
        width: 100%;
        max-width: 1016px;
        width: calc(100% - 100px);
        top: 38px;
        left: 50%;
        transform: translate(-50%, 0);
        z-index: -1;
    }

    .custom-cards-5-across .widget-inner::after {
        content: '';
        pointer-events: none;
        display: block;
        background-image: url(../svg/orange-dashed-wave-lg.svg);
        background-repeat: repeat-x;
        background-size: 100%;
        background-position: center;
        height: 180px;
        width: 100%;
        position: absolute;
        top: 190px;
        z-index: -1;
    }

    .custom-cards-5-across .widget-inner::after {
        top: 50%;
        transform: translate(0px, -50%);
    }

    .custom-cards-5-across .widget-header {
        display: block;
        position: relative;
        z-index: 0;
    }

    .custom-cards-5-across:not(.has-header-text) .widget-header {
        display: none;
    }


    .custom-cards-5-across .widget-header::before {
        content: '';
        pointer-events: none;
        display: block;
        background-color: var(--white);
        height: 40px;
        width: 100%;
        position: absolute;
        top: 0;
        z-index: -1;
    }

    .custom-cards-5-across .title-col {
        max-width: 898px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .custom-cards-5-across .widget-title {
        font-size: 56px;
    }

    .custom-cards-5-across .widget-desc {
        font-size: 1.1875rem;
    }

    .custom-cards-5-across .view-all-col {
        display: flex;
        justify-content: center;
        order: 10;
        transform: translate(0px, 30px);
    }

    .custom-cards-5-across .slides {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 28px;
        padding: 0 20px;
    }

    .custom-cards-5-across:not(.has-header-text) .slides {
        margin-top: 60px;
    }

    .custom-cards-5-across .slides::after {
        display: none;
    }

    .custom-cards-5-across .slide .inner {
        margin-bottom: 18px;
    }

    .custom-cards-5-across .slide-title {
        font-size: 1.625rem;
    }

    .custom-cards-5-across .wave.mobile {
        display: none;
    }

    .custom-cards-5-across .wave.desk {
        display: none;
        display: block;
        position: absolute;
        bottom: -38px;
        left: 50%;
        transform: translate(-50%, 0);
        width: 1026px;
        z-index: -1;
    }
}

@media screen and (min-width: 90em) {
    .custom-cards-5-across .widget-inner::before {
        width: calc(100% - 40px);
    }

    .custom-cards-5-across .slides {
        gap: 58px;
    }
}