.video-container {
  padding-top: 5.99vw;
  padding-bottom: 4.17vw;
  background-color: #fff;
  position: relative;
  z-index: 1;
}

.video-container .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.video-container .header .left {
  line-height: 1;
}

.video-container .header .left .title {
  font-size: 2.29vw;
  font-weight: 700;
}

.video-container .header .left .desc {
  margin-top: 1.67vw;
  font-size: 1.15vw;
}

.video-filter {
  position: relative;
}

.video-filter-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 15.05vw;
  height: 3.44vw;
  line-height: 1;
  padding-left: 1.51vw;
  padding-right: 1.77vw;
  background-color: #f7f9fd;
  border: 1px solid #d7dfe2;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
}

.video-filter-trigger img {
  width: 1.15vw;
  transition: transform 0.2s linear;
}

.video-filter.is-open .video-filter-trigger img {
  transform: rotate(180deg);
}

.video-filter-menu {
  position: absolute;
  top: calc(100% + .42vw);
  right: 0;
  width: 100%;
  min-width: 15.05vw;
  background-color: #fff;
  border: 1px solid #d7dfe2;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-.42vw);
  transition: opacity 0.2s linear, visibility 0.2s linear, transform 0.2s linear;
  z-index: 20;
}

.video-filter.is-open .video-filter-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.video-filter-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-filter-menu li a {
  display: block;
  padding: .94vw 1.51vw;
  color: #333;
  font-size: .94vw;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s linear, background-color 0.2s linear;
}

.video-filter-menu li a:hover,
.video-filter-menu li a.is-active {
  color: #2d77d9;
  background-color: #f7f9fd;
}

html.is-video-modal-open,
body.is-video-modal-open {
  overflow: hidden;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  --modal-edge: 3.13vw;
  --modal-close-size: 2.08vw;
  --modal-close-gap: 1.56vw;
  padding: var(--modal-edge);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s linear, visibility 0.25s linear;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.video-modal-mask {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.72);
}

.video-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: min(62.5vw, calc(100vw - var(--modal-edge) * 2));
  max-height: calc(100dvh - var(--modal-edge) * 2);
}

.video-modal-close {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  flex-shrink: 0;
  width: var(--modal-close-size);
  height: var(--modal-close-size);
  margin-bottom: var(--modal-close-gap);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.video-modal-close::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: #fff;
  mask: url('../images/close-icon.svg') no-repeat center / contain;
  -webkit-mask: url('../images/close-icon.svg') no-repeat center / contain;
}

.video-modal-body {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  max-height: calc(100dvh - var(--modal-edge) * 2 - var(--modal-close-size) - var(--modal-close-gap));
  background-color: #000;
  overflow: hidden;
}

.video-modal-body video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background-color: #000;
}

.video-list {
  margin-top: 3.65vw;
}

.video-featured {
  display: grid;
  grid-template-columns: 58.54vw 28.54vw;
  grid-template-rows: 16.04vw 16.04vw;
  gap: 1.46vw;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 28.54vw);
  gap: 1.46vw;
  margin-top: 3.85vw;
}

.video-card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}

.video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
  pointer-events: none;
}

.video-card .cover {
  position: absolute;
  inset: 0;
}

.video-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card .mask {
  position: absolute;
  bottom: 0;
  height: 6.56vw;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgb(0, 0, 0) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.35s ease;
}

.video-card .info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: absolute;
  inset: 0;
  z-index: 2;
  line-height: 1;
  pointer-events: none;
}

.video-card .info>.head {
  position: static;
  width: 100%;
}

.video-card .info>.head .title,
.video-card .info>.head>img {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.video-card .info>.head .title {
  transform: translate(-12.19vw, 5.11vw);
  font-size: .83vw;
  line-height: 1;
  padding-bottom: .52vw;
  box-sizing: border-box;
  min-width: 0;
  max-width: calc(100% - 2.08vw - 2.4vw - 0.52vw - 2.08vw);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.video-card .info>.head>img {
  width: 2.4vw;
  height: 2.4vw;
  display: block;
  transform: translate(9.79vw, 4.21vw);
}

.video-card .info>.head .title::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, .5);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.video-card.is-large .info>.head::after,
.video-featured .video-card:not(.is-large) .info>.head::after {
  content: none;
}

.video-card.is-large .mask {
  height: 13.65vw;
}

.video-card .info:not(:has(.bottom))>.head .title::after {
  display: none;
}

.video-card .info .bottom {
  padding: 0 2.08vw 2.08vw;
  min-width: 0;
  overflow: hidden;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card .info .bottom .desc {
  display: block;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-card.is-large {
  grid-row: 1 / 3;
  width: 58.54vw;
  height: 33.54vw;
}

.video-featured .video-card:not(.is-large) {
  width: 28.54vw;
  height: 16.04vw;
}

.video-card.is-large .info .bottom {
  padding: 0 calc(2.08vw + 4.54vw + 0.52vw) 2.4vw 2.08vw;
}

.video-card.is-large .info>.head .title {
  transform: translate(-27.19vw, 10.26vw);
  font-size: 1.35vw;
  font-weight: 700;
  max-width: calc(100% - 2.08vw - (2.08vw + 4.54vw + 0.52vw));
}

.video-card.is-large .info>.head>img {
  width: 3.54vw;
  height: 3.54vw;
  transform: translate(23.65vw, 10.645vw);
}

.video-card.is-large .info .bottom .desc {
  font-size: 0.94vw;
}


.video-featured .video-card:not(.is-large) .info .bottom {
  padding: 0 calc(2.08vw + 2.8vw + 0.52vw) 1.61vw 2.03vw;
}

.video-featured .video-card:not(.is-large) .info>.head .title {
  transform: translate(-12.24vw, 3.23vw);
  font-size: .94vw;
  font-weight: 700;
  max-width: calc(100% - 2.03vw - (2.08vw + 2.8vw + 0.52vw));
}

.video-featured .video-card:not(.is-large) .info>.head>img {
  transform: translate(9.79vw, 3.62vw);
}

.video-featured .video-card:not(.is-large) .info .bottom .desc {
  font-size: .78vw;
}

.video-grid .video-card {
  width: 28.54vw;
  height: 16.04vw;
}

@media screen and (min-width: 1021px) {

  .video-card.is-large .info>.head .title::after,
  .video-featured .video-card:not(.is-large) .info>.head .title::after {
    display: none;
  }

  .video-card.is-large .info>.head::after,
  .video-featured .video-card:not(.is-large) .info>.head::after {
    content: '';
    position: absolute;
    top: 49%;
    left: 2.08vw;
    right: calc(2.08vw + 2.8vw + 0.52vw);
    height: 1px;
    background: rgba(255, 255, 255, .5);
    transition: opacity 0.35s ease;
    pointer-events: none;
    transform: translateY(4.85vw);
  }

  .video-card.is-large .info>.head::after {
    right: calc(2.08vw + 4.54vw + 0.52vw);
    transform: translateY(12.65vw);
  }

  .video-featured .video-card:not(.is-large) .info>.head::after {
    left: 2.03vw;
    transform: translateY(4.9vw);
  }

  .video-card:hover::after {
    opacity: 1;
  }

  .video-card:hover .cover img {
    transform: scale(1.05);
  }

  .video-card:hover .mask {
    opacity: 0;
  }

  .video-card:hover .info>.head .title::after,
  .video-card:hover .info>.head::after {
    opacity: 0;
  }

  .video-card:hover .info .bottom {
    opacity: 0;
    visibility: hidden;
    transform: translateY(1vw);
  }

  .video-card:hover .info>.head>img {
    transform: translate(-50%, calc(-50% - 1.2vw));
  }

  .video-card:hover .info>.head .title {
    transform: translate(-50%, calc(-50% + 1.35vw));
    white-space: nowrap;
    max-width: calc(100% - 4.16vw);
  }

  .video-card.is-large:hover .info>.head>img {
    transform: translate(-50%, calc(-50% - 1.77vw));
  }

  .video-card.is-large:hover .info>.head .title {
    transform: translate(-50%, calc(-50% + 2.03vw));
    max-width: calc(100% - 4.16vw);
  }

  .video-featured .video-card:not(.is-large):hover .info>.head>img {
    transform: translate(-50%, calc(-50% - 1.2vw));
  }

  .video-featured .video-card:not(.is-large):hover .info>.head .title {
    transform: translate(-50%, calc(-50% + 1.35vw));
    white-space: nowrap;
    max-width: calc(100% - 4.06vw);
  }

  .video-grid .video-card:hover .info>.head>img {
    transform: translate(-50%, calc(-50% - 1.2vw));
  }

  .video-grid .video-card:hover .info>.head .title {
    transform: translate(-50%, calc(-50% + 1.35vw));
    white-space: nowrap;
    max-width: calc(100% - 4.16vw);
  }
}

.pagination {
  background-color: #fff;
}

@media screen and (max-width: 1020px) {
  .video-container {
    padding-top: var(--m-section-py);
    padding-bottom: 0;
  }

  .video-container .header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--m-space-md);
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0 var(--m-space-md);
    box-sizing: border-box;
  }

  .video-container .header .left .title {
    font-size: var(--m-font-h1);
    line-height: 1.3;
  }

  .video-container .header .left .desc {
    margin-top: var(--m-space-xs);
    font-size: var(--m-font-h3);
    line-height: 1.75;
  }

  .video-filter {
    width: 100%;
  }

  .video-filter-trigger {
    width: 100%;
    height: var(--m-btn-h);
    padding-left: var(--m-space-md);
    padding-right: var(--m-space-md);
    font-size: var(--m-font-body);
    border-radius: var(--m-radius);
  }

  .video-filter-trigger img {
    width: 4.267vw;
    height: auto;
    flex-shrink: 0;
  }

  .video-filter-menu {
    min-width: 100%;
  }

  .video-filter-menu li a {
    padding: var(--m-space-md);
    font-size: var(--m-font-body);
  }

  .video-list {
    width: 100vw;
    max-width: 100vw;
    margin-top: var(--m-gap-block);
    margin-left: calc(50% - 50vw);
    padding: 0 var(--m-space-md) var(--m-space-md);
    box-sizing: border-box;
  }

  .video-featured {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: var(--m-space-sm);
  }

  .video-card.is-large,
  .video-featured .video-card:not(.is-large),
  .video-grid .video-card {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .video-featured .video-card .mask {
    height: 58%;
  }

  .video-grid .video-card .mask {
    height: 42%;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: var(--m-space-sm);
    margin-top: var(--m-gap-block);
  }

  .video-card .info {
    gap: var(--m-space-3xs);
    padding: 0 var(--m-space-md) var(--m-space-md);
    box-sizing: border-box;
    min-width: 0;
  }

  .video-card .info>.head {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    padding-right: calc(var(--m-icon-md) + var(--m-space-xs));
    box-sizing: border-box;
    flex-shrink: 1;
    position: relative;
  }

  .video-card .info>.head .title,
  .video-card.is-large .info>.head .title,
  .video-featured .video-card:not(.is-large) .info>.head .title {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    will-change: auto;
    padding-bottom: 0;
    font-size: var(--m-font-body);
    font-weight: 700;
  }

  .video-card .info>.head>img,
  .video-card.is-large .info>.head>img,
  .video-featured .video-card:not(.is-large) .info>.head>img {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    will-change: auto;
    width: auto;
  }

  .video-grid .video-card .info>.head {
    display: flex;
    align-items: center;
    gap: var(--m-space-3xs);
    overflow: visible;
    padding-right: 0;
  }

  .video-grid .video-card .info>.head .title {
    flex: 1;
    min-width: 0;
    width: auto;
    max-width: none;
    font-size: var(--m-font-h3);
    line-height: 1.2;
  }

  .video-grid .video-card .info>.head>img {
    position: static;
    transform: none;
    flex-shrink: 0;
    width: 8vw;
    height: 8vw;
  }

  .video-card.is-large .info,
  .video-featured .video-card:not(.is-large) .info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    row-gap: var(--m-space-3xs);
    column-gap: var(--m-space-xs);
    align-content: end;
    align-items: center;
    --video-m-text-max: 100%;
  }

  .video-card.is-large .info>.head,
  .video-featured .video-card:not(.is-large) .info>.head,
  .video-card.is-large .info .bottom,
  .video-featured .video-card:not(.is-large) .info .bottom {
    display: contents;
    padding: 0;
    position: static;
    min-width: 0;
    overflow: visible;
  }

  .video-card.is-large .info>.head .title,
  .video-featured .video-card:not(.is-large) .info>.head .title {
    grid-column: 1;
    grid-row: 1;
    font-size: var(--m-font-h3);
    line-height: 1.2;
    width: 100%;
    max-width: var(--video-m-text-max);
  }

  .video-card.is-large .info .bottom .desc,
  .video-featured .video-card:not(.is-large) .info .bottom .desc {
    grid-column: 1;
    grid-row: 2;
    font-size: var(--m-font-sm);
    line-height: 1.4;
    width: 100%;
    max-width: var(--video-m-text-max);
  }

  .video-card.is-large .info>.head>img,
  .video-featured .video-card:not(.is-large) .info>.head>img {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    position: static;
    transform: none;
    flex-shrink: 0;
    width: 9.6vw;
    height: 9.6vw;
    margin-top: 0;
  }

  .video-card .info>.head .title,
  .video-card .info .bottom .desc {
    display: block;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .video-card.is-large .info>.head .title::after,
  .video-featured .video-card:not(.is-large) .info>.head .title::after {
    display: none;
  }

  .video-card:hover .cover img {
    transform: none;
  }

  .video-modal {
    --modal-edge: var(--m-space-md);
    --modal-close-size: 6.4vw;
    --modal-close-gap: 4vw;
    padding: var(--modal-edge);
  }

  .video-modal-dialog {
    max-width: calc(100vw - var(--modal-edge) * 2);
    max-height: calc(100dvh - var(--modal-edge) * 2);
  }

  .video-modal-body {
    max-width: 100%;
    max-height: calc(100dvh - var(--modal-edge) * 2 - var(--modal-close-size) - var(--modal-close-gap));
  }

  .video-modal-body video {
    max-width: 100%;
    max-height: 100%;
  }

  .video-modal-close {
    width: var(--modal-close-size);
    height: var(--modal-close-size);
  }
}