@charset "utf-8";

*[data-imagine] {
    cursor: pointer;
}

/********
 * VIEW *
 ********/

#imagine-view {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, .9) !important;
    z-index: 100000 !important;
    border-radius: 0 !important;
    border: 0 none !important;
}

/***********************
 * NEXT / PREV / CLOSE *
 ***********************/

#imagine-prev:focus, #imagine-next:focus {
    outline: 0 !important;
}
#imagine-prev, #imagine-next, #imagine-view > .imagine-close {
    position: absolute;
    background: none;
    border: 0;
    color: #FFF;
    -webkit-transition: padding 300ms ease, opacity 300ms ease;
    transition: padding 300ms ease, opacity 300ms ease;
}
#imagine-prev, #imagine-next {
    top: 0;
    width: 20%;
    height: 100%;
    font-size: 10em;
    opacity: .4;
    z-index: 10;
}
#imagine-prev:hover, #imagine-next:hover {
    opacity: .8;
}
#imagine-prev {
    left: 0;
    padding-left: .5em;
    background: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
}
#imagine-prev:hover {
    padding-left: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, .5));
}
#imagine-next {
    right: 0;
    padding-right: .5em;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
}
#imagine-next:hover {
    padding-right: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, .5));
}
#imagine-view > .imagine-close {
    top: 0;
    right: 0;
    width: 3em;
    height: 3em;
    z-index: 100;
    font-size: 2em;
    opacity: .5;
    background: rgba(0, 0, 0, 0);
    border-bottom-left-radius: .5em;
}
#imagine-view > .imagine-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, .5);
}

/*******
 * IMG *
 *******/

#imagine-img {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 0 2em rgba(0, 0, 0, 1);
}

/*******
 * BAR *
 *******/

.imagine-bar {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 1000;
    -webkit-transition: background 300ms ease;
    transition: background 300ms ease;
}
.imagine-bar:hover {
    background: rgba(0, 0, 0, .6);
}
.imagine-bar > div {
    display: block;
    padding: 1em;
    color: #FFF;
    font-size: 1.2em;
}
.imagine-bar > div:not(.imagine-bar-right) {
    font-size: 2em;
}
.imagine-bar-right {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
}
.imagine-bar-right > * {
    display: inline-block !important;
    top: auto !important;
    margin: 1em;
    background: 0;
    border: 0;
    color: rgba(255, 255, 255, .5);
    font-size: 1em;
    text-decoration: none;
}
.imagine-bar-right > *:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
}

/**********
 * LOADER *
 **********/

#imagine-loader {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 20em;
    height: 20em;
    margin-left: -10em;
    margin-top: -10em;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    text-align: center;
    opacity: 1;
    -webkit-transition: opacity 300ms ease;
    transition: opacity 300ms ease;
}
#imagine-loader.stopped {
    opacity: 0;
}
#imagine-loader.big-size {
    width: 34em;
    height: 34em;
    margin-left: -17em;
    margin-top: -17em;
}
#imagine-loader.white-bg {
    background-color: #FFF;
    border-radius: 5em;
}
#imagine-loader img {
    max-width: 100%;
    max-height: 100%;
}