.motion-photo { position: relative; width: 100%; height: 100%; min-height: 140px; overflow: hidden; background: #f9f3f4; }
.motion-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.motion-photo > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #201b1d; }
.motion-photo [hidden] { display: none !important; }
.motion-toggle, .motion-sound, .motion-download { position: absolute; z-index: 1; border: 1px solid #ffffff80; border-radius: 18px; background: #292127d9; color: #fff; padding: 7px 10px; font: inherit; font-size: 12px; line-height: 18px; cursor: pointer; text-decoration: none; }
.motion-toggle { top: 8px; left: 8px; min-height: 36px; }
.motion-download { bottom: 8px; right: 8px; }
.motion-sound { bottom: 8px; left: 8px; }
.motion-toggle:focus-visible, .motion-sound:focus-visible, .motion-download:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }
.motion-status:not(:empty) { position: absolute; z-index: 2; top: 50%; left: 6px; right: 6px; background: #292127e6; color: white; border-radius: 8px; padding: 8px; font-size: 12px; }
.post-media-grid.media-count-many .motion-download { padding: 3px 5px; font-size: 10px; right: 4px; bottom: 4px; }
.post-media-grid.media-count-many .motion-toggle { top: 4px; left: 4px; padding: 4px 7px; }
.post-media-grid.media-count-many .motion-photo { min-height: 110px; }
.timeline-photo-card.has-motion { flex-direction: column; }
.timeline-photo-img.has-motion { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.timeline-photo-img.has-motion .motion-photo { min-height: 0; }
.timeline-photo-img.has-motion .motion-photo > img { object-fit: contain; }
.post-media-grid.media-count-1 .motion-photo > video { height: 100%; max-height: none; object-fit: contain; }
.post-media-item .motion-photo > video { object-fit: contain; }
.post-media-grid.media-count-1 .motion-photo { height: auto; }
.media-mode-help { margin: 8px 0 4px; color: var(--text-light, #887b80); font-size: 12px; line-height: 1.6; }
.photo-mode-options { display: flex; gap: 12px; margin-bottom: 8px; }
.photo-mode-options label { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border: 1px solid #eadde1; border-radius: 18px; cursor: pointer; }
.photo-mode-options input { accent-color: var(--rose, #dc7596); }
.post-media-tools { flex-wrap: wrap; }
