.experience-layouts-race_carousel_short {
    margin-bottom: 50px !important;
}

#race-carousel-short-component {
    position: relative;
}

.race-carousel-short-background-block {
    position: absolute;
    background-color: var(--background_color);
    width: 100%;
    height: 192px;
    top: 63px;
    z-index: 0;
    opacity: 0;
    animation: fadeIn 1s; /* Fade in to make loading less glitchy */
    animation-delay: 1s;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.race-carousel-short-wrapper {
    max-width: 1105px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.race-carousel-short-inner {
    display: flex; /* To make the carousel load less glitchy */
}

.race-carousel-short-figure {
    flex: 1 0 auto; /* To make the carousel load less glitchy */
}

.race-carousel-short-figure:focus,
.race-carousel-short-figure:active {
    outline: none;
}

.race-carousel-short-text-container {
    text-align: center;
}

.race-carousel-short-header-text {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    line-height: 26px;
    font-weight: 100;
    color: var(--text_color, black);
}

.race-carousel-short-header-text strong {
    font-weight: 900;
}

.race-carousel-short-figure {
    width: 235px;
    margin: 20px 10px;
}

.race-carousel-short-link {
    display: block;
    background-color: white !important;
    border-radius: 20px 0 20px 0;
    -moz-box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.22);
    -webkit-box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.22);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.22);
}

.race-carousel-short-link:hover,
.race-carousel-short-link:focus,
.race-carousel-short-link:active {
    -moz-box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
}

.race-carousel-short-link picture img {
    height: 235px;
}

.race-carousel-short-img {
    object-fit: cover;
    background-color: var(--medal_background_color);
}

.race-carousel-short-link,
.race-carousel-short-link:hover,
.race-carousel-short-link:visited,
.race-carousel-short-link:link,
.race-carousel-short-link:active {
    text-decoration: none !important;
}

.race-carousel-short-name {
    padding: 4px 0;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    font-weight: 300;
    background-color: #ebebeb;
    color: #6a6a6a;
}

.race-carousel-short-button {
    padding: 10px 0;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    font-weight: 900;
    background-color: var(--button_background_color, black);
    color: var(--button_text_color, white);
}

@media screen and (min-width: 1025px) {
    .race-carousel-short-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .race-carousel-short-inner {
        width: 760px;
        margin: 0 auto;
    }
    .race-carousel-short-text-container {
        width: 250px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .race-carousel-short-header-text {
        text-align: left;
        margin-bottom: 16px;
        margin-top: 40px;
    }

    .race-carousel-short-outer {
        width: calc(1440px - 250px - 20px);
    }

    .race-carousel-short-category-link {
        text-align: left;
        padding: 0 !important;
        margin: 0 !important;
        color: var(--text_color) !important;
        height: auto;
        background-color: transparent;
        text-decoration: underline !important;
        font-family: 'Roboto', sans-serif;
        font-size: 14px;
        font-weight: 700;
    }
}

@media screen and (max-width: 1024px) {
    .race-carousel-short-background-block {
        height: 0; /* Hide on mobile without displaying none to prevent animation retriggering */
    }
}

@media screen and (min-width: 1201px) and (max-width: 1470px) {
    .race-carousel-short-wrapper {
        padding-left: 3%;
    }
    .race-carousel-short-header-text {
        margin-top: 0;
    }
}

@media screen and (max-width: 1200px) and (min-width: 1080px) {
    .race-carousel-short-wrapper {
        padding: 0 2vw;
    }
    .race-carousel-short-text-container {
        width: 200px;
    }
    .race-carousel-short-header-text {
        margin-top: 0;
    }
}

@media screen and (max-width: 1080px) and (min-width: 1025px) {
    .race-carousel-short-wrapper {
        padding: 0 2vw;
    }
    .race-carousel-short-text-container {
        width: 160px;
    }
    .race-carousel-short-header-text {
        margin-top: 0;
    }
}

@media screen and (max-width: 1024px) {
    .race-carousel-short-wrapper {
        padding: 50px 0;
    }
    #race-carousel-short-component {
        background-color: var(--background_color);
    }
    .race-carousel-short-header-text {
        font-weight: 500;
        margin-bottom: 30px;
        padding: 0 2vw;
    }
    /* Hide line break in link on mobile */
    .race-carousel-short-header-text br {
        content: ' ';
    }
    .race-carousel-short-header-text br:after {
        content: ' ';
    }
    /* Make strong appear as same weight on mobile */
    .race-carousel-short-header-text strong {
        font-weight: inherit;
    }
    .sbs-full-width-text-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .race-carousel-short-category-link {
        display: none;
    }
    .race-carousel-short-figure {
        padding: 0;
        margin: 10px 0 !important;
        width: 35vw;
    }
    .race-carousel-short-link picture img {
        height: 35vw;
    }
}

@media screen and (max-width: 768px) {
    .race-carousel-short-header-text {
        font-size: 1.75em;
    }
    .race-carousel-short-figure {
        width: 45vw;
    }
    .race-carousel-short-link picture img {
        height: 45vw;
    }
}

@media screen and (max-width: 550px) {
    .race-carousel-short-wrapper {
        padding: 30px 0;
    }
    .race-carousel-short-header-text {
        font-size: 1.5em;
    }
    .race-carousel-short-header-text span {
        padding: 0 15px;
    }
    .race-carousel-short-figure {
        width: 65vw;
    }
    .race-carousel-short-link picture img {
        height: 65vw;
    }
}

@media screen and (max-width: 400px) {
    .race-carousel-short-wrapper {
        padding: 20px 0;
    }
    .race-carousel-short-header-text {
        font-size: 1.2em;
        margin-bottom: 15px;
    }
}

/* SLICK CAROUSEL CUSTOMIZATION */
@media screen and (max-width: 1024px) {
    .race-carousel-short-figure.slick-slide,
    .race-carousel-short-figure.slick-slide[aria-hidden='true']:not(.slick-cloned) ~ .slick-cloned[aria-hidden='true'] {
        transform: scale(0.75);
        transition: all 300ms ease;
    }

    .race-carousel-short-figure.slick-center,
    .race-carousel-short-figure.slick-slide[aria-hidden='true']:not([tabindex='-1']) + .slick-cloned[aria-hidden='true'] {
        transform: scale(1);
    }
}

@media screen and (max-width: 550px) {
    .race-challenge-text-container {
        opacity: 0;
        transition: all 300ms ease;
    }

    .slick-center figure .race-challenge-text-container,
    .slick-slide[aria-hidden='true']:not([tabindex='-1']) + .slick-cloned[aria-hidden='true'] figure .race-challenge-text-container {
        opacity: 1;
    }
}

.race-carousel-short-inner .slick-prev,
.race-carousel-short-inner .slick-next {
    position: absolute;
    top: 50%;
    display: block;
    width: 20px;
    height: 35px;
    padding: 0;
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: transparent;
}
.race-carousel-short-inner .slick-prev:hover,
.race-carousel-short-inner .slick-prev:focus,
.race-carousel-short-inner .slick-next:hover,
.race-carousel-short-inner .slick-next:focus {
    color: transparent;
    outline: none !important;
    background: transparent;
    box-shadow: none;
}
.race-carousel-short-inner .slick-prev:hover:before,
.race-carousel-short-inner .slick-prev:focus:before,
.race-carousel-short-inner .slick-next:hover:before,
.race-carousel-short-inner .slick-next:focus:before {
    opacity: 1;
}
.race-carousel-short-inner .slick-prev.slick-disabled:before,
.race-carousel-short-inner .slick-next.slick-disabled:before {
    opacity: 0;
}
.race-carousel-short-inner .slick-prev {
    left: -40px;
}
.race-carousel-short-inner .slick-next {
    right: -25px;
}
