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

.slideshow-track {
  width: 100%;
  height: 100%;
  transform: translateX(15%);
}

.slideshow-image-wrapper {
  display: inline-block;
  position: relative;
  width: 65%;
  height: 100%;
  margin-left: 2.5%;
  margin-right: 2.5%;
}

.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;
  align-items: center;
  padding: 2rem 6rem;
}

.slideshow-text-window {
  padding: 1rem 1rem;
  color: white;
  font-size: 20px;
  max-width: 60%;
}

.slideshow-text-window h3 {
  margin: 0;
  padding: 0;
  margin-bottom: 2rem;
  line-height: 2.5rem;
  font-size: 32px;
  word-wrap: break-word;
  white-space: pre-wrap;
  word-break: break-word;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px black;
}

.slideshow-text-window p {
  white-space: wrap;
  max-width: 100%;
  text-shadow: 2px 2px 4px black;
}

.slideshow-text-window-button {
  background-color: #fed4ba;
  padding: 0.8rem 2.5rem;
  display: block;
  width: fit-content;
  color: #5e5e5e;
  font-size: 16px;
  font-weight: 600;
}

#slideshow-left {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 19%;
  z-index: 200;
  color: white;
  font-size: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  background-color: #f2f0eb;
  opacity: 60%;
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

#slideshow-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 19%;
  z-index: 200;
  color: white;
  font-size: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  background-color: #f2f0eb;
  opacity: 60%;
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

#slideshow-right img {
  height: 1.8rem;
}

#slideshow-left img {
  height: 1.8rem;
}

#slideshow-left:hover {
  opacity: 100%;
}

#slideshow-right:hover {
  opacity: 100%;
}

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

.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: 1024px) {
  .slideshow-track {
    transform: translateX(0%);
  }
  .slideshow-image-wrapper {
    display: inline-block;
    position: relative;
    width: 100%;
    height: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  #slideshow-right {
    right: 1%;
  }

  #slideshow-left {
    left: 1%;
  }

  .slideshow-image-overlay {
    padding: 1rem;
    width: 100%;
  }

  .slideshow-text-window {
    max-width: 100%;
  }
}
