.medialab-portal,
.medialab-product {
  color: #172033;
}
.medialab-section-header,
.medialab-product-header {
  margin-bottom: 22px;
}
.medialab-section-header {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}
.medialab-section-header h1,
.medialab-section-header h2,
.medialab-product-header h1 {
  margin: 0;
}
.medialab-section-header p,
.medialab-product-header p {
  margin: 0;
}
.medialab-eyebrow,
.medialab-card__meta {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  text-transform: uppercase;
}
.medialab-filters {
  align-items: end;
  background: #f6f8fb;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px;
}
.medialab-filters label {
  align-content: end;
  color: #344054;
  display: grid;
  flex: 1 1 220px;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 6px;
}
.medialab-filter-search {
  flex-basis: 100%;
}
.medialab-filters input[type="search"] {
  background: #fff;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  box-sizing: border-box;
  color: #172033;
  height: 42px;
  line-height: 42px;
  padding: 0 10px;
}
.medialab-filter-actions {
  display: grid;
  flex: 1 1 100%;
  gap: 10px;
  grid-template-columns: 1fr auto;
}
.medialab-filters select,
.medialab-filters button {
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  box-sizing: border-box;
  height: 42px;
  line-height: 1.2;
  margin: 0;
}
.medialab-filters select {
  background: #fff;
  color: #172033;
  line-height: 42px;
  padding: 0 10px;
}
.medialab-filters button,
.medialab-button {
  background: #16345f;
  border: 1px solid #16345f;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 38px;
  padding: 10px 12px;
  text-decoration: none;
  text-align: center;
  width: 100%;
}
.medialab-button:has(.medialab-button__size) {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto;
}
.medialab-button__size {
  font-size: 0.82em;
  justify-self: end;
  opacity: 0.8;
}
.medialab-button--secondary {
  background: #fff;
  color: #16345f;
}
.medialab-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
}
.medialab-card {
  border: 1px solid #dfe3e7;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.06);
  overflow: hidden;
  background: #fff;
}
.medialab-card__media {
  aspect-ratio: 1 / 1;
  background: #f4f5f7;
  display: grid;
  height: 320px;
  place-items: center;
  position: relative;
}
.medialab-card__media img,
.medialab-card__media video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.medialab-file-badge {
  align-items: center;
  color: #475569;
  display: grid;
  font-weight: 600;
  gap: 8px;
  justify-items: center;
  text-align: center;
}
.medialab-file-badge--pdf span {
  align-items: center;
  background: #fff;
  border: 2px solid #16345f;
  border-radius: 8px;
  color: #16345f;
  display: inline-flex;
  font-size: 1.6rem;
  font-weight: 800;
  height: 74px;
  justify-content: center;
  width: 62px;
}
.medialab-card__body {
  padding: 14px;
}
.medialab-card__body h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}
.medialab-card__body h3 a {
  color: #172033;
  text-decoration: none;
}
.medialab-card__placeholder {
  color: #667085;
  font-weight: 700;
  padding: 16px;
  text-align: center;
}
.medialab-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.medialab-card__tags span,
.medialab-primary-badge {
  background: #eef3f8;
  border-radius: 999px;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 9px;
}
.medialab-product-header {
  border-bottom: 1px solid #dfe5ee;
  padding-bottom: 18px;
}
.medialab-product-description {
  margin-top: 14px;
}
.medialab-asset-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
}
.medialab-asset-card__media {
  aspect-ratio: 1 / 1;
}
.medialab-lightbox-trigger {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: grid;
  height: 100%;
  padding: 0;
  place-items: center;
  width: 100%;
}
.medialab-primary-badge {
  background: #16345f;
  color: #fff;
  left: 10px;
  position: absolute;
  top: 10px;
}
.medialab-download-actions {
  margin-top: 12px;
}
.medialab-download-presets {
  list-style: none;
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
}
.medialab-lightbox {
  background: #111827;
  border: 0;
  border-radius: 8px;
  color: #fff;
  max-width: min(1100px, 92vw);
  padding: 18px;
}
.medialab-lightbox::backdrop {
  background: rgba(15, 23, 42, 0.72);
}
.medialab-lightbox img {
  display: block;
  max-height: 78vh;
  max-width: 100%;
  object-fit: contain;
}
.medialab-lightbox p {
  margin: 12px 44px 0 0;
}
.medialab-lightbox__close {
  background: #fff;
  border: 0;
  border-radius: 999px;
  color: #111827;
  cursor: pointer;
  font-weight: 700;
  height: 34px;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
}
.medialab-empty {
  background: #f6f8fb;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 18px;
}
@media (max-width: 640px) {
  .medialab-section-header {
    align-items: start;
    display: grid;
  }
  .medialab-card__media {
    height: min(320px, 76vw);
  }
  .medialab-filter-actions {
    grid-template-columns: 1fr;
  }
}
