.slideshow-wrapper {
  margin: 0;
  padding: 0;
  font-size: 0;
  width: 100vw;
  max-height: 520px;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  padding-left: -10px;
  padding-right: -10px;
}

.slideshow-track {
  width: 100%;
  height: 100%;
}

.slideshow-image-wrapper {
  display: inline-block;
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s linear;
}

.slideshow-image-wrapper img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.slideshow-image-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
}

.slideshow-text-window {
  padding: 1rem 1rem;
  /* background-color: rgba(16,67,122, 0.5); */
  color: white;
  font-size: 20px;
  max-width: 60%;
  text-align: center;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-left: 40rem;
}

.slideshow-text-window p {
  font-size: 50px;
  color: white;
}

.slideshow-text-window h3 {
  margin: 0;
  padding: 3px 0px 0px 0px;
  margin-bottom: 1rem;
  font-size: 60px;
  word-wrap: break-word;
  white-space: pre-wrap;
  word-break: break-word;
  color: white;
  /* text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2); */
  padding-right: 1rem;
  line-height: 35px;
  text-shadow: 3px -5px 1px #10437a;
}

.slideshow-text-window-button {
  background-color: #ff5b00;
  padding: 0.9rem 2rem;
  display: block;
  width: fit-content;
  color: white;
  letter-spacing: 4px;
  border-radius: 1rem;
  font-size: 16px;
}

#slideshow-left {
  position: absolute;
  top: 0%;
  left: 1%;
  height: 100%;
  z-index: 200;
  color: white;
  font-size: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 5%;
}

#slideshow-left img {
  width: 3.5rem;
}

#slideshow-right {
  position: absolute;
  top: 0%;
  right: 1%;
  height: 100%;
  z-index: 200;
  color: white;
  font-size: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 5%;
}

#slideshow-right img {
  width: 3.5rem;
}

#slideshow-left:hover {
  background-color: rgba(0, 0, 0, 0);
}

#slideshow-right:hover {
  background-color: rgba(0, 0, 0, 0);
}

.slideshow-skeleton {
  background-color: #f0f0f0;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: inline-block;
}

.slideshow-skeleton::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #f0f0f0, #ccc, #f0f0f0);
  animation: loading 1s infinite;
}

@keyframes loading {
  100% {
    left: 100%;
  }
}

@media screen and (max-width: 1500px) {
  .slideshow-text-window {
    margin-left: 0;
  }
}

@media screen and (max-width: 787px) {
  .slideshow-text-window p {
    font-size: 20px;
  }

  .slideshow-text-window h3 {
    font-size: 30px;
  }

  .slideshow-text-window-button {
    font-size: 15px;
    padding: 1rem 2rem;
  }

  .slideshow-text-window {
    max-width: 98%;
    margin-left: 0;
  }

  #slideshow-left {
    width: fit-content;
    padding: 0 0.3rem;
  }

  #slideshow-right {
    width: fit-content;
    padding: 0 0.3rem;
  }
}
