/* Profile page — photo slider (left column) */

.profile-photo-slider {
  width: 100%;
  margin: 0 auto;
}

.profile-photo-slider__frame {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: #e8eef2;
}

.profile-photo-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-photo-slider__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
}

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

.profile-photo-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f7fdff;
  color: #2d4a56;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, transform 0.15s ease;
}

.profile-photo-slider__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}

.profile-photo-slider__nav img {
  display: block;
}

.profile-photo-slider__nav--prev {
  left: 12px;
}

.profile-photo-slider__nav--next {
  right: 12px;
}

.profile-photo-slider__segments {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.profile-photo-slider__segment {
  flex: 1;
  height: 5px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.25s ease, opacity 0.25s ease;
}

.profile-photo-slider__segment.is-active {
  background: #ff8a3d;
}

.profile-photo-slider__segment:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.7);
}

@media (min-width: 600px) and (max-width: 899.98px) {
  .profile-photo-slider {
    padding-top: 16px;
  }
}
