/* =========================================================
   SERVICE CARDS
   ========================================================= */

.service-card {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}


/* =========================================================
   CONTACT ICONS
   ========================================================= */

.contact-icon {
    flex: 0 0 32px;
    width: 32px;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}


/* =========================================================
   TEXT-HEIGHT IMAGE COLUMNS

   The adjacent text determines the row height.
   The image fills that height and is cropped as necessary.
   ========================================================= */

.wp-block-column.image-height-column {
    position: relative;
    min-height: 0;
}

/* Remove the image from normal flow so it cannot make
   the row taller than the text. */
.image-height-column .match-column-height {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
}

/* Make the image fill the available column area. */
.image-height-column .match-column-height img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
		border-radius: 8px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    /* Hide only elements explicitly given hide-mobile */
    .hide-mobile {
        display: none !important;
    }

    /* Restore normal layout for the other image columns */
    .wp-block-column.image-height-column:not(.hide-mobile) {
        position: static;
        display: block;
        width: 100%;
        flex-basis: 100% !important;
        min-height: auto;
    }

    .image-height-column:not(.hide-mobile) .match-column-height {
        position: static;
        inset: auto;
        display: block;
        width: 100%;
        height: auto;
        padding: 18px;
        margin: 0;
        box-sizing: border-box;
    }

    .image-height-column:not(.hide-mobile) .match-column-height img {
        display: block;
        width: 100%;
        height: auto;
        max-width: 300px;
        max-height: none;
        object-fit: contain;
        margin: 0 auto;
        border-radius: 8px;
    }
}