.hne-feature-slider {
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    width: calc(100% + 50vw - 50% + 1rem);
}

.wp-admin .hne-feature-slider,
.wp-admin .hne-feature-slider * {
    pointer-events: none;
}


.instructions {
    color: var(--wp--preset--color--gray-text-light);
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 0.32px;
    text-transform: uppercase;
}

.slider-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    max-height: 615px;
    margin-top: 22px;
    scrollbar-width: none;

    &::-webkit-scrollbar {
        display: none;
    }

    .slide-wrapper {
        flex: 615px;
        flex-shrink: 0;
        height: auto;

        &.full {
            .slide {
                height: 100%;
                .title {
                    font-size: 37px;
                    padding: 28px;
                    span {

                    }
                }
            }
        }

        &.half {
            display: grid;
            overflow: hidden;
            flex-shrink: 0;
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: repeat(2, minmax(0, 1fr));
            row-gap: 12px;
            column-gap: 18px;
            margin-inline: 18px;
            .slide {
                .title {
                    font-size: var(--wp--preset--font-size--p-2-manrope);
                    padding: 10px;
                    width: calc(100% - 20px);
                    span {

                    }
                }
            }
        }

        .slide {
            position: relative;
            overflow: hidden;
            .title {
                font-family: var(--wp--preset--font-family--meno-display);
                position: absolute;
                bottom: 0;
                background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 8.26%, #000 100%);
                width: 100%;
            }
            a {
                .title {
                    color: var(--wp--preset--color--white);
                    text-decoration: none;
                    span {
                        background: linear-gradient(currentColor 0 0) 0 90% / var(--d, 0) 3px no-repeat;
                        transition: 0.3s;
                        --d: 0;
                    }
                }
                &:hover {
                    img {
                        transform: scale(1.05);
                    }
                    .title {
                        span {
                            --d: 100%;
                        }
                    }
                }
            }
        }
    }

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: 0.3s;
    }

}

#slides-wrapper {
    width: fit-content;
}

.nav-arrows {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 22px;
    margin-bottom: 22px;

    .nav-left, .nav-right {
        width: 43px;
        height: 27px;
        cursor: pointer;
        &.disabled {
            cursor: not-allowed;
            opacity: 0.2;
        }
    }

    .nav-left {
        background-image: url("data:image/svg+xml, %3Csvg%20width=%2243%22%20height=%2227%22%20viewBox=%220%200%2043%2027%22%20fill=%22none%22%20xmlns=%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d=%22M14.7237%201.16667L13.5525%201.1848e-06L-2.63449e-06%2013.5L13.5525%2027L14.7237%2025.8333L3.17899%2014.3333L43%2014.3333L43%2012.6667L3.17899%2012.6667L14.7237%201.16667Z%22%20fill=%22black%22%2F%3E%0A%3C%2Fsvg%3E%0A");
        background-repeat: no-repeat;
    }

    .nav-right {
        background-image: url("data:image/svg+xml, %3Csvg%20width=%2243%22%20height=%2227%22%20viewBox=%220%200%2043%2027%22%20fill=%22none%22%20xmlns=%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path=%22url(%23clip0_87_117)%22%3E%0A%3Cpath%20d=%22M28.2763%2025.8333L29.4475%2027L43%2013.5L29.4475%200L28.2763%201.16667L39.821%2012.6667H0V14.3333H39.821L28.2763%2025.8333Z%22%20fill=%22black%22%2F%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id=%22clip0_87_117%22%3E%0A%3Crect%20width=%2243%22%20height=%2227%22%20fill=%22white%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A");
        background-repeat: no-repeat;
    }
}

#featured-slider-content {
    display: flex;
    flex-direction: column-reverse;
    @media only screen and (min-width: 768px) {
        flex-direction: row;
    }

    #selected-slide-content {
        .slide-details {
            color: var(--wp--preset--color--gray-text);
            .title {
                font-family: var(--wp--preset--font-family--meno-display);
                font-size: var(--wp--preset--font-size--post-h-2);
                font-style: italic;
                font-weight: 700;
                line-height: 121.053%;
            }
            .description {
                font-size: var(--wp--preset--font-size--p-3-manrope);
                font-weight: 500;
                line-height: 140%;
                letter-spacing: 0.4px;
            }
        }
    }

    .featured-grid-instructions {
        color: var(--wp--preset--color--gray-text);
        font-size: var(--wp--preset--font-size--nav-button-text);
        font-style: normal;
        font-weight: 400;
        line-height: 138.462%;
        letter-spacing: 0.91px;
        margin-bottom: 12px;
    }

    .left {
        flex: 40% 1 0;
        overflow: auto;
        padding: 2rem;
        
        #slide-thumbs {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            width: fit-content;

            .slide-image {
                cursor: pointer;
                overflow: hidden;
                a {
                    display: block;
                    border: 4px solid transparent;
                    &.selected {
                        border-color: var(--wp--preset--color--haverhill-orange);
                        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
                    }
                }
                img {
                    display: block;
                    transition: transform 0.3s ease;
                }
            }

            .slide-image:hover {
                a:not(.selected) {
                    img {
                        transform: scale(1.05);
                    }
                }
            }
        }

        img {
            aspect-ratio: 1/1;
            width: 150px;
        }
    }

    .right {
        flex: 60% 0 1;
        & > div {
            min-height: 600px;
        }
    }
}

/* Custom scrollbar */
.custom-scrollbar {
    position: relative;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin-top: 16px;
    margin-bottom: 58px;
    overflow: hidden;
}

.custom-thumb {
    position: absolute;
    height: 100%;
    width: 40px; /* JS will update this */
    background: #CF4727;
    border-radius: 4px;
    cursor: grab;
    left: 0;
    top: 0;
}
.custom-thumb:active {
    cursor: grabbing;
}