.gallery {
    width: 90%;
    margin: auto;
}

.filter {
    margin-bottom: 1rem;
    text-align: center;
}

.filter span {
    padding: 0;
    font-family: Georgia, cursive;
    font-style: italic;
}

.filter a {
    font-size: .85em;
    text-decoration: none;
    text-transform: uppercase;
    padding: 3px 20px;
    background: url('../images/unchecked.png') no-repeat left center;
    text-align: left;
    padding-left: 25px;
}

.filter a:hover {
}

.filter a.selected {
    color: #B9121B;
    background: url('../images/checked.png') no-repeat left center;
}

.thumbnail_wrap {
    position: relative;
}

a.thumbnail {
    position: absolute;
}

a.thumbnail img {
    width: 270px;
    height: 225px;
}

a.thumbnail img:hover {

}

.clear_floats {
    clear: both;
    line-height: 1px;
}

/* Horizontal Media Queries */
@media screen and (min-height: 50px) and (max-height: 520px) {
    .title h1 {
        font-size: 18px;
    }
}

@media screen and (min-height: 521px) and (max-height: 700px) {
    .title h1 {
        font-size: 24px;
    }
}

/* Vertical Media Queries */
@media screen and (min-width: 50px) and (max-width: 500px) {
    .title h1 {
        font-size: 18px;
    }

    body {
        padding: 0px 5px;
    }

    .gallery {
        width: auto;
    }

    .filter span {
        display: block;
        margin-bottom: 10px;
    }

    .filter a {
        display: block;
    }
}

@media screen and (min-width: 501px) and (max-width: 960px) {
    .title h1 {
        font-size: 24px;
    }

    .filter span {
        display: block;
        margin-bottom: 10px;
    }

    .filter a {
        display: block;
        width: 30%;
        float: left;
    }
}

@media screen and (min-width: 961px) {
    .filter span {
        padding-right: 20px;
    }
}

.img-responsive, .thumbnail > img, .thumbnail a > img, .carousel-inner > .item > img, .carousel-inner > .item > a > img {
    max-width: inherit;
}