@import url("../../globals.css");

.videos {
  position: relative;
  width: 100%;
  padding: 80px 32px;
  text-align: center;
}
.videos .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.videos .content {
  position: relative;
  display: flex;
  align-items: center;
}
.videos .list {
  width: 100% !important;
  display: flex;
  flex-direction: row;
  gap: 28px;
}

.videos .list.scroll {
  overflow-x: scroll;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.videos .list.scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.videos .list span {
  position: relative;
  min-width: calc(50% - 14px);
  width: 100%;
  height: auto;
  aspect-ratio: 646/405;
  border-radius: 4px;
  display: flex;
  align-items: center;
  background-color: #000;
}

.videos .list.scroll span {
  min-width: calc(100% / 3 - 18.7px);
}

.videos .list span div {
  display: none;
}
.videos .list span div,
.videos .list span iframe {
  border-radius: 4px;
  width: 100%;
  height: auto;
  aspect-ratio: 646/405;
  background-color: black;
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
}

.videos .list span div > button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  z-index: 5;
  border-radius: 4px;
  transition: background-color 500ms linear;
}
.videos .list span div > button:hover {
  background-color: #00000080;
}

.videos .list span .cover {
  border-radius: 4px;
  width: 100%;
  height: auto;
  aspect-ratio: 646/405;
  object-fit: cover;
}

.videos .list span > button {
  padding: 16px 24px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 4px;
  background-color: #0000004d;
  -webkit-transition: background-color 500ms linear;
  -ms-transition: background-color 500ms linear;
  transition: background-color 500ms linear;
}
.videos .list span > button:hover {
  padding: 15px 23px;
  border: 1px solid #5cf2fe;
  background-color: #00000080;
}

.videos .list span .play {
  position: absolute;
  top: calc(50% - 38.5px);
  left: calc(50% - 38.5px);
}

.videos .list span p {
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
}

.videos .list span h5,
.videos .list span p {
  position: relative;
  margin: 0px !important;
  color: #f4f6fd;
}

.videos .content .left,
.videos .content .shadow,
.videos .content .right {
  display: none;
}

@media (max-width: 1023px) {
  .videos .list.scroll span {
    min-width: calc(100% / 2 - 14px);
  }
}

@media (max-width: 767px) {
  .videos {
    padding: 48px 16px;
  }

  .videos .list {
    flex-direction: column;
    gap: 16px;
    padding: 0px;
  }

  .videos h2 {
    margin-bottom: 24px;
  }

  .videos .list span,
  .videos .list span .cover,
  .videos .list span iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 343/349;
    border-radius: 4px;
  }
  .videos .list span div > button {
    top: 16px;
    right: 16px;
  }

  .videos .list.scroll span {
    min-width: 100%;
  }
}
