/* Layout and typography come from the theme's existing SPECIAL blocks. */
.features-v6 .features-v6-section--right {
    padding-top: 0;
    overflow-x: clip;
}

.features-v6-section img.alisaimg,
.features-v6-section img.alisaimgright {
    height: auto;
}

.features-v6-copy {
    overflow-wrap: break-word;
}

/* Keep the copy in its original column when an illustration is omitted. */
@media (min-width: 992px) {
    .features-v6-section--left .features-v6-copy--without-image {
        margin-left: 50%;
    }
}

.features-v6-section > .stagedblockname {
    top: 8px;
}

/* Fit the legacy oversized illustrations at the edges of their breakpoints. */
@media (min-width: 992px) and (max-width: 1200px) {
    .features-v6-section img.alisaimg {
        width: 100%;
        left: auto;
        right: auto;
    }

    .features-v6 .hero-section.heroalisa {
        overflow-x: clip;
    }
}

@media (min-width: 1401px) and (max-width: 1600px) {
    .features-v6-section img.alisaimgright {
        max-width: calc(50vw - 50px);
    }
}

@media (min-width: 1601px) {
    .features-v6-section img.alisaimgright {
        max-width: calc(50vw - 60px);
    }
}

@media (max-width: 991px) {
    .features-v6 .features-v6-copy--without-image {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .features-v6-section > .stagedblockname {
        position: static;
        display: table;
        margin: 0 15px 8px auto;
        font-size: 14px;
        padding: 3px 8px;
    }
}

.features-v6-case-studies .row {
    display: flex;
    flex-wrap: wrap;
    row-gap: 24px;
}

.features-v6-case-studies .row > [class*="col-"],
.features-v6-case-studies .card,
.features-v6-case-studies .card > div {
    display: flex;
    flex-direction: column;
}

.features-v6-case-studies .card,
.features-v6-case-studies .card > div {
    flex: 1;
}

.features-v6-case-studies .card {
    min-height: 0;
}

.features-v6-case-studies .card > a:first-child {
    display: block;
    aspect-ratio: 65 / 42;
    background-color: #f5f5f5;
}

.features-v6-case-studies .card > a:first-child img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.features-v6-case-studies .card > div > p:last-child {
    margin-top: auto;
    padding-top: 12px;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .features-v6-case-studies .row > [class*="col-"] {
        width: 100%;
    }
}
