.slider {
  width: 100%;
  aspect-ratio: 16/7;
  position: relative;
  background-color: white;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  align-items: end;
}

.slider .image {
  width: 100%;
  aspect-ratio: 16/7;
  position: absolute;
  left: 0px;
  top: 0px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
  transition: opacity 1s;
}

@media (width < 400px) {

  .slider,
  .slider .image {
    aspect-ratio: 16/10;
  }
}

.slider .image.hide {
  opacity: 0;
}

.slider .controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
  z-index: 1;
}

.slider .controls .dot {
  width: 10px;
  aspect-ratio: 1;
  background-color: transparent;
  border-radius: 100px;
  border: 2px solid white;
  cursor: pointer;
}

.slider .controls .dot:hover {
  background-color: #ffffff55;
}

.slider .controls .dot.active {
  background-color: white;
  cursor: none;
  pointer-events: none;
}
