/* Videos Library */

.mp-videos-hero {
  margin-bottom: 0;
}

.mp-videos-hero .c-hero__wrap {
  min-height: 22rem;
  align-items: flex-start;
  padding-top: 1rem;
}

.mp-videos-hero .c-hero__main {
  max-width: 42rem;
  align-self: flex-start;
}

.mp-videos-hero .c-breadcrumb {
  margin-bottom: 1.5rem;
}

.mp-videos-hero .c-hero__heading {
  margin-bottom: 0.75rem;
}

.mp-videos-hero .c-hero__lede {
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.mp-videos-hero .c-hero__search {
  max-width: 32rem;
}

.mp-videos-hero__submit {
  min-width: 3.25rem;
}

.mp-videos-content-wrap {
  position: relative;
  margin-top: 0;
  z-index: 2;
}

.mp-videos-library {
  padding: 2.5rem 0 0;
  background: transparent;
}

.mp-videos-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
}

@media (max-width: 960px) {
  .mp-videos-hero .c-hero__wrap {
    min-height: auto;
    padding-top: 0.75rem;
    padding-bottom: 1rem;
  }

  .mp-videos-hero .c-hero__media-wrap {
    min-height: 10rem;
    height: 10rem;
    flex: 0 0 10rem;
    background-size: cover;
    background-position: center center;
  }

  .mp-videos-hero .c-hero__main {
    padding-top: 0.5rem;
  }

  .mp-videos-hero .c-breadcrumb {
    margin-bottom: 0.75rem;
  }

  .mp-videos-hero .c-hero__heading {
    margin-bottom: 0.5rem;
  }

  .mp-videos-content-wrap {
    margin-top: 0;
  }

  .mp-videos-library {
    padding-top: 2rem;
  }

  .mp-videos-layout {
    grid-template-columns: 1fr;
  }
}

.mp-filters {
  height: fit-content;
  padding-right: 1rem;
}

.mp-filters__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mp-filters__title {
  margin: 0;
  font-weight: 700;
}

.mp-filters__clear {
  text-decoration: underline;
}

.mp-facets {
  margin: 0;
  padding: 0;
}

.mp-filters .c-facet {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mp-facets > li:first-child .c-facet {
  border-top: 0;
  padding-top: 0;
}

.mp-filters .c-facet[open] {
  padding-bottom: 0;
}

.mp-filters .c-facet + .c-facet {
  margin-top: 0.25rem;
}

.mp-filters .c-facet__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.mp-filters .c-facet__toggle:focus,
.mp-filters .c-facet__toggle:focus-visible,
.mp-filters .c-facet__toggle:active {
  outline: none;
  box-shadow: none;
  border: 0;
}

.mp-filters .c-facet[open] .c-facet__toggle {
  color: #006daf;
}

.mp-filters .c-facet__toggle::-webkit-details-marker {
  display: none;
}

.mp-filters .c-facet__toggle::marker {
  content: "";
}

.mp-facet__chevron {
  flex: 0 0 auto;
  width: 0.625rem;
  height: 0.625rem;
  margin-left: 0.75rem;
  opacity: 0.75;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.mp-filters .c-facet[open] .mp-facet__chevron {
  transform: rotate(-135deg);
}

.mp-filters .c-facet__list {
  margin: 0;
  padding: 0.125rem 0 0.875rem;
}

.mp-filters .c-facet:not([open]) .c-facet__list {
  display: none;
}

.mp-filters .c-facet__list li + li {
  margin-top: 0.625rem;
}

.mp-filters .c-facet__list label {
  display: inline-block;
  margin-left: 0.5rem;
  line-height: 1.3;
  cursor: pointer;
}

.mp-filters .c-checkbox {
  vertical-align: top;
  margin-top: 0.125rem;
}

.mp-filter-actions {
  margin-top: 1rem;
}

.mp-results__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.mp-results__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mp-results__controls .c-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #2f3c42;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.mp-results__controls .c-toggle__slider {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 1.25rem;
  border: 1px solid #d8e0e4;
  border-radius: 999px;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.mp-results__controls .c-toggle__slider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.16rem;
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 50%;
  background: #f0f4f6;
  box-shadow: inset 0 0 0 1px #d4dde2;
  transform: translate(0, -50%);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.mp-results__controls .c-toggle__checkbox:checked + .c-toggle__slider::after {
  transform: translate(1.08rem, -50%);
}

.mp-results__controls .c-toggle:focus-within .c-toggle__slider {
  border-color: #006daf;
  box-shadow: 0 0 0 2px rgba(0, 109, 175, 0.18);
}

.mp-results__controls .c-toggle__checkbox:focus-visible + .c-toggle__slider {
  border-color: #006daf;
  box-shadow: 0 0 0 2px rgba(0, 109, 175, 0.18);
}

.mp-results__size {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.mp-results__size select {
  padding: 0.5rem 0.625rem;
  border-radius: 0.75rem;
}

@media (max-width: 640px) {
  .mp-videos-hero .c-hero__wrap {
    min-height: auto;
  }

  .mp-videos-content-wrap {
    margin-top: 0;
  }

  .mp-videos-library {
    padding-top: 1.5rem;
  }

  .mp-results__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .mp-results__controls {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
}

.mp-video-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .mp-video-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .mp-video-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.mp-videos-library .mp-video-cards > .c-card {
  overflow: hidden;
  border-radius: 0.5rem;
}

.mp-videos-library .mp-video-cards > .c-card .c-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.mp-videos-library .mp-video-cards > .c-card .c-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-videos-library .mp-video-cards > .c-card .c-card__meta {
  margin: 0 0 0.5rem;
  color: #2b7d93;
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 500;
}

.mp-videos-library .mp-video-cards > .c-card .c-card__title {
  font-size: 0.9rem !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
}

.mp-video-cards--list {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.mp-videos-library .mp-video-cards--list > .c-card .c-card__wrapper {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  align-items: stretch;
}

.mp-videos-library .mp-video-cards--list > .c-card .c-card__image {
  width: 100%;
  max-width: 260px;
  height: 100%;
  justify-self: start;
}

.mp-videos-library .mp-video-cards--list > .c-card .c-card__primary {
  display: flex;
  align-items: center;
  padding: 1.5rem;
}

.mp-videos-library .mp-video-cards--list > .c-card .c-card__header {
  width: 100%;
}

.mp-videos-library .mp-video-cards--list > .c-card .c-card__title {
  font-size: 1.15rem !important;
}

@media (max-width: 767px) {
  .mp-videos-library .mp-video-cards--list > .c-card .c-card__wrapper {
    grid-template-columns: 1fr;
  }

  .mp-videos-library .mp-video-cards--list > .c-card .c-card__primary {
    padding: 1rem;
  }
}

.mp-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dbe4e8;
}

.mp-page {
  color: #006daf;
  text-decoration: none;
}

.mp-pagination__side {
  flex: 1 1 0;
}

.mp-pagination__side--next {
  display: flex;
  justify-content: flex-end;
}

.mp-page--nav {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  line-height: 1.2;
}

.mp-page__arrow {
  font-size: 1.4rem;
  line-height: 1;
}

.mp-pagination__status {
  margin: 0;
  color: #3d454a;
  font-size: 1rem;
  text-align: center;
}

.mp-page.is-disabled {
  color: #97a8b1;
  cursor: default;
}

@media (max-width: 640px) {
  .mp-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .mp-pagination__side,
  .mp-pagination__side--next {
    display: flex;
    justify-content: center;
  }
}
