.media-hero .page-hero-image img {
  object-position: center 36%;
}

.media-library {
  display: block;
}

.media-library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.media-library-heading h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.media-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.media-filters button {
  min-height: 40px;
  border: 1px solid #d2dddd;
  border-radius: 5px;
  padding: 0.55rem 0.85rem;
  color: #536b6f;
  background: #fff;
  font-weight: 850;
  cursor: pointer;
}

.media-filters button.is-active {
  border-color: #337f82;
  color: #fff;
  background: #337f82;
}

.podcast-nav-link,
.podcast-footer-link,
.podcast-filter {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
}

.podcast-link-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.podcast-link-icon::before,
.podcast-link-icon::after {
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.podcast-link-icon::before {
  width: 4px;
  height: 4px;
  background: currentColor;
}

.podcast-link-icon::after {
  width: 20px;
  height: 20px;
  border: 1px solid currentColor;
  opacity: 0.38;
}

.nav-menu .podcast-nav-link {
  color: var(--aqua);
}

.nav-menu .podcast-nav-link:hover,
.nav-menu .podcast-nav-link:focus-visible {
  color: var(--ink-2);
  background: var(--aqua);
}

.media-filters .podcast-filter {
  border-color: rgba(51, 127, 130, 0.45);
  color: #286f73;
  background: #ecf8f7;
}

.media-filters .podcast-filter:hover,
.media-filters .podcast-filter.is-active {
  border-color: #173a3f;
  color: #fff;
  background: #173a3f;
}

.podcast-footer-link {
  width: fit-content;
  color: #fff !important;
  font-weight: 850;
}

.podcast-footer-link .podcast-link-icon {
  color: var(--aqua);
}

.public-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.public-media-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #d8e0df;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.public-media-visual {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #173a3f;
}

.public-media-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-media-visual span {
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.public-media-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
}

.public-media-copy > span {
  color: #337f82;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.public-media-copy h3 {
  margin: 0.55rem 0 0.45rem;
  font-size: 1.18rem;
}

.public-media-copy p {
  margin: 0 0 1rem;
  color: #66777a;
  font-size: 0.86rem;
}

.public-media-copy a {
  margin-top: auto;
  color: #337f82;
  font-size: 0.78rem;
  font-weight: 900;
}

.media-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed #cbd6d5;
  padding: 3rem 1rem;
  color: #66777a;
  text-align: center;
}

.media-contribute {
  align-items: end;
}

@media (max-width: 920px) {
  .public-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-library-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .public-media-grid {
    grid-template-columns: 1fr;
  }

  .media-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}
