.gallery-page .page-header { text-align: center; }

.embla {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.embla__container {
  display: flex;
  touch-action: pan-y pinch-zoom;
}

.embla__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-sizing: border-box;
}

.embla__slide-media {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
}

.embla__slide img {
  max-width: 100%;
  max-height: 72vh;
  height: auto;
  display: block;
  object-fit: contain;
}

.embla__slide iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
  background: #000;
}

.embla__slide-meta {
  margin-top: 0.75rem;
  text-align: center;
  width: 100%;
}

.embla__slide-meta-caption {
  color: var(--fg);
  font-size: 1.05rem;
  margin: 0 0 0.15rem;
}

.embla__slide-meta-name {
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gallery-btn {
  width: 3rem;
  height: 3rem;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.gallery-btn:hover:not(:disabled) { background: var(--accent-soft); }

.gallery-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-position {
  min-width: 5rem;
  text-align: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
