.pure-profile-editor-form {
  $component-name-not-selector: "pure-profile-editor-form";

  fieldset.#{$component-name-not-selector}__subject-areas-fieldset {
    .fieldset__horizontal-wrapper {
      @include max-line-width(1);
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(#{"min(26rem, 100%)"}, 1fr));
      column-gap: spacing($forms-margin-fieldset);
      row-gap: spacing($forms-margin-fieldset-vertical);

      .form__field {
        margin-right: 0;
      }
    }

    & + .submit {
      max-width: spacing($button-spacing-horizontal-between-buttons, $add: "#{math.div($line-width-max, 1em)} * #{font-size(1)}");
    }
  }

  &__file-list-image-preview {
    display: flex;
    justify-content: center;

    img {
      display: block;
      max-height: $profile-header-image-height-widest;
      width: auto;
    }
  }
}
