/* Container reset */
.content-image ol {
    list-style: none;
    /* Remove standard numbers */
    counter-reset: custom-ol-counter;
    /* Initialize CSS counter */
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Vertical spacing between items */
}

/* List Item Layout */
.content-image ol li {
    counter-increment: custom-ol-counter;
    /* Increment counter per item */
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    /* Space between badge and text */
}

/* Custom Number Badge */
.content-image ol li::before {
    content: counter(custom-ol-counter);
    /* Inject number */
    background-color: var(--colour-mi-brown);
    /* Accent background color */
    color: var(--colour-mi-white);
    /* Number color */
    font-weight: 600;
    font-size: 0.875rem;

    /* Circle Dimensions */
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;

    /* Flex alignment to perfectly center the digit inside the circle */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Prevents badge from squishing if text wraps */

    margin-top: 0.25rem;
    /* Optical alignment with line-height of paragraph text */
}

.content-image .img-left .image {
    order: 0;
}

.content-image .img-right .image {
    order: 1;
}

.content-image .image.card > div {
    border: 1px solid var(--colour-mi-border-black-cards);
    background-color: 
color-mix(in srgb, var(--white, #ffffff) 5%, transparent);
}

.content-image .image.card .bg-img {
    position: relative;
    padding: 2rem;
}

.content-image .image.card .bg-img img {
    max-height: 30rem;
    object-fit: contain;
}

.content-image.bg-black .content *:not(.button) {
    color: var(--colour-mi-white);
}

@media(max-width: 900px) {
    .content-image .img-left .image, 
    .content-image .img-right .image {
        order: 0;
    }
}
