/* Capsule grid */
.wtfc-capsule-tags-wrapper {
  margin: 0 7em;
}

.wtfc-capsule-tags-wrapper .wtfc-capsule-grid {
  display: grid;
  gap: 20px 10px;
  align-items: start;
}

.wtfc-capsule-tags-wrapper .wtfc-capsule-item {
  text-align: center;
}

.wtfc-capsule-tags-wrapper .wtfc-capsule-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin: 0 auto 12px;
  max-width: 100%;
  border: 1px solid #000;
}

.wtfc-capsule-tags-wrapper .wtfc-capsule-img--placeholder {
  width: 100%;
  height: 220px;
  background: #f4f4f4;
  border: 1px solid #000;
  margin: 0 auto 12px;
}

.wtfc-capsule-tags-wrapper .wtfc-capsule-content {
  width: 70%;
  margin: 0 auto;
  text-align: center;
}

.wtfc-capsule-tags-wrapper .wtfc-capsule-title {
  color: #b3202a;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1.05rem;
  margin-top: 10px;
}

.wtfc-capsule-tags-wrapper .wtfc-capsule-link-title {
  text-decoration: none;
  color: inherit;
  display: block;
}

.wtfc-capsule-tags-wrapper .wtfc-capsule-subtitle {
  color: #000;
  margin-top: 10px;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.wtfc-capsule-tags-wrapper .wtfc-capsule-more a {
  color: #000;
  text-decoration: none;
  font-size: 0.95rem;
}

/* Tablet/Mobile */
@media (max-width: 720px) {
  .wtfc-capsule-tags-wrapper {
    margin: 0 2em;
  }

  .wtfc-capsule-tags-wrapper .wtfc-capsule-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    gap: 20px 10px;
  }

  .wtfc-capsule-tags-wrapper .wtfc-capsule-content {
    width: 90%;
  }

  .wtfc-capsule-tags-wrapper .wtfc-capsule-img--placeholder {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .wtfc-capsule-tags-wrapper {
    margin: 0 1.25em;
  }

  .wtfc-capsule-tags-wrapper .wtfc-capsule-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
    gap: 18px 8px;
  }

  .wtfc-capsule-tags-wrapper .wtfc-capsule-content {
    width: 92%;
  }

  .wtfc-capsule-tags-wrapper .wtfc-capsule-img--placeholder {
    height: 200px;
  }
}