.image-button {
    display: block;
    height: 125px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    background: none;
    box-shadow: 0 3px 6px rgba(0, 73, 144, 0.15);
    text-decoration: none;
}

.image-button::before,
.image-button::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 73, 144, 0) 0%,
        rgba(0, 73, 144, 0.95) 85%,
        rgba(0, 73, 144, 0.95) 100%
    );
}

.image-button::before {
    opacity: 1;
}

.image-button__details {
    position: absolute;
    width: 100%;
    padding: 15px 24px;
    left: 0;
    bottom: 0;
    z-index: 1;
}

.image-button__title {
    margin: 0;
    padding: 0 28px 0 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.35em;
    position: relative;
}

.image-button__title::after {
    content: "\e908";
    font-family: "ais-icon";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
    font-size: 18px;
}

@media (min-width: 768px) {
    .image-button {
        height: 300px;
    }

    .image-button__details {
        padding: 17px 29px 17px 32px;
    }

    .image-button__title {
        padding-right: 28px;
        font-size: 30px;
        line-height: 1.333em;
        display: inline-block;
    }
}

@media (min-width: 1200px) {
    .image-button:hover {
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.52);
    }

    .image-button::after {
        transition: opacity 0.3s;
    }

    .image-button::before {
        opacity: 0;
    }

    .image-button::after {
        opacity: 1;
    }

    .image-button:hover::before,
    .image-button:hover::after {
        background: linear-gradient(
            to bottom,
            rgba(35, 126, 129, 0) 0%,
            rgba(35, 126, 129, 0.95) 85%,
            rgba(35, 126, 129, 0.95) 100%
        );
    }

    .image-button:hover::before {
        opacity: 1;
        transition: opacity 0.3s;
    }

    .image-button:hover::after {
        opacity: 0;
        transition: none;
    }

    .image-button__details {
        padding: 28px 32px;
    }

    .image-button__title {
        font-size: 30px;
        line-height: 1.2em;
    }

    .image-button__title::after {
        transition: transform 0.3s;
    }

    .image-button:hover .image-button__title::after {
        transform: translate(4px, -50%);
    }
}
