/* Link Cards */
.fts-link-card-grid-wrap {
  container: link-card-wrap / inline-size;
}
.fts-link-card-grid-group {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 10px;
}
@container link-card-wrap (min-width: 42.8125rem) {
  .fts-link-card-grid-group { grid-template-columns: repeat(3, 1fr); }
}
@container link-card-wrap (min-width: 53.125rem) {
  .fts-link-card-grid-group { grid-template-columns: repeat(4, 1fr); }
}

/* Make sure we target the correct card class */
.fts-link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  aspect-ratio: 3/2;
  text-decoration: none !important;

  /* fallback default color */
  background-color: var(--navy) !important;
  background-size: cover;
  background-position: center;
  overflow: hidden;

  transition: transform 160ms ease, filter 160ms ease;
  text-decoration: none !important;
  background-image: var(--fts-lc-bg, none);
}

/* Image overlay */
.fts-link-card.bgCardImg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 20%,
    rgba(0, 0, 0, 0.2) 80%
  );
  z-index: 1;
}

/* If there is an image, sthe inline style (background-image) will override the color above */

/* Individual Card */
.fts-link-card-inner {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  margin: 10px;
  padding-left: 8px;
  padding-bottom: 6px;
  box-sizing: border-box;
  z-index: 2;
  border: var(--lc-border, 0); 
}

/* shown when toggled on */
.fts-link-card-inner.has-card-border {
  border: 2px solid #fff; 
}

/* Title */
.fts-link-card-inner-title {
  color: #ffffff !important;
  text-decoration: none;
  margin-bottom: 0px;
  transition: 0.25s;
  cursor: pointer;
}

.fts-link-card-inner-title:hover {
  color: var(--sky) !important;
}

.fts-link-card-inner p {
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.2;
  text-decoration: none !important;
}

.fts-link-card-inner a {
  text-decoration: none !important;
}

/* Optional CTA under the title */
.fts-link-card-cta {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
}
