/* Use on selected light sections only, alternating clean white, technical grid, dark blocks, and soft grid surfaces. */
.cg-surface-grid {
  background: #ffffff;
  isolation: isolate;
  position: relative;
}

.cg-surface-grid::before {
  background:
    linear-gradient(rgba(10, 10, 10, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
}

.cg-surface-grid > * {
  position: relative;
  z-index: 1;
}

.cg-surface-grid--soft::before {
  opacity: 0.28;
}

.cg-surface-grid--fade::before {
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, rgba(0, 0, 0, 0.72) 44%, transparent 78%);
  mask-image: radial-gradient(circle at center, #000 0%, rgba(0, 0, 0, 0.72) 44%, transparent 78%);
  opacity: 0.34;
}

@media (max-width: 767px) {
  .cg-surface-grid::before {
    background-size: 56px 56px;
    opacity: 0.22;
  }

  .cg-surface-grid--soft::before,
  .cg-surface-grid--fade::before {
    opacity: 0.16;
  }
}
