/* Fixed stage and caption geometry keep artwork changes still across all three themes. */
.mf-home .mf-hero-art { min-width: 0; }
.mf-home .mf-hero-art > .mf-art-stage { position: relative; isolation: isolate; }
.mf-art-stage .mf-art-current { width: 100%; height: 100%; object-fit: contain; }
.mf-art-unavailable { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 26px; text-align: center; border: 1px solid currentColor; }
.mf-art-unavailable strong { max-width: 220px; font: 600 26px/1.2 'Barlow Condensed', sans-serif; }
.mf-art-unavailable > span { font-size: 14px; }
.mf-art-stage .mf-art-previous {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  pointer-events: none; background: var(--mf-frame); animation: mf-art-out 250ms ease-out both;
}
@keyframes mf-art-out { from { opacity: 1; } to { opacity: 0; } }
.mf-home .mf-hero-art figcaption { min-height: 38px; align-items: flex-start; }
.mf-home .mf-hero-art figcaption > span { flex: 0 0 auto; }
.mf-home .mf-hero-art figcaption > a { max-width: 65%; min-height: 32px; line-height: 1.35; text-align: right; }
.mf-art-cycle-controls {
  visibility: hidden; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 44px; margin-top: 6px; border-top: 1px solid currentColor; padding-top: 10px;
}
[data-cycle-ready="true"] .mf-art-cycle-controls { visibility: visible; }
.mf-art-cycle-buttons { display: flex; gap: 4px; align-items: center; }
.mf-art-cycle-controls button {
  display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px;
  padding: 8px 10px; border: 1px solid transparent; border-radius: 3px;
  background: transparent; color: inherit; font: 600 13px Barlow, Arial, sans-serif; cursor: pointer;
}
.mf-art-cycle-controls button:hover:not(:disabled) { border-color: currentColor; }
.mf-art-cycle-controls button:focus-visible { outline: 3px solid currentColor; outline-offset: 1px; }
.mf-art-cycle-controls button:disabled { cursor: default; opacity: .7; }
#mf-art-toggle { min-width: 64px; }
.mf-art-cycle-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 11px; line-height: 1.2; }
#mf-art-count { font-variant-numeric: tabular-nums; font-weight: 600; }
#mf-art-mode { white-space: nowrap; }
@media (max-width: 380px) {
  /* Both autoplay and manual mode use the same two rows on the narrowest screens. */
  .mf-art-cycle-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .mf-art-cycle-buttons { gap: 0; justify-content: space-between; width: 100%; }
  .mf-art-cycle-meta { flex-direction: row; justify-content: space-between; align-items: center; min-height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .mf-art-stage .mf-art-previous { animation: none; }
}
