.slideshow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--backdrop-color);
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.slideshow .slideshow-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  padding: 1rem;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.slideshow .slideshow-footer .preview {
  max-width: 100vw;
  height: 4rem;
  display: inline-flex;
  gap: 1rem;
  overflow: auto;
  padding: 0 1rem;
  align-items: center;
  margin: auto;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.slideshow .slideshow-footer .preview::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.slideshow .slideshow-footer .preview {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.slideshow .slideshow-footer .preview .media-preview {
  height: 100%;
  width: 5rem;
  min-width: 5rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
}

.slideshow .slideshow-footer .preview .media-preview .icon-image {
  height: 100%;
}

.slideshow .slideshow-footer .preview .media-preview.selected {
  border-color: var(--accent-color);
}

.slideshow .slideshow-footer .preview .media-preview img {
  object-fit: contain;
}

.slideshow .slideshow-player-section {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -65%);
  width: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slideshow .slideshow-player-section .slideshow-canvas {
  max-height: calc(100% - 100px);
  width: auto;
}

.slideshow .slideshow-player-section .slideshow-canvas video,
.slideshow .slideshow-player-section .slideshow-canvas img {
  height: 450px;
  width: auto;
  max-width: 100vw;
}

/* .slideshow .slideshow-canvas img {
  height: 50%;
} */

.slideshow .content {
  max-height: calc(100% - 50px);
}

.slideshow .content img {
  transition: all 0.1s linear;
  transform: rotate(0deg);
  max-height: 100%;
  width: auto;
}

.slideshow .content img,
.slideshow .content video {
  max-height: 100%;
  width: auto;
}

.slideshow .info-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  background-color: rgb(30, 30, 30);
}

.slideshow i {
  cursor: pointer;
}

.slideshow .slider-icons {
  position: relative;
  background-color: var(--background-primary);
  opacity: 0.6;
  padding: 0.5rem;
  height: 2rem;
  width: 2rem;
  border-radius: 50%;
  margin: 0 0.2rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.slideshow .slideshow-icon {
  padding: 0.5rem;
  background-color: var(--background-primary);
  opacity: 0.6;
  border-radius: 0.5rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
  margin: 0 0.5rem;
  color: var(--text-primary);
}

.slideshow .slideshow-icon:hover {
  background-color: var(--background-primary);
  opacity: 0.8;
}

.slideshow .slideshow-icon i {
  margin-right: 0.5rem;
}

.slideshow .slider-icons:hover {
  background-color: var(--background-primary);
  opacity: 0.8;
}

.slideshow .slider-icons i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.slideshow .slider-icons:disabled {
  background-color: rgba(150, 150, 150);
  color: rgba(130, 130, 130);
}

.slideshow .slideshow-close {
  width: 40px;
  height: 40px;
  border-radius: 0 0 0 40px;
  background-color: var(--background-primary);
  position: fixed;
  cursor: pointer;
  top: 0;
  right: 0;
  z-index: 1;
  opacity: 0.5;
}

.slideshow .slideshow-pageTotal {
  position: fixed;
  top: 0;
  left: 5px;
}

.slideshow .slideshow-close .icon-remove {
  color: var(--text-primary);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-30%, -60%);
}

.slideshow .index {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  color: var(--text-primary);
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.slideshow .video-player .video-bar,
.slideshow .video-player .sound-bar {
  display: flex;
  align-items: center;
}

.slideshow .video-player {
  font-size: 0.8rem;
  color: white;
  width: 100%;
}

.slideshow .video-player .video-bar {
  width: 75%;
}

.slideshow .video-player .video-bar #play {
  width: 1.5rem;
}

.slideshow .video-player .video-bar #currentTime {
  padding: 0.1rem;
  font-weight: bold;
}

.slideshow .video-player .video-bar #duration {
  color: rgb(202, 202, 202);
  padding: 0.1rem;
}

.slideshow .video-player .sound-bar {
  width: 20%;
  gap: 0.5rem;
}

.slideshow input[type="range"] {
  height: 4px;
  width: 100%;
  padding: 0;
  outline: none;
  cursor: pointer;
  border: none;
}

.slideshow .slideshow-footer .control-bar {
  justify-content: center;
  background-color: transparent;
}

.slideshow .wave-div {
  width: 40rem;
  height: 100%;
  background-color: #fff;
  padding: 4rem 0;
}

@media (max-width: 850px) {

  .slideshow .content img,
  .slideshow .content video {
    max-width: 100%;
    max-height: 100%;
  }

  .slideshow .wave-div {
    width: 100%;
    padding: 2rem 0;
  }
}

@media (max-width:500px) {
  .slideshow .slider-icons {
    height: 1.7rem;
    width: 1.7rem;
  }
}

@media (max-height: 750px) {

  .slideshow .slideshow-player-section .slideshow-canvas video,
  .slideshow .slideshow-player-section .slideshow-canvas img {
    height: 350px;
  }
}

@media (max-height: 650px) {

  .slideshow .slideshow-player-section .slideshow-canvas video,
  .slideshow .slideshow-player-section .slideshow-canvas img {
    height: 300px;
  }
}