.gallery {
    clear: both;
    margin: auto -6px;
    overflow: hidden;

    .gallery-caption {
        color: #888;
        @include font-size(1.0);
        font: {
            family: Merriweather, Georgia, serif;
            style: italic;
        }
        letter-spacing: .1em;
    }

    .gallery-item {
        float: left;
        margin: 0;
        padding: 6px;
        width: 33.33%;
        text-align: center;
    }

    &.gallery-columns-1 {
        .gallery-item {
            width: 100%;
        }
    }

    &.gallery-columns-2 {
        .gallery-item {
            width: 50%;
        }
    }

    &.gallery-columns-4 {
        .gallery-item {
            width: 25%;
        }
    }

    &.gallery-columns-5 {
        .gallery-item {
            width: 20%;
        }
    }

    &.gallery-columns-6 {
        .gallery-item {
            width: 16.665%;
        }
    }

    &.gallery-columns-7 {
        .gallery-item {
            width: 14.285%;
        }
    }

    &.gallery-columns-8 {
        .gallery-item {
            width: 12.5%;
        }
    }

    &.gallery-columns-9 {
        .gallery-item {
            width: 11.111%;
        }
    }
}