/*------------------------------------*\
    #case
\*------------------------------------*/

/* Case Filter */

.case-filter {
    text-align: center;
    margin-bottom: 30px;
}

.case-filter li a {
    color: #333333;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    margin-right: 24px;
    text-transform: capitalize;
}

.case-filter li:last-child a {
    margin-right: 0;
}

.case-filter li a.active-filter,
.case-filter li a:hover {
    color: #ffb400;
}

/* case Item */

.case-item {
    margin-bottom: 30px;

}

.case-item-container {
    background-color: @color-white;
    -webkit-box-shadow: 0px 10px 20px 0px rgba(224, 224, 224, 0.4);
    box-shadow: 0px 10px 20px 0px rgba(224, 224, 224, 0.4);
    border-radius: 0 0 2px 2px;
}

.case-item .case--img {
    position: relative;
}

.case-item .case--img:before {
    content: "";
    display: inline-block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.case-item .case--img img {
    max-width: 100%;
    height: auto;
}

.case-item .case--hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.case-item .case--hover .case--action,
.case-gallery .case--hover .case--content {
    width: 100%;
    height: 100%;
    background-color: rgba(253, 179, 0, 0.85);
    text-align: center;
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    -o-transition: all 0.35s;
    transition: all 0.35s;
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
}

.case-item:hover .case--hover .case--action,
.case-item:hover .case--hover .case--content {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

.case-item .case--hover .case--action a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.case-item .case--hover .case--action a:before {
    position: absolute;
    content: "";
    left: 50%;
    top: 50%;
    margin-left: -10px;
    width: 20px;
    height: 1px;
    background-color: #fff;
}

.case-item .case--hover .case--action a:after {
    position: absolute;
    content: "";
    left: 50%;
    top: 50%;
    margin-top: -10px;
    width: 1px;
    height: 20px;
    background-color: #fff;
}

.case-item .case--content {

    padding: 30px 25px 24px;

}

.case-item .case--title h4 {
    color: #282828;
    font-size: 18px;
    font-weight: 600;
    line-height: 25px;
    margin-bottom: 0;
    text-transform: capitalize;
}

.case-item .case--title h4 a {
    color: #282828;
}

.case-item .case--title h4 a:hover {
    color: #ffb400;
}

.case-item .case--cat {
    margin-bottom: 8px;
}

.case-item .case--cat a {
    color: #ffb400;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    position: relative;
    padding-left: 7px;
}

.case-item .case--cat a:before {
    content: ",";
    position: absolute;
    top: 0;
    left: 2px;
}

.case-item .case--cat a:hover {
    color: #282828;
}

.case-item .case--cat a:first-of-type {
    padding-left: 0;
}

.case-item .case--cat a:first-of-type:before {
    display: none;
}

.case-gallery .case--hover .case--content {
    text-align: left;
    padding: 0;
}

.case-gallery .case--hover .case--inner-content {
    position: absolute;
    bottom: 26px;
    left: 30px;
}

.case-gallery .case-item .case--cat a,
.case-gallery .case-item .case--title h4 a {
    color: @color-white;
}

.case-gallery .case-item .case--cat a:hover,
.case-gallery .case-item .case--title h4 a:hover {
    color: @color-heading;
}

/* case-study-single */

.case-study-single .case--study-text {
    margin-bottom: 45px;
}

.case-study-single .case--study-text h3 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 18px;
}

.case-study-single .case--study-text p {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 30px;
}

.how-to-panel {
    margin-bottom: 70px;
}

.how-to-panel h3 {
    font-size: 18px;
    line-height: 1;
    margin-bottom: 24px;
}

.how-to-panel p {
    line-height: 24px;
    margin-bottom: 0;
}

/* Custom, iPhone Retina */

@media only screen and (min-width: 320px) and (max-width: 767px) {

    .case-filter li a {
        margin-right: 10px;
    }
    .case-item-container{
        max-width:370px;
        margin-right: auto;
        margin-left: auto;
    }

}

/* Small Devices, Tablets */

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .case-item .case--img img {
        width: 100%;
    }
}
