/* 
    Document   : style.css
    Created on : Oct 3, 2013, 10:33:48 AM
    Author     : markharris
    Description:
        Purpose of the stylesheet follows.
*/

#slideshow-mask {
    position: fixed;
    top: 0;
    left: 0;
    background: #000;
    opacity: 0.5;
    height: 100%;
    width: 100%;
    z-index: 1999;
}

#slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    text-align: center;
    height: 100%;
    width: 100%;
    z-index: 2000;

}

#slideshow-container #slideshow {
    position: absolute;
    z-index: 1000;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.27);
    width: 100%;
    height: 100%;
}

#slideshow-close {
    position: absolute;
    z-index: 9999;
    top: 60px;
    right: 60px;
    width: 60px;
    height: 60px;
    background: #000 center center no-repeat;
    cursor: pointer;
}

#slideshow-close:before,
#slideshow-close:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 40px;
    height: 2px;
    background: #d4d4d4;
}

#slideshow-close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* container for slides */
.images {
    background: rgba(0, 0, 0, 0.57);
    border: none;
    position: absolute;
    z-index: 1000;
    cursor: pointer;
    width: calc(100% - 120px);
    height: calc(100% - 120px);
    top: 60px;
    left: 60px;
}

/* single slide */
.images div {
    position: absolute;
    z-index: 1000;
    top: 0;
    width: 100%;
    font-size: 12px;
    height: 100%;
}

.images div img {
    position: absolute;
    z-index: 2000;
    top: 50%;
    left: 50%;
    max-width: calc(100% - 120px);
    height: auto;
    max-height: calc(100% - 120px);
    width: auto;
    transform: translate(-50%, -50%);
}

.images div img.img-portrait {
    max-height: calc(100% - 120px);
    width: auto;
}

/* header */
.images h3 {
    font-size:22px;
    font-weight:normal;
    margin:0 0 20px 0;
    color:#456;
}

/* tabs (those little circles below slides) */
.slidetabs {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -70px);
    z-index: 2002;
}

/* single tab */
.slidetabs a {
    width:8px;
    height:8px;
    float:left;
    margin:3px;
    background:url(navigator.png) 0 0 no-repeat;
    display:block;
    font-size:1px;
}

/* mouseover state */
.slidetabs a:hover {
    background-position:0 -8px;
}

/* active state (current page state) */
.slidetabs a.current {
    background-position:0 -16px;
}


/* prev and next buttons */
.forward,
.backward {
    position: absolute;
    z-index: 2001;
    background: #000 no-repeat;
    display: block;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 1px;
    text-indent: -9999em;
    top: 50%;
    left: 60px;
    transform: translate(0, -50%);
}

.forward {
    left: auto;
    right: 60px;
}

.forward:before,
.forward:after,
.backward:before,
.backward:after {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    left: 50%;
    transform: translate(-50%, -9px) rotate(45deg);
    width: 25px;
    height: 2px;
    background: #d4d4d4;
}

.forward:after {
    transform: translate(-50%, 8px) rotate(-45deg);
}

.backward:before {
    transform: translate(-50%, -9px) rotate(-45deg);
}

.backward:after {
    transform: translate(-50%, 8px) rotate(45deg);;
}

.disabled {
    visibility:hidden !important;
}

#slideshow-container .images h4 {
    color: #fff;
    padding: 20px 60px 0;
    margin: 0;
    font-size: 16px;
}

@media (max-width: 767px) {

    .images {
        width: calc(100% - 20px);
        height: calc(100% - 20px);
        top: 10px;
        left: 10px;
    }

    #slideshow-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }

    #slideshow-close:before, #slideshow-close:after {
        width: 24px;
    }

    .forward, .backward {
        width: 40px;
        height: 40px;
        left: 10px;
        background: rgba(0, 0, 0, 0.27) no-repeat;
    }

    .forward {
        left: auto;
        right: 10px;
    }

    .forward:before,
    .forward:after,
    .backward:before,
    .backward:after {
        transform: translate(-50%, -5px) rotate(45deg);
        width: 16px;
    }

    .forward:after {
        transform: translate(-50%, 5px) rotate(-45deg);
    }

    .backward:before {
        transform: translate(-50%, -5px) rotate(-45deg);
    }

    .backward:after {
        transform: translate(-50%, 5px) rotate(45deg);
    }

    .images div img {
        max-width: 100%;
    }

    .images div img.img-portrait {
        max-height: 100%;
    }

    .slidetabs {
        transform: translate(-50%, -15px);
    }

    #slideshow-container .images h4 {
        padding: 6px 30px 6px;
        font-size: 12px;
        position: absolute;
        z-index: 3000;
        background: rgba(0, 0, 0, 0.48);
        top: 20px;
        width: 100%;
    }

}
