/* Keep the original banner, stripe, arrow icons and blue indicator colour. */
[data-event-banner-carousel] {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

[data-event-banner-carousel] > button.carousel__control {
    position: absolute;
    top: 0;
    bottom: 32px;
    box-sizing: border-box;
    width: 15%;
    min-width: 36px;
    max-width: 50%;
    height: auto;
    margin: 0;
    border: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: transparent;
    touch-action: manipulation;
}

[data-event-banner-carousel] > button.carousel__control:not(.slick-hidden) {
    display: flex;
}

[data-event-banner-carousel] > .carousel__control.-prev { left: 0; right: auto; }
[data-event-banner-carousel] > .carousel__control.-next { right: 0; left: auto; }
[data-event-banner-carousel] .carousel__control:focus-visible {
    outline: 2px solid #01b5ff;
    outline-offset: -2px;
    opacity: 1;
}

/* Override Slick's inline display:block, irrespective of stylesheet load order. */
[data-event-banner-carousel] > ul.carousel__indicators {
    position: relative;
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 32px;
    gap: 6px;
    margin: 0;
    padding: 0 6px;
    list-style: none;
}

/* Six bars take at most 222px including gaps and padding; shrink on narrow cards. */
[data-event-banner-carousel] > .carousel__indicators > li {
    position: relative;
    display: block;
    float: none;
    flex: 0 1 30px;
    box-sizing: border-box;
    width: 30px;
    max-width: 30px;
    min-width: 0;
    height: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

[data-event-banner-carousel] > .carousel__indicators > li::before {
    position: absolute;
    top: calc(50% - 1.5px);
    right: 0;
    left: 0;
    display: block;
    height: 3px;
    content: '';
    background-color: rgba(0, 0, 0, .25);
}

[data-event-banner-carousel] > .carousel__indicators > li:hover::before {
    background-color: rgba(0, 0, 0, .5);
}
[data-event-banner-carousel] > .carousel__indicators > li.slick-active::before {
    background-color: #01b5ff;
}

/* The transparent button covers each bar for mouse, touch and keyboard input. */
[data-event-banner-carousel] > .carousel__indicators > li > button {
    position: absolute;
    inset: 0;
    display: block !important;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 0;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
}
[data-event-banner-carousel] .carousel__indicators button:focus-visible {
    outline: 2px solid #01b5ff;
}

/* Preserve the first image if JavaScript cannot load. */
[data-event-banner-carousel] .carousel__items:not(.slick-initialized) > .carousel__item:not(:first-child) {
    display: none;
}
[data-event-banner-carousel] .carousel__items:not(.slick-initialized) > .carousel__item:first-child {
    height: 100%;
}
