.at-threeColumns + .at-threeColumns {
    margin-top: calc(-1 *(max(2rem, 3vw)));
}

.at-threeColumns--noMarginBottom {
    margin-bottom: 0;
}

.at-threeColumns__list {
    --columnWidth: 280px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--columnWidth), 1fr));
    gap: 1rem;
}

.at-threeColumns__column {
    position: relative;
    display: block;
    margin: 0;
    padding: 15px;
    border: 1px solid #e8e8e8;
    border-top: 4px solid var(--primaryColor500);
    overflow: hidden;
    background-color: #fff;
}

.at-threeColumns__column:hover .at-threeColumns__link {
    color: var(--primaryColor500);
}

.at-threeColumns__image {
    width: 100%;
    margin-bottom: 0.5em;
}

.at-threeColumns__link {
    text-decoration: underline;
    color: var(--primaryColor500);
}

.at-threeColumns__linkOverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #fff;
    text-indent: -999em;
    text-decoration: none;
}

/**
 * Landing page variant different styling
 */

.body--landingPage .at-threeColumns__column {
    border: none;
}

.body--landingPage .at-threeColumns__column {
    padding: 0;
}

.body--landingPage .at-threeColumns__image {
    display: block;
    margin: 0;
    width: 100%;
    height: 200px;
    max-width: none;
    object-fit: cover;
}

.body--landingPage .at-threeColumns__info {
    flex: 1;
    padding: 15px;
    color: #fff;
    background: var(--tertiaryColor500);
}

.body--landingPage .at-threeColumns__text,
.body--landingPage .at-threeColumns__title {
    margin: 0;
    color: #fff;
}

.body--landingPage .at-threeColumns__link {
    display: none;
}

@media screen and (min-width: 460px) {
    .at-threeColumns__column {
        display: flex;
        flex-direction: column;
        flex: 1 1 100%;
    }

    .at-threeColumns__image {
        width: auto;
        max-width: 130px;
        margin-right: 1em;
    }
}

@media screen and (min-width: 768px) {
    .at-threeColumns__list {
        --columnWidth: 300px;
    }

    .at-threeColumns__image {
        width: 100%;
        max-width: none;
        margin-right: 0;
    }
}
