@charset "utf-8"; /* CSS Document */
.grid {
    float: left;
    width: 100%;
    position: relative;
}

.grid li {
    float: left;
    width: 24.625%;
    margin-right: 0.5%;
    margin-bottom: 0.5%;
    position: relative;
    color: #fff;
    overflow: hidden;
    background: #0d4b92;
    cursor: pointer;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.grid li:nth-child(4n) {
    margin-right: 0;
}

.grid li img {
    position: relative;
    display: block;
    width: 100%;
    opacity: 1;
}

.grid li span::before, .grid li span::after {
    pointer-events: none;
}

.grid li span, .grid li span > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid li span > a {
    z-index: 1000;
    text-indent: 200%;
    white-space: nowrap;
    font-size: 0;
    opacity: 0;
}

.grid li h3 {
    font-family: 'Gotham-Bold';
    text-shadow: 1px 1px 2px #333333;
}

.grid li p {
}

/* Individual effects */
/*---------------*/
/***** Lily *****/
/*---------------*/
li.effect-lily img {
    max-width: none;
    opacity: 1;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: scale(1.01);
    transform: scale(1.01);
}

li.effect-lily:hover img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.effect-lily span > div {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 10% 5%;
    width: 100%;
    height: auto;
}

.effect-lily h3, .effect-lily p {
    -webkit-transform: translate3d(0, 40px, 0);
    transform: translate3d(0, 40px, 0);
}

.effect-lily h3 {
    -webkit-transition: -webkit-transform 0.35s;
    transition: transform 0.35s;
}

.effect-lily p {
    color: rgba(255,255,255,0.8);
    opacity: 0;
    -webkit-transition: opacity 0.2s, -webkit-transform 0.35s;
    transition: opacity 0.2s, transform 0.35s;
}

.effect-lily:hover img {
    opacity: 0.9;
}

.effect-lily:hover p {
    opacity: 1;
}

.effect-lily:hover img, .effect-lily:hover h3, .effect-lily:hover p {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.effect-lily:hover p {
    -webkit-transition-delay: 0.05s;
    transition-delay: 0.05s;
    -webkit-transition-duration: 0.35s;
    transition-duration: 0.35s;
}

/*===================================================================================================
3	) Mobile
===================================================================================================*/
/* Note:Design for a width of 320px */
@media only screen and (max-width: 599px) {
    .grid li {
        width:100%;
        margin-right: 0%;
    }
}
