/* Scoped styles for Photos page slideshow */

/* Layout container */
#photos .slideshow-container {
  max-width: 1000px;
  margin: 1rem auto;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

#photos #slides { position: relative; width: 100%; height: auto; }
#photos .mySlide { display: none; position: relative; }
#photos .mySlide.active { display: block; }
#photos .mySlide img { width: 100%; height: auto; display: block; object-fit: contain; }

#photos .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 12px; color: var(--fg);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  text-align: center; font-size: 0.95rem;
}

#photos .numbertext {
  position: absolute; top: 0; left: 0;
  padding: 6px 10px; font-size: 0.85rem; color: var(--muted);
}

#photos .arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px; width: 36px; height: 36px;
  display: grid; place-items: center; cursor: pointer;
}
#photos .arrow.prev { left: 8px; }
#photos .arrow.next { right: 8px; }

#photos .dots { text-align: center; margin-top: 8px; }
#photos .dot {
  height: 10px; width: 10px; margin: 0 3px;
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: 50%; display: inline-block; cursor: pointer;
}
#photos .dot.active {
  background: color-mix(in oklab, var(--link) 35%, var(--code-bg));
  border-color: color-mix(in oklab, var(--link) 50%, var(--border));
}
