 /*

File: lightbox.css

Abstract: Stylesheet for lightbox

Version: 1.1

Copyright (C) 2010 Apple Inc. All Rights Reserved.

*/
.image-container {
    /* Make the images look clickable */
    cursor: pointer;
}

.caption2 {
    margin: 0;
    padding: 0px;
    font-size: 9pt;
    text-align: center;
    width: 122px;
    /*-webkit-box-sizing: border-box;*/
}

ul.thumbs {
    list-style-type: none;
}

ul.thumbs > li {
    display: inline-block;
    margin: 0px;
    vertical-align: top;
    /*-webkit-box-shadow: rgba(0, 0, 0, 0.5) 0 5px 10px;*/
}

/* Lightbox-specific */

#lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0.01;
    -webkit-transition: opacity 1s;
    -webkit-transform: translate3d(0, 0, 0);
    text-align: center; /* to center the #overlay-box */
}

#lightbox-overlay.slow-mode {
    -webkit-transition: opacity 5s;
}

#lightbox-overlay.visible {
    opacity: 1;
}

/* This is the white box the contains initially the loading indicator, then the full size image */
#overlay-box {
    position: relative;
    margin-top: 100px;
    margin: auto;
    background-color: white;
    border: 1px solid white;  
    display: inline-block;

    -webkit-border-radius: 12px;
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-transition-property: -webkit-transform, opacity;
}

/* Scale transition to hide the loading indicator */
#overlay-box.initial {
    -webkit-transition-duration: 500ms;
    -webkit-transform: scale3d(0.01, 0.01, 0.01);
    opacity: 0;
}

#lightbox-overlay.slow-mode #overlay-box.initial {
    -webkit-transition-duration: 2000ms;
    -webkit-transform: scale3d(0.01, 0.01, 0.01);
    opacity: 0;
}

/* Scale transition to show the full size image */
#overlay-box.final {
    -webkit-transition-duration: 1000ms;
    -webkit-transform: scale3d(1, 1, 1);
    opacity: 1;
}

#lightbox-overlay.slow-mode #overlay-box.final {
    -webkit-transition-duration: 4000ms;
    -webkit-transform: scale3d(1, 1, 1);
    opacity: 1;
}


/* The loading indicator */
@-webkit-keyframes spin {
    from { -webkit-transform: rotate(0); }
    to  { -webkit-transform: rotate(360deg); }
}

.load-indicator {
    width: 80px;
    height: 80px;
    margin: 10px;
    background: url('chasing-arrows.png') no-repeat;
    display: none;

    -webkit-background-size: 100% 100%;
    -webkit-animation: spin 0.8s infinite linear;
}

#overlay-box.loading .load-indicator {
    display: block;
}

#lightbox-overlay.slow-mode .load-indicator {
    -webkit-animation: spin 2.4s infinite linear;
}

.overlay-contents {
	
}

.overlay-contents img {
    margin: 10px;
}

.overlay-contents .caption2 {
    margin-top: 10px;
    margin-left: 10px;
    text-align: left;
    padding: 5px 0;
}

/* the button to close the overlay */
#close-button {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 30px;
    height: 30px;
    background-image: url('close_button.png');
    background-position: 0 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-transition: opacity 0.5s;
    opacity: 0;
}

/* State of the button at the end of the transition */
#close-button.visible {
    opacity: 1;
}

/* hover state for close button */
#close-button:hover {
    background-position: 0 30px;
}
