.section-resource-list__header {
    margin-bottom: 32px;

    @media screen and (min-width: 990px) {
        margin-bottom: 48px;
    }
}

.section-resource-list {
    overflow-x: hidden;
}

.resource-list__carousel {
    &.resource-list {
        grid-column: -1 / 1;

        @media screen and (min-width: 1441px) {
            grid-column: 2 / 2;
        }
    }

    .resource-list__slide {
        @media screen and (min-width: 990px) {
            --slide-width: 33.33333%;
        }
    }

    slideshow-slides {
        padding: 0;

        @media screen and (min-width: 990px) {
            overflow-x: hidden;
        }
    }

    .slideshow-slides-wrapper {
        position: relative;

        &::after,
        &::before {
            content: '';
            position: absolute;
            width: 100vw;
            height: 1px;
            background-color: var(--black-10);
            left: 50%;
            transform: translateX(-50%);
            z-index: -1;
        }

        &::before {
            top: 0;
        }

        &::after {
            bottom: 0;
        }
    }

    .slideshow-control:not([disabled]) {
        @media (hover: hover) {
            &:hover {
                svg path {
                    fill: var(--white);
                }
            }
        }
    }
}

.product-list-view-all-button {
    display: flex;

    &>a.button,
    &>a.button-secondary {
        overflow: hidden;

        .button__label {
            transition: transform .75s;
        }

        .button__arrow {
            position: relative;
            width: 16px;
            height: 16px;
            flex: 0 0 16px;
            display: block;
            overflow: hidden;
            transition: transform .75s;

            svg {
                position: absolute;
                inset: 0;
                width: 16px;
                height: 16px;
                transition: transform .75s;

                path {
                    transition: fill .3s, stroke .3s;
                }
            }

            &::before {
                content: "";
                position: absolute;
                inset: 0;
                background-image: url("arrow-right-white.svg");
                background-repeat: no-repeat;
                background-position: center;
                background-size: contain;
                transform: translateX(-120%);
                transition: transform .75s;
            }
        }
    }

    @media (hover: hover) and (min-width: 990px) {

        &>a.button:hover,
        &>a.button-secondary:hover {
            .button__arrow {
                svg {
                    transform: translateX(120%);

                    path {
                        fill: var(--white, #fff);
                    }
                }

                &::before {
                    transform: translateX(0);
                }
            }
        }
    }
}

@media screen and (max-width: 749px) {
    .section-resource-list[data-mobile-carousel-footer='view_all'] {
        display: grid;
        grid-template-columns: minmax(0, 1fr);

        &>.section-resource-list__header {
            display: contents;

            &>.group-block {
                display: contents;
            }

            &>.group-block>.group-block-content {
                display: contents;
            }

            &>.group-block>.group-block-content> :not(.product-list-view-all-button) {
                order: 1;

                &:has(h2) {
                    margin-bottom: 32px;
                }
            }

        }


        &>.resource-list {
            order: 2;
        }

        .product-list-view-all-button {
            order: 3;
            justify-content: center;
            margin-top: 32px;
            margin-bottom: 64px;
        }

        &>.section-resource-list__content {
            order: 4;
        }

        .resource-list__carousel slideshow-arrows {
            display: none;
        }
    }
}

.featured-products-home {
    .resource-list__carousel {

        slideshow-arrows {
            position: relative;
        }
    }
}