.image-text-grid__heading {
    margin-bottom: 1.5rem;
}

.image-text-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem 1rem;
    width: 100%;
}

.image-text-grid--vertical-top {
    align-items: flex-start;
}

.image-text-grid--vertical-center {
    align-items: center;
}

.image-text-grid--vertical-bottom {
    align-items: flex-end;
}

.image-text-grid--horizontal-left {
    justify-content: flex-start;
}

.image-text-grid--block-left {
    text-align: left;
}

.image-text-grid--block-center {
    text-align: center;
}

.image-text-grid__block {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: calc(50% - 0.5rem);
    max-width: 300px;
    flex-shrink: 1;
}

.image-text-grid--1 .image-text-grid__block {
    width: 100%;
    margin: 0 auto;
}

.image-text-grid h3 {
    margin-bottom: 0.5rem;
}

.image-text-grid p {
    margin: unset;
}

.image-text-grid img {
    height: auto;
    width: 100%;
    max-width: 75px;
    margin-bottom: 1rem;
}

.image-text-grid .image-text-grid__image--increase-size {
    max-width: 125px;
}

.image-text-grid.image-text-grid--block-center img {
    margin: 0 auto 1rem auto;
}

.image-text-grid.image-text-grid--block-center .image-text-grid__image-link {
    margin: 0 auto;
}

.image-text-grid.image-text-grid--block-left img {
    margin: 0 auto 1rem 0;
}

.image-text-grid.image-text-grid--block-left .image-text-grid__image-link {
    margin: 0 auto 0 0;
}


.image-text-grid--1 .image-text-grid__block img {
    max-width: 150px;
}

.image-text-grid--1 .image-text-grid__block .image-text-grid__image--increase-size {
    max-width: 200px;
}

.image-text-grid__link-container {
    display: none;
}

.image-text-grid__image-link {
    width: fit-content;
}

.image-text-grid__image-link img {
   transition: all 0.2s ease-in-out;
}

.image-text-grid__image-link:hover img {
   transform: translateY(-7px) scale(1.05);
}

@media only screen and (min-width: 700px) {
    .image-text-grid {
        gap: 3rem 1.5rem;
    }

    .image-text-grid__block {
        width: calc(32% - 0.5rem);
    }

    .image-text-grid--1 .image-text-grid__block {
        width: 100%;
        max-width: unset;
    }

    .image-text-grid--2 .image-text-grid__block {
        width: calc(50% - 0.75rem);
        max-width: 400px;
    }

    .image-text-grid--4.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(1),
    .image-text-grid--7.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(1) {
        margin: 0 auto;
    }

    .image-text-grid--5.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(2),
    .image-text-grid--8.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(2) {
        margin-left: auto;
    }

    .image-text-grid--5.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(1),
    .image-text-grid--8.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(1) {
        margin-right: auto;
    }

    .image-text-grid--1 .image-text-grid__block img {
        max-width: 200px;
    }

    .image-text-grid--1 .image-text-grid__block .image-text-grid__image--increase-size {
        max-width: 250px;
    }

    .image-text-grid--2 .image-text-grid__block img {
        max-width: 150px;
    }

    .image-text-grid--2 .image-text-grid__block .image-text-grid__image--increase-size {
        max-width: 200px;
    }
}

@media only screen and (min-width: 1024px) {
    .image-text-grid {
        flex-wrap: nowrap;
        gap: 2rem;
    }

    .image-text-grid--2 {
        justify-content: space-around;
    }

    .image-text-grid__block {
        width: 100%;
    }

    .image-text-grid img {
        max-width: 100px;
    }

    .image-text-grid .image-text-grid__image--increase-size {
        max-width: 150px;
    }

    .image-text-grid--wrap {
        flex-wrap: wrap;
    }

    .image-text-grid--wrap .image-text-grid__block {
        width: calc(25% - 1.5rem);
        max-width: unset;
    }

    .image-text-grid--wrap.image-text-grid--1 .image-text-grid__block {
        width: 100%;
    }

    .image-text-grid--wrap.image-text-grid--2 .image-text-grid__block {
        width: calc(50% - 1rem);
    }

    .image-text-grid--wrap.image-text-grid--3 .image-text-grid__block {
        width: calc(32% - 0.6rem);
    }

    .image-text-grid--4.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(1),
    .image-text-grid--7.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(1),
    .image-text-grid--5.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(2),
    .image-text-grid--8.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(2),
    .image-text-grid--5.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(1),
    .image-text-grid--8.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(1) {
        margin: unset;
    }

    .image-text-grid--5.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(1) {
        margin: 0 auto;
    }

    .image-text-grid--wrap.image-text-grid--7.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(3) {
        margin-left: auto;
    }

    .image-text-grid--wrap.image-text-grid--6.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(2) {
        margin-left: auto;
    }

    .image-text-grid--wrap.image-text-grid--6.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(1),
    .image-text-grid--wrap.image-text-grid--7.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(1) {
        margin-right: auto;
    }
}

@media only screen and (min-width: 1500px) {
    .image-text-grid--wrap .image-text-grid__block {
        width: calc(20% - 1.6rem);
    }

    .image-text-grid--wrap.image-text-grid--5.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(1)
    .image-text-grid--wrap.image-text-grid--7.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(3),
    .image-text-grid--wrap.image-text-grid--6.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(2),
    .image-text-grid--wrap.image-text-grid--6.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(1),
    .image-text-grid--wrap.image-text-grid--7.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(1) {
        margin: unset;
    }

    .image-text-grid--wrap.image-text-grid--6.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(1) {
        margin: 0 auto;
    }

    .image-text-grid--wrap.image-text-grid--7.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(2) {
        margin-left: auto;
    }

    .image-text-grid--wrap.image-text-grid--8.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(3) {
        margin-left: auto;
    }

    .image-text-grid--wrap.image-text-grid--7.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(1),
    .image-text-grid--wrap.image-text-grid--8.image-text-grid--horizontal-center .image-text-grid__block:nth-last-of-type(1) {
        margin-right: auto;
    }
}