/* Seamless infinite image marquee used by [stm_image_carousel] */

.stm-marquee {
    position: relative;
}

.stm-marquee__viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    cursor: -webkit-grab;
    cursor: grab;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.stm-marquee--dragging .stm-marquee__viewport {
    cursor: -webkit-grabbing;
    cursor: grabbing;
}

.stm-marquee__track {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
}

.stm-marquee__item {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 40px;
    text-align: center;
}

.stm-marquee__item img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    -webkit-user-drag: none;
    user-drag: none;
}

.vc_image_carousel_wr.grayscale .stm-marquee__item img {
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
    -webkit-filter: grayscale(1);
    -moz-filter: grayscale(1);
    filter: grayscale(1);
    opacity: .6;
}

.vc_image_carousel_wr.grayscale .stm-marquee__item img:hover {
    -webkit-filter: grayscale(0);
    -moz-filter: grayscale(0);
    filter: grayscale(0);
    opacity: 1;
}

@media only screen and (max-width: 768px) {
    .stm-marquee__item {
        padding: 0 20px;
    }
}

.stm-marquee--zoom:not(.stm-marquee--dragging) .stm-marquee__viewport {
    cursor: -webkit-zoom-in;
    cursor: zoom-in;
}

/* Click-to-enlarge lightbox */

.stm-marquee-lightbox {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    display: none;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.stm-marquee-lightbox--open {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.stm-marquee-lightbox__backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(10, 16, 45, 0.92);
    cursor: -webkit-zoom-out;
    cursor: zoom-out;
}

.stm-marquee-lightbox__img {
    position: relative;
    z-index: 1;
    max-width: calc(100% - 130px);
    max-height: 88vh;
    -webkit-box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
}

.stm-marquee-lightbox__close,
.stm-marquee-lightbox__nav {
    position: absolute;
    z-index: 2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    line-height: 1;
    cursor: pointer;
    -webkit-transition: background 0.2s ease;
    transition: background 0.2s ease;
}

.stm-marquee-lightbox__close svg,
.stm-marquee-lightbox__nav svg {
    display: block;
}

.stm-marquee-lightbox__close:hover,
.stm-marquee-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.stm-marquee-lightbox__close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
}

.stm-marquee-lightbox__nav {
    top: 50%;
    margin-top: -26px;
}

.stm-marquee-lightbox__nav--prev {
    left: 20px;
}

.stm-marquee-lightbox__nav--prev svg {
    -webkit-transform: scaleX(-1);
    -ms-transform: scaleX(-1);
    transform: scaleX(-1);
}

.stm-marquee-lightbox__nav--next {
    right: 20px;
}

.stm-marquee-lightbox--single .stm-marquee-lightbox__nav {
    display: none;
}

@media only screen and (max-width: 768px) {
    .stm-marquee-lightbox__img {
        max-width: calc(100% - 20px);
    }

    .stm-marquee-lightbox__close,
    .stm-marquee-lightbox__nav {
        width: 40px;
        height: 40px;
        background: rgba(10, 16, 45, 0.55);
    }

    .stm-marquee-lightbox__nav {
        margin-top: -20px;
    }

    .stm-marquee-lightbox__nav--prev {
        left: 10px;
    }

    .stm-marquee-lightbox__nav--next {
        right: 10px;
    }
}

/* Services carousel ([stm_services]) rides the same seamless track */

.vc_services .stm-marquee__track {
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.vc_services .stm-marquee__item .item_wr {
    height: 100%;
}
