.related-resources-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3rem) / 3);
  grid-template-columns: none;
  gap: 1.5rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.related-resources-grid::-webkit-scrollbar {
  display: none;
}

.related-resources-grid .resource-card {
  min-width: 0;
  scroll-snap-align: start;
}

.related-resources-grid .resource-card-content {
  min-height: 100%;
}

.related-resources-grid .resource-card-title {
  display: block;
  overflow: visible;
  margin-bottom: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

.related-resources-grid .resource-card-content > p,
.related-resources-grid .resource-card-gradient {
  display: none;
}

.related-resources-controls {
  display: flex;
  flex: none;
  gap: 0.5rem;
  margin: 0;
}

.related-resources-arrow {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1.5px solid #74858c;
  border-radius: 50%;
  background: transparent;
  color: #74858c;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.related-resources-arrow svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.related-resources-arrow:hover:not(:disabled) {
  background: #fff;
  color: #181828;
}

.related-resources-arrow:focus-visible {
  outline: 3px solid rgba(193, 39, 45, 0.3);
  outline-offset: 3px;
}

.related-resources-arrow:disabled {
  cursor: default;
  opacity: 0.32;
}

@media (max-width: 1024px) {
  .related-resources-grid {
    grid-auto-columns: calc((100% - 1.5rem) / 2);
    grid-template-columns: none;
  }
}

@media (max-width: 768px) {
  .related-resources-grid {
    grid-auto-columns: 100%;
    grid-template-columns: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .related-resources-grid {
    scroll-behavior: auto;
  }

  .related-resources-arrow {
    transition: none;
  }
}
