﻿
/*
 * Revision 1 (2018-03-14) LDR-Combined mobile and desktop carousels
 * Revision 2 (2018-03-21) LDR-Changed classes to be less generic
 * Revision 3 (2018-03-26) DK-Re-added mobile and desktop css toggle
 */


    /*! Flickity v2.0.10
http://flickity.metafizzy.com
---------------------------------------------- */

    .flickity-enabled {
        position: relative;
    }

        .flickity-enabled:focus {
            outline: none;
        }

    .flickity-viewport {
        overflow: hidden;
        position: relative;
        height: 100%;
    }

    .flickity-slider {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    /* draggable */

    .flickity-enabled.is-draggable {
        -webkit-tap-highlight-color: transparent;
        tap-highlight-color: transparent;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

        .flickity-enabled.is-draggable .flickity-viewport {
            transition: height .5s cubic-bezier(0.39, 0.58, 0.57, 1);
            cursor: move;
            cursor: -webkit-grab;
            cursor: grab;
        }

            .flickity-enabled.is-draggable .flickity-viewport.is-pointer-down {
                cursor: -webkit-grabbing;
                cursor: grabbing;
            }

    /* ---- previous/next buttons ---- */

    .flickity-prev-next-button {
        position: absolute;
        top: 50%;
        width: 44px;
        height: 44px;
        border: none;
        border-radius: 50%;
        background: white;
        background: hsla(0, 0%, 100%, 0.75);
        cursor: pointer;
        /* vertically center */
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
    }

        .flickity-prev-next-button:hover {
            background: white;
        }

        .flickity-prev-next-button:focus {
            outline: none;
            box-shadow: 0 0 0 5px #09F;
        }

        .flickity-prev-next-button:active {
            opacity: 0.6;
        }

        .flickity-prev-next-button.previous {
            left: 10px;
        }

        .flickity-prev-next-button.next {
            right: 10px;
        }
    /* right to left */
    .flickity-rtl .flickity-prev-next-button.previous {
        left: auto;
        right: 10px;
    }

    .flickity-rtl .flickity-prev-next-button.next {
        right: auto;
        left: 10px;
    }

    .flickity-prev-next-button:disabled {
        opacity: 0.3;
        cursor: auto;
    }

    .flickity-prev-next-button svg {
        position: absolute;
        left: 20%;
        top: 20%;
        width: 60%;
        height: 60%;
    }

    .flickity-prev-next-button .arrow {
        fill: #333;
    }

    /* ---- page dots ---- */

    .flickity-page-dots {
        position: absolute;
        width: 100%;
        bottom: -21px;
        padding: 0;
        margin: 0;
        list-style: none;
        text-align: center;
        line-height: 1;
    }

    .flickity-rtl .flickity-page-dots {
        direction: rtl;
    }

    .flickity-page-dots .dot {
        display: inline-block;
        width: 10px;
        height: 10px;
        margin: 0 8px;
        background: #333;
        border-radius: 50%;
        opacity: 0.25;
        cursor: pointer;
    }

        .flickity-page-dots .dot.is-selected {
            opacity: 1;
        }

    body {
        position: relative;
        margin: 0;
    }

    .is-selected .container,
    .thumb-banner-root .is-selected .container {
        display: block;
    }

    .thumb-banner-root .container {
        width: 100%;
        height: 100%;
        display: none;
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        width: calc(100% - 120px);
        margin: auto;
    }

    .text {
        font-family: Arial;
        width: 100%;
    }

    .headerText {
        font-size: 18px;
    }

    .descriptionText {
        font-size: 14px;
    }

    .animated-thumbnail img,
    .animated.thumbnail img {
        max-width: 100%;
        max-height: 100%;
        margin: auto;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .thumb-banner-banner {
        width: 100%;
    }

    .thumb-banner-controls {
        margin: 30px 0;
    }

    .infoSection {
        position: absolute;
        z-index: 9;
    }

.thumb-banner-layer, .thumb-banner-layer-container {
    position: absolute;
}

.thumb-banner-layer-container {
    top: 0;
    width: 100%;
    height: 100%;
}
.thumb-banner-content-container {
    width: 100%;
    height: 100%;
}

.thumb-banner-content {
    height: 100%;
    width: 100%;
}

    .thumb-banner-content img {
        height: 100%;
        width: 100%;
    }

picture.thumb-banner-banner-picture img {
    width: 100%;
}

        .infoSection.abAlignMiddle {
            padding: 2rem 0;
        }

        .infoSection.abAlignTop {
            padding-top: 1rem;
        }

        .infoSection.abAlignBottom {
            padding-top: 1rem;
        }

    .animated-thumbnail,
    .animated.thumbnail {
        position: absolute;
        max-height: 100%;
        height: 100%;
    }

    .thumb-banner-banner .animated-thumbnail,
    .thumb-banner-banner .animated.thumbnail {
        background: none;
        border: none;
    }

    .abJustifyLeft {
        text-align: left;
    }

    .abAlignLeft {
        left: 0;
    }

    .abAlignMiddle {
        top: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        margin-top: auto;
        margin-bottom: auto;
        vertical-align: middle;
    }

    .abAlignRight {
        right: 0;
    }

    .abJustifyCenter {
        text-align: center;
    }

    .abJustifyRight {
        text-align: right;
    }

.abAlignCenter {
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    justify-content: center;
    display: flex;
}

    .abAlignTop {
        top: 0;
    }

    .abAlignBottom {
        bottom: 0;
    }

    .abButton {
        font-size: 16px;
        font-weight: normal;
        padding: .5vw 1vw;
        border-radius: 4px;
        -webkit-transition: width .3s, height .3s, background-color .3s, -webkit-transform .3s;
        transition: width .3s, height .3s, background-color .3s, transform .3s;
        text-decoration: none;
        display: inline-block;
        margin-top: .5rem;
    }

.thumb-title {
    font-size: 1.6875rem;
    font-weight: 400;
}

    .bannerYoutubePlayer iframe,
    .bannerYoutubePlayer video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .bannerYoutubePlayer {
        position: relative;
        width: 100%;
        height: 0;
        /*padding-bottom: 40.25%;*/
        /*pointer-events: none;*/
    }

    .bannerYoutubePlayer i {
        box-sizing: content-box;
        position: absolute;
        top: 0;
        right: 0;
        color: white;
        cursor: pointer;
        display: none;
        opacity: 0;
        background-color: rgba(0,0,0,.5);
        font-size: 1.25em;
    }

    .thumb-banner-root.hover .thumb-banner-banner.is-selected .bannerYoutubePlayer i.visible {
        display: block !important;
        opacity: 1 !important;
    }

    .bannerVideoPlayer {
        width: 100%;
        height: 100%;
    }

    .animated.queued4animation {
        visibility: hidden;
    }

    .animated {
        visibility: visible;
    }

    .queued4animation {
        visibility: hidden;
    }

    .infoSection .headerText, .infoSection .descriptionText {
        margin-top: .5rem;
    }

    .is-selected .container.containerMobile, .carousel-mobile {
        display: none;
    }

    .is-selected .container.containerDesktop, .carousel-desktop {
        display: block;
    }

.thumb-banner-thumb.is-selected.is-nav-selected:before {
    position: absolute;
    content: ' ';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    background-color: rgba(204,204,204,0.5);
}

.thumb-banner-thumb{
    margin: 0 2px;
}

.thumb-banner-thumb:last-child {
    margin: 0;
}

/*Begin Rustoleum.com*/
#quick-nav{
    margin-top: 0 !important;
}

[data-disp-arrows="False"] .flickity-prev-next-button {
    display: none;
}
/*End Rustoleum.com*/
@media screen and (max-width: 1000px) {
    .infoSection.abAlignMiddle {
            line-height: 1;
        }

        .abButton {
            margin-top: 1rem;
        }
    }

    @media screen and (max-width: 850px) {
        .infoSection.abAlignMiddle {
            padding: 1rem 0;
        }
    }

    @media screen and (max-width: 767px) {
        .infoSection {
            width: 100% !important;
            top: 0;
            left: 0;
        }

        .headerText {
            font-size: calc(20px + 21 * (100vw - 375px) / 392);
        }

        .infoSection .headerText, .infoSection .descriptionText {
            margin-bottom: 1rem;
            margin-top: 1rem;
        }

        .is-selected .container.containerMobile, .carousel-mobile {
            display: block;
        }

        .is-selected .container.containerDesktop, .carousel-desktop {
            display: none;
        }

    }



