/* Keep material renders static during page scrolling. */
.tg-site :is(
  .specimen-photo, .material-row figure, .application-drawing,
  .masthead-figure, .panel-material-visual
) {
  position: relative;
  isolation: isolate;
}

.tg-site :is(.specimen-photo, .masthead-figure, .application-drawing, .panel-material-visual) {
  overflow: hidden;
}

.tg-site :is(.masthead-figure, .application-drawing, .panel-material-visual) > figcaption {
  position: relative;
  z-index: 2;
}

.tg-site :is(.specimen-photo, .masthead-figure, .application-drawing, .panel-material-visual)::after,
.tg-site .material-row figure::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.tg-site :is(.specimen-photo, .masthead-figure, .application-drawing, .panel-material-visual)::after,
.tg-site .material-row figure::after {
  box-shadow: inset 0 0 0 1px #fff9dc45, inset 0 12px 30px -28px #182b2370;
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .tg-site :is(.masthead-figure, .panel-material-visual)::after {
    background: linear-gradient(
      117deg,
      transparent 20%,
      #e5d9b533 36%,
      #fff6df86 48%,
      #e2f5ef3d 55%,
      transparent 70%
    );
    box-shadow: none;
    opacity: 0;
    transition: opacity .22s ease-out;
  }

  .tg-site :is(.masthead-figure, .panel-material-visual):hover::after {
    opacity: .59;
  }
}
