
.slider {
  position: fixed;
  width: 100%;
  max-width: 1980px;
  height: 100vh;
  overflow: hidden;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  z-index: 1;
}

.items {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  margin: 0;
  list-style: none;
  padding: 0;
}

.item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  /* portrait canvases: keep the faces (upper third) in frame */
  background-position: center 30%;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1);
}
.item.current {
  opacity: 1;
  animation: kenburns 8s ease-out forwards;
}
/* Hold the zoomed frame while fading out — otherwise removing
   .current kills the animation and scale snaps back to 1. */
.item.leaving {
  animation: none;
}
@keyframes kenburns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.06);
  }
}

.dots {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 5;
}

.dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  outline: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.dot:hover {
  background: rgba(255, 255, 255, 0.5);
}
.dot.current {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.3);
}

@media only screen and (max-width: 1023px) {
  .dots {
    right: 20px;
  }
}
@media only screen and (max-width: 767px) {
  .slider,
  .items {
    height: 100vh;
    height: 100svh;
  }
  .dots {
    display: none;
  }
}
