/**
 * @author    Rekire <info@rekire.com>
 * @copyright Rekire
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
.rkrslider {
    position: relative;
    margin: 0 auto;
    width: 100%;
}

.rkrslider-viewport {
    overflow: hidden;
    width: 100%;
}

.rkrslider-track {
    display: flex;
    transition-property: transform;
    transition-timing-function: ease;
    will-change: transform;
}

.rkrslider-slide {
    display: flex;
    flex: 0 0 100%;
    width: 100%;
}

.rkrslider-item {
    position: relative;
    flex: 1 1 100%;
    min-width: 0;
}

.rkrslider-slide--pair .rkrslider-item {
    flex: 1 1 50%;
}

.rkrslider-link {
    display: block;
}

.rkrslider-media {
    display: block;
    width: 100%;
    height: auto;
}

/* ------------------------------------------------------------------ Caption */

.rkrslider-caption {
    position: absolute;
    bottom: 0;
    max-width: 60%;
    padding: 1.5rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
}

.rkrslider-caption--left {
    left: 0;
    text-align: left;
}

.rkrslider-caption--right {
    right: 0;
    text-align: right;
}

.rkrslider-caption--center {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.rkrslider-caption--hidden {
    display: none;
}

.rkrslider-legend {
    display: block;
    font-size: 0.85em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rkrslider-title {
    margin: 0.25rem 0;
    color: inherit;
    font-size: 1.6em;
}

/* The caption is plain text, escaped on the way out. Line breaks are honoured
   here instead of with nl2br: PrestaShop escapes Smarty output again after the
   modifiers run, so a <br> built in the template reaches the page as visible
   text. CSS keeps the breaks and keeps the markup out of the data. */
.rkrslider-desc {
    font-size: 0.95em;
    white-space: pre-line;
}

/* ----------------------------------------------------------------- Controls */

.rkrslider-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.rkrslider-control:hover,
.rkrslider-control:focus {
    background: rgba(0, 0, 0, 0.7);
}

.rkrslider-control--prev {
    left: 10px;
}

.rkrslider-control--next {
    right: 10px;
}

.rkrslider-pager {
    position: absolute;
    right: 0;
    bottom: 10px;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.rkrslider-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.rkrslider-dot.is-active {
    background: #fff;
}

/* --------------------------------------------------------------- Responsive */

@media (max-width: 767px) {
    .rkrslider-slide--pair {
        flex-wrap: wrap;
    }

    /* Two half-width slides side by side are unreadable on a phone: each one
       takes the full width and the pair becomes two stacked images. */
    .rkrslider-slide--pair .rkrslider-item {
        flex: 1 1 100%;
    }

    .rkrslider-caption {
        max-width: 100%;
        padding: 0.75rem;
    }

    .rkrslider-title {
        font-size: 1.1em;
    }

    .rkrslider-control {
        width: 34px;
        height: 34px;
        margin-top: -17px;
        font-size: 22px;
    }
}

/* A visitor who asked the system for less motion gets no transition and no
   autoplay; the slider still works with the arrows and the dots. */
@media (prefers-reduced-motion: reduce) {
    .rkrslider-track {
        transition-duration: 0ms !important;
    }
}
