{% set uname = user.get('username') if user else 'YOUR_USERNAME' %}
<div class="docs-content" data-render>
# Media gallery

Every image, video, and file you share on DevPlace is collected in one place: the **Media** tab on
your profile. Whatever you attach to a post, project, gist, comment, direct message, issue report, or
news item shows up here automatically, newest first.

## Where to find it

Open any profile and choose the **Media** tab, or go straight to
`/profile/{{ uname }}?tab=media`. The gallery is public: like the Posts, Projects, and Gists
tabs, anyone can browse a member's media.

## Viewing media

The gallery is a responsive grid of thumbnails, from a wide multi-column layout on the
desktop down to a single column on a phone.

- **Images** show as thumbnails. Click one to open it full size in the lightbox; click the
  backdrop, press `Escape`, or use the close button to dismiss it.
- **Videos** play inline with standard controls.
- **Other files** (PDFs, archives, code, audio) appear as a labelled card showing the file name and
  size, and download when clicked.

Each tile links back to the post, project, or gist the media belongs to. Long galleries are split
into numbered pages.

## Deleting your own media

Hover (or tap) a tile you uploaded and a delete button appears. Confirm, and the item is removed
from your Media tab and from anywhere it was shown, including the original post or project. You can
only delete media you uploaded yourself.

You can also ask the Devii assistant to do it, for example:

> Delete the screenshot I attached to my last post.

Devii shows you exactly which file it will remove and asks you to confirm before deleting.
</div>

<div class="devii-doc-cta">
{% if is_admin(user) %}
    <a href="/docs/media-moderation.html" class="sidebar-link">Media moderation (admin)</a>
{% endif %}
</div>
