.gallery {
  height: 800px;
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  user-select: none;
  position: relative;
}

.gallery * {
  box-sizing: border-box;
}

.gallery .swiper-container {
  width: 100%;
  height: 100%;
}

.gallery .gallery-thumbnails {
  width: 174px;
  height: 820px;
  margin-left: 5px;
  margin-top: -5px;
  margin-right: -15px;
  overflow: hidden;
  padding: 5px 15px 15px 15px;
}

.gallery .gallery-thumbnails #gallery-thumbnails-swiper {
  height: 100%;
  overflow: visible;
}

.gallery .gallery-thumbnails #gallery-thumbnails-swiper .swiper-slide {
  width: 100%;
  background: #fff;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #eee;
}

.gallery .gallery-thumbnails #gallery-thumbnails-swiper .swiper-slide:hover {
  background: #eee;
}

.gallery .gallery-thumbnails #gallery-thumbnails-swiper .swiper-slide:hover:after {
  opacity: 0;
}

.gallery .gallery-thumbnails #gallery-thumbnails-swiper .swiper-slide.active {
  border-color: #ddd;
  background: #eee;
}

.gallery .gallery-thumbnails #gallery-thumbnails-swiper .swiper-slide.active:after {
  opacity: 0;
}

.gallery .gallery-thumbnails #gallery-thumbnails-swiper .swiper-slide:after {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  content: ' ';
  transition: opacity 150ms;
}

.gallery .gallery-thumbnails #gallery-thumbnails-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.gallery .gallery-thumbnails #gallery-thumbnails-swiper .swiper-slide svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  color: #fff;
  transform: translateX(-50%) translateY(-50%);
}

.gallery .gallery-main {
  width: 640px;
  height: 100%;
  overflow: hidden;
  border: 1px solid #ddd;
  position: relative;
  top: -30px;
}

.gallery .gallery-main #gallery-main-swiper .swiper-slide {
  width: 100%;
  height: 100%;
  background: #fff;
}

.gallery .gallery-main #gallery-main-swiper .swiper-slide .video-js {
  width: 100%;
  height: 100%;
}

.gallery .gallery-main #gallery-main-swiper .swiper-slide img {
/*  width: 100%;*/
  height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery .gallery-main #gallery-main-swiper .swiper-slide video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  -webkit-user-drag: none;
}

.gallery .gallery-oversize {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -340px;
  top: 0;
  background: #fff;
  overflow: visible;
  border: 1px solid #eee;
  display: none;
  text-align: center;
  line-height: 320px;
}

.gallery .gallery-oversize[data-active="true"] {
  display: block;
}

.gallery .gallery-oversize .gallery-oversize-image {
  width: 100%;
  height: 100%;
  overflow: scroll;
  position: relative;
  -ms-overflow-style: none;
}

.gallery .gallery-oversize .gallery-oversize-image::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

.gallery .gallery-oversize img {
  width: 1600px;
  height: 1600px;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: contain;
}

.gallery .gallery-oversize .gallery-oversize-helper-box {
  position: absolute;
  left: -520px;
  top: 0;
  width: 160px;
  height: 160px;
  background: rgba(250, 176, 5, 0.3);
  border: 1px solid #fab005;
  z-index: 999;
  border-radius: 8px;
  pointer-events: none;
}


/* 竖向 */
.gallery[data-direction="horizontal"] {
  width: 700px;
  height: 650px;
  flex-direction: column-reverse;
}

.gallery[data-direction="horizontal"] .gallery-thumbnails {
  width: 520px;
  height: 114px;
  padding: 15px 10px 15px 10px;
  margin-right: -15px;
  margin-left: -10px;
  margin-top: 0;
}

.gallery[data-direction="horizontal"] .gallery-main {
  width: 640px;
  height: 500px;
}

.gallery-expand-left {
  position: absolute;
  top: 240px;
  right: 20px;
  padding: 0px;
  background: rgba(0, 0, 0, 0);
  z-index: 999;
  cursor: pointer;
  /*box-shadow: rgba(99, 99, 99, 0.2) 0 2px 8px 0;*/
  border-radius: 8px;
  transition: all 300ms;
}
.gallery-expand-left svg {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 300ms;
}



.gallery .gallery-main .gallery-expand {
  position: absolute;
  top: 240px;
  left: 20px;
  padding: 0px;
  background: rgba(0, 0, 0, 0);
  z-index: 999;
  cursor: pointer;
  /*box-shadow: rgba(99, 99, 99, 0.2) 0 2px 8px 0;*/
  border-radius: 8px;
  transition: all 300ms;
}

.gallery .gallery-main .gallery-expand svg {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 300ms;
}

.gallery .gallery-main .gallery-expand .gallery-expand-left:hover {
  /*box-shadow: rgba(99, 99, 99, 0.4) 0 2px 8px 0;*/
}

.gallery .gallery-main .gallery-expand .gallery-expand-left:active {
  /*box-shadow: rgba(99, 99, 99, 0.4) 0 2px 14px 0;*/
}

.gallery .gallery-main .gallery-expand .gallery-expand-left:hover svg {
  transform: scale(115%);
}
