/* Case detail refresh, v0.1.12. */
.cases-filters {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
}

.cases-filters > a {
    flex: 0 1 auto;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.cases-filters > a small {
    flex-shrink: 0;
}

.case-detail-hero h1 {
    font-size: clamp(34px, 4.4vw, 36px);
    letter-spacing: -1.4px;
    line-height: 1.16;
    overflow-wrap: break-word;
}

.case-detail-hero__mark.case-detail-hero__mark--photo {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    min-height: 430px;
    overflow: hidden;
    background: #1e247a;
    text-align: left;
}

.case-detail-hero__background {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.case-detail-hero__mark--photo::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(15, 21, 58, 0) 30%, rgba(15, 21, 58, .28) 57%, rgba(15, 21, 58, .94) 100%);
}

.case-detail-hero__caption {
    display: grid;
    gap: 10px;
    padding: 34px;
}

.case-detail-hero__caption strong {
    margin: 0;
    color: #fff;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -.8px;
    line-height: 1.1;
}

.case-detail-hero__caption small {
    max-width: none;
    margin: 0;
    color: #f0f1fa;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .case-detail-hero__mark.case-detail-hero__mark--photo {
        min-height: 360px;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 640px) {
    .case-detail-hero__mark.case-detail-hero__mark--photo {
        min-height: 320px;
        aspect-ratio: 6 / 5;
    }

    .case-detail-hero__caption {
        padding: 26px;
    }

    .case-detail-hero__caption strong {
        font-size: 34px;
    }
}
