@charset "UTF-8";
.video {
  padding: 120px 0 123px;
}
@media all and (max-width: 991px) {
  .video {
    padding: 38px 0 64px;
  }
}
.video .video-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 80px 30px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-bottom: 160px;
}
@media all and (max-width: 991px) {
  .video .video-list {
    gap: 43px;
    margin-bottom: 38px;
  }
}
.video .video-list li {
  width: calc((100% - 30px) / 2);
}
@media all and (max-width: 991px) {
  .video .video-list li {
    width: 100%;
  }
}
.video .video-card {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 14px;
}
@media all and (max-width: 991px) {
  .video .video-card {
    gap: 6px;
  }
}
@media all and (min-width: 992px) {
  .video .video-card:hover .img-wrap::before {
    opacity: 0.4;
  }
  .video .video-card:hover .video-card-body .card-title {
    color: #462897;
  }
  .video .video-card:hover .video-card-body .card-des {
    color: #462897;
  }
  .video .video-card:hover .play-btn {
    background-color: rgba(163, 163, 163, 0.4);
  }
}
.video .video-card .video-cover {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  background: url("../images/common/default.webp") center/cover no-repeat;
  border-radius: 20px;
  overflow: hidden;
}
@media all and (max-width: 991px) {
  .video .video-card .video-cover {
    border-radius: 10px;
  }
}
.video .video-card .video-cover::after {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 100%;
  height: 100%;
  background-color: white;
  opacity: 0;
  -webkit-transition: opacity 0.4s ease;
  transition: opacity 0.4s ease;
}
@media all and (max-width: 991px) {
  .video .video-card .video-cover::after {
    display: none;
  }
}
.video .video-card .video-img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: url("../images/common/default.webp") center/contain no-repeat;
  overflow: hidden;
}
@media all and (max-width: 991px) {
  .video .video-card .video-img {
    border-radius: 10px;
    width: 100%;
    height: auto;
    aspect-ratio: 1/0.5625;
  }
}
.video .video-card .video-img img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center center;
     object-position: center center;
}
.video .video-card .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #462897;
  -webkit-transition: background-color 0.4s ease;
  transition: background-color 0.4s ease;
}
@media all and (max-width: 991px) {
  .video .video-card .play-btn {
    max-width: 75px;
    width: 10vw;
    height: auto;
    aspect-ratio: 1;
  }
}
.video .video-card .play-btn::before {
  position: absolute;
  content: "";
  width: 50px;
  height: 50px;
  -webkit-mask: url("../images/common/play.svg") center/contain no-repeat;
          mask: url("../images/common/play.svg") center/contain no-repeat;
  background-color: #fff;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}
@media all and (max-width: 991px) {
  .video .video-card .play-btn::before {
    max-width: 40px;
    width: 6vw;
  }
}
.video .video-card .video-card-body {
  width: 100%;
}
.video .video-card .video-card-body .card-title {
  color: #222222;
  padding-top: 9px;
  -webkit-transition: color 0.4s ease;
  transition: color 0.4s ease;
}
.video .video-card .video-card-body .card-title span {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  height: 4.5em;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 第幾行要顯示點點點 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  height: 100%;
  max-height: 4.5em;
}
@media all and (max-width: 991px) {
  .video .video-card .video-card-body .card-title span {
    font-size: 16px;
    line-height: 1.4;
    max-height: unset;
    height: auto;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }
}
.video .video-card .video-card-body .card-des {
  padding-top: 9px;
  -webkit-transition: color 0.4s ease;
  transition: color 0.4s ease;
}
@media all and (max-width: 991px) {
  .video .video-card .video-card-body .card-des {
    padding-top: 5px;
  }
}
.video .video-card .video-card-body .card-des span {
  font-size: 16px;
  line-height: 1.8;
  height: 5.4em;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 第幾行要顯示點點點 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  height: 100%;
  max-height: 5.4em;
}
@media all and (max-width: 991px) {
  .video .video-card .video-card-body .card-des span {
    font-size: 14px;
    line-height: 1.6;
    max-height: unset;
    height: auto;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }
}

.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 100;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.video-modal.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.video-modal .modal {
  position: relative;
  width: 65%;
  max-width: 960px;
}
@media all and (max-width: 991px) {
  .video-modal .modal {
    width: 100%;
    background-color: #fff;
    max-height: 80vh;
  }
}
.video-modal .video-modal-close {
  position: absolute;
  top: -48px;
  right: -48px;
  cursor: pointer;
  width: 48px;
  height: 48px;
}
@media all and (max-width: 991px) {
  .video-modal .video-modal-close {
    top: auto;
    right: 0;
    bottom: calc(100% + 4px);
    width: 24px;
    height: 24px;
  }
}
.video-modal .video-modal-close .close {
  position: relative;
  width: 100%;
  height: 100%;
}
.video-modal .video-modal-close .close::before, .video-modal .video-modal-close .close::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #fff;
  top: 50%;
  left: 50%;
}
@media all and (max-width: 991px) {
  .video-modal .video-modal-close .close::before, .video-modal .video-modal-close .close::after {
    width: 18px;
  }
}
.video-modal .video-modal-close .close::before {
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
          transform: translate(-50%, -50%) rotate(45deg);
}
.video-modal .video-modal-close .close::after {
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
          transform: translate(-50%, -50%) rotate(-45deg);
}
.video-modal .modal-content {
  width: 100%;
}
.video-modal .video-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: url("../images/common/default.webp") center/cover no-repeat;
}
.video-modal .video-cover .video-img {
  width: 100%;
  height: 100%;
}
.video-modal .video-cover .video-img img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}
.video-modal .video-cover .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #462897;
  cursor: pointer;
  -webkit-transition: background-color 0.4s ease;
  transition: background-color 0.4s ease;
}
@media all and (max-width: 991px) {
  .video-modal .video-cover .play-btn {
    max-width: 75px;
    width: 10vw;
    height: auto;
    aspect-ratio: 1;
  }
}
.video-modal .video-cover .play-btn::before {
  position: absolute;
  content: "";
  width: 50px;
  height: 50px;
  -webkit-mask: url("../images/common/play.svg") center/contain no-repeat;
          mask: url("../images/common/play.svg") center/contain no-repeat;
  background-color: #fff;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}
@media all and (max-width: 991px) {
  .video-modal .video-cover .play-btn::before {
    max-width: 40px;
    width: 6vw;
    height: auto;
    aspect-ratio: 1;
  }
}
@media all and (min-width: 992px) {
  .video-modal .video-cover .play-btn:hover {
    background-color: rgba(163, 163, 163, 0.4);
  }
}
.video-modal .video-cover #modalIframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}
.video-modal .video-card-body {
  display: none;
}

.video-page ~ footer {
  background-color: #fff;
}
@media all and (max-width: 991px) {
  .video-page ~ footer .footer {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
}
.video-page ~ footer .social-list a {
  background-color: #222222;
}
@media all and (min-width: 992px) {
  .video-page ~ footer .social-list a:hover {
    background-color: #462897;
  }
}
.video-page ~ footer .copyright {
  color: #222222;
}