/* Replace the text card with a stable, uniformly framed photo slideshow. */
.route-strava-details .route-photos {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #dce7ef;
  border-radius: 16px;
  background: #061f3f;
}
.route-photos-stage {
  position: relative;
  flex: 1;
  min-height: 300px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.route-photos .route-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  opacity: 0;
  transition: opacity 1s ease;
}
.route-photos .route-photo.is-active {
  opacity: 1;
}
.route-photos figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
}
.route-photo-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.route-photo-controls span {
  min-width: 34px;
  text-align: center;
  font-size: 0.7rem;
}
.route-photo-controls button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #ffffff80;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}
@media (max-width: 900px) {
  .route-strava-details {
    grid-template-columns: minmax(0, 1fr);
  }
  .route-photos-stage {
    min-height: 0;
    flex: auto;
    aspect-ratio: 4 / 3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .route-photos .route-photo {
    transition: none;
  }
}
