/*------------------------------------*\
    
    Image Cards Block - Block-Specific Styling

    This file contains styles for the Image Cards block.

\*------------------------------------*/

.image-cards {
    padding: var(--section-margins) 0;
}

.image-cards__heading {
    margin-bottom: 40px;
}

.image-cards__heading h2,
.image-cards__heading h3 {
    margin: 0;
}

.image-cards__wrapper .flex-row {
	row-gap: 32px;
}

.image-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.image-card a {
    position: relative;
    display: block;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
}

.image-card__image {
    position: relative;
    overflow: hidden;
}

.image-card__image img {
    transition: transform 0.3s ease;
}

.image-card:hover .image-card__image img {
    transform: scale(1.1);
}

.image-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px;
    font-family: 'Quattrocento',sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.image-card__overlay::after {
    content: '\e900';
    font-family: 'icomoon';
    position: relative;
    top: -1px;
}

.image-card__content {
    padding: 25px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.image-card__title {
    margin-top: 0;
    margin-bottom: 15px;
}

.image-card__description {
    margin-bottom: 20px;
    flex: 1;
}

.image-card__description p:last-child {
    margin-bottom: 0;
}

.image-cards__cta {
    margin-top: 40px;
}

@media (min-width: 768px) {
    .image-cards__heading {
        margin-bottom: 60px;
    }

    .image-card__content {
        padding: 30px 0;
    }

    .image-cards__cta {
        margin-top: 60px;
    }
}