.filter-grayscale {
    filter: grayscale(100%);
    transition: .5s filter;
    position: relative;
    width: 30.5%;
    margin: 2.5%;
    max-width: 300px;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .filter-grayscale {
        width: 47.5%;
        max-width: 250px;
    }
}

@media (max-width: 767px) {
    .filter-grayscale {
        width: 97.5%;

        margin: 20px;
    }
}

.filter-grayscale:before {
    content: "";
    display: block;
    padding-top: 100%;
}

.filter-grayscale img {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: #333;
    color: #fff;
    line-height: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    transition: .5s transform;
}

.filter-grayscale p, .filter-grayscale i.custom-i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    font-size: 17px;
    font-weight: 700;
    padding: 15px 30px;
    transition: .5s background-color;
}

.filter-grayscale p {
    width: 210px;
}

.filter-grayscale p:not(.super-position) {
    color: white;
}

.filter-grayscale p.super-position {
    top: 75%;
    width: 100%;
}

.filter-grayscale:hover {
    filter: none;
}

.filter-grayscale:hover img {
    transform: scale(1.1);
}
