.videos {
  padding: 30px 0;
}

.videos .title {
  margin-bottom: 16px;
}

.videos .tab-list {
  margin-bottom: -10px;
}

.videos .tab-list>li {
  padding: 6px 20px;
  margin: 0 10px 10px;
  border: 1px solid #ccc;
  cursor: pointer;
}

.videos .tab-list>li.active {
  color: #fff;
  border-color: var(--style-color);
  background-color: var(--style-color);
}

.videos .tab-content {
  margin-top: 20px;
}

.videos .row {
  margin-bottom: -20px;
}

.videos .row>div {
  margin-bottom: 20px;
}

.videos .img-wrap {
  position: relative;
  box-shadow: 1px 1px 3px 1px rgb(0, 0, 0, .3);
  cursor: pointer;
}

.videos .img-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .15);
}

.videos .img-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 228;
  display: block;
}

.videos .img-wrap i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 40px;
  z-index: 2;
}

.videos .tit {
  margin-top: 10px;
  font-weight: bold;
  text-align: center;
}

.videos .video-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, .5);
  z-index: 1000;
  display: none;
}

.videos .video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  width: calc(100% - 60px);
  height: auto;
  aspect-ratio: 800 / 500;
  background: #eee;
}

.videos .video-wrap i {
  position: absolute;
  top: 2vw;
  right: 2vw;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 1200px) {
  .videos {
    padding: 64px 0;
  }

  .videos .title {
    margin-bottom: 32px;
  }

  .videos .tab-content {
    margin-top: 48px;
  }

  .videos .img-wrap::before {
    transition: opacity .3s;
  }

  .videos .img-wrap:hover::before {
    opacity: .3;
  }
}