/* Preview QA — gallery hero contrast (item 4) + Essential Grid esgbox (item 5). */

body.page-photo-gallery .page-hero,
body.page-gallery .page-hero {
  position: relative;
}

body.page-photo-gallery .page-hero::before,
body.page-gallery .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(12, 10, 8, 0.62) 0%,
    rgba(12, 10, 8, 0.28) 45%,
    rgba(12, 10, 8, 0.18) 100%
  );
}

body.page-photo-gallery .mpfy-page__title--on-hero,
body.page-gallery .mpfy-page__title--on-hero,
.rd-page.page-photo-gallery .mpfy-page__title--on-hero,
.rd-page.page-gallery .mpfy-page__title--on-hero {
  position: relative;
  z-index: 2;
  color: #fffdf9;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.85),
    0 0 32px rgba(0, 0, 0, 0.55);
}

/* esgbox: keep prev / next / close only */
.esgbox-toolbar .esgbox-button--zoom,
.esgbox-toolbar .esgbox-button--play,
.esgbox-toolbar .esgbox-button--fullscreen,
.esgbox-toolbar .esgbox-button--thumbs,
.esgbox-toolbar .esgbox-button--slideShow,
.esgbox-infobar,
.esgbox-thumbs,
.esgbox-share {
  display: none !important;
}

.esgbox-toolbar .esgbox-button--close {
  display: inline-block !important;
}

.esgbox-navigation .esgbox-button--arrow_left,
.esgbox-navigation .esgbox-button--arrow_right {
  display: inline-block !important;
}

.esgbox-container .esgbox-button--close::before {
  content: "\00d7";
  font-size: 1.75rem;
  line-height: 1;
}

/* Stop lightbox from locking page scroll and hiding content below */
body.esgbox-active:not(.esgbox-compact) {
  overflow: auto !important;
  touch-action: auto !important;
}

.esgbox-container {
  pointer-events: none;
}

.esgbox-container .esgbox-bg,
.esgbox-container .esgbox-inner,
.esgbox-container .esgbox-toolbar,
.esgbox-container .esgbox-navigation,
.esgbox-container .esgbox-button {
  pointer-events: auto;
}
