:root {
  --slider-width: 100vw;
  --slider-height: 100vh;
  --slider-min-height: 400px;
  --slider-max-height: 800px;
  --button-size: clamp(40px, 5vw, 50px);
  --dot-size: clamp(8px, 1.5vw, 10px);
  --active-dot-width: clamp(20px, 4vw, 30px);
  --transition-speed: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

}

.slider {
  width: 100%;
  height: min(var(--slider-height), var(--slider-max-height));
  min-height: var(--slider-min-height);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.slider .list {
  position: absolute;
  width: max-content;
  height: 100%;
  left: 0;
  top: 0;
  display: flex;
  transition: transform var(--transition-speed);
  will-change: transform;
}

.slider .list img {
  width: 100vw;
  height: 100%;
  object-fit: fit;
  object-position: center;
  display: block;
  pointer-events: none;
}

.slider .buttons {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 2%;
  width: 96%;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

.slider .buttons button {
  width: var(--button-size);
  height: var(--button-size);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  border: none;
  font-family: monospace;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider .buttons button:hover {
  background-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.slider .dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}

.slider .dots li {
  list-style: none;
  width: var(--dot-size);
  height: var(--dot-size);
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: all var(--transition-speed);
  cursor: pointer;
}

.slider .dots li.active {
  width: var(--active-dot-width);
  background-color: white;
}


@media screen and (max-width: 768px) {
  :root {
    --slider-height: 60vh;
    --button-size: 36px;
  }
  
  .slider .buttons {
    left: 1%;
    width: 98%;
  }
  
  .slider .dots {
    bottom: 15px;
    gap: 8px;
  }
}


@media screen and (max-width: 500px) and (orientation: portrait) {
  :root {
    --slider-height: 50vh;
    --slider-min-height: 300px;
  }
  
  .slider .buttons button {
    width: 32px;
    height: 32px;
    font-size: 0.8em;
  }
}


@media screen and (max-height: 500px) and (orientation: landscape) {
  :root {
    --slider-height: 90vh;
    --slider-min-height: 300px;
  }
}


@media (pointer: coarse) {
  .slider .buttons button {
    width: 44px;
    height: 44px;
  }
  
  .slider .dots li {
    width: 12px;
    height: 12px;
  }
}
@media (min-width: 2000px) {
  :root {
    --slider-max-height: 1000px;
  }
}


@media (max-width: 540px) and (max-height: 720px) {
  :root {
    --slider-height: 45vh;
  }
}