/* PDF Slideshow - Picture Frame Style */

.pdf-slideshow-container {
  max-width: 760px;
  margin: 2.5rem auto;
}

/* Title - inside the frame */
.pdf-slideshow-title {
  text-align: center;
  margin: -8px 0 20px 0;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* The frame - cream mat with equal padding */
.pdf-slideshow-frame {
  background: #f5f0e6;
  padding: 28px;
  border: 1px solid #e0d9c8;
}

/* Viewport - the inner area */
.pdf-slideshow-viewport {
  position: relative;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.pdf-slideshow-viewport canvas {
  display: block;
  max-width: 100%;
}

/* Loading */
.pdf-slideshow-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #999;
  font-size: 13px;
  text-align: center;
}

.pdf-slideshow-spinner {
  width: 20px;
  height: 20px;
  margin: 0 auto 8px;
  border: 2px solid #ddd;
  border-top-color: #888;
  border-radius: 50%;
  animation: pdf-spin 0.7s linear infinite;
}

@keyframes pdf-spin {
  to { transform: rotate(360deg); }
}

/* Controls - below frame */
.pdf-slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 14px;
}

.pdf-slideshow-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-slideshow-btn:hover:not(:disabled) {
  color: #333;
}

.pdf-slideshow-btn:disabled {
  color: #ccc;
  cursor: default;
}

.pdf-slideshow-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.pdf-slideshow-counter {
  font-size: 13px;
  color: #888;
}

.pdf-slideshow-separator {
  margin: 0 3px;
  color: #ccc;
}

/* Hide extras */
.pdf-slideshow-keyboard-hint,
.pdf-slideshow-fullscreen {
  display: none;
}

/* Error */
.pdf-slideshow-error {
  max-width: 760px;
  margin: 2.5rem auto;
  padding: 24px;
  background: #f5f0e6;
  text-align: center;
  color: #666;
}

/* Mobile */
@media (max-width: 640px) {
  .pdf-slideshow-container {
    margin: 1.5rem 0;
  }
  .pdf-slideshow-frame {
    padding: 16px;
  }
  .pdf-slideshow-viewport {
    min-height: 280px;
  }
}

@media print {
  .pdf-slideshow-container { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pdf-slideshow-spinner { animation: none; }
}
