/* Homepage */

/*
 *	CWIS home block: Hero
 *	Featured top - allow full-width background to extend
 */
.featured-top {
  overflow-x: visible;
}

.featured-top .featured-top__inner {
  overflow-x: visible;
  background: transparent;
  width: 100%;
}

.hero-with-background {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  padding-bottom:1em;
	background-color:#e9ecee;
}

/* Remove pseudo background on mobile */
.hero-with-background::before {
  display: none;
}

/* Image block (mobile first) */
.hero-with-background-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-image: url('/_flysystem/fedora/2026-04/A%20canoe%20in%20the%20salish%20sea._0.jpg');
  background-size: cover;
  background-position: left bottom;
  background-repeat: no-repeat;
  margin-bottom: 1rem;
}

/* Content */
.hero-with-background .hero-content {
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * .5);
  padding-left: calc(var(--bs-gutter-x) * .5);
}

.hero-with-background .hero-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #000;
  text-shadow: none;
}

.hero-with-background .hero-content .hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #000;
  text-shadow: none;
}

/* Tablet */
@media screen and (min-width: 768px) {
  .hero-with-background {
    padding: 2rem;
    background-color:transparent;
  }

  .hero-with-background .hero-content h1 {
    font-size: 2.5rem;
  }
}

/* Desktop (restore original behavior) */
@media screen and (min-width: 1024px) {
  .hero-with-background {
    position: relative;
    min-height: max(80vh, 700px);
    flex-direction: row;
    align-items: center;
    padding: 2rem 3rem;
    background-color:transparent;
  }

  /* Restore background */
  .hero-with-background::before {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    height: 100%;
    background-image: url('/_flysystem/fedora/2026-04/A%20canoe%20in%20the%20salish%20sea._0.jpg');
    background-size: cover;
    background-position: left bottom;
    background-repeat: no-repeat;
    z-index: -1;
  }

  /* Hide inline image */
  .hero-with-background-image {
    display: none;
  }

  /* Restore overlay styles */
  .hero-with-background .hero-content {
    position: relative;
    max-width: 600px;
  }

  .hero-with-background .hero-content h1 {
    font-size: 3.8rem;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  }

  .hero-with-background .hero-content .hero-subtitle {
    font-size: 1.75rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }
}

/* Quick Links block - solid background so hero image doesn't show through */
.quick-links-featured-block {
  background: #fff;
}

/**
 * CWIS home block: Quick links + Our Collections
 */
.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;
}

/**
 * CWIS home block: Rudy Collection
 */
.hero-block {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Image (mobile first) */
.hero-block-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-image: url('/_flysystem/fedora/2026-03/Faculty_Dr-Rudy-Ryser_photo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Content */
.hero-block-content {
  padding: 1.5rem 1em;
  color: #000;
  background-color:#e9ecee;
}

.home-featured-collection-pretitle {
  color: #000;
}

.hero-block-title {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 700;
}

.hero-block-subtitle {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Tablet */
@media screen and (min-width: 768px) {
  .hero-block-content {
    padding: 2rem;
  }

  .hero-block-title {
    font-size: 2.25rem;
  }
}

/* Desktop (restore original hero behavior) */
@media screen and (min-width: 1024px) {
  .hero-block {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 800px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-image: url('/_flysystem/fedora/2026-03/Faculty_Dr-Rudy-Ryser_photo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15em;
    box-sizing: border-box;
  }

  /* Hide inline image on desktop */
  .hero-block-image {
    display: none;
  }

  .hero-block-content {
    max-width: calc(50% - 5em);
    padding: 1rem;
    text-align: left;
    background-color:transparent;
  }

  .hero-block-title {
    font-size: 2.5rem;
  }

  .hero-block-subtitle {
    font-size: 1.25rem;
  }
}

/**
 * CWIS home block: About the Archive
 */

/* Mobile */
.home-about {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.home-about-btn-wrap {
  padding-top: 1rem;
}

/* Tablet */
@media (min-width: 768px) {
  .home-about {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .home-about {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

/**
 * CWIS home block: CTM
 */
.ctm-hero-block {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Image (mobile first) */
.ctm-hero-block-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-image: url('/_flysystem/fedora/2026-04/center%20for%20traditional%20medicine_1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Content */
.ctm-hero-block-content {
  padding: 2rem 1rem;
  color: #000;
  background-color: rgba(86, 105, 55, .4);
}

.ctm-hero-block-title {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 700;
  color: #000;
}

.ctm-hero-block-subtitle {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  line-height: 1.5;
  color: #000;
}

.ctm-hero-block-description {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #000;
}

/* Tablet */
@media screen and (min-width: 768px) {
  .ctm-hero-block-content {
    padding: 3rem 1rem;
  }

  .ctm-hero-block-title {
    font-size: 2.25rem;
  }
}

/* Desktop (restore original layout) */
@media screen and (min-width: 1024px) {
  .ctm-hero-block {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 800px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-image: url('/_flysystem/fedora/2026-04/center%20for%20traditional%20medicine_1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding-left: 15em;
    box-sizing: border-box;
  }

  /* Hide inline image on desktop */
  .ctm-hero-block-image {
    display: none;
  }

  .ctm-hero-block-content {
    max-width: calc(50% - 5em);
    padding: 3rem 1rem;
    text-align: left;
    color: #fff;
  }

  .ctm-hero-block-title {
    font-size: 2.5rem;
    color: #fff;
  }

  .ctm-hero-block-subtitle {
    font-size: 1.5rem;
    color: #fff;
  }

  .ctm-hero-block-description {
    font-size: 1.25rem;
    color: #fff;
  }
}

/**
 * CWIS home block: FWJ
 */
/* Mobile */
.home-fwj-wrapper {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

h3 a {
  color: #000;
  text-decoration: none;
}

.fwj-btn-wrapper {
  text-align: center;
  padding-top: 2rem;
}

/* Tablet */
@media (min-width: 768px) {
  .home-fwj-wrapper {
    margin-top: 6rem;
    margin-bottom: 6rem;
  }

  .fwj-btn-wrapper {
    padding-top: 2.5rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .home-fwj-wrapper {
    margin-top: 10rem;
    margin-bottom: 10rem;
  }

  .fwj-btn-wrapper {
    padding-top: 3rem;
  }
}