.video-blurb {
  color: white;
  padding: 0 20px;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.25rem;
  margin-top: 160px;
  margin-bottom: 80px;
}

.video-blurb h1 {
  text-align: center;
}

@media (min-width: 1024px) {
  .video-blurb {
    font-size: 1.5rem;
  }
}

.video-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 80px;
  overflow: hidden;
}

.video-grid .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1200px) {
  .video-grid .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .video-grid {
    padding: 0 16px;
  }
  .video-grid .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .video-grid .grid {
    gap: 16px;
  }
}

.video-grid .grid .video {
  color: #f7e37e;
  font-weight: bold;
  padding: 50px 10px;
  border-radius: 20px;
  font-size: 1.3rem;
  border: 2px solid #ffd509;
  text-align: center;
  display: flex;
  text-decoration: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  font-family: var(--wp--preset--font-family--c-limelight);
}

.video-grid .grid .video > div {
  position: relative;
  text-shadow: 2px 2px 3px black;
}

.video-grid .grid .video > div::after {
  content: "";
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  width: 0px;
  height: 2px;
  background-color: #ffd509;
  transition:
    left 0.3s,
    width 0.3s;
}

.video-grid .grid .video:hover > div::after {
  left: 0%;
  width: 100%;
}

.video-grid .grid .video img {
  margin-bottom: 10px;
  width: 90%;
}

.video-grid .video::after {
  content: "";
  position: absolute;
  z-index: -1;
  background-image: url(../../../uploads/record.png);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  width: 92%;
  height: 92%;
  left: 4%;
  top: 4%;
  transition: all 0.3s;
  animation: rotate 1s linear infinite;
  animation-play-state: paused;
}

.video-grid .video:hover::after {
  animation-play-state: running;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.video-search-container {
  max-width: 760px;
  width: 100%;
}

@media (min-width: 768px) {
  .video-search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.video-search svg {
  height: 20px;
  margin-right: 20px;
  fill: #555;
}

.video-search {
  background: #fffc;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  padding: 0 25px;
  margin-bottom: 30px;
}

.video-search input {
  border: none;
  background: transparent;
  padding: 12px 0;
  outline: none !important;
  font: inherit;
}

.sort-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  color: white;
}

.sort-buttons {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
}

.sort-buttons input {
  display: none;
}

.sort-buttons label {
  padding: 8px 15px;
  background-color: white;
  color: black;
  cursor: pointer;
}

.sort-buttons label:hover {
  background-color: #e0e0e0;
}

.sort-buttons input:checked + label {
  background-color: #ffd509;
}
