/* Trinity V47 contextual research artwork.
   Replaces decorative images that did not match their educational subjects. */

.tri-guide-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid rgba(213, 166, 68, 0.52);
  background: #070605;
}

.tri-research-page-hero {
  isolation: isolate;
  background: #050403 !important;
}

.tri-research-page-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.tri-research-page-visual img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.94) contrast(1.04);
}

.tri-research-page-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.98) 0%, rgba(3, 3, 3, 0.82) 38%, rgba(3, 3, 3, 0.22) 72%, rgba(3, 3, 3, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.42));
}

.tri-research-page-hero-copy {
  position: relative;
  z-index: 3;
}

[data-theme="light"] .tri-research-page-hero h1,
[data-theme="light"] .tri-research-page-hero h1 span {
  color: #f0eee9 !important;
}

[data-theme="light"] .tri-research-page-hero-copy > p:last-child {
  color: #cfc5b8 !important;
}

@media (max-width: 700px) {
  .tri-guide-card > img {
    aspect-ratio: 16 / 9;
  }

  .tri-research-page-visual img {
    object-position: 64% center;
  }

  .tri-research-page-visual::after {
    background:
      linear-gradient(90deg, rgba(3, 3, 3, 0.98) 0%, rgba(3, 3, 3, 0.78) 60%, rgba(3, 3, 3, 0.24) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.52));
  }
}
