/**
 * Copyright (c) 2012 Anders Ekdahl (http://coffeescripter.com/)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * Version: 1.2.7
 *
 * Demo and documentation: http://coffeescripter.com/code/ad-gallery/
 */


.ad-gallery {
    border: 7px solid #BAD1EB;
    background-color: #636766;
}

    .ad-gallery, .ad-gallery * {
        margin: 0;
        padding: 0;
    }

        .ad-gallery .ad-image-wrapper {
            width: 100%;
            height: 480px;
            margin-bottom: 10px;
            position: relative;
            overflow: hidden;
        }

            .ad-gallery .ad-image-wrapper .ad-loader {
                position: absolute;
                z-index: 10;
                top: 48%;
                left: 48%;
                border: 1px solid #CCC;
            }

            .ad-gallery .ad-image-wrapper .ad-next {
                position: absolute;
                right: 0;
                top: 0;
                width: 25%;
                height: 100%;
                cursor: pointer;
                display: block;
                z-index: 200;
            }

            .ad-gallery .ad-image-wrapper .ad-prev {
                position: absolute;
                left: 0;
                top: 0;
                width: 25%;
                height: 100%;
                cursor: pointer;
                display: block;
                z-index: 200;
            }

            .ad-gallery .ad-image-wrapper .ad-prev, .ad-gallery .ad-image-wrapper .ad-next {
                /* Or else IE will hide it */
                background: url(images/trans.gif);
            }

                .ad-gallery .ad-image-wrapper .ad-prev .ad-prev-image, .ad-gallery .ad-image-wrapper .ad-next .ad-next-image {
                    background: url(images/ad_prev.png);
                    width: 30px;
                    height: 30px;
                    display: none;
                    position: absolute;
                    top: 47%;
                    left: 0;
                    z-index: 101;
                }

                .ad-gallery .ad-image-wrapper .ad-next .ad-next-image {
                    background: url(images/ad_next.png);
                    width: 30px;
                    height: 30px;
                    right: 0;
                    left: auto;
                }

            .ad-gallery .ad-image-wrapper .ad-image {
                position: absolute;
                overflow: hidden;
                top: 0;
                left: 0;
                z-index: 9;
                width: 590px !important;
                left: 20px;
                top: 25px;
            }

                .ad-gallery .ad-image-wrapper .ad-image img {
                    padding: 0 !important;
                    width: 100%;
                    bottom: 57px !important;
                }

                .ad-gallery .ad-image-wrapper .ad-image a img {
                    border: 0;
                }

                .ad-gallery .ad-image-wrapper .ad-image .ad-image-description {
                    position: absolute;
                    bottom: 0px;
                    left: 0px;
                    padding: 7px;
                    text-align: left;
                    width: 100% !important;
                    z-index: 2;
                    background: #000;
                    color: #fff;
                    opacity: 0.7;
                }

                * html .ad-gallery .ad-image-wrapper .ad-image .ad-image-description {
                    background: none;
                    filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (enabled=true, sizingMethod=scale, src='opa75.png');
                }

                    .ad-gallery .ad-image-wrapper .ad-image .ad-image-description .ad-description-title {
                        display: block;
                    }

        .ad-gallery .ad-controls {
            height: 20px;
            color: #fff !important;
        }

        .ad-gallery .ad-info {
            float: left;
            margin-left: 48px;
        }

        .ad-gallery .ad-slideshow-controls {
            float: right;
            margin-right: 36px;
        }

            .ad-gallery .ad-slideshow-controls .ad-slideshow-start,
            .ad-gallery .ad-slideshow-controls .ad-slideshow-stop,
            .ad-gallery .ad-slideshow-controls .ad-slideshow-start-text,
            .ad-gallery .ad-slideshow-controls .ad-slideshow-stop-text {
                padding-left: 5px;
                cursor: pointer;
            }

            .ad-gallery .ad-slideshow-controls .ad-slideshow-stop,
            .ad-gallery .ad-slideshow-controls .ad-slideshow-start {
                width: 13px !important;
                margin-bottom: 3px;
            }

            .ad-gallery .ad-slideshow-controls .ad-slideshow-start-text {
                margin-right: 15px;
            }

            .ad-gallery .ad-slideshow-controls .ad-slideshow-countdown {
                padding-left: 5px;
                font-size: 0.9em;
            }

        .ad-gallery .ad-slideshow-running {
            margin-right: 49px;
        }

            .ad-gallery .ad-slideshow-running .ad-slideshow-start {
                cursor: default;
                font-style: italic;
            }

        .ad-gallery .ad-nav {
            width: 100%;
            position: relative;
            clear: both;
        }

        .ad-gallery .ad-forward, .ad-gallery .ad-back {
            position: absolute;
            top: 0;
            height: 100% !important;
            z-index: 10;
        }
        /* IE 6 doesn't like height: 100% */
        * html .ad-gallery .ad-forward, .ad-gallery .ad-back {
            height: 100px;
        }

        .ad-gallery .ad-back {
            cursor: pointer;
            color: #fff;
            font-weight: bold;
            opacity: 1 !important;
            font-size: 30px;
            left: 15px;
            top: 25%;
            /*width: 13px;
            display: block;
            background: url(images/ad_scroll_back.png) 0px 22px no-repeat;*/
        }

            .ad-gallery .ad-back img {
                padding: 0 !important;
                width: 6px;
                height: 10px;
            }

        .ad-gallery .ad-forward {
            cursor: pointer;
            display: block;
            right: 15px;
            /*width: 13px;*/
            /*background: url(images/ad_scroll_forward.png) 0px 22px no-repeat;*/
            color: #fff;
            font-weight: bold;
            opacity: 1 !important;
            font-size: 30px;
            top: 25%;
        }

            .ad-gallery .ad-forward img {
                padding: 0 !important;
                width: 6px;
                height: 10px;
            }

        .ad-gallery .ad-nav .ad-thumbs {
            overflow: hidden;
            width: 536px;
            margin-left: 50px;
        }

        .ad-gallery .ad-thumbs .ad-thumb-list {
            float: left;
            width: 9000px;
            list-style: none;
        }

            .ad-gallery .ad-thumbs .ad-thumb-list > li > a > img {
                height: 90px;
                padding: 0 !important;
            }

        .ad-gallery .ad-thumbs li {
            float: left;
            padding-right: 6px;
        }

            .ad-gallery .ad-thumbs li a {
                display: block;
            }

                .ad-gallery .ad-thumbs li a img {
                    border: 3px solid #CCC;
                    display: block;
                }

                .ad-gallery .ad-thumbs li a.ad-active img {
                    border: 3px solid #FDBE00;
                }
/* Can't do display none, since Opera won't load the images then */
.ad-preloads {
    position: absolute;
    left: -9000px;
    top: -9000px;
}

#main.container > .row .home > div:first-child {
    padding-left: 0px;
}

#main.container > .row .home > div:not(:first-child) {
    padding-right: 0px;
}

#main.container > .row .home > .col-md-4 {
    width: 400px !important;
}

@media (max-width: 768px) {
    main.container > div.row > div.span9 > div.row > div.span8 > div.content div.ad-gallery div.ad-controls .ad-info {
        float: left;
        margin-left: 24px;
    }

    main.container > div.row > div.span9 > div.row > div.span8 > div.content div.ad-gallery div.ad-controls .ad-slideshow-controls {
        float: right;
        margin-right: 13px;
        width: 35% !important;
        text-align: right;
        padding-top: 4px;
    }

    main.container > div.row > div.span9 > div.row > div.span8 > div.content div.ad-back {
        width: auto !important;
        left: 2px;
    }

    main.container > div.row > div.span9 > div.row > div.span8 > div.content div.ad-forward {
        width: auto !important;
        right: 2px;
    }

    main.container > div.row > div.span9 > div.row > div.span8 > div.content div.ad-thumbs {
        overflow: hidden;
        width: 86% !important;
        margin-left: 24px;
    }

    .ad-gallery .ad-image-wrapper .ad-image {
        left: 0px;
        height: auto !important;
        min-height: 336px;
    }

        .ad-gallery .ad-image-wrapper .ad-image img {
            bottom: 50px !important;
            border: 7px solid #636766;
        }

    .ad-gallery .ad-image-wrapper {
        height: 340px;
    }

    .page .row .span9 .span8 .content > div.ad-gallery {
        padding-bottom: 0px;
    }

    .ad-slideshow-stop-text {
        margin-right: 16px;
    }

    main.container > div.row > div.span9 > div.row > div.span8 > div.content div > img.ad-slideshow-start,
    main.container > div.row > div.span9 > div.row > div.span8 > div.content div > img.ad-slideshow-stop {
        padding-bottom: 0px;
    }
}


/*Image Rotation*/
.image-rotation {
    background-color: transparent;
    border: none;
    margin-bottom: 17px !important;
}

    .image-rotation .ad-controls {
        display: none;
    }

    .image-rotation .ad-forward img,
    .image-rotation .ad-back img {
        /*width: unset;
        height: unset;*/
    }

    .image-rotation .ad-image-wrapper {
        height: 355px;
    }

        .image-rotation .ad-image-wrapper .ad-image img {
            /*margin-top: 0px !important;
            margin-bottom: 0px !important;*/
            top: unset !important;
            bottom: 0 !important;
        }

    .image-rotation .ad-forward {
        right: 25px;
    }

    .image-rotation .ad-thumbs li {
        width: 100px;
        height: 44px !important;
    }

    .image-rotation .image-rotation-title {
        text-align: center;
        color: #4F91CD;
        font-size: 11px;
        font-family: Arial;
    }

    .image-rotation .ad-thumbs li a.ad-active img {
        border: 1px solid #FDBE00;
    }

    .image-rotation .ad-forward,
    .image-rotation .ad-back {
        top: 2%;
    }

    .image-rotation .ad-thumbs li a img {
        border: transparent;
    }

    .image-rotation .ad-thumbs .ad-thumb-list > li > a > img {
        /*height: 60px !important;*/
    }

.image-rotation-main-title {
    color: #C79603;
    font-size: 14px;
    margin: 0;
    font-family: Arial;
    font-weight: bold;
}

.image-rotatil-album-title {
    line-height: unset;
    margin-bottom: 10px;
}

.image-rotation .ad-image-wrapper .ad-image {
    width: 647px !important;
    height: 350px !important;
    left: 0;
    top: 0;    
}

    .image-rotation .ad-image-wrapper .ad-image img {
        /*height: 100% !important;*/
    }

.image-rotation-slider .carousel-inner > .item > a.album-selected {
    color: #AAAAAA !important;
    pointer-events: none;
    cursor: default;
}

.image-rotation-slider .carousel-inner {
    left: 63px;
}

    .image-rotation-slider .carousel-inner > .item > a {
        width: 100px;
        text-align: center;
        color: #4E91CC !important;
        margin-right: 3px;
        text-decoration: none !important;
        font-weight: bold;
        font-family: Arial;
        line-height: 1.2;
        margin-right: 6px;
    }

        .image-rotation-slider .carousel-inner > .item > a > img {
            width: 100px !important;
            height: 44px;
            margin-right: 5px;
            margin-bottom: 6px;
        }

.image-rotation-slider .carousel-control {
    background-color: transparent;
    opacity: unset;
    width: 6px;
}


/*portrait view*/
@media (max-width: 420px) {
    .image-rotation {
        margin: 0 2px;
        width: 98%;
    }

        .image-rotation .ad-image-wrapper .ad-image {
            width: 100% !important;
            height: unset !important;
            min-height: 218px !important;
        }

        .image-rotation .ad-image-wrapper {
            height: 218px !important;
            margin-bottom: 0px !important;
        }

        .image-rotation .ad-nav .ad-thumbs {
            width: 85%;
            margin-left: 30px;
            margin-top: 10px;
        }

        .image-rotation .ad-thumbs li {
            width: 80px !important;
        }

        .image-rotation .ad-forward {
            right: 10px;
        }

        .image-rotation .ad-image-wrapper .ad-image img {
            border: none;
        }

    .image-rotation-main-title {
        margin: 0 5px 10px 5px;
        width: 98%;
    }

    .image-rotation .ad-forward,
    .image-rotation .ad-back {
        top: 0;
    }

        .image-rotation .ad-forward img, .image-rotation .ad-back img {
            position: initial;
            margin-top: 16px;
        }

    .image-rotation-slider {
        display: block;
    }

    main.container .image-rotation-slider .carousel-inner {
        margin-left: -2vw;
        width: 85%;
        left: 40px;
    }

        main.container .image-rotation-slider .carousel-inner .item a img {
            width: 100% !important;
            height: 15vw !important;
        }

    .image-rotation-slider a.carousel-control {
        margin-top: 6vw;
    }

    .image-rotation-slider a.left {
        margin-left: 20px;
        width: 6px;
    }

    .image-rotation-slider a.right {
        margin-right: 15px;
        width: 6px;
    }
}

/*Landscape view*/
@media (min-width: 421px) and (max-width: 767px) {
    .image-rotation {
        margin: 0 2px;
        width: 98%;
    }

        .image-rotation .ad-image-wrapper .ad-image {
            width: 100% !important;
            height: unset !important;
        }

        .image-rotation .ad-image-wrapper {
            height: 335px !important;
            margin-bottom: 0px !important;
        }

        .image-rotation .ad-nav .ad-thumbs {
            width: 92%;
            margin-left: 30px;
            margin-top: 10px;
        }

        .image-rotation .ad-thumbs li {
            width: 80px !important;
        }

        .image-rotation .ad-forward {
            right: 10px;
        }

        .image-rotation .ad-image-wrapper .ad-image img {
            border: none;
        }

    .image-rotation-main-title {
        margin: 0 5px 10px 5px;
        width: 98%;
    }

    .image-rotation .ad-forward,
    .image-rotation .ad-back {
        top: 0;
    }

        .image-rotation .ad-forward img, .image-rotation .ad-back img {
            position: initial;
            margin-top: 16px;
        }

    .image-rotation-slider {
        display: block;
    }

    main.container .image-rotation-slider .carousel-inner {
        margin-left: -2vw;
        width: 85%;
        left: 48px;
    }

        main.container .image-rotation-slider .carousel-inner .item a img {
            width: 100% !important;
            height: 57px !important;
        }

    .image-rotation-slider a.carousel-control {
        margin-top: 4vw;
    }

    .image-rotation-slider a.left {
        margin-left: 20px;
        width: 6px;
    }

    .image-rotation-slider a.right {
        margin-right: 15px;
        width: 6px;
    }
}


/*End image Rotation*/
