.box-img-with-link {
    -webkit-transition: filter .2s;
    -moz-transition: filter .2s;
    -o-transition: filter .2s;
    transition: filter .2s;
}

.box-img-with-link:hover {
    -webkit-filter:brightness(85%);
    filter: brightness(85%);
    color: #E6E6E6;
}

/* "Filter" alternative for IE */
.ie678 .box-img-with-link:hover, .ie9up .box-img-with-link:hover {
    opacity: 0.8;
    color: #E6E6E6;
}

.box {
    position: relative;
    width: 100%; /* desired width */
    margin-bottom: 50px;
    overflow: hidden;
}

.box:before {
    content: "";
    display: block;
    padding-top: 100%; /* initial ratio of 1:1*/
}

.box-button {
    z-index: 99;
    height: 70px;
    background: #2A5435;
    width: 100%;
    position: absolute;
    bottom: 0px;
    font-size: 20px;
    line-height: 70px;
}

.box-button-text {
    position: relative;
    display: table-cell;
    vertical-align: middle;
    -webkit-font-smoothing: subpixel-antialiased;
    -webkit-text-stroke:1px transparent;
}

.box-button-large .box-button-text {
    height: 100px;
    padding: 0px 30px;
}

.box-button-small .box-button-text {
    height: 70px;
    padding: 0 30px;
}

.box-button-text h3, .box-button-text h4 {
    margin: 0;
    color: white;
    font-weight: 600;
}

.box-button-large {
    height: 100px;
    line-height: 100px;
    font-size: 28px;
}

.box-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.box-content-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Other ratios */
.ratio2_1:before {
    padding-top: 50%;
}

.ratio1_2:before {
    padding-top: 200%;
}

.ratio4_3:before {
    padding-top: 75%;
}

.ratio16_9:before {
    padding-top: 56.25%;
}

.buttonimg {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #045849;
}

.buttonimg-img {
    width: 400px;
    height: 400px;
    object-fit: cover;
}

.buttonimg-image {
    margin-top: -75px;
}

.buttonimg-image img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.buttonimg-large .buttonimg-name i {
    font-size: 900%;
}

.buttonimg-full .buttonimg-text {
    font-size: 22px;
    line-height: 38px;
}

.buttonimg-button {
    font-size: 16px;
    line-height: 50px;
    margin-bottom: -25px;
    margin-top: 25px;
}

@media screen and (min-width: 767px) and (max-width: 979px) {
    .box-button-small .box-button-text {
        padding: 0 10px;
    }
}

@media screen and (max-width: 767px) {
    .box .box-button {
        height: 80px;
    }
    .box .box-button-text {
        padding: 0 30px;
        height: 80px;
    }
    .box-button-small .box-button-text h4 {
        font-size: 18px;
        line-height: 28px;
    }
}