.imageLinksRow {
    width: 100%;
}

.imageLinksRow--top-none {
    margin-top: 0;
}

.imageLinksRow--top-small {
    margin-top: 15px;
}

.imageLinksRow--top-medium {
    margin-top: 30px;
}

.imageLinksRow--top-large {
    margin-top: 45px;
}

.imageLinksRow--top-xlarge {
    margin-top: 75px;
}

.imageLinksRow--bottom-none {
    margin-bottom: 0;
}

.imageLinksRow--bottom-small {
    margin-bottom: 15px;
}

.imageLinksRow--bottom-medium {
    margin-bottom: 30px;
}

.imageLinksRow--bottom-large {
    margin-bottom: 45px;
}

.imageLinksRow--bottom-xlarge {
    margin-bottom: 75px;
}

.imageLinksRow__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
}

.imageLinksRow__item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.imageLinksRow__media {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
}

.imageLinksRow__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imageLinksRow__image--pos-center {
    object-position: center;
}

.imageLinksRow__image--pos-top {
    object-position: top;
}

.imageLinksRow__image--pos-bottom {
    object-position: bottom;
}

.imageLinksRow__image--pos-left {
    object-position: left;
}

.imageLinksRow__image--pos-right {
    object-position: right;
}

.imageLinksRow__image--placeholder {
    background-color: #d9d9d9;
}

.imageLinksRow__content {
    flex: 1 1 auto;
    min-height: 98px;
    padding: 16px 22px;
    background-color: #2d68cb;
    display: flex;
    align-items: center;
}

/* Match outer text start/end to theme gutters (desktop = 45px) */
.imageLinksRow__item:nth-child(5n + 1) .imageLinksRow__content {
    padding-left: 45px;
}

.imageLinksRow__item:nth-child(5n) .imageLinksRow__content,
.imageLinksRow__item:last-child .imageLinksRow__content {
    padding-right: 45px;
}

.imageLinksRow__label {
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding-right: 30px;
    color: #ffffff;
    font-family: "Pastiche Grotesque", "Open Sans", sans-serif;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.imageLinksRow--weight-normal .imageLinksRow__label {
    font-weight: 400;
}

.imageLinksRow--weight-medium .imageLinksRow__label {
    font-weight: 500;
}

.imageLinksRow--weight-semibold .imageLinksRow__label {
    font-weight: 600;
}

.imageLinksRow--weight-bold .imageLinksRow__label {
    font-weight: 700;
}

.imageLinksRow--font-small .imageLinksRow__label {
    font-size: 18px;
}

.imageLinksRow--font-default .imageLinksRow__label {
    font-size: 22px;
}

.imageLinksRow--font-large .imageLinksRow__label {
    font-size: 28px;
}

.imageLinksRow--font-xlarge .imageLinksRow__label {
    font-size: 34px;
}

.imageLinksRow__label::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 19px;
    height: 14px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg width='19' height='14' viewBox='0 0 19 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.5391 0.0859375L10.4609 1.16406L15.5469 6.25H0.5V7.75H15.5469L10.4609 12.8359L11.5391 13.9141L17.9141 7.53906L18.4297 7L17.9141 6.46094L11.5391 0.0859375Z' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.imageLinksRow__item:hover .imageLinksRow__label {
    transform: translateX(-6px);
}

@media (max-width: 1299px) {
    .imageLinksRow__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* Match theme medium gutters */
    .imageLinksRow__item .imageLinksRow__content {
        padding-left: 22px;
        padding-right: 22px;
    }

    .imageLinksRow__item:nth-child(3n + 1) .imageLinksRow__content {
        padding-left: 20px;
    }

    .imageLinksRow__item:nth-child(3n) .imageLinksRow__content,
    .imageLinksRow__item:last-child .imageLinksRow__content {
        padding-right: 20px;
    }
}

@media (max-width: 1023px) {
    .imageLinksRow__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .imageLinksRow__item .imageLinksRow__content {
        padding-left: 22px;
        padding-right: 22px;
    }

    .imageLinksRow__item:nth-child(2n + 1) .imageLinksRow__content {
        padding-left: 20px;
    }

    .imageLinksRow__item:nth-child(2n) .imageLinksRow__content,
    .imageLinksRow__item:last-child .imageLinksRow__content {
        padding-right: 20px;
    }

    .imageLinksRow--font-small .imageLinksRow__label {
        font-size: 16px;
    }

    .imageLinksRow--font-default .imageLinksRow__label {
        font-size: 20px;
    }

    .imageLinksRow--font-large .imageLinksRow__label {
        font-size: 24px;
    }

    .imageLinksRow--font-xlarge .imageLinksRow__label {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .imageLinksRow--top-small {
        margin-top: 10px;
    }

    .imageLinksRow--top-medium {
        margin-top: 20px;
    }

    .imageLinksRow--top-large {
        margin-top: 25px;
    }

    .imageLinksRow--top-xlarge {
        margin-top: 40px;
    }

    .imageLinksRow--bottom-small {
        margin-bottom: 10px;
    }

    .imageLinksRow--bottom-medium {
        margin-bottom: 20px;
    }

    .imageLinksRow--bottom-large {
        margin-bottom: 25px;
    }

    .imageLinksRow--bottom-xlarge {
        margin-bottom: 40px;
    }

    .imageLinksRow__grid {
        grid-template-columns: 1fr;
    }

    .imageLinksRow__content {
        min-height: 84px;
        padding: 14px 15px;
    }

    .imageLinksRow__item:nth-child(n) .imageLinksRow__content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .imageLinksRow--font-small .imageLinksRow__label {
        font-size: 15px;
        padding-right: 27px;
    }

    .imageLinksRow--font-default .imageLinksRow__label {
        font-size: 18px;
        padding-right: 27px;
    }

    .imageLinksRow--font-large .imageLinksRow__label {
        font-size: 21px;
        padding-right: 27px;
    }

    .imageLinksRow--font-xlarge .imageLinksRow__label {
        font-size: 24px;
        padding-right: 27px;
    }
}
