#dropzone {
    height: auto;
}

.polaroids a:after {
    content: attr(title);
}
/* By default, we tilt all our images -2 degrees */

.polaroids a {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
}
/* Rotate all even images 2 degrees */

.polaroids li:nth-child(even) a {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
}
/* Don't rotate every third image, but offset its position */

.polaroids li:nth-child(3n) a {
    -webkit-transform: none;
    -moz-transform: none;
    position: relative;
}
/* Rotate every fifth image by 5 degrees and offset it */

.polaroids li:nth-child(5n) a {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    position: relative;
}
/* Keep default rotate for every eighth, but offset it */

.polaroids li:nth-child(8n) a {
    position: relative;
}
/* Keep default rotate for every eleventh, but offset it */

.polaroids li:nth-child(11n) a {
    position: relative;

}
/* Scale the images on hover, add transitions for smoothing things out, and ensure the hover appears on top */

.polaroids a:hover {
    -webkit-transform: scale(1.25);
    -moz-transform: scale(1.25);
    position: relative;
    z-index: 5;
    cursor: zoom-in;
}
/* Add drop shadows and smooth out the transition (Safari only) */

.polaroids a {
    -webkit-transition: -webkit-transform .15s linear;
    -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, .25);
    -moz-box-shadow: 0 3px 6px rgba(0, 0, 0, .25);
}
/* On hover, darken the shadows a bit */

.polaroids a {
    -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, .5);
    -moz-box-shadow: 0 3px 6px rgba(0, 0, 0, .5);
}
@media screen and (max-width: 767px) {

}
ul.polaroids li {
    display: inline;
    position: relative;
    margin-bottom: 10px;
}

ul.polaroids li i{
    position: absolute;
    right: 10px;
    top: 2px;
    font-size: 27px;
    opacity: 0.6;
}

ul.polaroids a {
    position: relative;
    background: #fff;
    display: inline;
    float: left;
    width: auto;
    padding: 10px 10px 15px;
    text-align: center;
    font-family: "Marker Felt", sans-serif;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, .25);
    -moz-box-shadow: 0 3px 6px rgba(0, 0, 0, .25);
    -webkit-transform: rotate(0deg);
    -webkit-transition: -webkit-transform .15s linear;
    -moz-transform: rotate(-0deg);
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    ul.polaroids li a {
        margin-left: 0;
    }
}
ul.polaroids .img {
    display: block;
    margin-bottom: 12px;
    width: 100%;
    height: auto;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    max-width: 100%;
}

ul.polaroids p {
    height: 50px;
    overflow: hidden;
}
ul.polaroids a:after {
    content: attr(title);
}
ul.polaroids li:nth-child(even) a {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
}
ul.polaroids li:nth-child(3n) a {
    -webkit-transform: none;
    position: relative;
    -moz-transform: none;
}
ul.polaroids li:nth-child(5n) a {
    -webkit-transform: rotate(0deg);
    position: relative;
    -moz-transform: rotate(0deg);
}
ul.polaroids li:nth-child(8n) a {
    position: relative;
}
ul.polaroids li:nth-child(11n) a {
    position: relative;
}
ul.polaroids li.messy a {
    margin-top: -400px;
    position: relative;
    left: 160px;
}
ul.polaroids li a:hover {
    -webkit-transform: scale(1.25);
    -moz-transform: scale(1.25);
    -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, .5);
    -moz-box-shadow: 0 3px 6px rgba(0, 0, 0, .5);
    position: relative;
    z-index: 5;
}
@media only screen {
    [class*="block-grid-"] {
        display: block;
        padding: 0;
        margin: 0 -0.625em;
        *zoom: 1
    }
    [class*="block-grid-"]:before,
    [class*="block-grid-"]:after {
        content: " ";
        display: table
    }
    [class*="block-grid-"]:after {
        clear: both
    }
    [class*="block-grid-"]>li {
        display: inline;
        height: auto;
        float: left;
        /*padding: 0 0.625em 1.25em*/
    }
    .small-block-grid-1>li {
        width: 100%;
        /*padding: 0 0.625em 1.25em*/
    }
    .small-block-grid-1>li:nth-of-type(n) {
        clear: none
    }
    .small-block-grid-1>li:nth-of-type(1n+1) {
        clear: both
    }
    .small-block-grid-2>li {

       /* padding: 0 0.625em 1.25em*/
    }
    .small-block-grid-2>li:nth-of-type(n) {
        /* clear:none */
    }
    .small-block-grid-2>li:nth-of-type(2n+1) {
        clear: both
    }
    .small-block-grid-3>li {
        width: 33.33333%;
        padding: 0 0.625em 1.25em
    }
    .small-block-grid-3>li:nth-of-type(n) {
        clear: none
    }
    .small-block-grid-3>li:nth-of-type(3n+1) {
        clear: both
    }
    .small-block-grid-4>li {
        width: 25%;
        padding: 0 0.625em 1.25em
    }
    .small-block-grid-4>li:nth-of-type(n) {
        clear: none
    }
    .small-block-grid-4>li:nth-of-type(4n+1) {
        clear: both
    }
    .small-block-grid-5>li {
        width: 20%;
        padding: 0 0.625em 1.25em
    }
    .small-block-grid-5>li:nth-of-type(n) {
        clear: none
    }
    .small-block-grid-5>li:nth-of-type(5n+1) {
        clear: both
    }
    .small-block-grid-6>li {
        width: 16.66667%;
        padding: 0 0.625em 1.25em
    }
    .small-block-grid-6>li:nth-of-type(n) {
        clear: none
    }
    .small-block-grid-6>li:nth-of-type(6n+1) {
        clear: both
    }
    .small-block-grid-7>li {
        width: 14.28571%;
        padding: 0 0.625em 1.25em
    }
    .small-block-grid-7>li:nth-of-type(n) {
        clear: none
    }
    .small-block-grid-7>li:nth-of-type(7n+1) {
        clear: both
    }
    .small-block-grid-8>li {
        width: 12.5%;
        padding: 0 0.625em 1.25em
    }
    .small-block-grid-8>li:nth-of-type(n) {
        clear: none
    }
    .small-block-grid-8>li:nth-of-type(8n+1) {
        clear: both
    }
    .small-block-grid-9>li {
        width: 11.11111%;
        padding: 0 0.625em 1.25em
    }
    .small-block-grid-9>li:nth-of-type(n) {
        clear: none
    }
    .small-block-grid-9>li:nth-of-type(9n+1) {
        clear: both
    }
    .small-block-grid-10>li {
        width: 10%;
        padding: 0 0.625em 1.25em
    }
    .small-block-grid-10>li:nth-of-type(n) {
        clear: none
    }
    .small-block-grid-10>li:nth-of-type(10n+1) {
        clear: both
    }
    .small-block-grid-11>li {
        width: 9.09091%;
        padding: 0 0.625em 1.25em
    }
    .small-block-grid-11>li:nth-of-type(n) {
        clear: none
    }
    .small-block-grid-11>li:nth-of-type(11n+1) {
        clear: both
    }
    .small-block-grid-12>li {
        width: 8.33333%;
        padding: 0 0.625em 1.25em
    }
    .small-block-grid-12>li:nth-of-type(n) {
        clear: none
    }
    .small-block-grid-12>li:nth-of-type(12n+1) {
        clear: both
    }
}
@media only screen and (min-width: 768px) {
    .small-block-grid-1>li:nth-of-type(1n+1) {
        clear: none
    }
    .small-block-grid-2>li:nth-of-type(2n+1) {
        clear: none
    }
    .small-block-grid-3>li:nth-of-type(3n+1) {
        clear: none
    }
    .small-block-grid-4>li:nth-of-type(4n+1) {
        clear: none
    }
    .small-block-grid-5>li:nth-of-type(5n+1) {
        clear: none
    }
    .small-block-grid-6>li:nth-of-type(6n+1) {
        clear: none
    }
    .small-block-grid-7>li:nth-of-type(7n+1) {
        clear: none
    }
    .small-block-grid-8>li:nth-of-type(8n+1) {
        clear: none
    }
    .small-block-grid-9>li:nth-of-type(9n+1) {
        clear: none
    }
    .small-block-grid-10>li:nth-of-type(10n+1) {
        clear: none
    }
    .small-block-grid-11>li:nth-of-type(11n+1) {
        clear: none
    }
    .small-block-grid-12>li:nth-of-type(12n+1) {
        clear: none
    }
    .large-block-grid-1>li {
        width: 100%;
        padding: 0 0.625em 1.25em
    }
    .large-block-grid-1>li:nth-of-type(n) {
        clear: none
    }
    .large-block-grid-1>li:nth-of-type(1n+1) {
        clear: both
    }
    .large-block-grid-2>li {
        width: 50%;
        padding: 0 0.625em 1.25em
    }
    .large-block-grid-2>li:nth-of-type(n) {
        clear: none
    }
    .large-block-grid-2>li:nth-of-type(2n+1) {
        clear: both
    }
    .large-block-grid-3>li {
        width: 33.33333%;
        padding: 0 0.625em 1.25em
    }
    .large-block-grid-3>li:nth-of-type(n) {
        clear: none
    }
    .large-block-grid-3>li:nth-of-type(3n+1) {
        clear: both
    }
    .large-block-grid-4>li {

      /*  padding: 0 0.625em 1.25em;*/
    }
    .large-block-grid-4>li:nth-of-type(n) {
        /* clear:none; */
    }
    .large-block-grid-4>li:nth-of-type(4n+1) {
        clear: both
    }
    .large-block-grid-5>li {
        width: 20%;
        padding: 0 0.625em 1.25em
    }
    .large-block-grid-5>li:nth-of-type(n) {
        clear: none
    }
    .large-block-grid-5>li:nth-of-type(5n+1) {
        clear: both
    }
    .large-block-grid-6>li {
        width: 16.66667%;
        padding: 0 0.625em 1.25em
    }
    .large-block-grid-6>li:nth-of-type(n) {
        clear: none
    }
    .large-block-grid-6>li:nth-of-type(6n+1) {
        clear: both
    }
    .large-block-grid-7>li {
        width: 14.28571%;
        padding: 0 0.625em 1.25em
    }
    .large-block-grid-7>li:nth-of-type(n) {
        clear: none
    }
    .large-block-grid-7>li:nth-of-type(7n+1) {
        clear: both
    }
    .large-block-grid-8>li {
        width: 12.5%;
        padding: 0 0.625em 1.25em
    }
    .large-block-grid-8>li:nth-of-type(n) {
        clear: none
    }
    .large-block-grid-8>li:nth-of-type(8n+1) {
        clear: both
    }
    .large-block-grid-9>li {
        width: 11.11111%;
        padding: 0 0.625em 1.25em
    }
    .large-block-grid-9>li:nth-of-type(n) {
        clear: none
    }
    .large-block-grid-9>li:nth-of-type(9n+1) {
        clear: both
    }
    .large-block-grid-10>li {
        width: 10%;
        padding: 0 0.625em 1.25em
    }
    .large-block-grid-10>li:nth-of-type(n) {
        clear: none
    }
    .large-block-grid-10>li:nth-of-type(10n+1) {
        clear: both
    }
    .large-block-grid-11>li {
        width: 9.09091%;
        padding: 0 0.625em 1.25em
    }
    .large-block-grid-11>li:nth-of-type(n) {
        clear: none
    }
    .large-block-grid-11>li:nth-of-type(11n+1) {
        clear: both
    }
    .large-block-grid-12>li {
        width: 8.33333%;
        padding: 0 0.625em 1.25em
    }
    .large-block-grid-12>li:nth-of-type(n) {
        clear: none
    }
    .large-block-grid-12>li:nth-of-type(12n+1) {
        clear: both
    }
}

.gallery_header{
    margin: 20px 0;
}

.category_name{
    text-align: center;
    font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-variant: normal;
    font-weight: 500;
    line-height: 26.4px;
}

.ribbon-gallery {
    padding: 5px;
    color: #FFF;
    text-transform: uppercase;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-weight: 100;
    margin-top: 0;
    margin-bottom: 60px;
}

.ribbon-custom-2 {
    background-color: #80de7b;
    position: relative;
    z-index: 6;
}
.ribbon-custom-2:before, .ribbon-custom-2:after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    font-size: 0;
    line-height: 0;
    z-index: 5;
    border-bottom: 0 solid transparent;
    border-top: 15px solid transparent;
    top: -15px;
}
.ribbon-custom-2:before {
    border-left: 20px solid #124a5b;
    right: 0;
}
.ribbon-custom-2:after {
    border-right: 20px solid #124a5b;
    left: 0;
}

.gallery-image-row:first-of-type {
    margin-bottom: 30px;
}

.gallery-image-block a img {
    padding-top: 10px;
}

.gallery-image-col {
    padding-top: 10px;
}

.gallery-image-col:nth-child(even) {
    background: rgba(0,0,0, 0.01);
}

.gallery-image-col:nth-child(odd) {
    background: rgba(0,0,0, 0.04);
}

    .gallery-image-col .btn {
        margin-top: 24px;
    }