/**
 * Insta Photo Display Module
 *
 * @package mod_instaphotodisplay
 * @author Codeboxr ( http://codeboxr.com )
 * @copyright Copyright (C) 2011-2014 http://codeboxr.com. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @ help: http://codeboxr.com/product/instagram-photo-display-for-joomla
 */

.cbclear{
    clear: both;
}

.cbinstafollowus {
    margin-top: 10px;
    clear: both;
}

.cbinstaphotobox {
    padding: 5px 0 0 5px;
    border: 1px solid #CCCCCC;
    overflow: auto;
    margin: 5px;
}

.cbinstaphoto {
    /* float: left;*/
    display: inline-block;
    overflow: hidden;
    margin: 0 5px 5px 0;
    border: 1px solid #EFEFEF;
}

.cbinstaphoto:hover {
    border: 1px solid #000000;
}

.cbinstaphoto a {
    float: left;
    display: inline-block;
    overflow: hidden;
}

.cbinstaphoto a:hover {
    text-decoration: none;
    cursor: pointer;
}

.cbinstaphoto img {
    border: 0;
    margin: 0;
    padding: 0;
}

/* Responsive Embed of video for instagram*/
.embed-containerinsta {
    position: relative;
    padding-bottom: 56.25%; /* 16/9 ratio */
    padding-top: 30px; /* IE6 workaround*/
    height: 0;
    overflow: hidden;

}

.embed-containerinsta iframe,
.embed-containerinstacontainer object,
.embed-containerinsta embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

p.instaphotodisplaytoolbar {
    margin: 10px 0;
}

/*Gallery style*/
/* new instagram style*/

.modinstaphotodisplaywrap {
    background: #eaeaea;
    padding: 10px;
    text-align: center;
    padding: 25px 0;
}

/* Outline Outward */
.instaoutlineoutward {
    display: inline-block;
    position: relative;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}

.instaoutlineoutward:before {
    content: '';
    position: absolute;
    /*border: #fff solid 7px;*/
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("../images/white-gradient-300px.png") repeat-x scroll 0 100% rgba(204, 204, 204, 0.8);
    /* background-color: #FFF;*/
    z-index: -999999;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: top, right, bottom, left;
    transition-property: top, right, bottom, left;
}

.instaoutlineoutward:hover:before, .instaoutlineoutward:focus:before, .instaoutlineoutward:active:before {
    top: -10px;
    right: -10px;
    bottom: -25px;
    left: -10px;
    border: 1px solid #ccc;
}

.instaoutlineoutward img {
    border: #fdfdfd solid 5px;
    height: 140px;
    width: 140px;
}

.instaphotodisplaygalitem {
    width: 150px;
    height: 150px;
    /* float: left;*/
    display: inline-block;
    margin: 18px;

}

.instaphotodisplaygalitemfter {
    position: relative;
    height: 30px;
}

.instaphotodisplaygalitemftercon1 {
    text-align: center;
    color: #888888;
    margin: 2px 0;
    font-size: 14px;
    line-height: 16px;
}

.instaphotodisplaygalitemftercon2 {
    text-align: center;
    color: #888888;
    margin: 2px 0;
    font-size: 14px;
    line-height: 16px;
}

.instaphotodisplaygalitemfterhide {
    display: none;
}

.instaphotodisplaygalitemfterhide {
    display: none;
}

.instaphotodisplaygalitemfooter {
    width: 49%;
    float: left;
    display: inline;
}

.instaphotodisplaygalitemfooterr {
    float: right;
}

i.cbxicon-comment {
    background: url('../images/comment.png') left 2px no-repeat;
    width: 14px;
    height: 14px;
    font-style: normal;
    display: inline-block;
}

i.cbxicon-heart {
    background: url('../images/heart.png') left 2px no-repeat;
    width: 14px;
    height: 14px;
    font-style: normal;
    display: inline-block;
}

/*imagelightbox*/

/* IMAGE LIGHTBOX SELECTOR */

#imagelightbox {
    cursor: pointer;
    position: fixed;
    z-index: 10000;

    -ms-touch-action: none;
    touch-action: none;

    -webkit-box-shadow: 0 0 1.0em rgba(0, 0, 0, .75); /* 50 */
    box-shadow: 0 0 1.0em rgba(0, 0, 0, .75); /* 50 */
}

/* ACTIVITY INDICATION */

#imagelightbox-loading,
#imagelightbox-loading div {
    border-radius: 50%;
}

#imagelightbox-loading {
    width: 1.5em; /* 40 */
    height: 1.5em; /* 40 */
    background-color: #444;
    background-color: rgba(0, 0, 0, .5);
    position: fixed;
    z-index: 10003;
    top: 50%;
    left: 50%;
    padding: 0.25em; /* 10 */
    margin: -1.25em 0 0 -1.25em; /* 20 */

    -webkit-box-shadow: 0 0 2.5em rgba(0, 0, 0, .75); /* 40 */
    box-shadow: 0 0 2.5em rgba(0, 0, 0, .75); /* 40 */
}

#imagelightbox-loading div {
    width: 1.25em; /* 20 */
    height: 1.25em; /* 20 */
    background-color: #fff;

    -webkit-animation: imagelightbox-loading .5s ease infinite;
    animation: imagelightbox-loading .5s ease infinite;
}

@-webkit-keyframes imagelightbox-loading {
    from {
        opacity: .5;
        -webkit-transform: scale(.75);
    }
    50% {
        opacity: 1;
        -webkit-transform: scale(1);
    }
    to {
        opacity: .5;
        -webkit-transform: scale(.75);
    }
}

@keyframes imagelightbox-loading {
    from {
        opacity: .5;
        transform: scale(.75);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: .5;
        transform: scale(.75);
    }
}

/* OVERLAY */

#imagelightboxoverlayinstadisplay {
    background-color: #fff;
    background-color: rgba(255, 255, 255, .9);
    position: fixed;
    z-index: 9998;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* "CLOSE" BUTTON */

#imagelightboxcloseinstadisplay {
    width: 2.5em; /* 40 */
    height: 2.5em; /* 40 */
    text-align: left;
    background-color: #666;
    border-radius: 50%;
    position: fixed;
    z-index: 10002;
    top: 2.5em; /* 40 */
    right: 2.5em; /* 40 */

    -webkit-transition: color .3s ease;
    transition: color .3s ease;
}

#imagelightboxcloseinstadisplay:hover,
#imagelightboxcloseinstadisplay:focus {
    background-color: #111;
}

#imagelightboxcloseinstadisplay:before,
#imagelightboxcloseinstadisplay:after {
    width: 2px;
    background-color: #fff;
    content: '';
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: 50%;
    margin-left: -1px;
}

#imagelightboxcloseinstadisplay:before {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

#imagelightboxcloseinstadisplay:after {
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

/* CAPTION */

#imagelightboxcaptioninstadisplay {
    text-align: center;
    color: #fff;
    background-color: #666;
    position: fixed;
    z-index: 10001;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.625em; /* 10 */
}

/* NAVIGATION */

#imagelightboxnavinstadisplay {
    background-color: #444;
    background-color: rgba(0, 0, 0, .5);
    border-radius: 20px;
    position: fixed;
    z-index: 10001;
    left: 50%;
    bottom: 3.75em; /* 60 */
    padding: 0.313em; /* 5 */

    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

#imagelightboxnavinstadisplay button {
    width: 1em; /* 20 */
    height: 1em; /* 20 */
    background-color: transparent;
    border: 1px solid #fff;
    border-radius: 50%;
    display: inline-block;
    margin: 0 0.313em; /* 5 */
}

#imagelightboxnavinstadisplay button.active {
    background-color: #fff;
}

/* ARROWS */

.imagelightboxarrowinstadisplay {
    width: 3.75em; /* 60 */
    height: 7.5em; /* 120 */
    background-color: #444;
    background-color: rgba(0, 0, 0, .5);
    vertical-align: middle;
    display: none;
    position: fixed;
    z-index: 10001;
    top: 50%;
    margin-top: -3.75em; /* 60 */
}

.imagelightboxarrowinstadisplay:hover,
.imagelightboxarrowinstadisplay:focus {
    background-color: #666;
    background-color: rgba(0, 0, 0, .75);
}

.imagelightboxarrowinstadisplay:active {
    background-color: #111;
}

.imagelightboxarrowinstadisplay-left {
    left: 2.5em; /* 40 */
}

.imagelightboxarrowinstadisplay-right {
    right: 2.5em; /* 40 */
}

.imagelightboxarrowinstadisplay:before {
    width: 0;
    height: 0;
    border: 1em solid transparent;
    content: '';
    display: inline-block;
    margin-bottom: -0.125em; /* 2 */
}

.imagelightboxarrowinstadisplay-left:before {
    border-left: none;
    border-right-color: #fff;
    margin-left: -0.313em; /* 5 */
}

.imagelightboxarrowinstadisplay-right:before {
    border-right: none;
    border-left-color: #fff;
    margin-right: -0.313em; /* 5 */
}

#imagelightbox-loading,
#imagelightboxoverlayinstadisplay,
#imagelightboxcloseinstadisplay,
#imagelightboxcaptioninstadisplay,
#imagelightboxnavinstadisplay,
.imagelightboxarrowinstadisplay {
    -webkit-animation: fade-in .25s linear;
    animation: fade-in .25s linear;
}

@-webkit-keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media only screen and (max-width: 41.250em) /* 660 */ {
    #container {
        width: 100%;
    }

    #imagelightboxcloseinstadisplay {
        top: 1.25em; /* 20 */
        right: 1.25em; /* 20 */
    }

    #imagelightboxnavinstadisplay {
        bottom: 1.25em; /* 20 */
    }

    .imagelightboxarrowinstadisplay {
        width: 2.5em; /* 40 */
        height: 3.75em; /* 60 */
        margin-top: -2.75em; /* 30 */
    }

    .imagelightboxarrowinstadisplay-left {
        left: 1.25em; /* 20 */
    }

    .imagelightboxarrowinstadisplay-right {
        right: 1.25em; /* 20 */
    }
}

@media only screen and (max-width: 20em) /* 320 */ {
    .imagelightboxarrowinstadisplay-left {
        left: 0;
    }

    .imagelightboxarrowinstadisplay-right {
        right: 0;
    }
}