:root {
  --rv-image-preview-index-text-color: var(--rv-white);
  --rv-image-preview-index-font-size: var(--rv-font-size-md);
  --rv-image-preview-index-line-height: var(--rv-line-height-md);
  --rv-image-preview-index-text-shadow: 0 1px 1px var(--rv-gray-8);
  --rv-image-preview-overlay-background-color: rgba(0, 0, 0, 0.9);
  --rv-image-preview-close-icon-size: 22px;
  --rv-image-preview-close-icon-color: var(--rv-gray-5);
  --rv-image-preview-close-icon-active-color: var(--rv-gray-6);
  --rv-image-preview-close-icon-margin: var(--rv-padding-md);
  --rv-image-preview-close-icon-z-index: 1;
}
.rv-image-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  transform: none;
  user-select: none;
  touch-action: none;
}
.rv-image-preview__swipe {
  display: flex;
  align-items: center;
  height: 100%;
}
.rv-image-preview__swipe .rv-swiper__track {
  height: 100%;
}
.rv-image-preview__swipe .rv-swiper__track-inner {
  align-items: center;
  height: 100%;
}
.rv-image-preview__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow: hidden;
}
.rv-image-preview__cover {
  position: absolute;
  top: 0;
  left: 0;
}
.rv-image-preview__control {
  user-select: none;
  touch-action: none;
}
.rv-image-preview__image {
  width: 100%;
  transition-property: transform;
}
.rv-image-preview__image--vertical {
  width: auto;
  height: 100%;
}
.rv-image-preview__image img {
  -webkit-user-drag: none;
}
.rv-image-preview__image .rv-image__error {
  top: 30%;
  height: 40%;
}
.rv-image-preview__image .rv-image__error-icon {
  font-size: 36px;
}
.rv-image-preview__image .rv-image__loading {
  background-color: transparent;
}
.rv-image-preview__index {
  position: absolute;
  top: var(--rv-padding-md);
  left: 50%;
  color: var(--rv-image-preview-index-text-color);
  font-size: var(--rv-image-preview-index-font-size);
  line-height: var(--rv-image-preview-index-line-height);
  text-shadow: var(--rv-image-preview-index-text-shadow);
  transform: translate(-50%, 0);
}
.rv-image-preview__overlay {
  background-color: var(--rv-image-preview-overlay-background-color);
}
.rv-image-preview__close-icon {
  position: absolute;
  z-index: var(--rv-image-preview-close-icon-z-index);
  color: var(--rv-image-preview-close-icon-color);
  font-size: var(--rv-image-preview-close-icon-size);
  cursor: pointer;
}
.rv-image-preview__close-icon:active {
  color: var(--rv-image-preview-close-icon-active-color);
}
.rv-image-preview__close-icon--top-left {
  top: var(--rv-image-preview-close-icon-margin);
  left: var(--rv-image-preview-close-icon-margin);
}
.rv-image-preview__close-icon--top-right {
  top: var(--rv-image-preview-close-icon-margin);
  right: var(--rv-image-preview-close-icon-margin);
}
.rv-image-preview__close-icon--bottom-left {
  bottom: var(--rv-image-preview-close-icon-margin);
  left: var(--rv-image-preview-close-icon-margin);
}
.rv-image-preview__close-icon--bottom-right {
  right: var(--rv-image-preview-close-icon-margin);
  bottom: var(--rv-image-preview-close-icon-margin);
}
