.instagram {
	position: relative;
}
.topbox {
	position: absolute;
	width: 310px;
	height: 150px;
	background-color: #FFF;
	margin: 0px auto;
	top: 10px;
	border: 1px dashed #bcbabb;
	z-index: 4;
	text-align: center;
	left:calc(50% - 155px);
	padding: 10px;
}
.topbox h3 {
	font-size: 22px;
	line-height: 18px;
	text-transform: uppercase;
	margin-bottom: 2px;
	color: #0ea6b4;
	font-weight: normal;
}
.topbox p {
	font-size: 15px;
	line-height: 18px;
	font-style: italic;
	margin-bottom: 16px;
}


.instagram-grid-container {
    height: 320px;
    margin-top: 0;
    padding-top: 5px;
	padding-bottom: 5px;

    border-top: 0;
	margin-bottom: 20px;
}


.instagram-grid-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 3;
    height: 330px;
    overflow: hidden;
}


.instagram-grid-container ul li {
	list-style: none;
	margin:0px;
	padding:0px;
}

.instagram-grid {
    position: absolute;
    left: 50%;
    width: 2580px;
	margin-left: -1285px;
}

.instagram-grid-item {
    width:160px;
    height: 160px;
    float: left;
	background-color: #bcbabb;
	border: 5px solid #FFF;
}

.instagram-grid-item:nth-child(1n) {
    -webkit-animation-delay: 0.25s;
    -moz-animation-delay: 0.25s;
    -ms-animation-delay: 0.25s;
    -o-animation-delay: 0.25s;
    animation-delay: 0.25s;
}

.instagram-grid-item:nth-child(2n) {
    -webkit-animation-delay: 0.5s;
    -moz-animation-delay: 0.5s;
    -ms-animation-delay: 0.5s;
    -o-animation-delay: 0.5s;
    animation-delay: 0.5s;
}

.instagram-grid-item:nth-child(3n) {
    -webkit-animation-delay: 0.75s;
    -moz-animation-delay: 0.75s;
    -ms-animation-delay: 0.75s;
    -o-animation-delay: 0.75s;
    animation-delay: 0.75s;
}

.instagram-grid-item:nth-child(4n) {
    -webkit-animation-delay: 1s;
    -moz-animation-delay: 1s;
    -ms-animation-delay: 1s;
    -o-animation-delay: 1s;
    animation-delay: 1s;
}

.instagram-grid-item img {
    max-height: 100%;
    max-width: 100%;
}

.instagram-grid-item img.fallback {
    display: none;
}

.instagram-grid-item img {
    display: none;
	/*display: none; initial hide to animate*/
}

.instagram-grid-item img {
    display: block;
    opacity: 0;

    -webkit-transition: opacity 250ms linear;
    -moz-transition: opacity 250ms linear;
    -ms-transition: opacity 250ms linear;
    -o-transition: opacity 250ms linear;
    transition: opacity 250ms linear;
}


.instagram-grid-item.loaded img {
    opacity: 1;
}

.instagram-grid-item img.fallback {
    display: none;
}

.instagram-overlay-wrapper {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 2;
    height: 320px;
    opacity: 0;
	border-top: 1px dashed #bcbabb;
	border-bottom: 1px dashed #bcbabb;
    background: #000000;
    background: rgba( 0, 0, 0, 0.85 );

    -webkit-transition: opacity 250ms linear;
    -moz-transition: opacity 250ms linear;
    -ms-transition: opacity 250ms linear;
    -o-transition: opacity 250ms linear;
    transition: opacity 250ms linear;
}


.has-overlay .instagram-overlay-wrapper {
    z-index: 4;
    opacity: 1;
}

.instagram-overlay {
    max-width: 980px;
    width: 100%;
    height: 100%;
    margin: auto;
    padding: 5px 0;
    color: #FFF;
	position: relative;
}
.instagram-overlay a {
	color: #f7a71a;
}
.instagram-overlay p {
	color: #FFF;
}

.instagram-large {
    max-height: 310px;
    max-width: 310px;
    float: left;
    opacity: 0;

    -webkit-transition: opacity 250ms linear;
    -moz-transition: opacity 250ms linear;
    -ms-transition: opacity 250ms linear;
    -o-transition: opacity 250ms linear;
    transition: opacity 250ms linear;
}

.instagram-large.loaded {
    opacity: 1;
}
.instagram-details {
    position: relative;
	width: 50%;
    max-width: 488px;
    height: 100%;
    float: left;
    font-weight: normal;
    text-align: left;
	color: #FFF;
	margin: 14px 0 0 20px;
	font-size: 16px;
	font-style: italic;
}

.instagram-profile-pic {
    height: 50px;
    width: 50px;
    margin-right: 20px;
    float: left;
}

.instagram-profile-link {
    display: block;
    max-width: 290px;

    font-size: 26px;
    font-weight: normal;
    text-transform: none;
    text-decoration: none;
}
a.instagram-profile-link {
	font-size: 26px;
	line-height: 28px;
	font-style: normal;
	text-transform: uppercase;
}

.instagram-caption {
    max-height: 395px;
    margin-top: 20px;
    margin-bottom: 14px;
    overflow: hidden;
    clear: both;

    font-size: 16px;
    line-height: 20px;
    text-overflow: ellipsis;
	font-style: italic;
}

.instagram-location {
    display: block;
    margin-bottom: 15px;

    font-size: 16px;
    line-height: 20px;
    font-weight: normal;
    text-decoration: none;
	color: #FFF;
}

.instagram-detail-link {
    position: relative;
    display: block;
    margin-bottom: 25px;

    font-size: 20px;
    font-weight: normal;
    text-decoration: underline;
}
a.instagram-detail-link {
	font-size: 20px;
	line-height: 22px;
	font-style: normal;
	text-transform: uppercase;
	color: #FFF;
	position: absolute;
	bottom: 10px;
}
a.instagram-detail-link .fa {
	color: #FFF;
	margin-right: 10px;
	font-size: 32px;
	position: relative;
	top: 5px;
}
.instagram-overlay-close {
    position: absolute;
    top: 10px;
    right: 10px;

    font-size: 40px;
    font-weight: normal;
    text-decoration: none;
}

/* Responsive Overlay */

@media (max-width: 768px) {
	
}

@media (max-width: 648px) {
	.instagram-overlay-wrapper {
		height: auto;
		min-height: 320px;
	}
	.instagram-large {
		float: none;
		margin: 0px auto;
	}
	img.instagram-large {
		display: block;
		margin: 0px auto;
		width: 96%;
		height: auto;
	}
	.instagram-details {
		width: 100%;
		max-width: auto;
		float: none;
		margin: 14px auto;
		padding:0px 14px;
	}
	a.instagram-detail-link {
		font-size: 18px;
		position: relative;
		bottom: auto;
	}
	a.instagram-detail-link .fa {
		font-size: 26px;
		top: 3px;
		margin-right: 5px;
	}
}