.luna-community { padding-block: clamp(46px, 8vw, 100px); }
.luna-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }
.luna-badges figure {
  display: grid; align-content: start; justify-items: center; gap: 16px;
  margin: 0; padding: clamp(15px, 2.7vw, 36px) 12px; text-align: center;
  background: #fffaf5; color: #39233d; border: 1px solid #e3cfbd; border-radius: 18px;
}
.luna-badges img { width: min(100%, 136px); aspect-ratio: 1; object-fit: contain; }
.luna-badges figcaption { font-size: .9rem; line-height: 1.4; }
.luna-follow, .luna-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.luna-contact { justify-content: center; margin-top: 22px; }
.luna-contact a { color: #552b5e; text-underline-offset: 4px; }
#contact .hero-btns { justify-content: center; margin-top: 25px; }
.luna-founder { width: 100%; height: 100%; object-fit: cover; display: block; }
#gallery h3 { color: var(--plum); margin-block: 32px 16px; }
.luna-gallery-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 216px), 1fr)); gap: clamp(10px, 2vw, 22px); }
.luna-gallery-photos a { display: block; overflow: hidden; border: 1px solid #e3cfbd; border-radius: 16px; background: #f4eadf; }
.luna-gallery-photos a:focus-visible { outline: 2px solid #774f80; outline-offset: 3px; }
.luna-gallery-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.luna-gallery-photos a:only-child { max-width: 360px; }
.luna-menu-catalog { max-width: 880px; margin: 34px auto 0; }
.luna-menu-category { margin-block: 12px; border: 1px solid #ddc8b8; border-radius: 16px; background: #fffaf5; color: #38213f; }
.luna-menu-category summary { cursor: pointer; padding: 18px clamp(15px, 2.8vw, 28px); font: 1.45rem 'DM Serif Display', Georgia, serif; }
.luna-menu-category > p { padding: 0 clamp(15px, 2.8vw, 28px); color: #5c4261; }
.luna-menu-category ul { list-style: none; margin: 0; padding: 0 clamp(15px, 2.8vw, 28px) 12px; }
.luna-menu-category li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; border-top: 1px solid #eaddd3; padding-block: 12px; }
.luna-menu-category li p { margin: 3px 0 0; color: #5c4261; }
.luna-menu-category li > span { font-weight: 700; white-space: nowrap; }
.luna-dated-event[hidden], #upcoming-events[hidden] { display: none; }
#upcoming-events .luna-event-photo { padding: 0; border: 0; justify-self: start; }
.luna-event-photo img { display: block; width: 64px; height: 64px; border-radius: 8px; object-fit: contain; background: #f7efe8; }
@media (max-width: 620px) {
  .luna-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .luna-badges figure:last-child { grid-column: 1 / -1; width: calc((100% - 12px) / 2); justify-self: center; box-sizing: border-box; }
  .luna-gallery-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #contact .hero-btns { flex-wrap: wrap; }
  .luna-event-photo img { width: 47px; height: 47px; }
}
#upcoming-events .luna-dated-event {
  grid-template-columns: 76px minmax(0, 1fr) auto;
  grid-template-areas: "poster details action";
}
#upcoming-events .luna-event-photo { grid-area: poster; }
#upcoming-events .luna-dated-event > div { grid-area: details; min-width: 0; }
#upcoming-events .luna-dated-event > a:last-child { grid-area: action; }
@media (max-width: 760px) {
  #upcoming-events .luna-dated-event {
    grid-template-columns: 50px minmax(0, 1fr);
    grid-template-areas: "poster details" ". action";
    gap: 10px 14px;
  }
  #upcoming-events .luna-dated-event > a:last-child { justify-self: start; }
}
