/* 
 * Here goes CSS needed in widget management status
 * This CSS file will be included automatically in management state.
 * Please don't put here CSS needed for public preview of widget.
*/

/*TOOLS*/
.no-display { display: none; }

/***** ADMIN *****/
.ipWidget-Newsletter .ipsContainer { position: relative; overflow: hidden; width: 100%;}
.ipWidget-Newsletter .ipsContainer .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    background: rgba(0,0,0,0.5);
    text-align: center;
    z-index: 1;
    padding: 5% 0;
    max-height: 100%;
    display:table-cell;
    vertical-align:middle;
    visibility: hidden;
}
.ipWidget-Newsletter .ipsContainer .overlay p { margin-top: 0 auto; }
.ipWidget-Newsletter .ipsContainer:hover .overlay {
    visibility: visible;
}

/* API Form */
#ipWidgetInstagramGalleryPopup .instructions { 
    margin-top: 10px;
    text-align: center;
    border: 1px solid #000;
    border-bottom: 0px solid;
    padding: 10px 20px 0 20px;
    padding-bottom: 0;
}
#ipWidgetInstagramGalleryPopup .instructions p:last-child {
    margin-bottom: 0;
    padding-bottom: 10px;
}
#accountInfoForm .accesstoken-wrapper{
    border: 1px solid #000;
    border-top: 0px solid;
    margin-top: 0 !important;
}
#ipWidgetInstagramGalleryPopup .btn-authorize {
    padding: 10px 15px 10px 55px;
    font-size: 17px;
    font-weight: 300;
    color: #3897f0;
    border: 1px solid #3897EF;
    border-radius: 3px;
    background: transparent;
    margin: 10px auto;
    height: 48px;
    background: url(../images/instagram-logo.png) no-repeat 15px center transparent;
    background-size: 28px 28px;

}
#ipWidgetInstagramGalleryPopup .btn-authorize:hover { border-width: 2px; }
.form-instagram{ text-align: center; }
#accountInfoForm .field { text-align: center; margin: 20px 0; }
#ipWidgetInstagramGalleryPopup .accountInfo #userId,
#ipWidgetInstagramGalleryPopup .accountInfo #accessToken{
    /*display: block;*/
    padding: 8px 5px;
    width: 100%;
    min-width: 130px;
    border: 1px solid;
    text-align: center;
    font-size: 14px;
}
#accountInfoForm.form-instagram .limit-num-images{
    margin: 0;
}
#accountInfoForm.form-instagram .limit-num-images .form-group{
    margin-bottom: 0;
}
#ipWidgetInstagramGalleryPopup .modal-dialog .modal-content .modal-body{ padding: 30px; }
#ipWidgetInstagramGalleryPopup .accountInfo #limitNumImages{
    width: 100%;
    padding: 8px 5px;
    border: 1px solid;
    text-align: center;
    font-size: 14px;
}
.name-sortBy select{
    position: relative;
    padding: 8px 5px !important;
    border: 1px solid;
    text-align: center;
    font-size: 14px !important;
    border-radius: 0 !important;
    border-color: #000 !important;
    -webkit-appearance: none;
    -moz-appearance :none;
    height: auto !important;
    background: url(../images/drop.png) transparent no-repeat 98% center !important;
}

/***** FRONT END *****/
.instagram-gallery {
    margin: 0 auto;
    list-style: none;
    text-align: center;
}

.instagram-gallery .instapic {
    width: 25%;
    margin: 0;
    float: left;
    padding: 1px;
    position: relative;
    z-index: 0;
    overflow: hidden;
    height: 200px;
}
.instagram-gallery .instapic:hover {
    overflow: inherit;
}
.instagram-gallery .instapic figure > a{
    overflow: hidden;
    display: block;
    height: 250px;
}
.instagram-gallery figure {
    margin: 0;
    position: relative;
    text-align: center;
}

.instagram-gallery figure img {
    width: 100%;
    display: block;
    position: relative;
}

.instagram-gallery figcaption {
    position: absolute;
    text-align: left;
    top: -5%;
    left: -5%;
    padding: 12px;
    background: #fff;
    color: #000;
}

.instagram-gallery figcaption h3 {
    margin: 0;
    padding: 0;
    color: #000;
    font-size: 14px;
    margin-top: 102%;
    padding: 10px 0;
    font-weight: normal;
}

/* Caption Style 7 */
.instagram-gallery .instapic:hover {
    z-index: 1;
}

.instagram-gallery figure img {
    z-index: 10;
}

.instagram-gallery figcaption {
    width: 100%;
    opacity: 0;
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition: opacity 0.3s, height 0.3s, box-shadow 0.3s;
    -moz-transition: opacity 0.3s, height 0.3s, box-shadow 0.3s;
    transition: opacity 0.3s, height 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 0 0px #fff;
}

.instagram-gallery figure:hover figcaption {
    pointer-events: auto;
    opacity: 1;
    width: 110%;
    min-height: 135%;
    -webkit-box-shadow: 0px 0px 15px 1px rgba(0,0,0,0.2);
    -moz-box-shadow: 0px 0px 15px 1px rgba(0,0,0,0.2);
    box-shadow: 0px 0px 15px 1px rgba(0,0,0,0.2);
}

.instagram-gallery figure figcaption .info img {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: top;
}

.instagram-gallery figure figcaption .insta-link {
    float: right;
    padding: 0 28px 0 8px;
    font-weight: 300;
    color: #3897f0;
    border: 1px solid #3897EF;
    border-radius: 3px;
    background: transparent;
    background: url(images/instagram-logo.png) no-repeat right 8px center transparent;
    background-size: 16px 16px;
}


.instagram-gallery figcaption h3,
.instagram-gallery figcaption span,
.instagram-gallery figcaption a {
    opacity: 0;
    -webkit-transition: opacity 0s;
    -moz-transition: opacity 0s;
    transition: opacity 0s;
}

.instagram-gallery figure:hover figcaption h3,
.instagram-gallery figure:hover figcaption p span,
.instagram-gallery figure:hover figcaption a {
    -webkit-transition: opacity 0.3s 0.2s;
    -moz-transition: opacity 0.3s 0.2s;
    transition: opacity 0.3s 0.2s;
    opacity: 1;
    word-break: keep-all;
}
.instagram-gallery .header {
    padding: 40px 0;
    overflow: hidden;
}
.instagram-gallery .header .profile-picture {
    width: auto;
    max-width: 291px;
    width: 100%;
    float: left;
}
.instagram-gallery .header .user {
    float: left;
    text-align: left;
}
.user .profile-info ul:last-child {
    list-style: none;
    margin: 0;
    overflow: hidden;
    margin-bottom: 20px;
}
.user .profile-info ul li{
    float: left;
    margin-right: 40px;
    font-size: 17px;
}
.instagram-gallery .header .user .real-name h3 {
    font-size: 17px;
}
.instagram-gallery .header .real-name-mobile {
    display: none;
}
.instagram-gallery .header .user .username h2 {
    font-weight: 300;
    font-size: 34px;
    line-height: 30px;
    margin-bottom: 20px;
    display: block;
    float: left;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.instagram-gallery .header .user .username .follow-btn {
    display: block;
    float: left;
    line-height: 30px;
    padding: 0 30px;
    font-size: 16px;
    margin-left: 30px;
    border: 1px solid;
    border-radius: 3px;
}
.instagram-gallery .header .user .username .follow-btn:hover {
    text-decoration: none;
    border-width: 2px;
}

.instagram-gallery .header .profile-picture .thumb {
    width: 152px;
    height: 152px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
}
.instagram-gallery  .header .profile-picture .thumb img {
    width: 100%;
}
.instagram-gallery .view-more-instagram {
    padding: 2em 0;
}
.instagram-gallery .view-more-instagram a {
    line-height: 30px;
    padding: 10px 20px;
    font-size: 16px;
    border: 1px solid;
    border-radius: 3px;
}
.instagram-gallery .view-more-instagram a:hover {
    text-decoration: none;
    border-width: 2px;
}
.form-wrapper{
    border: 1px solid #000;
    margin-top: 10px;
}
#accountInfoForm.form-instagram .form-wrapper > .field{
    margin-top: 0;
    margin-bottom: 0;
}
.form-instagram h4{ text-align: left; padding-left: 0px; }
@media only screen and (max-width: 840px){
    .instagram-gallery .header .profile-picture{
        width: auto;
        padding: 0 30px;
        margin-bottom: 30px;
    }
}

@media only screen and (max-width: 768px) {
    
    .instagram-gallery figcaption {
        padding: 10px;
    }

    .instagram-gallery figcaption .insta-link {
        display: inline-block;
        float: none;
    }

    .instagram-gallery figcaption h3 {
        margin-top: 105%;
    }
}

@media only screen and (max-width: 640px) {
    .form-wrapper{ padding-bottom: 30px; }

    .instagram-gallery .header .profile-picture {
        width: auto;
        padding: 0;
        margin-right: 30px;
        margin-bottom: 30px;
    }
    .instagram-gallery .header .profile-info,
    .instagram-gallery .header .user .real-name {
        display: none;
    }
    .instagram-gallery .header .real-name-mobile {
        text-align: left;
        display: block;
    }
    .instagram-gallery .header .real-name-mobile  .real-name h3 {
        font-size: 16px;
    }
    .instagram-gallery .header .user .username h2 {
        font-size: 21px;
        margin-bottom: 10px;
        margin-right: 15px;
        margin-bottom: 15px;
    }
    .instagram-gallery .header .profile-picture .thumb {
        width: 77px;
        height: 77px;
    }
    .instagram-gallery .header .user .username .follow-btn {
        clear: left;
        margin-left: 0;
    }
    .instagram-gallery .header .real-name-mobile .profile-info {
        display: block;
    }

    .real-name-mobile .profile-info ul {
        list-style: none;
        overflow: hidden;
        margin-left: 0;
        border-top: 1px solid #ccc;
        margin-top: 15px;
        padding-top: 12px;
    }
    .real-name-mobile .profile-info ul li {
        width: 33%;
        float: left;
        text-align: center;
        font-size: 14px;
    }
    .real-name-mobile .profile-info ul li strong {
        width: 100%;
        display: block;
    }

    .instagram-gallery .instapic { width: 50%; }

    .instagram-gallery figcaption {
        padding: 12px;
    }
}

@media only screen and (max-width: 480px) {
    .instagram-gallery .instapic { width: 100%; }

    .instagram-gallery figcaption {}

    .instagram-gallery figcaption h3 { margin-top: 102%; }
}
