.video-gallery-section {
  background: #f8f8f8;
  padding: 30px 0;
  padding-bottom: 90px;
}

.video-gallery-section__content {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.video-gallery-section__wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
}

.video-gallery-section__title {
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 40px;
  text-align: center;
}

.video-gallery-section__list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 35px;
}

.video-gallery-section__item {
  width: calc(100% / 3 - 25px);
  max-width: 440px;
  background: #ffffff;
  border-radius: 20px;
  padding: 18px 18px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-gallery-section__item-image {
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.video-gallery-section__item-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

.video-gallery-section__pause-overlay,
.video-gallery-section__play-overlay {
  position: absolute;
  width: 86px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
}

.video-gallery-section__pause-overlay {
  display: none;
}
.video-gallery-section__play-overlay {
  display: block;
}

.video-gallery-section__item.is-play .video-gallery-section__pause-overlay {
  display: block;
}
.video-gallery-section__item.is-play .video-gallery-section__play-overlay {
  display: none;
}

.video-gallery-section__pause-overlay img,
.video-gallery-section__play-overlay img {
  width: 100%;
}

.video-gallery-section__item-title {
  width: 100%;
  padding: 20px 10px;
  box-sizing: border-box;
  font-weight: bold;
  font-size: 20px;
  color: #1e293b;
}

/* 播放器铺满父盒子 300px高度 */
.video-gallery-section__player {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #000;
  box-sizing: border-box;
  display: none;
}

.video-gallery-section__player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-gallery-section__item.is-play .video-gallery-section__player {
  display: block;
}

.video-gallery-section__item-bottom {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}
.video-gallery-section__item-time {
  display: flex;
  align-items: center;
  font-weight: 400;
  font-size: 18px;
  color: #666666;
}
.video-gallery-section__item-time img {
  width: 23px;
  margin-right: 10px;
  flex-shrink: 0;
}

.video-gallery-section__pagination {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 50px;
  gap: 12px;
}
.video-gallery-section__pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.video-gallery-section__pagination ul li {
  list-style: none;
}
/* 圆形按钮 */
.video-gallery-section__pagination .page-numbers {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background: #fff;
  border-radius: 50%;
  font-weight: 400;
  font-size: 18px;
  color: #1e293b;
  text-align: center;
  text-decoration: none;
}
/* 当前激活页 橙色圆形 */
.video-gallery-section__pagination .page-numbers.current {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}
.video-gallery-section__pagination a.page-numbers:hover {
  background: #3b82f6;
  color: #fff;
} /* 省略号 */
.video-gallery-section__pagination .page-numbers.dots {
  line-height: 30px;
}
/* 禁用状态：第一页左箭头 / 最后一页右箭头 */
.video-gallery-section__pagination .page-numbers.disabled {
  color: #bbbbbb;
  background: #ffffff;
  cursor: not-allowed;
  pointer-events: none;
}
.video-gallery-section__pagination .page-numbers.prev {
  transform: rotate(180deg);
}

@media screen and (max-width: 760px) {
  .video-gallery-section__list {
    justify-content: center;
  }

  .video-gallery-section__item {
    width: 100%;
  }

  .video-gallery-section__item-image {
    height: auto;
  }

  .video-gallery-section__pagination ul {
    gap: 8px;
  }
}

@media screen and (min-width: 760px) and (max-width: 1020px) {
  .video-gallery-section__list {
    justify-content: center;
  }

  .video-gallery-section__item {
    width: 100%;
  }

  .video-gallery-section__item-image {
    height: auto;
  }
}

@media screen and (min-width: 1020px) and (max-width: 1350px) {
  .video-gallery-section__item {
    width: calc(100% / 2 - 25px);
  }
}
