.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;
}

.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%;
  }
}
