/**
 * Migration Notice!
 * This file has been migrated to the new platform: RS-Web.
 * Before editing this file send notice of the changes to aos-vanship@group.apple.com.
 */

/* UTILITY STYLES */
.gallery-fade-fast {
    transition: opacity 0.3s;
    -webkit-transition: opacity 0.3s;
    -moz-transition: opacity 0.3s;
    -webkit-backface-visibility: hidden;
}

.gallery-fade-slow {
    transition: opacity 0.7s;
    -webkit-transition: opacity 0.7s;
    -moz-transition: opacity 0.7s;
}

.gallery-fade-out {
    opacity: 0;
}

.gallery-fade-in {
    opacity: 1;
}

.gallery-overlay-hide {
    display: none;
}

.gallery-spinner {
    background: url(img/spinner.gif) center center no-repeat;
}

.magnify-image,
.magnify:hover {
    background: url('img/magnify.svg?rasterize@.5x') center center no-repeat;
    background-size: 167px 167px;
}

/* GALLERY OVERLAY */
.gallery-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    min-width: 1000px;
    z-index: 1001;
    text-align: center;
    margin: 0;
    font-size: 16px;
    line-height: 20px;
}


/* OVERLAY CONTAINER & COVER */
.gallery-overlay-cover {
    background: #FFFFFF;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 1000;
}


/* THUMBNAILS */
.gallery-preview .thumbnails .thumbnail-item,
.gallery-overlay .overlay-thumbnails .overlay-thumbnail-item {
    display: inline-block;
}

.gallery-preview .thumbnails .thumbnail,
.gallery-overlay .overlay-thumbnails .overlay-thumbnail {
    display: inline-block;
    margin: 2px 3px;
    line-height: 0;
    border-radius: 5px;
    border: solid 1px #ccc;
    zoom: 1;
}

.gallery-preview .thumbnails .thumbnail img,
.gallery-overlay .overlay-thumbnails .overlay-thumbnail img {
    display: block;
    cursor: pointer;
    border-radius: 4px;
}


/* SELECTED THUMBNAIL */
.gallery-preview .thumbnails .thumbnail.active,
.gallery-preview .thumbnails .thumbnail:hover,
.gallery-overlay .overlay-thumbnails .overlay-thumbnail.active,
.gallery-overlay .overlay-thumbnails .overlay-thumbnail:hover {
    border-width: 2px;
    border-color: #36a9e2;
    margin: 1px 2px;
}


/* MAIN IMAGE */
.gallery-overlay .overlay-main-image .overlay-image {
    cursor: pointer;
    display: block;
    margin: auto;
}

.gallery-overlay .overlay-caption {
    padding-bottom: 20px;
}

.gallery-preview .main-image img{
	max-width: 978px;
}

.overlay-close {
    display: none;
}

/* CLOSE BUTTON */
.gallery-overlay-open .overlay-close {
    display: block;
    background: url('img/close.svg?rasterize@.5x') -15px -15px no-repeat;
    background-size: 62px 124px;
    position: fixed;
    top: 40px;
    left: 40px;
    height: 35px;
    z-index: 1002;
    color: #999999;
    font-size: 16px;
    line-height: 1;
    padding: 0 0 10px 38px;
    cursor: pointer;

    /* If this isn't present, the text will flicker when the image fades */
    -webkit-font-smoothing: antialiased;
}
.gallery-overlay-open button.overlay-close {
    padding-top: 0;
}

   /*Below one is needed for ios devices to avoid overlapping of close link with gallery img*/
.ios .gallery-overlay-open .overlay-close {
    position: absolute;
}

.overlay-close:hover,
.overlay-close:focus {
    background-position: -15px -78px;
    text-decoration: none;
    color: #0088CC;
}


/* HID THE GALLERY OVERLAY TEXT ASSETS */
.gallery-overlay-text-assets {
    display: none;
}


/* smooth IE7 image scaling */
img {
    *-ms-interpolation-mode: bicubic;
}
