.feed-layout-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.feed-layout-toggle:hover, .feed-layout-toggle[aria-pressed="true"] {
  background: var(--green-bg);
  color: var(--green);
}
.feed-layout-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.feed-layout-toggle[hidden] { display: none; }
@media (min-width: 769px) {
  html:not([data-feed-layout="classic"]) .feed-post:has(> .feed-photo-identification):has(> .feed-post-body) {
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    align-items: start;
  }
  html:not([data-feed-layout="classic"]) .feed-post > * { grid-column: 1 / -1; min-width: 0; }
  html:not([data-feed-layout="classic"]) .feed-post:has(> .feed-post-body) > .feed-photo-identification {
    grid-column: 1;
    grid-row: 2;
    margin: 16px 0 20px 20px;
    align-self: start;
  }
  html:not([data-feed-layout="classic"]) .feed-post:has(> .feed-photo-identification) > .feed-post-body {
    grid-column: 2;
    grid-row: 2;
    padding: 16px 20px 20px;
    font-size: .98rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }
  html:not([data-feed-layout="classic"]) body .feed-post-image {
    border-radius: 12px;
    max-height: min(46dvh, 380px) !important;
    object-fit: contain;
  }
  html:not([data-feed-layout="classic"]) .feed-post--reverse:has(> .feed-photo-identification):has(> .feed-post-body) {
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  }
  html:not([data-feed-layout="classic"]) .feed-post--reverse:has(> .feed-post-body) > .feed-photo-identification {
    grid-column: 2;
    margin: 16px 20px 20px 0;
  }
  html:not([data-feed-layout="classic"]) .feed-post--reverse:has(> .feed-photo-identification) > .feed-post-body {
    grid-column: 1;
  }
  html:not([data-feed-layout="classic"]) .feed-post > .feed-post-actions-bar,
  html:not([data-feed-layout="classic"]) .feed-post > .comments-section { width: 100%; box-sizing: border-box; }
}
@media (max-width: 768px) {
  .feed-layout-toggle { width: 36px; height: 36px; flex-basis: 36px; }
}
