.fsiv-open {
  overflow: hidden;
}

.fsiv-stage {
  align-items: center;
  background: rgba(8, 10, 14, 0.94);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 18px 74px 22px;
  pointer-events: none;
  position: fixed;
  transition: opacity 160ms ease;
  z-index: 10000;
}

.fsiv-stage.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.fsiv-progress {
  background: rgba(255, 255, 255, 0.18);
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.fsiv-progress-bar {
  background: #ffffff;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
}

.fsiv-frame {
  align-items: center;
  display: flex;
  height: calc(100vh - 40px);
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: calc(100vw - 148px);
}

.fsiv-image {
  display: block;
  height: auto;
  max-height: none;
  max-width: none;
  object-fit: contain;
  object-position: center center;
  user-select: none;
  width: auto;
}

.fsiv-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  height: 46px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  transition: background 140ms ease, transform 140ms ease;
  width: 46px;
}

.fsiv-button:hover,
.fsiv-button:focus {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.fsiv-button:active {
  transform: scale(0.96);
}

.fsiv-close {
  right: 18px;
  top: 18px;
}

.fsiv-toggle {
  right: 74px;
  top: 18px;
}

.fsiv-prev,
.fsiv-next {
  top: 50%;
  transform: translateY(-50%);
}

.fsiv-prev:active,
.fsiv-next:active {
  transform: translateY(-50%) scale(0.96);
}

.fsiv-prev {
  left: 18px;
}

.fsiv-next {
  right: 18px;
}

.fsiv-counter {
  bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  left: 50%;
  letter-spacing: 0;
  position: absolute;
  transform: translateX(-50%);
}

.fsiv-product-trigger {
  cursor: zoom-in;
}

@media (max-width: 767px) {
  .fsiv-stage {
    padding: 54px 10px 42px;
  }

  .fsiv-image {
    height: auto;
    width: auto;
  }

  .fsiv-frame {
    height: calc(100vh - 96px);
    width: calc(100vw - 20px);
  }

  .fsiv-prev,
  .fsiv-next {
    bottom: 16px;
    top: auto;
    transform: none;
  }

  .fsiv-prev:active,
  .fsiv-next:active {
    transform: scale(0.96);
  }

  .fsiv-toggle {
    right: 72px;
  }

  .fsiv-counter {
    bottom: 72px;
  }
}
