/*image gallery methods*/
.image-gallery ul {
    overflow: auto;
    margin: 1.5em 0;
    padding: 0;
}
.image-gallery ul li {
    float: left;
    list-style: none;
    margin: 0 10px 10px 0;
    padding: 0;
    height: 150px;
    width: 150px;
    overflow: hidden;
    box-shadow: 0 0 5px 0 #999;
    padding: 0;
	background-size: cover;
	background-position: 50% 50%;
}
.image-gallery ul li a {
    display: inline-block;
    height: 100%;
	width:100%;
}
.image-gallery ul li img.thumb {
    max-width: none;
    min-height: 100%;
    box-shadow: none;
    margin: 0;
	display:none;
}

/*--------------------- Images -----------------------------------------------*/
.small-image-item,
.medium-image-item,
.large-image-item {
    overflow: hidden;
    display: inline-block;
    margin: 0px 1% 0.5em 0px;
    float:left;
}

.small-image-item{
    max-width:24%;
}
.medium-image-item{
    max-width:49%;
}
.large-image-item{
    max-width:100%;
    margin:0px 0px 0.5em 0px;
}

.small-image-item img,
.medium-image-item img,
.large-image-item img {
    margin: 20px 2.5%;
    box-shadow: 0 0 5px 0 #999;
    border: 0;
    float:left;
    max-width: 95%
}
.media-with-caption {
    display: inline-block;
    padding: 3px;
    background-color: #ddd;
}
.large-image-item.media-with-caption{
    display: block;
    position: relative;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}
.media-with-caption .caption {
    font-size: .9em;
    line-height: .9em;
    font-style: italic;
    padding: 0 5px 5px 5px;
    text-align:center;
}

@media only screen and (max-width:768px){
    .small-image-item{
        max-width:49%;
    }
}

@media only screen and (max-width:480px){
    .medium-image-item,
    .small-image-item{
        max-width:100%;
        margin: 0px 0px 0.5em 0px;
    }
}
