.profile-cover-field {
    margin-top: 4px;
    border-color: #c8d7ea;
    background: linear-gradient(145deg, #f9fbfe, #edf3fa);
}

.profile-photo-dropzone.is-cover {
    min-height: 142px;
}

.profile-photo-editor.is-cover {
    grid-template-columns: minmax(420px, 2fr) minmax(250px, 1fr);
}

.profile-photo-crop-stage.is-cover {
    width: min(100%, 620px);
    aspect-ratio: 4 / 3;
}

.profile-photo-preview-column.is-cover {
    align-self: stretch;
}

.profile-photo-preview-frame.is-cover {
    width: min(100%, 300px);
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: #dfe8f4;
}

.profile-photo-existing-image.is-cover {
    width: 112px;
    height: 84px;
    border-radius: 10px;
}

.profile-photo-existing-image.is-avatar {
    border-radius: 50%;
}

.profile-hero-with-media {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) minmax(270px, 340px);
    align-items: start;
}

.profile-hero-media {
    display: grid;
    gap: 14px;
    justify-items: stretch;
}

.profile-hero-media > .button {
    justify-self: end;
}

.profile-cover-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    border: 1px solid #d3deec;
    border-radius: 18px;
    background: linear-gradient(145deg, #e9f0f8, #dbe5f2);
    box-shadow: 0 16px 32px rgba(13, 43, 86, .14);
}

.profile-cover-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profile-cover-photo.is-avatar-fallback img {
    object-position: center;
}

.profile-cover-photo figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 9px;
    color: #fff;
    border-radius: 999px;
    background: rgba(5, 28, 62, .78);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.profile-cover-placeholder {
    min-height: 210px;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #5d6f88;
    text-align: center;
    border: 1px dashed #b7c6da;
    border-radius: 18px;
    background: #edf3fa;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 1080px) {
    .profile-hero-with-media {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .profile-hero-media {
        grid-column: 1 / -1;
        grid-template-columns: auto minmax(280px, 420px);
        align-items: start;
        justify-content: end;
    }

    .profile-hero-media > .button {
        align-self: start;
    }
}

@media (max-width: 760px) {
    .profile-photo-editor.is-cover {
        grid-template-columns: 1fr;
    }

    .profile-photo-crop-stage.is-cover {
        width: 100%;
    }

    .profile-hero-with-media {
        grid-template-columns: 1fr;
    }

    .profile-hero-with-media > .profile-avatar {
        width: 104px;
        height: 104px;
    }

    .profile-hero-media {
        grid-column: auto;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .profile-hero-media > .button {
        justify-self: stretch;
        text-align: center;
    }
}
