.videoCard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}

.videoCard .content {
  padding: var(--gap-half);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--gap-half);
}

.videoCard .content h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

.videoCard .content p {
  font-size: 1rem;
  margin: 0;
  padding: 0;
  line-height: 1.25;
}

.videoCard iframe {
  width: 100%;
}

.videoCard img {
  width: 100%;
  height: 100%;
  cursor: pointer;
}
/* add a play button on the img */

.videoCard .embed .playButton {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: scale(3) translate(-25%, 45%);
  background: var(--gray-alpha);
  width: 25px;
  height: 25px;
  border-radius: 30%;
  cursor: pointer;
  color: var(--gray-alpha);
  z-index: 1;
}

.videoCard .embed {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wrapper {
  position: relative;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
  max-width: 100%;
}

.wrapper section {
  display: inline-block;
  height: 100%;
  /* transform: translateY(min(0, -50%)); */
}

.wrapper aside {
  z-index: 1;
  position: sticky;
  width: 200px;
  top: calc(var(--header-height) + var(--gap));
  vertical-align: top;
  background-color: var(--lighter-gray);
  border-color: var(--link);
  border-radius: 6px 6px 6px 3px;
  padding: var(--gap);
  border-left: 3px solid var(--link);
  /* display: inline-block; */
  float: left;
  margin: 0 -250px;
}

.wrapper aside .icon {
  position: absolute;
  top: 0px;
  left: 0px;
  transform: translate(calc(-50% - 1.5px), -50%);
  padding: 4px;
  background: var(--bg);
  border-radius: 50%;
}

.badges {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--gap-half);
}

@media (max-width: 768px) {
  .videoCard .embed .playButton {
    top: 60%;
  }
}

@media (max-width: 480px) {
  .videoCard .embed .playButton {
    top: 80%;
  }

  .tags {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
  }
}

@media (max-width: 1250px) {
  .wrapper {
    flex-direction: column;
  }

  .wrapper aside {
    position: relative;
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: none;
    top: 0;
    margin-bottom: var(--gap-half);
  }
}
