.route-public-profile {
    margin-bottom: 16px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.route-profile-hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 38%);
    min-height: 230px;
}

.route-profile-hero--without-photo {
    grid-template-columns: 1fr;
    min-height: auto;
}

.route-profile-hero__text {
    padding: 22px 24px;
}

.route-profile-kicker {
    margin-bottom: 5px;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.route-profile-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    color: #101828;
    font-size: 29px;
    line-height: 1.1;
}

.route-profile-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 53px;
    min-height: 43px;
    padding: 4px 11px;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
}

.route-profile-name {
    font-size: 24px;
    font-weight: 700;
}

.route-profile-lead {
    max-width: 780px;
    margin-top: 16px;
    color: #475467;
    font-size: 15px;
    line-height: 1.6;
}

.route-profile-cover {
    min-width: 0;
    background: #f2f4f7;
}

.route-profile-photo {
    margin: 0;
}

.route-profile-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f2f4f7;
}

.route-profile-photo--cover {
    height: 100%;
}

.route-profile-photo--cover img {
    height: 100%;
    min-height: 230px;
    aspect-ratio: auto;
}

.route-profile-photo figcaption {
    padding: 8px 9px 9px;
    border-top: 1px solid #eaecf0;
    color: #475467;
    background: #fff;
}

.route-profile-photo-caption {
    font-size: 12px;
    line-height: 1.4;
}

.route-profile-photo-meta {
    margin-top: 3px;
    color: #667085;
    font-size: 10px;
    line-height: 1.4;
}

.route-profile-photo-meta a {
    color: #175cd3;
}

.route-profile-section {
    padding: 18px 24px;
    border-top: 1px solid #eaecf0;
}

.route-profile-section h3 {
    margin: 0 0 10px;
    color: #101828;
    font-size: 19px;
}

.route-profile-text {
    max-width: 920px;
    color: #344054;
    font-size: 14px;
    line-height: 1.65;
}

.route-profile-gallery {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(220px, 1fr)
        );
    gap: 10px;
}

.route-profile-gallery
.route-profile-photo {
    overflow: hidden;
    border: 1px solid #eaecf0;
    border-radius: 9px;
    background: #fff;
}

.route-profile-empty,
.route-profile-loading,
.route-profile-error {
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
}

.route-profile-empty {
    margin-top: 15px;
    border: 1px dashed #d0d5dd;
    color: #667085;
}

.route-profile-loading {
    color: #667085;
}

.route-profile-error {
    color: #b42318;
    background: #fef3f2;
}

@media (max-width: 820px) {
    .route-profile-hero {
        grid-template-columns: 1fr;
    }

    .route-profile-cover {
        max-height: 420px;
    }

    .route-profile-photo--cover img {
        height: auto;
        max-height: 420px;
    }

    .route-profile-title {
        font-size: 24px;
    }

    .route-profile-name {
        font-size: 20px;
    }
}
