/* Slider accessibility styles. Plain CSS, enqueued directly (see lib/setup.php). */

/* Hero dots: the theme styles each <li> as the dot and previously hid the
   button. Keep the look, but let the button fill the dot so it can be
   focused and clicked. */
.hero__container .slick-dots li {
    position: relative;
    padding: 0;
}

.hero__container .slick-dots li.slick-active {
    background-color: #fff;
    border-color: #fff;
    transform: scale(1.3);
}

.hero__container .slick-dots button {
    display: block;
    position: absolute;
    top: -8px;
    right: -8px;
    bottom: -8px;
    left: -8px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: transparent;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
}

/* Pause / play control for the hero autoplay. */
.hero__container .slider-a11y__toggle {
    position: absolute;
    right: 18px;
    bottom: 40px;
    z-index: 1020;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 12px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
}

/* Visible keyboard focus for all slider controls. */
.slick-slider .slick-arrow:focus,
.hero__container .slick-dots button:focus,
.hero__container .slider-a11y__toggle:focus {
    outline: 3px solid #ffd100;
    outline-offset: 2px;
}

.slick-slider .slick-arrow {
    cursor: pointer;
}
