.feed-media-viewer {
  width: min(1100px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  height: auto;
  max-height: calc(100dvh - 32px);
  padding: 20px;
  border: 1px solid #38bdf84d;
  border-radius: 20px;
  background: #202227;
  color: #f8fafc;
  overflow: auto;
  box-sizing: border-box;
}
.feed-media-viewer::backdrop {
  background: #202227e8;
  backdrop-filter: blur(5px);
}
.feed-media-viewer > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 14px;
}
.feed-media-viewer h2 {
  margin: 0;
  font-size: 22px;
}
.feed-media-viewer button {
  font: inherit;
  background: #202227;
  color: #fff;
  border: 1px solid #ffffff26;
  border-radius: 10px;
  cursor: pointer;
  padding: 8px 14px;
}
.feed-media-viewer [data-close] {
  font-size: 26px;
  line-height: 1;
}
.feed-media-viewer button:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}
.feed-viewer-stage {
  display: grid;
  place-items: center;
  min-height: 120px;
}
.feed-viewer-stage > img,
.feed-viewer-stage > video {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 65dvh;
  object-fit: contain;
}
.feed-viewer-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 14px;
}
.feed-viewer-controls[hidden] {
  display: none;
}
.feed-viewer-controls button {
  font-size: 24px;
}
.feed-viewer-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  margin-top: 14px;
  padding: 3px;
}
.feed-viewer-thumbnails button {
  flex: none;
  width: 76px;
  height: 56px;
  padding: 3px;
}
.feed-viewer-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.feed-viewer-thumbnails button[aria-pressed='true'] {
  border-color: #fbbf24;
}
.feed-viewer-status {
  font-size: 14px;
  text-align: center;
  color: #94a3b8;
}
.feed-media-expand {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid #ffffff55;
  background: #202227c9;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
#feed .post-media-content img {
  cursor: zoom-in;
}
@media (max-width: 560px) {
  .feed-media-viewer {
    padding: 14px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
  .feed-media-viewer h2 {
    font-size: 18px;
  }
}
