/**
 * Development work by David Lane
 */
/* Multi-photo / video slideshow — collection pages */
.collection-media-root {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
}

.collection-media-root--compact {
  max-height: 220px;
}

.collection-media-viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.collection-media-root--compact .collection-media-viewport {
  min-height: 160px;
  max-height: 220px;
}

.collection-media-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 2.25rem;
}

.collection-media-img,
.collection-media-video {
  max-width: 100%;
  max-height: min(70vh, 520px);
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

.collection-media-root--compact .collection-media-img,
.collection-media-root--compact .collection-media-video {
  max-height: 200px;
}

.collection-media-img--fill,
.collection-media-video--fill {
  width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.collection-media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.collection-media-nav:hover {
  background: #fff;
}

.collection-media-prev { left: 6px; }
.collection-media-next { right: 6px; }

.collection-media-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 8px 6px 10px;
}

.collection-media-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.collection-media-dot.active {
  background: #0d6efd;
  transform: scale(1.15);
}

.collection-media-empty {
  padding: 1rem;
  text-align: center;
  color: #6c757d;
  font-size: 0.875rem;
}
