/**
 * CWIS home block: Quick links + Our Collections
 * Load via your subtheme library (e.g. global-styling).
 */

.cwis-bs-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 5em 8em;
}

@media (max-width: 991.98px) {
  .cwis-bs-wrap {
    padding: 3em 1em 3em 1em;
  }
}

.cwis-bs-wrap h3 {
  font-weight: 700;
  margin: 0 0 1rem;
}

/* Quick links list */
.cwis-bs-quicklinks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cwis-bs-quicklinks li {
  border-bottom: 1px solid #dee2e6;
  padding: 0.5rem 0;
}

.cwis-bs-quicklinks li:last-child {
  border-bottom: none;
}

.cwis-bs-quicklinks a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.cwis-bs-quicklinks a:hover,
.cwis-bs-quicklinks a:focus {
  text-decoration: underline;
}

/* Collection cards: image above caption */
.cwis-bs-collection__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.cwis-bs-collection__link:hover,
.cwis-bs-collection__link:focus {
  color: inherit;
}

.cwis-bs-collection__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.25rem;
}

.cwis-bs-collection__caption {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
}

.cwis-bs-cta {
  text-align: center;
  margin-top: 1.5rem;
}