.magniview,
.magniview-close-area {
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
}
.magniview.active,
.magniview.active .magniview-image img,
.magniview.active .magniview-video video {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.magniview,
.magniview-image img,
.magniview-video video,
.mini-item {
  transition-duration: 0.35s;
}
.magniview {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  z-index: 99999999999;
}
.magniview.active {
  opacity: 1;
}
.magniview-close-area {
  position: absolute;
}
.magniview-tools-field {
  border-radius: 4px;
  align-items: center;
  background-color: #fff;
  display: flex;
  gap: 16px;
  justify-content: end;
  padding: 16px;
  position: absolute;
  right: 0px;
  top: 48px;
}
.magniview-rotate-field {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: center;
}
.magniview-tools-field svg {
  width: auto !important;
}
.magniview-close,
.magniview-download,
.magniview-fullscreen,
.magniview-in-image,
.magniview-out-image,
.magniview-rotate-clockwise,
.magniview-rotate-counter {
  align-items: center;
  cursor: pointer;
  display: flex;
  height: 20px;
  justify-content: center;
  width: 20px;
}
.magniview-next-button,
.magniview-prev-button {
  background-color: #fff;
  border-radius: 100%;
  cursor: pointer;
  display: none;
  height: 40px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  z-index: 1e24;
}
.magniview-prev-button {
  align-items: center;
  justify-content: center;
  left: 40px;
  transition: left 0.5s ease;
}
.magniview-next-button {
  align-items: center;
  justify-content: center;
  right: 40px;
  transition: right 0.5s ease;
}
.magniview-next-button:hover {
  right: 35px;
}
.magniview-prev-button:hover {
  left: 35px;
}
.magniview-next-button.hidden,
.magniview-prev-button.hidden {
  display: none !important;
}
.magniview-image,
.magniview-video {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  margin: auto;
  max-height: 600px;
  max-width: 1420px;
  overflow: hidden;
  pointer-events: none;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
  z-index: -1;
}
.magniview-image img,
.magniview-video video {
  height: inherit;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
  width: auto;
}
.magniview-gallery-list {
  align-items: center;
  bottom: 0px;
  display: flex;
  gap: 16px;
  justify-content: center;
  left: 50%;
  margin-left: auto;
  margin-right: auto;
  max-width: 1420px;
  position: absolute;
  transform: translateX(-50%);
  width: 100%;
}
.mini-item {
  border-radius: 4px;
  cursor: pointer;
  height: 80px;
  overflow: hidden;
  position: relative;
  transform: translateY(0);
  transition: width 0.5s ease;
  -webkit-user-select: none;
  user-select: none;
  width: 80px;
}
.mini-item.active {
  pointer-events: none;
  width: 150px;
}
.mini-item img,
.mini-item video {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}
.magniview-preloader {
  align-items: center;
  display: none;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
}
.spinner {
  animation: spin 1s linear infinite;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #333;
  height: 40px;
  width: 40px;
}
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
.magniview-download {
	display: none;
}
@media (max-width: 460px) {
	.magniview-image {
		max-height: calc(100% - 76px) !important;
		max-width: 100% !important;
	}
	.magniview-tools-field{
		position: absolute !important;
		top: 0px !important;
		background-color: #fff5;
	}
	.magniview-tools-field svg, .magniview-tools-field svg path{
		stroke: red !important;
	}
	.magniview-tools-field .magniview-fullscreen svg, .magniview-tools-field .magniview-in-image svg, .magniview-tools-field .magniview-out-image path , .magniview-tools-field .magniview-close path{
		fill: red !important;
	}
}
@media (max-width: 1440px) {
  .magniview {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .magniview-image,
  .magniview-video {
    position: absolute;
    top: 0px;
    max-height: 480px;
    max-width: calc(100% - 100px);
  }
  .magniview-prev-button {
    left: 20px;
  }
  .magniview-prev-button:hover {
    left: 15px;
  }
  .magniview-next-button {
    right: 20px;
  }
  .magniview-next-button:hover {
    right: 15px;
  }
}
@media (max-width: 1024px) {
  .magniview-image,
  .magniview-video {
    max-height: 300px;
    max-width: calc(100% - 80px);
  }
  .magniview-gallery-list {
    bottom: 0px;
    justify-content: normal;
    max-width: calc(100% - 90px);
    overflow-x: auto;
    overflow-y: hidden;
  }
  .mini-item {
    height: 60px;
    min-width: 60px;
    transition: min-width 0.5s ease;
  }
  .mini-item.active {
    min-width: 100px;
    transform: translateY(0) !important;
  }
  .magniview-tools-field {
    align-items: center;
    display: flex;
    justify-content: center;
    left: 0 !important;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    right: 0 !important;
    top: 30px !important;
    width: fit-content;
  }
  .magniview-youtube {
    height: 100%;
    width: 100%;
  }
}
.magniview-caption {
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  bottom: 20px;
  color: #fff;
  font-size: 14px;
  left: 50%;
  max-width: 80%;
  padding: 8px 15px;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
}
@media (max-width: 768px) {
  .magniview-caption {
    bottom: 10px;
    font-size: 12px;
    max-width: 80%;
    width: 100%;
  }
}
