#e-gallery {
  height: 0;
  overflow: hidden;
}
#e-gallery.active {
  height: auto;
  overflow: unset;
}
#e-gallery.active .e-gallery-warpper {
  position: fixed;
  height: 100vh;
  opacity: 1;
}
.e-gallery-warpper {
  position: unset;
  display: flex;
  background-color: rgba(0, 0, 0, 0.9);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  height: 0;
  opacity: 0;
  transition: opacity 0.5s;
}
.e-gallery-warpper .btn {
  cursor: pointer;
}
.e-gallery-warpper .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 50px;
  padding: 0.5rem;
  color: white;
  font-size: 1rem;
  position: relative;
  background-color: rgba(0, 0, 0, 0.5);
}
.e-gallery-warpper .header .title {
  flex: 1;
}
.e-gallery-warpper .header .toolbar {
  flex: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.5rem 15px;
}
.e-gallery-warpper .header .toolbar .tips {
  white-space: nowrap;
}
.e-gallery-warpper .header .toolbar .btn {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  cursor: pointer;
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Chrome/Safari/Opera */
  -khtml-user-select: none;
  /* Konqueror */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
}
.e-gallery-warpper .body {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  overflow: scroll;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE10+ */
}
.e-gallery-warpper .body::-webkit-scrollbar {
  display: none;
  /* ChromeSafari */
}
.e-gallery-warpper .body .viewer {
  position: relative;
  max-height: 100%;
  max-width: 100%;
  height: 100%;
  flex: 1;
}
.e-gallery-warpper .body .viewer .content {
  transition: transform 0.5s ease-in-out;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: move;
}
.e-gallery-warpper .footer {
  width: 100%;
  padding: 15px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
}
.e-gallery-warpper .list-thumb {
  text-align: center;
  white-space: nowrap;
  overflow-x: scroll;
  scrollbar-width: none;
  /* firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
}
.e-gallery-warpper .list-thumb::-webkit-scrollbar {
  display: none;
}
.e-gallery-warpper .list-thumb .item {
  display: inline-block;
  width: 150px;
  opacity: 0.5;
  transition: all 0.5s;
  border: solid 1px transparent;
  flex-shrink: 0;
  cursor: pointer;
  margin: 0 0.5rem;
}
.e-gallery-warpper .list-thumb .item:hover {
  opacity: 1;
  border-color: #a54242;
}
.e-gallery-warpper .list-thumb .item.active {
  opacity: 1;
  border-color: #fff;
}
.e-gallery-warpper .list-thumb .item .item-warpper {
  width: 100%;
  height: 0;
  padding-bottom: 60%;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  position: relative;
}
.e-gallery-warpper .list-thumb .item .item-warpper.play {
  position: relative;
  background-color: #000;
}
.e-gallery-warpper .list-thumb .item .item-warpper.play::after {
  content: ' ';
  position: absolute;
  border: #fff 10px solid;
  border-left-width: 20px;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-right-color: transparent;
  left: 55%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.e-gallery-warpper .list-thumb .item img {
  max-width: 100%;
  object-fit: cover;
}
.btn-pic {
  z-index: 2;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}
.btn-pic.btn-next-pic {
  right: 32px;
}
.btn-pic.btn-pre-pic {
  left: 32px;
}
