You could change this so the class is inside ```media-gallery```. It's only used in the scenario where ```media-gallery``` is a parent of it anyway.

```less
.media-gallery {
  position: absolute;
  bottom: 0;
  top: @addClipHeight + 20px;
  width: 100%;
  margin-top: -1px;

 .media-gallery-heading {
    background: #FFF;
    padding: 15px 20px;
    border: 0 solid @baseLightOutline;
    border-bottom-width: 1px;
    border-top-width: 1px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }
}
```