.zhiting_process_gallery_main {
  padding: 50px 116px;
  background: #ffffff;
}

.zhiting_process_gallery_main .container {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.zhiting-process-gallery-header {
  margin-bottom: 50px;
}

.zhiting-process-gallery-title {
  color: #000000;
  text-align: center;
  font-family: var(--zhiting-font-accent);
  font-size: 48px;
  font-weight: 700;
  line-height: normal;
}

.zhiting-process-gallery-title--gradient {
  background: var(--zhiting-accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.zhiting-process-gallery-panel {
  padding: 85px 111px;
  border-radius: 10px;
  background:
    linear-gradient(153.08deg, #5c5c5c 20.436%, #000000 82.65%),
    #090909;
}

.zhiting-process-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 334px);
  justify-content: space-between;
  gap: 111px 40px;
}

.zhiting-process-gallery-card {
  width: 334px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: #ffffff;
  cursor: pointer;
}

.zhiting-process-gallery-card-icon {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: flex-start;
  justify-content: flex-start;
}

.zhiting-process-gallery-card-icon img {
  width: auto;
  max-width: 36px;
  height: auto;
  max-height: 36px;
  object-fit: contain;
}

.zhiting-process-gallery-card-title {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  color: #ffffff;
  font-family: var(--zhiting-font-accent);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
}

.zhiting-process-gallery-card-title-text {
  color: #ffffff;
  transition: color 0.24s ease;
}

.zhiting-process-gallery-card-hover-icon {
  display: inline-flex;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.zhiting-process-gallery-card-hover-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.zhiting-process-gallery-card.is-active .zhiting-process-gallery-card-title-text,
.zhiting-process-gallery-card:hover .zhiting-process-gallery-card-title-text,
.zhiting-process-gallery-card:focus-visible .zhiting-process-gallery-card-title-text {
  background-image: var(--zhiting-accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.zhiting-process-gallery-card.is-active .zhiting-process-gallery-card-hover-icon,
.zhiting-process-gallery-card:hover .zhiting-process-gallery-card-hover-icon,
.zhiting-process-gallery-card:focus-visible .zhiting-process-gallery-card-hover-icon {
  opacity: 1;
  transform: translateX(0);
}

.zhiting-process-gallery-card-desc {
  display: block;
  margin-top: 20px;
  color: #ffffff;
  font-family: var(--zhiting-font-accent);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.zhiting-process-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.zhiting-process-gallery-modal[hidden] {
  display: none;
}

.zhiting-process-gallery-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.zhiting-process-gallery-modal-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: transparent;
}

.zhiting-process-gallery-modal-close {
  position: absolute;
  top: 58px;
  right: 78px;
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.zhiting-process-gallery-modal-close::before,
.zhiting-process-gallery-modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
}

.zhiting-process-gallery-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.zhiting-process-gallery-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.zhiting-process-gallery-modal-stage {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 94px 0 72px;
  box-sizing: border-box;
}

.zhiting-process-gallery-modal-main {
  width: 100vw;
  max-width: none;
  margin: 0 calc(50% - 50vw);
  overflow: hidden;
}

.zhiting-process-gallery-swiper {
  overflow: hidden;
}

.zhiting-process-gallery-swiper .swiper-wrapper {
  align-items: center;
}

.zhiting-process-gallery-swiper .swiper-slide {
  width: 1122px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zhiting-process-gallery-modal-slide-box {
  width: 523px;
  height: 558px;
  border-radius: 15px;
  overflow: hidden;
  background: #000000;
  transition: width 0.45s ease, height 0.45s ease;
}

.zhiting-process-gallery-modal-slide-box > img,
.zhiting-process-gallery-modal-slide-box > video,
.zhiting-process-gallery-modal-slide-box > iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
  object-position: center center;
  background: #000000;
}

.zhiting-process-gallery-modal-slide-box {
  position: relative;
}

.zhiting-process-gallery-modal-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  border: 0;
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.zhiting-process-gallery-modal-slide-box:not(.is-active-video) .zhiting-process-gallery-modal-play {
  display: none;
}

.zhiting-process-gallery-swiper .swiper-slide-active .zhiting-process-gallery-modal-slide-box.is-video:not(.is-playing) .zhiting-process-gallery-modal-play {
  display: block;
}

.zhiting-process-gallery-modal-play:hover,
.zhiting-process-gallery-modal-play:focus-visible {
  transform: translate(-50%, -50%) scale(1.04);
  opacity: 0.92;
}

.zhiting-process-gallery-modal-play img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: transparent !important;
  box-shadow: none !important;
}

.zhiting-process-gallery-swiper .swiper-slide-prev {
  justify-content: flex-end;
}

.zhiting-process-gallery-swiper .swiper-slide-next {
  justify-content: flex-start;
}

.zhiting-process-gallery-swiper .swiper-slide-active {
  z-index: 2;
}

.zhiting-process-gallery-swiper .swiper-slide-active .zhiting-process-gallery-modal-slide-box {
  width: 1122px;
  height: 630px;
}

.zhiting-process-gallery-modal-meta {
  width: min(1122px, calc(100vw - 32px));
  min-height: 97px;
  margin: 12px auto 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.zhiting-process-gallery-modal-caption {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  font-family: var(--zhiting-font-accent);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
}

.zhiting-process-gallery-modal-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 96px;
  margin-top: 44px;
}

.zhiting-process-gallery-modal-nav {
  width: 45px;
  height: 45px;
  border: 0;
  border-radius: 5px;
  padding: 0;
  position: relative;
  background: #ffffff;
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.zhiting-process-gallery-modal-nav::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.zhiting-process-gallery-modal-nav--prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.zhiting-process-gallery-modal-nav--next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.zhiting-process-gallery-modal-nav:hover,
.zhiting-process-gallery-modal-nav:focus-visible {
  background: linear-gradient(307deg, #ff9d00 -56.72%, #fe5a1a 100%);
  color: #ffffff;
}

body.zhiting-process-gallery-open {
  overflow: hidden;
}

@media screen and (max-width: 1600px) {
  .zhiting_process_gallery_main {
    padding-left: 48px;
    padding-right: 48px;
  }

  .zhiting-process-gallery-panel {
    padding-left: 72px;
    padding-right: 72px;
  }

  .zhiting-process-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 334px));
    gap: 88px 40px;
  }

  .zhiting-process-gallery-swiper .swiper-slide {
    width: 960px;
  }

  .zhiting-process-gallery-modal-slide-box {
    width: 448px;
    height: 478px;
  }

  .zhiting-process-gallery-swiper .swiper-slide-active .zhiting-process-gallery-modal-slide-box {
    width: 960px;
    height: 539px;
  }
}

@media screen and (max-width: 1199px) {
  .zhiting_process_gallery_main {
    padding: 50px 16px;
  }

  .zhiting-process-gallery-title {
    font-size: 40px;
  }

  .zhiting-process-gallery-panel {
    padding: 56px 40px 44px;
  }

  .zhiting-process-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 48px 40px;
  }

  .zhiting-process-gallery-card {
    width: auto;
  }

  .zhiting-process-gallery-modal-stage {
    padding: 110px 16px 48px;
    justify-content: center;
    overflow-y: auto;
  }

  .zhiting-process-gallery-modal-close {
    top: 28px;
    right: 28px;
  }

  .zhiting-process-gallery-swiper .swiper-slide {
    width: 760px;
  }

  .zhiting-process-gallery-modal-slide-box {
    width: 354px;
    height: 378px;
  }

  .zhiting-process-gallery-swiper .swiper-slide-active .zhiting-process-gallery-modal-slide-box {
    width: 760px;
    height: 427px;
  }
}

@media screen and (max-width: 991px) {
  .zhiting-process-gallery-title {
    font-size: 34px;
  }

  .zhiting-process-gallery-panel {
    padding: 40px 24px 36px;
  }

  .zhiting-process-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .zhiting-process-gallery-modal-controls {
    gap: 72px;
    margin-top: 32px;
  }

  .zhiting-process-gallery-swiper .swiper-slide {
    width: 620px;
  }

  .zhiting-process-gallery-modal-slide-box {
    width: 289px;
    height: 309px;
  }

  .zhiting-process-gallery-swiper .swiper-slide-active .zhiting-process-gallery-modal-slide-box {
    width: 620px;
    height: 349px;
  }
}

@media screen and (max-width: 767px) {
  .zhiting_process_gallery_main {
    padding: 40px 16px;
  }

  .zhiting-process-gallery-header {
    margin-bottom: 32px;
  }

  .zhiting-process-gallery-title {
    font-size: 30px;
  }

  .zhiting-process-gallery-panel {
    padding: 32px 18px 28px;
  }

  .zhiting-process-gallery-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .zhiting-process-gallery-card-title {
    margin-top: 12px;
    font-size: 20px;
  }

  .zhiting-process-gallery-card-desc {
    margin-top: 16px;
    font-size: 15px;
  }

  .zhiting-process-gallery-modal-close {
    top: 18px;
    right: 18px;
  }

  .zhiting-process-gallery-modal-shell {
    overflow-y: auto;
  }

  .zhiting-process-gallery-modal-stage {
    min-height: 100svh;
    padding: 72px 12px 24px;
    justify-content: center;
  }

  .zhiting-process-gallery-swiper .swiper-slide {
    width: calc(100vw - 24px);
  }

  .zhiting-process-gallery-swiper .swiper-slide:not(.swiper-slide-active) {
    opacity: 0;
  }

  .zhiting-process-gallery-modal-slide-box {
    width: calc(100vw - 24px);
    height: calc((100vw - 24px) * 630 / 1122);
  }

  .zhiting-process-gallery-modal-caption {
    font-size: 18px;
    line-height: 1.35;
  }

  .zhiting-process-gallery-modal-controls {
    gap: 24px;
    margin-top: 18px;
  }

  .zhiting-process-gallery-modal-nav {
    width: 40px;
    height: 40px;
  }
}
