.lib-loading-mask() {
  bottom: 0;
  left: 0;
  margin: auto;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
}

.loading-mask {
  .lib-loading-mask();

  background: rgba(255, 255, 255, .5);

  .loader {
    > img {
      .lib-loading-mask();
    }

    > p {
      display: none;
    }
  }
}

body {
  > .loading-mask {
    z-index: 9999;
  }
}

.gallery-placeholder {
  &._block-content-loading {
    position: relative;
  }

  .loading-mask {
    padding: 0 0 50%;
    position: static;
  }

  .loader img {
    position: absolute;
  }
}
