.hp {
    padding: 20px;
}

.hp__intro {
    text-align: center;
    color: #a3a3a3;
    padding-bottom: 20px;
}

.hp__featured {
    margin: 0 -2rem;
    width: 100vw;
    position: relative;
    padding-bottom: 100%;
    background-position: center center;
    background-size: cover;
}

.hp__featured__img {
    position: relative;
    width: 100%;
}

.hp__featured a,
.hp__featured__img a {
    cursor: pointer;
    display: block;
    height: 100%;
    text-decoration: none;
    width: 100%;
}

.hp__featured a {
    position: absolute;
}

.hp__featured__img a img {
    max-width: 100%;
}

.hp__featured__title {
    font-size: 22px;
    line-height: 2rem;
    font-weight: 600;
    display: block;
    text-align: center;
    color: #ffffff;
    width: 100%;
    padding: 20px 10px;
    background: var(--bf-primary-color-transparent);
    text-decoration: none;
    position: absolute;
    bottom: 0;
}

.hp__featured__img a .hp__featured__title {
    bottom: 2px;
}

.hp__portal {
    margin: 20px 0;
}

.hp__portal:first-child {
    margin: -20px 0 20px 0;
}

.hp__portal h2 {
    margin: 40px 0 20px 0;
}

.hp__portal h2 a {
    font-size: 22px;
    color: #0c0c0c;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
}

.hp__portal h2 a:before {
    content: '|';
    color: var(--bf-primary-color);
    font-size: 40px;
    padding-right: 5px;
    font-weight: 900;
    position: relative;
    top: 3px;
}

.hp__portal__slider .hp__portal__slider-before, .hp__portal__slider .hp__portal__slider-after {
    display: none;
}

.hp__portal__slider__slide-container {
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    grid-gap: 1rem;
    display: flex;
    margin: 0 -2rem;
}

.hp__portal__slider__slide {
    flex: 1;
    min-width: 33vw;
    max-width: 33vw;
    margin: 0 .25rem;
    scroll-snap-align: center;
    scroll-snap-stop: normal;
    font-weight: 500;
    font-size: 14px;
}

.hp__portal__slider__slide:first-child {
    margin-left: 2rem;
}

.hp__portal__slider__slide:last-child {
    /* Hack so the scroll-snap-align: center will also display the 2rem right padding on the last item */
    box-sizing: content-box;
    padding-right: 2rem;
}

.hp__portal__slider__slide__image {
    position: relative;
    padding-bottom: 91%;
    background-size: cover;
    background-position: center center;
    background-color: #eeeeee;
    margin-bottom: 10px;
    border-radius: 7px;
}

.hp__portal__slider__slide a {
    text-decoration: none;
    color: #000000;
    font-size: 14px;
    line-height: 18px;
    /*text-transform: uppercase;*/
}

.hp__portal__slider__dots {
    display: none;
}

/* ------------------------------------------------------------------------------------
 Desktop
--------------------------------------------------------------------------------------- */
@media screen and (min-width: 1024px) {
    .hp__portal h2 a {
        font-size: 22px;
    }

    .hp__featured,
    .hp__featured__img {
        margin: 0;
        width: 100%;
    }

    .hp__featured {
        padding-bottom: 56.25%;
    }

    .hp__portal__slider .hp__portal__slider-before, .hp__portal__slider .hp__portal__slider-after {
        display: block;
    }

    .hp__portal__slider {
        margin: 0 29px;
        position: relative;
        grid-gap: unset;
        scroll-snap-type: unset;
        overflow: visible;
    }

    .hp__portal__slider .hp__portal__slider-before {
        position: absolute;
        z-index: 20;
        background: url('/bundles/app/images/theme2020/pic_chevron_left_white.png') var(--bf-primary-color) no-repeat center center;
        background-size: auto 12px;
        color: #ffffff;
        width: 20px;
        height: 20px;
        line-height: 22px;
        font-size: 16px;
        text-align: center;
        border-radius: 100%;
        top: 72px;
        left: -20px;
        cursor: pointer;
        text-decoration: none;
    }

    .hp__portal__slider .hp__portal__slider-after {
        position: absolute;
        z-index: 20;
        background: url('/bundles/app/images/theme2020/pic_chevron_right_white.png') var(--bf-primary-color) no-repeat center center;
        background-size: auto 12px;
        color: #ffffff;
        width: 20px;
        height: 20px;
        line-height: 22px;
        font-size: 16px;
        text-align: center;
        border-radius: 100%;
        top: 72px;
        right: -20px;
        cursor: pointer;
        text-decoration: none;
    }

    .hp__portal__slider__slide-container {
        display: flex;
        grid-gap: 20px;
        overflow-x: scroll;
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
        width: 520px;
        margin: 0 auto;
    }

    .hp__portal__slider__slide-container::-webkit-scrollbar {
        display: none; /* Chrome and Safari */
    }

    .hp__portal__slider__slide {
        scroll-snap-align: none;
        scroll-snap-stop: normal;
        min-width: 160px;
        max-width: 160px;
        margin: 0 0 0 0;
        transition: all .3s ease;
    }

    .hp__portal__slider::-webkit-scrollbar {
        display: none;
    }

    .hp__portal__slider__slide:first-child {
        margin-left: 0;
    }

    .hp__portal__slider__slide:last-child {
        padding-right: 0;
    }

    .hp__portal__slider__dots {
        display: none;
        position: absolute;
        bottom: -30px;
        left: 0;
        width: 100%;
        display: flex;
        height: 20px;
        justify-content: center;
    }

    .hp__portal__slider__dots__dot {
        flex: 1;
        min-width: 10px;
        max-width: 10px;
        height: 10px;
        margin: 0 3px;
        border-radius: 100%;
        border: 1px var(--bf-primary-color) solid;
        cursor: pointer;
    }

    .hp__portal__slider__dots__dot.active {
        background: var(--bf-primary-color);
    }

    .hp__featured__title {
        padding: 15px 0;
    }
}