.photo-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  background: #101218;
  user-select: none;
  touch-action: pan-y;
}

.photo-slider__track {
  position: absolute;
  inset: 0;
}

.photo-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.photo-slider__slide.is-on {
  opacity: 1;
  z-index: 1;
}

.photo-slider__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-top: -1.2rem;
  border: 1px solid rgba(246, 239, 224, 0.28);
  border-radius: 50%;
  background: rgba(7, 8, 11, 0.35);
  color: var(--paper);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.photo-slider__nav--prev { left: 0.75rem; }
.photo-slider__nav--next { right: 0.75rem; }

.photo-slider__nav:hover,
.photo-slider__nav:focus-visible {
  border-color: rgba(246, 239, 224, 0.55);
  outline: none;
}

.photo-slider__dots {
  position: absolute;
  right: 0;
  bottom: 0.85rem;
  left: 0;
  z-index: 3;
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

.photo-slider__dot {
  width: 0.42rem;
  height: 0.42rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(246, 239, 224, 0.35);
  cursor: pointer;
}

.photo-slider__dot.is-on {
  background: rgba(246, 239, 224, 0.95);
}

/* ===== iPhone camera rail (right) ===== */
.photo-slider--camera .photo-slider__nav,
.photo-slider--camera .photo-slider__dots {
  display: none;
}

.photo-slider--camera .photo-slider__track {
  right: 0;
}

.camera-rail {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 4.6rem;
  padding: 1.1rem 0.55rem 1.2rem;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.22) 40%, rgba(0, 0, 0, 0.42) 100%);
  pointer-events: none;
}

.camera-rail > * {
  pointer-events: auto;
}

/* vertical room name — letters stay upright, stack top→bottom */
.camera-rail__title {
  margin: 0;
  max-height: 42%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.28em;
  line-height: 1.35;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg); /* top-to-bottom reading when vertical-rl */
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

/* round shutter with variant label inside */
.camera-rail__shutter {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.55rem;
  height: 3.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.camera-rail__shutter-ring {
  position: absolute;
  inset: 0;
  border: 2.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.camera-rail__shutter-core {
  position: absolute;
  inset: 0.32rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.camera-rail__shutter-core em {
  max-width: 2.6rem;
  overflow: hidden;
  font-family: var(--text);
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.camera-rail__shutter:hover .camera-rail__shutter-ring,
.camera-rail__shutter:focus-visible .camera-rail__shutter-ring {
  border-color: #fff;
  outline: none;
}

.camera-rail__shutter.is-click {
  transform: scale(0.92);
}

.camera-rail__shutter.is-click .camera-rail__shutter-core {
  background: rgba(255, 255, 255, 0.8);
}

/* mini ticks under shutter like mode pips */
.camera-rail__ticks {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.camera-rail__ticks i {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.camera-rail__ticks i.is-on {
  background: #fff;
  transform: scale(1.25);
}

@media (max-width: 720px) {
  .photo-slider__nav {
    width: 2rem;
    height: 2rem;
    margin-top: -1rem;
    font-size: 1.15rem;
  }

  .camera-rail {
    width: 3.8rem;
    padding: 0.85rem 0.35rem 1rem;
  }

  .camera-rail__shutter {
    width: 3.1rem;
    height: 3.1rem;
  }

  .camera-rail__title {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
  }
}
