



.slideshow-container {
  position: relative;
  overflow: hidden;
  background-color: #000;
}

/* Media Container */
.media-container {
  position: relative;
  width: 100%;
  height: calc(80vh);
 /*  aspect-ratio: 16 / 9; */
  background-color: #000;
  max-width: 2200px;
}

.media-container video, 
.media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity .5s ease-in-out;
}

.media-container .active {
  opacity: 1;
}

/* Fullscreen Adjustment */
:fullscreen .media-container {
  height: 100vh;
}

/* Description Overlay */
#description-overlay {
  position: absolute;
  bottom: 60px;
  left: 20px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  max-width: 90%;
  word-wrap: break-word;
}

.media-container .active ~ #description-overlay {
  opacity: 1;
}

/* Controls Styling */
.controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}



.controls button {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, opacity 0.5s ease-in-out;
}

.controls button:hover {
  background-color: rgba(255, 255, 255, 1);
}

.controls svg {
  width: 20px;
  height: 20px;
  fill: #000;
}

/* Progress Bar */
.progress-bar-container {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 10px;
  display: flex;
  gap: 12px;
  padding: 2px;
  justify-content: center;
}

.progress-bar {
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  transition: background-color 0.3s ease-in-out;
  cursor: pointer;
width: 12px;
height: 12px;
border-radius: 100%;
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.progress-bar.active {
  background-color: var(--estech-orange);
}

/* Controls Visibility */
.controls-hidden {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.controls-visible {
  opacity: 0;
  transition: opacity 0.s ease-in-out;
}

/* Description Fade */
.description-visible {
  opacity: 0;
}

.description-hidden {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}



/* Responsive */
@media (max-width: 768px) {
  .media-container {
    height: 60vh;
  }

  #controls button {
    width: 30px;
    height: 30px;
  }

  #controls svg {
    width: 16px;
    height: 16px;
  }

  .description-overlay {
    font-size: 14px;
    padding: 8px 12px;
  }
}

@media (max-width: 540px) {
  .media-container {
    height: 50vh;
  }
}

@keyframes kenburns {
  from {
      transform: scale(1.2);
  }
  to {
      transform: scale(1.0);
  }
}

.media-container img{
  transform: scale(1.2);
}

.media-container img.kenburns {
  animation-name: kenburns;
  animation-fill-mode: forwards;
  will-change: transform;

}

