@import url('../../styles/pagination.css');

.video-listing .applied-filters-container {
  margin-bottom: 3rem;
  margin-top: 0;
}

.video-listing .filter-dropdown-wrapper {
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 2rem;
  max-width: 400px;
  border: .15rem solid var(--secondary-color);
  box-shadow: none;
  border-radius: 1.5rem;
  padding: .5rem 1.25rem;
  font-weight: bold;
  cursor: pointer;
  transition: .2s;
  position: relative;
}

.video-listing .filter-dropdown-wrapper .toggle {
  position: absolute;
  right: 1.25rem;
  width: 20px;
  height: 5px;
  background-color: var(--secondary-color);
  border-radius: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.video-listing .filter-dropdown-wrapper .toggle::before {
  content: '';
  position: absolute;
  top: -.5em;
  left: .5em;
  width: 5px;
  height: 20px;
  background-color: var(--secondary-color);
  border-radius: 1rem;
}

.video-listing .filter-dropdown-wrapper.open .toggle::before {
  display: none;
}

.video-listing .filter-dropdown-wrapper:hover,
.video-listing .filter-dropdown-wrapper:focus {
  box-shadow: 0 0 1rem rgba(0 0 0 / 15%);
}

.video-listing .filter-dropdown-wrapper p {
  margin: 0;
}

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

.video-listing .video-listing-facets-wrapper {
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 3rem;
  border: .15rem solid var(--secondary-color);
  box-shadow: 0 0 1rem rgba(0 0 0 / 15%);
  border-radius: 1.5rem;
  padding: 1rem 1rem 2rem;
  display: none;
  max-width: 400px;
}

.video-listing .video-listing-facets-wrapper .applied-filters-container {
  margin-bottom: 0;
}

.video-listing .filter-dropdown-wrapper.open ~ .video-listing-facets-wrapper {
  display: flex;
}

.video-listing .video-listing-facets-wrapper > div {
  flex-basis: 100%;
  position: relative;
  z-index: 3;
}

.video-listing .video-listing-facets {
  color: var(--secondary-color);
  text-decoration: none;
  position: relative;
  width: 100%;
  background-color: var(--white);
  margin: 0 auto;
}

.video-listing .filters-actions .filters-apply-btn {
  padding-left: .5rem;
}

.video-listing .filters-actions .filters-apply-btn .apply-filter-btn {
  background-color: var(--primary-color) !important;
  color: var(--white);
  font-size: 1.15rem;
  border: .15em solid var(--primary-color);
  border-radius: 2rem;
  padding: .5rem .75rem;
  text-decoration: none;
  text-transform: none;
  width: auto;
  display: block;
  margin-top: .25rem;
  min-height: 45px;
}

.video-listing .filters-actions .filters-apply-btn .apply-filter-btn:hover,
.video-listing .filters-actions .filters-apply-btn .apply-filter-btn:focus {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}

.video-listing .filters-actions {
  display: flex;
  justify-content: center;
}

.video-listing .video-listing-facets-wrapper .filters-close {
  align-self: flex-end;
  position: relative;
  width: 20px;
  height: 3px;
  background-color: var(--secondary-hover);
  transform: rotate(45deg);
  margin: .25rem .25rem .5rem;
  flex-basis: auto;
  cursor: pointer;
}

.video-listing .filters-close::before {
  content: '';
  display: block;
  position: absolute;
  width: 20px;
  height: 3px;
  background-color: var(--secondary-hover);
  transform: rotate(-90deg);
  top: 0;
  left: 0;
}

.video-listing .video-listing-title-label {
  width: 100%;
  display: flex;
  border: 0;
  background: none;
  text-decoration: none;
  padding: 0.75rem 3rem 0.75rem 1rem;
  text-transform: none;
  font-weight: 600;
  font-size: 1.125rem;
}

.video-listing .video-listing-facets > button {
  width: 100%;
  display: flex;
  border: 0;
  background: none;
  text-decoration: none;
  padding: 0.75rem 3rem 0.75rem 1rem;
  text-transform: none;
  font-weight: 600;
  font-size: 1.125rem;
}

.video-listing .video-listing-facets svg {
  width: 20px;
  height: 20px;
  position: absolute;
  right: 1rem;
  stroke: var(--secondary-color);
}

.video-listing .video-listing-facets svg.rotate-180 {
  transform: rotate(180deg);
}

.video-listing .video-listing-facets > div {
  display: block;
  padding: 0 1rem 1rem;
}

.video-listing .video-listing-facets > div.video-listing-facets-divider {
  display: none;
}

.video-listing .video-listing-facets > div > .flex {
  position: relative;
  overflow: hidden;
}

.video-listing .video-listing-facets input[type="checkbox"] {
  position: absolute;
  left: -199rem;
}

.video-listing .video-listing-facets input[type="checkbox"] + label {
  color: var(--secondary-hover);
  font-weight: 600;
  padding: .45rem 1rem .45rem 1.5rem;
  display: block;
  line-height: 1;
  cursor: pointer;
}

.video-listing .video-listing-facets input[type="checkbox"] + label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1rem;
  height: 1rem;
  border: 0.15rem solid var(--light-grey);
  border-radius: 1rem;
  background: var(--light-grey);
  color: var(--light-grey);
}

.video-listing .video-listing-facets input[type="checkbox"] + label::after {
  content: '';
  position: absolute;
  background: var(--primary-color);
  border-radius: 1em;
  border: 0.15em solid var(--primary-color);
  color: var(--white);
  transition: all .15s;
  left: 0;
  top: 0.4rem;
  width: 1rem;
  height: 1rem;
  pad: .2rem;
  font-size: 100%;
  transform: scale(.1);
  opacity: 0;
}

.video-listing .video-listing-facets input[type="checkbox"]:checked + label::after {
  content: "✔";
  transform: scale(1);
  opacity: 1;
}

.video-listing .video-card {
  text-decoration: none;
  text-align: center;
  color: var(--secondary-hover);
  box-shadow: 0 0 1rem rgba(0 0 0 / 15%);
  border-radius: 1.5rem;
  overflow: hidden;
  background-color: var(--white);
}

.video-listing .video-card-img-wrapper {
  position: relative;
}

.video-listing .video-card-play {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  height: 100%;
  width: 100%;
}

.video-listing .video-card-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5rem;
  height: 5rem;
  color: #fff;
  border: none;
  border-radius: 100%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0.1rem .1rem .2rem rgba(0 0 0 / 33%));
  transition: color .2s;
  box-shadow: 0.05rem 0.05rem 0.2rem rgba(0 0 0 / 50%);
  overflow: hidden;
  opacity: 0.8;
}

.video-listing .video-card-play-button::before {
  display: block;
  content: '';
  background: white;
  box-shadow: 1.65rem 0 0.2rem -1.55rem rgba(0 0 0 / 50%);
  height: 5rem;
  width: 4rem;
  left: -2.2rem;
  position: absolute;
  z-index: 1;
}

.video-listing .video-card-play-button::after {
  display: block;
  content: '';
  border: none;
  height: 5rem;
  width: 5rem;
  position: absolute;
  top: -1rem;
  left: -3.7rem;
  transform: translate3d(0, 0, 0) scaleY(.6) rotate(-45deg);
  box-shadow: inset 0 0 0.3rem rgba(0 0 0 / 50%), 2rem 2rem 0 2rem white;
  margin: 1rem 1.3rem;
}

.video-listing .video-card-img-wrapper img {
  display: block;
}

.video-listing .video-card h3 {
  color: var(--secondary-hover);
  font-size: 1.5rem;
  line-height: normal;
  padding: 0 1rem;
}

.video-listing .video-card .button-container {
  padding-bottom: 1.5rem;
}

.video-listing .video-card .button {
  display: inline-flex;
}

.video-listing .video-modal {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.video-listing .video-modal .video-wrapper {
  position: relative;
	inset: auto;
	z-index: 1;
	margin: 0 auto;
	overflow-y: visible;
	background: transparent;
  height: 0;
  width: calc(100% - 1em);
  padding-top: calc((100% - 1em) * 0.5625);
}

.video-listing .video-modal .video-wrapper .video-close {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  top: -2rem;
  right: 0;
  cursor: pointer;
}

.video-listing .video-modal .video-wrapper .video-close:hover {
  opacity: .75;
}

.video-listing .video-modal .video-wrapper .video-close::after,
.video-listing .video-modal .video-wrapper .video-close::before {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  position: absolute;
  top: 0;
}

.video-listing .video-modal .video-wrapper .video-close::before {
  transform: rotate(45deg);
}

.video-listing .video-modal .video-wrapper .video-close::after {
  transform: rotate(-45deg);
}

.video-listing .video-modal .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-listing .video-modal .video-overlay {
  background-color: rgba(0 0 0 / 90%);
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  position: absolute;
  cursor: pointer;
}

@media (width >= 768px) {
  .video-listing .video-listing-facets-wrapper {
    max-width: none;
  }

  .video-listing .video-listing-inner {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .video-listing .video-listing-inner > div:first-child {
    flex-basis: 66.6666%;
    display: flex;
  }

  .video-listing .video-listing-inner > div:first-child .facet-option-container {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 1fr;
  }

  .video-listing .video-listing-facets {
    max-width: none;
    margin: 0;
  }

  .video-listing .video-cards-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-listing .video-modal .video-wrapper {
    width: calc(100% - 12em);
    padding-top: calc((100% - 12em) * 0.5625);
  }
}

@media (width >= 1024px) {
  .video-listing .video-listing-inner {
    max-width: 80%;
  }

  .video-listing .video-listing-inner > div:last-child {
    flex-basis: 33.3333%;
  }

  .video-listing .video-cards-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .video-listing .video-modal .video-wrapper {
    width: calc(100% - 32em);
    padding-top: calc((100% - 32em) * 0.5625);
  }
}