﻿.seq {
    /* Uncomment to make the theme full-screen */
    /* width: 100% !important; */
    /* max-width: 100% !important; */
    /* height: 100% !important; */
    /* max-height: 100% !important; */
}

.seq {
    position: relative;
    background: #D9D9D9 url("https://raw.githubusercontent.com/SequenceJS/modern-slide-in/ef79a3005818c71087c6abca2cda48f91ff3eb01/images/bg-sequence.jpg") no-repeat;
    background-position: 0% 100%;
    background-size: cover;
    /* Dimensions */
    height: 360px;
    width: 100%;
    /*max-width: 1280px;*/
    /* Hide anything that goes beyond the boundaries of the Sequence container */
    overflow: hidden;
    /* Center the Sequence container on the page */
    margin: 0 auto;
    padding: 0;
}

    .seq .seq-preloader {
        background: #D9D9D9;
    }

    .seq .seq-screen,
    .seq .seq-canvas,
    .seq .seq-canvas > * {
        /* Reset the canvas and steps for more browser consistency */
        margin: 0;
        padding: 0;
        height: 100%;
        width: 100%;
        list-style: none;
    }

        .seq .seq-canvas > * {
            position: absolute;
        }

    .seq.seq-fallback .seq-canvas {
        max-width: 1280px;
    }

    .seq.seq-fallback .seq-pagination li {
        position: relative;
    }

        .seq.seq-fallback .seq-pagination li img {
            border: none;
        }

        .seq.seq-fallback .seq-pagination li a {
            display: block;
            width: 100%;
            height: 100%;
        }

        .seq.seq-fallback .seq-next:focus,
        .seq.seq-fallback .seq-next:hover,
        .seq.seq-fallback .seq-prev:focus,
        .seq.seq-fallback .seq-prev:hover,
        .seq.seq-fallback .seq-pagination li:focus,
        .seq.seq-fallback .seq-pagination li:hover {
            top: -4px;
        }

    .seq .seq-canvas {
        max-width: 1280px;
        overflow: hidden;
        position: relative;
        display: block;
        margin: 0 auto;
    }

    .seq .seq-nav,
    .seq .seq-pagination {
        /* Hide navigation when JS is disabled */
        display: none;
    }

    .seq.seq-active .seq-nav {
        /* Show navigation and pagination if JS is enabled */
        display: block;
    }

    .seq .seq-nav {
        /* Styles for next/previous buttons and pagination */
        position: absolute;
        z-index: 9999;
        top: 50%;
        width: 100%;
        /*max-width: 1280px;*/
        margin: 0 auto;
        padding: 0;
        pointer-events: none;
        border: none;
    }

    .seq .seq-next,
    .seq .seq-prev {
        position: absolute;
        top: 50%;
        margin-top: -33px;
        width: 35px;
        height: 66px;
        border: none;
        cursor: pointer;
        pointer-events: auto;
        transition-duration: .2s;
        transform: translate3d(0, 0, 0);
        /* Image replacement */
        border: 0;
        font: 0/0 a;
        text-shadow: none;
        color: transparent;
    }

    .seq .seq-next {
        right: 20px;
        background: url("https://raw.githubusercontent.com/SequenceJS/modern-slide-in/ef79a3005818c71087c6abca2cda48f91ff3eb01/images/bt-next.png");
    }

        .seq .seq-next:focus,
        .seq .seq-next:hover {
            transform: translate3d(4px, 0, 0);
        }

    .seq .seq-prev {
        left: 20px;
        background: url("https://raw.githubusercontent.com/SequenceJS/modern-slide-in/ef79a3005818c71087c6abca2cda48f91ff3eb01/images/bt-prev.png");
    }

        .seq .seq-prev:focus,
        .seq .seq-prev:hover {
            transform: translate3d(-4px, 0, 0);
        }

    .seq .seq-model,
    .seq .seq-title {
        position: absolute;
    }

    .seq .seq-title {
        bottom: 5%;
        margin: 0 2.5%;
        width: 95%;
    }

    .seq .seq-model {
        bottom: 15%;
        height: 81%;
        width: 100%;
        /* Don't allow the image to exceed its original height */
        max-height: 568px;
    }

        .seq .seq-model img {
            /* Don't allow the image to exceed its original height */
            max-height: 568px;
            display: block;
            height: 100%;
            width: auto;
            margin: 0 auto;
            opacity: 0;
            transform: translate3d(60px, 0, 0);
            transition-duration: .3s;
            transition-properties: transform, opacity;
            transition-timing-function: ease-out !important;
        }

    .seq .seq-title br {
        display: none;
    }

    .seq .seq-title h2,
    .seq .seq-title h3 {
        display: block;
        width: 98%;
        vertical-align: middle;
        text-align: center;
        margin: 0;
        opacity: 0;
        font-size: 16px;
        transition-duration: .3s;
        transition-properties: opacity;
    }

    .seq .seq-title h2 {
        padding: .2em 1%;
        font-family: 'Oxygen', sans-serif;
        color: white;
        background: black;
        float: left;
    }

    .seq .seq-title h3 {
        display: none;
        clear: left;
    }

    .seq .seq-in .seq-model img {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }

    .seq .seq-in .seq-title h2,
    .seq .seq-in .seq-title h3 {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    .seq .seq-out .seq-model img {
        transform: translate3d(-60px, 0, 0);
        opacity: 0;
    }

    .seq .seq-out .seq-title h2,
    .seq .seq-out .seq-title h3 {
        transform: translate3d(0, 0, 0);
    }

@media only screen and (min-width: 640px) {
    .seq {
        /* Make the container 16:9 but no bigger than 90% of the screen height */
        position: relative;
        height: auto;
        height: 100%;
        max-height: 90vh;
        min-height: 360px;
        /* Move the background radial to the left */
        background-position: 50% 100%;
    }

        .seq:before {
            /* Make an element a certain aspect ratio */
            display: block;
            content: "";
            width: 100%;
            padding-top: 56.25%;
        }

        .seq .seq-screen {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        .seq .seq-canvas > *:before {
            /* Vertically align the content using a :before element */
            content: "";
            height: 100%;
            display: inline-block;
            vertical-align: middle;
        }

        .seq .seq-model,
        .seq .seq-title {
            position: relative;
            display: inline-block;
            vertical-align: middle;
            margin: 0 5% 0 2.5%;
        }

        .seq .seq-model {
            top: 0;
            bottom: 0;
            width: 25%;
            margin-left: 12.5%;
        }

            .seq .seq-model img {
                float: right;
                opacity: 0;
                transform: translate3d(60px, 0, 0);
                transition-properties: transform, opacity;
            }

        .seq .seq-title {
            bottom: 0;
            width: 40%;
            margin-right: 12.5%;
        }

            .seq .seq-title h2,
            .seq .seq-title h3 {
                display: inline-block;
                width: auto;
                margin: 0;
                opacity: 0;
                text-align: left;
                font-size: 18px;
                transition-duration: .3s;
                transition-properties: transform, opacity;
            }

            .seq .seq-title h2 {
                margin-bottom: .4em;
                padding: .2em .6em;
                font-family: 'Oxygen', sans-serif;
                color: white;
                background: black;
                transform: translate3d(-120px, 0, 0);
            }

            .seq .seq-title h3 {
                display: block;
                font-family: 'Source Sans Pro', sans-serif;
                transform: translate3d(120px, 0, 0);
            }

        .seq .seq-in .seq-model img {
            transform: translate3d(0, 0, 0);
            opacity: 1;
        }

        .seq .seq-out .seq-model img {
            transform: translate3d(-60px, 0, 0);
        }
}

@media only screen and (min-width: 768px) {
    .seq.seq-active .seq-pagination {
        /* Show navigation and pagination if JS is enabled */
        display: block;
    }

    .seq .seq-pagination {
        pointer-events: none;
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        z-index: 10;
        bottom: 5px;
        margin: 0 auto;
        padding: 0 20px;
        max-width: 1240px;
        text-align: right;
    }

        .seq .seq-pagination li {
            display: inline-block;
            list-style: none;
            margin: 0 10px;
            padding: 0;
            cursor: pointer;
        }

            .seq .seq-pagination li img {
                opacity: .4;
                pointer-events: auto;
                transform: translate3d(0, 0, 0);
                transition-duration: .2s;
                transition-properties: transform, opacity;
            }

            .seq .seq-pagination li.seq-current img {
                opacity: 1;
            }

            .seq .seq-pagination li:focus img,
            .seq .seq-pagination li:hover img {
                transform: translate3d(0, -4px, 0);
            }
}

@media only screen and (min-width: 860px) {
    .seq .seq-model {
        margin-left: 10%;
        width: 27.5%;
    }

    .seq .seq-title {
        width: 42.5%;
        margin-right: 10%;
    }

        .seq .seq-title br {
            display: inline-block;
        }
}

@media only screen and (min-width: 1020px) {
    .seq .seq-model {
        margin-left: 5%;
        width: 32.5%;
    }

    .seq .seq-title {
        width: 47.5%;
        margin-right: 5%;
    }
}

@media only screen and (min-width: 1120px) {
    .seq .seq-model {
        margin-left: 0;
        width: 37.5%;
    }

    .seq .seq-title {
        width: 52.5%;
        margin-right: 0;
    }
}

@media (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3 / 2), (-webkit-min-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5), (min-resolution: 144dpi), (min-resolution: 1.5dppx) {
    .seq {
        /* Apply Retina (@2x) Images */
    }

        .seq .seq-next {
            background: url("https://raw.githubusercontent.com/SequenceJS/modern-slide-in/ef79a3005818c71087c6abca2cda48f91ff3eb01/images/bt-next@2x.png");
            background-size: 35px 66px;
        }

        .seq .seq-prev {
            background: url("https://raw.githubusercontent.com/SequenceJS/modern-slide-in/ef79a3005818c71087c6abca2cda48f91ff3eb01/images/bt-prev@2x.png");
            background-size: 35px 66px;
        }
}
