/* --------------------- */
/* ---- VLP GALLERY ---- */
/* --------------------- */

/* TOC
    1. Header
    2. Gallery grid
    3. Overlays
        3.1. Video overlay
        3.2. Share gallery overlay
        3.3. Photo & video overlay
    4. Media queries */

/* 1. HEADER
------------------------------------------------ */

.intro_header .left {
    float:left;
}

.intro_header .right {
    float: right;
}

.es .intro_header .right {
    width: auto;
    float: right;
    margin-top: 5px;
}

#main_content .intro_header .right li {
    float: left;
    margin-left: 20px;
}

#garage_subNav {  padding-top: 55px; }

/* 2. GALLERY GRID
------------------------------------------------ */

#garage_gallery {
    width: 975px;
}

.gallery_cell {
    width: 487px;
    float: left;
    font-size: 0;
    overflow: hidden;
}

.ie7 .gallery_cell,
.ie8 .gallery_cell {
    margin-bottom: 20px;
}

.thumbImg {
    padding: 0;
    margin: 0;
    border: none;
}

.thumbHolder {
    background: #000;
    float: left;
    margin: 0 12px 20px 2px;
}

.thumbHolder img {
    -moz-opacity: .70;
    filter: alpha(opacity=70);
    opacity: .70;
}

.largeMask {
    width: 476px;
    height: 228px;
}

.smallMask {
    width: 228px;
    height: 104px;
}

.rowbreak {
    clear: both;
}

.gallery_cell a{
    cursor: pointer;
}

.gallery_cell a,
.gallery_cell a img {
    float: left;
    overflow: hidden;
}

.gallery_cell a:hover {
    border: 2px solid #1983c5;
}


.gallery_cell a:hover img {
    margin: -2px;
}

/* ::::: Video Section ::::: */

#vidContent {
    width: 100%;
    clear: both;
}

.videoThumbLink {
    display: block;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.vidThumb {
    width: 229px;
    height: 104px;
    float: left;
    margin: 0 0 20px 20px;
    position: relative;
}

.vidThumb .videoThumbLink {
    width: 229px;
    height: 104px;
}

.vidThumb img {
    width: 229px;
    margin-top: -22px;
    -moz-opacity: .70;
    filter: alpha(opacity=70);
    opacity: .70;
    box-shadow: #000 0 0 0;
}

.vidThumbLarge {
    width: 477px;
    height: 228px;
    overflow: hidden;
    float: left;
    margin: 0 0 20px 0;
    position: relative;
}

.vidThumbLarge .videoThumbLink {
    width: 477px;
    height: 228px;
}

.vidThumbLarge img {
    width: 477px;
    margin-top: -48px;
    -moz-opacity: .70;
    filter: alpha(opacity=70);
    opacity: .70;
    box-shadow: #000 0 0 0;
}

#vidContent .first {
    margin-left: 0;
}

.playButton {
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 1000;
    top: 0;
    left: 0;
    padding: 0;
    margin: 0;

    cursor: pointer;
    opacity: 0.7;
    background: url(/MusaWeb/musa2/images/garage/gallery/btn_play_video.png) no-repeat scroll 50% 50% transparent;
}

.vidThumb .playButton {
    width: 229px;
    height: 104px;
}

/* 3. OVERLAYS
------------------------------------------------ */

/* 3.1. VIDEO OVERLAY
------------------------------------------------ */

#main_wrap ul.arrow_links_gray {
    float: right;
}

#main_wrap ul.arrow_links_gray li a {
    display: block;
    background: none;
    padding-right: 3px;
}

#main_wrap ul.arrow_links_gray li a div {
    float: left;
    font-family: interstate, arial, helvetica;
}

#main_wrap ul.arrow_links_gray li a:hover {
    text-shadow: 0 0 7px #0099CC;
}

#main_wrap ul.arrow_links_gray li a .arrow {
    width: 13px;
    height: 15px;
    float: left;
    margin-left: 10px;
}

/* 3.2. SHARE GALLERY OVERLAY
------------------------------------------------ */

#main_wrap div.mouseoverlay {
    display: none;
    position: absolute;
    top: 15px;
    padding-top: 7px;
}

#gallery_image_overlay div.mouseoverlay {
    padding-top: 20px;
    left: -30px;
}

#main_wrap .shareButton #photoshare div.mouseoverlay {
    top: 15px;
}

#main_wrap div.share_overlay {
    z-index: 1000;
    width: 200px;
    padding-top: 9px;
    background: url(/MusaWeb/musa2/images/garage/gallery/bg_share_slideshow.png) #f8fcfe bottom repeat-x;
    position: relative;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.ie7 #main_wrap div.share_overlay {
    width: 240px;
    padding-bottom: 10px;
}

#main_wrap div.share_overlay  a {
    display: block;
    width: 90px;
    height: 21px;
    float: left;
    margin:0 0 8px 10px;
    padding: 0!important;
    color: #666;
    font-size: 10px!important;
    font-weight: normal!important;
    text-decoration: none;
    text-shadow: 0 0 0 !important;
}

#main_wrap div.share_overlay a:hover {
    color: #0099CC;
    text-shadow: 0 0 7px #0099CC !important;
}

.ie7 #main_wrap div.share_overlay a {
    width: 105px;
}

#main_wrap div.share_overlay .facebook {
    background: url(/MusaWeb/musa2/images/garage/gallery/icon_fb.png) no-repeat;
}

#main_wrap div.share_overlay .twitter {
    background: url(/MusaWeb/musa2/images/garage/gallery/icon_twitter.png) no-repeat;
}

#main_wrap div.share_overlay .digg {
    background: url(/MusaWeb/musa2/images/garage/gallery/icon_digg.png) no-repeat;
}

#main_wrap div.share_overlay .flickr {
    background: url(/MusaWeb/musa2/images/garage/gallery/icon_flickr.png) no-repeat;
}

#main_wrap div.share_overlay .delicious {
    background: url(/MusaWeb/musa2/images/garage/gallery/icon_delicious.png) no-repeat;
}

#main_wrap div.share_overlay a div {
    padding: 0 0 0 29px;
    margin-top: 2px;
    text-transform: none;
}

#photoshare div.share_overlay a div{
    margin-top: -5px;
}

#main_wrap div.share_overlay .gplusone {
    padding: 0 0 0 29px;
    background: url(/MusaWeb/musa2/images/videos/youtube/icon_gplusone2.png) no-repeat;
}

#main_wrap div.share_overlay .gplusone a {
    margin: 0;
    padding: 0 0 0 29px;
    background: url(/MusaWeb/musa2/images/videos/youtube/icon_gplusone2.png) no-repeat;
}

#main_wrap div.share_overlay .gplusone a img {
    display: none;
}

/* 3.3. PHOTO & VIDEO OVERLAY
------------------------------------------------ */

.generic_overlay {
    position: absolute;
    z-index: 100;
    display: none;

    background: #2a2b2c;

    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;

    -moz-box-shadow: 0 2px 15px 2px #000;
    -webkit-box-shadow: 0 2px 15px 2px #000;
    box-shadow: 0 2px 15px 2px #000;

}

.loader {
  display: none;
  width: 48px;
  height: 48px;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1100;
  margin-left: -24px;
  margin-top: -24px;
  background-image: url(/MusaWeb/musa2/images/garage/loading_animation.gif);
}

.largeview {
    width: 975px;
    height: 437px; /*487px;*/

    -moz-border-radius: 4px 4px 0 0;
    -webkit-border-radius: 4px 4px 0 0;
    border-radius: 4px 4px 0 0;
}

.largeview.video {
    height: auto; /*487px;*/
}

.generic_overlay .next {
    width: 10px;
    height: 18px;
    cursor: pointer;
    position: absolute;
    top: 192px;
    right: 16px;
    background: url(/MusaWeb/musa2/images/garage/gallery/rightB.png) 0 0 no-repeat;
}

.generic_overlay .prev {
    width: 10px;
    height: 18px;
    cursor: pointer;
    position: absolute;
    top: 192px;
    left: 16px;
    background: url(/MusaWeb/musa2/images/garage/gallery/leftB.png) 0 0 no-repeat;
}

.generic_overlay .next_hover {
    opacity: 0;
    z-index: 1000;
    background: url(/MusaWeb/musa2/images/garage/gallery/rightB.png) 0 -18px no-repeat;
}

.generic_overlay .prev_hover {
    opacity: 0;
    z-index: 1000;
    background: url(/MusaWeb/musa2/images/garage/gallery/leftB.png) 0 -18px no-repeat;
}

.generic_overlay .next:hover {
    background: url(/MusaWeb/musa2/images/garage/gallery/rightB.png) 0 -18px no-repeat;
}

.generic_overlay .prev:hover {
    background: url(/MusaWeb/musa2/images/garage/gallery/leftB.png) 0 -18px no-repeat;
}

.generic_overlay .info {
    width: 975px;
    padding-bottom: 30px;
}

.generic_overlay .info .vehInfo {
    float: left;
    width: 130px;
    padding: 0 15px 0 16px;
}

.generic_overlay .info .vehInfo .year {
    margin-bottom: 2px;
    padding-top: 16px;

    font-size: 9px;
    font-weight: bold;
    line-height: 5px;
    color: #fff;
}

.generic_overlay .info .vehInfo .model {
    font: 16px/18px mazda,sans-serif,arial;
    color: #0099CC;
}

.generic_overlay .info .description {
    width: 610px;
    float: left;
    margin: 0 0 25px 0;
}

.generic_overlay .info .disclaimerImage {
    position: absolute;
    left: 29px;
    top: 55px;
}

.generic_overlay .info .description p {
    padding-top: 26px;
    font-size: 10px;
    color: #fff;
    line-height:15px;
}

.generic_overlay .info .disclaimerImage p {
    font-size: 8px;
    line-height: 0;
    color: #fff;
}

.generic_overlay .info .links {
    float: right;
    margin-right: 40px;
    padding: 19px 0 0 0;
    position: relative;
}

.ie7 .generic_overlay .info .links {
    left: -215px;
}

.ie7 .generic_overlay .info ul.arrow_links_gray {
    width: 175px;
}

#main_wrap .generic_overlay .info .links ul.arrow_links_gray li {
    float: left;
    position: relative;
}

#video_container {
    width: 975px;
    height: 486px;
    visibility: visible;
    z-index: 1000;
    background: #000;
}

/* ::::: Share Button ::::: */

.shareButton {
    width: 173px;
    height: 34px;
    position: relative;
    background: url(/MusaWeb/musa2/images/garage/gallery/btn_share_bg.png) no-repeat 0 0;
}
.shareButton a {
    display: block;
    padding: 8px 0 0 11px;
    font: 13px/15px interstate-bold, sans-serif, arial;
    color: #008ad0;
    text-decoration: none;
}

div.button_share {
    display: block;
    width: auto;
    height: 30px;
    position: relative;
    top: -5px;
    left: 20px;

    float: left;
    clear: both;
    cursor: pointer;
    background: url(/MusaWeb/musa2/images/global/bg_btn_auto_mid.png) repeat-x;
}

div.button_share:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

div.button_share a {
    display: block;
    height: 30px;
    position: relative;
    left: -3px;
    margin: 0;
    float: left;

    background: url(/MusaWeb/musa2/images/global/bg_btn_auto_left.png) top left no-repeat;
    font: normal 12px/30px interstate-black,sans-serif,arial;
    text-decoration: none;
    color: #008ad0;
}

div.button_share a p {
    display: block;
    position: relative;
    left: -3px;
    float: left;
    padding-left: 15px;
    padding-right: 3px;

    font: normal 12px/30px interstate-black, sans-serif, arial;
    text-decoration: none;
    text-transform: uppercase;
    color: #008ad0;
}

div.button_share div.arr {
    display: block;
    height: 30px;
    width: 25px;

    position: relative;
    right: -3px;
    float: left;
    padding: 0;

    background: url(/MusaWeb/musa2/images/global/bg_btn_auto_right.png) top right no-repeat;
    text-align: left;
}

div.button_share div.arr span {
    display: block;
    width: 27px;
    height: 30px;
    position: relative;
    left: 0;
    float: none;

    background: url(/MusaWeb/musa2/images/global/icon_bluearrow.png) 0px 9px no-repeat;
    text-align: left;
}

#main_wrap ul.arrow_links_gray li.shareButton {
    margin-top: -5px;
    margin-right: -25px;
}

#main_wrap ul.arrow_links_gray li.shareButton #photoshare {
    color: #008ad0;
}

/* 4. MEDIA QUERIES
------------------------------------------------ */
/* iPad Styles */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {

    .touch {
        width: 975px;
    }

    .touch #main_wrap {
        /*overflow: hidden; MUSA-4765 */
    }

    .touch #video_container {
        width: 885px;
        margin: 0 45px;
    }

    .touch #gallery_video_overlay .close {
        left: auto;
        right: 0;
    }
}

.touch .thumbHolder img {
    -moz-opacity: 1;
    filter: alpha(opacity=100);
    opacity: 1;
}

.touch .vidThumb img {
    -moz-opacity: 1;
    filter: alpha(opacity=100);
    opacity: 1;
}

.touch .vidThumbLarge img {
    -moz-opacity: 1;
    filter: alpha(opacity=100);
    opacity: 1;
}
