/* from old bolt/block.css */

/*
.swipe-block

Markup: <div class="swipe-block block swipeable swipeable">
    <div class="slock switchable" id="slide-0">
        <img class="block" src="//source.unsplash.com/category/nature/1300x620" alt="Image 1" draggable="false" />
    </div
    ><div class="block switchable" id="slide-1">
        <img class="block" src="//source.unsplash.com/category/nature/1300x620" alt="Image 2" draggable="false" />
    </div
    ><div class="block switchable" id="slide-2">
        <img class="block" src="//source.unsplash.com/category/nature/1300x620" alt="Image 3" draggable="false" />
    </div>
</div>

Styleguide: 4.slides
*/


.swipe-block {
    white-space: nowrap;
}

.swipe-block > .block {
    display: inline-block;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100vw;
}

.swipe-block > img,
.swipe-block > .block > img {
    width: 100%;
    height: auto;
    max-width: none;
    object-fit: contain;
    object-position: 50% 50%;
}

.swipe-block > .block,
.swipe-block > .block:focus,
.swipe-block > .block > img,
.swipe-block > .block > img:focus {
    outline: none;
}

.swipe-block > .block + .block {
    margin-left: 0;
}

.js .swipe-block {
    /* A nice bit of hardware acceleration should help the transitions run
       smoothly. */
    -webkit-transform: translate3d(0,0,0);
        -ms-transform: translate3d(0,0,0);
            transform: translate3d(0,0,0);

    -webkit-touch-callout: none;
      -webkit-user-select: none;
         -moz-user-select: none;
          -ms-user-select: none;
              user-select: none;

    -webkit-transition-property: transform;
            transition-property: transform;
    -webkit-transition-duration: 333ms;
            transition-duration: 333ms;
    -webkit-transition-timing-function: cubic-bezier(0.1, 0.7, 0.7, 1);
            transition-timing-function: cubic-bezier(0.1, 0.7, 0.7, 1);
}

@media print {
    .js .swipe-block {
        position: static;
        transition: none !important;
    }
}


.slides-block {
    padding-top: 80px;
}

/* copy from swty slides */
.slides-block > .swipe-block {
    /* Add a px each side to hide rounding errors in the transforms */
    width: 100%;
}

.slides-block > .thumb {
    position: absolute;
    top: 0;
    bottom: auto;
    margin-top: 0;
    color: var(--partgrey-color);
    z-index: 2;
    outline-width: 0;
}

.slides-block > .thumb-prev { left: 1.25rem; }
.slides-block > .thumb-next { right: 1.25rem; }

.slides-block > .thumb-prev,
.slides-block > .thumb-next {
        text-indent: -10000px;
}

@media (min-width: 62.5em) {

    .slides-block {
        padding-top: 0;
    }
    .slides-block > .thumb {
        top: 50%;
        margin-top: -1.25rem;
    }

    .slides-block > .thumb-prev { left: 10%; margin-left: -5.9375rem;}
    .slides-block > .thumb-next { right: 10%; margin-right: -5.9375rem;    }
}

/* Fullscreen */

.slides-block:-webkit-full-screen {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-content: stretch;
    background-color: black;
}

.slides-block:-moz-full-screen {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-content: stretch;
    background-color: black;
}

.slides-block:-ms-fullscreen {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-content: stretch;
    background-color: black;
}

.slides-block:fullscreen {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-content: stretch;
    background-color: black;
}

.slides-block:-webkit-full-screen::before,
.slides-block:-webkit-full-screen::after {
    content: none;
}

.slides-block:-moz-full-screen::before,
.slides-block:-moz-full-screen::after {
    content: none;
}

.slides-block:-ms-fullscreen::before,
.slides-block:-ms-fullscreen::after {
    content: none;
}

.slides-block:fullscreen::before,
.slides-block:fullscreen::after {
    content: none;
}

/* Pre-active slides */
.swipe-block {
    white-space: nowrap;
}
.swipe-block > .block {
    display: inline-block;
    width: 100%;
}

/* Active slides */

.swipe-block > .block.active {
    z-index: 2;
}
