.image-button-flex {
    justify-content: center;
}

.image-button-item {
    margin-top: 25px;
}

.image-button {
    display: block;
    background: transparent;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    height: 141px;
}

.image-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(59, 33, 98, 0) 0%, rgba(59, 33, 98, 0.9) 80%, rgba(59, 33, 98, 0.9) 100%);
}

.image-button__details {
    position: absolute;
    z-index: 1;
    bottom: 0;
    padding: 12px 15px;
}

.image-button__title {
    color: #fff;
    margin: 0;
    padding: 0;
    font-size: 2.4rem;
    font-weight: 400;
}

.image-button__title i {
    font-weight: normal;
    color: var(--lighter-primary-background-color);
    font-size: 1.7rem;
}

.image-button__description {
    font-weight: 400;
    color: #FFFFFF;
    opacity: 0;
    max-height: 0;
    transition: all 0.5s ease-in-out;
    margin-bottom: 10px;
    font-size: 1.8rem;
    margin-bottom: 25px;
    line-height: 1.55em;
}

:is(a[href=""], a[href="#"]) .image-button__description,
:is(a[href=""], a[href="#"]) i {
    display: none;
}

@media (min-width: 768px) {
    .image-button-item {
        margin-top: 30px;
    }
}

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

    .image-button__details {
        padding: 15px 26px;
    }

    .image-button__title {
        padding-bottom: 10px;
        font-size: 3rem;
    }

    .image-button::after {
        height: 205px;
    }

    .image-button:hover::after {
        height: 100%;
        background: linear-gradient(to bottom, rgba(59, 33, 98, 0.16) 0%, rgba(59, 33, 98, 0.9) 80%, rgba(59, 33, 98, 0.9) 100%);
    }

    .image-button:hover .image-button__description {
        opacity: 1;
        max-height: 300px;
        transition: all 0.5s ease-in-out;
    }
}