.community-page { padding-bottom: 40px; }
.community-main { width: min(740px, calc(100% - 36px)); margin: 36px auto 0; }
.personal-main .community-profile { margin-top: 9px; }
.community-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  padding: 27px;
  border: 1px solid #ebd8cd;
  border-radius: 17px;
  background: radial-gradient(ellipse at 92% 0%, #efd1c2 0, transparent 65%), #fff9f4;
}
.profile-logo {
  flex: none;
  width: 101px;
  height: 101px;
  display: grid;
  place-items: center;
  border: 2px solid #bf857a;
  border-radius: 50%;
  background: #fff7ee;
  box-shadow: 0 6px 15px #5e2c3114;
}
.profile-text { flex: 1; }
.profile-text h1 {
  margin: 0 0 5px;
  font: 600 clamp(33px, 6vw, 50px)/1.05 var(--display);
  letter-spacing: -.05em;
}
.profile-text p:not(.eyebrow) { margin: 7px 0; color: var(--muted); font-size: 13px; }
.post-count { font-size: 12px; color: var(--wine); font-weight: 700; }
.profile-instagram { flex: none; background: #fffbf8; }
.feed-switch { display: flex; justify-content: center; gap: 25px; margin-top: 24px; border-bottom: 1px solid var(--edge); }
.feed-switch button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-width: 90px;
  padding: 9px 15px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}
.feed-switch button[aria-pressed=true] { border-color: var(--wine); color: var(--wine); }
.community-feed { display: grid; width: min(600px, 100%); margin: 20px auto 0; gap: 21px; }
.community-post {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--white);
}
.post-author { display: flex; gap: 9px; align-items: center; padding: 11px 15px; color: var(--ink); font-size: 13px; }
.post-author img { border-radius: 50%; }
.post-picture { display: block; padding: 0; border: 0; background: #d4ac99; width: 100%; }
.post-picture:focus-visible { outline-offset: -4px; }
.post-picture img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.post-body { padding: 11px 16px 16px; }
.post-actions { display: flex; align-items: center; gap: 13px; margin-bottom: 8px; }
.post-actions .text-button { min-height: 36px; }
.post-actions svg { width: 21px; height: 21px; }
.hearted svg { fill: #a34554; color: #a34554; }
.post-body h2 { margin: 0 0 3px; font: 700 21px/1.2 var(--display); letter-spacing: -.02em; }
.post-body p { margin: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.community-feed.photo-grid { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.photo-grid .post-picture { position: relative; overflow: hidden; align-self: start; border-radius: 10px; }
.photo-grid img { aspect-ratio: 1; }
.photo-grid .post-picture span {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 9px 8px;
  background: linear-gradient(transparent, #271512ed);
  color: #fffaf5;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
}
@media (max-width: 580px) {
  .community-main { margin-top: 14px; width: calc(100% - 24px); }
  .community-profile {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 15px 13px;
  }
  .profile-logo { width: 58px; height: 58px; }
  .profile-logo img { width: 51px; height: 51px; }
  .profile-instagram { grid-column: 2; justify-self: start; min-height: 35px; }
  .community-page .back-link { padding-inline: 9px; gap: 5px; min-height: 40px; font-size: 12px; }
  .community-page .back-link span { display: none; }
  .feed-switch { margin-top: 14px; }
  .community-feed { margin-top: 12px; gap: 12px; }
  .community-feed.photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
}
@media (max-width: 380px) {
  .community-page .header-inner { width: calc(100% - 24px); gap: 8px; }
  .community-page .brand span { font-size: 17px; }
  .community-page .brand img { width: 33px; height: 33px; }
}
