/* Post attachments only. Keep viewer/fullscreen geometry and player controls intact. */
.post .pg_wrapper:not(.lightbox *, .reel-video-wrapper *, #zuck-modal *, :fullscreen, :fullscreen *) {
  border-radius: 16px;
  overflow: hidden;
}

/* A portrait/letterboxed single photo may not fill the gallery's width. */
.post .pg_1x img:not(.lightbox *, .reel-video-wrapper *, #zuck-modal *, :fullscreen, :fullscreen *) {
  border-radius: 16px;
}

/* Plyr already clips its surface; do not add a clip around the control row. */
.post .plyr--video:not(.plyr--fullscreen-active, .sngine-fullscreen-active, .lightbox *, .reel-video-wrapper *, #zuck-modal *, :fullscreen, :fullscreen *),
.post video.js_video-plyr:not(.plyr *, .lightbox *, .reel-video-wrapper *, #zuck-modal *, :fullscreen, :fullscreen *) {
  border-radius: 16px;
}

/* The media/control seam stays straight when controls occupy a separate row. */
.post .plyr--video.sngine-video-controls-below:not(.plyr--fullscreen-active, .sngine-fullscreen-active, .lightbox *, .reel-video-wrapper *, #zuck-modal *, :fullscreen, :fullscreen *) > .plyr__video-wrapper {
  border-radius: 16px 16px 0 0;
}
