/* Solutions page — industry blocks */

.solutions-blocks {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .solutions-blocks {
        gap: 6rem;
    }
}

.solution-block__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .solution-block__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4rem;
    }
}

.solution-media {
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(145deg, #f1f3ff 0%, #e8ebf8 100%);
}

@media (min-width: 1024px) {
    .solution-media {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 25rem;
        border-radius: 1.5rem;
    }
}

.solution-media__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 13.5rem;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

@media (min-width: 640px) and (max-width: 1023px) {
    .solution-media__img {
        max-height: 16rem;
    }
}

@media (min-width: 1024px) {
    .solution-media__img {
        max-height: none;
        margin: 0;
        height: 100%;
        min-height: 25rem;
        object-fit: cover;
        border-radius: 1.5rem;
    }
}

/* Image below text on mobile when desktop layout alternates */
@media (max-width: 1023px) {
    .solution-media {
        padding: 0.875rem 0.75rem;
    }

    .solution-block__grid .solution-media {
        margin-top: 0.25rem;
    }

    .solution-block__grid .order-2.lg\:order-1 {
        order: 2;
    }

    .solution-block__grid .order-1.lg\:order-2 {
        order: 1;
    }
}
