/* D · 피드형 — 이 안 전용 외형 (색·크기는 원시안에서 추정) */
:root { --bg: #f6f7f5; --card: #fff; --green: #1e5e3b; --green-d: #164a2e; --mint: #e7f3ea; --ink: #1f2421; --ink-2: #6d746f; --line: #e6e9e6; --sans: "Pretendard Variable", Pretendard, sans-serif; }
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #1f5fbf; outline-offset: 2px; }

.top { position: sticky; top: 0; z-index: 10; height: 76px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 24px; padding: 0 40px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand b { display: block; font-size: 26px; font-weight: 800; color: var(--green); letter-spacing: -.03em; line-height: 1.1; }
.brand small { font-size: 13px; color: var(--ink-2); }
.mark { width: 44px; height: 44px; border-radius: 12px; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; flex: none; }
.top-note { margin: 0 0 0 auto; color: var(--ink-2); font-size: 14.5px; }

.layout { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 300px minmax(0, 1fr) 360px; gap: 28px; padding: 24px 40px 60px; align-items: start; }
.left, .right { position: sticky; top: 100px; display: grid; gap: 18px; }
.menu { display: grid; gap: 4px; }
.menu a { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 12px; text-decoration: none; font-size: 17px; font-weight: 600; }
.menu svg { width: 22px; height: 22px; color: var(--green); }
.menu a[aria-current] { background: var(--mint); color: var(--green-d); font-weight: 800; }
.side-box { background: #fff; border-radius: 16px; padding: 18px; border: 1px solid var(--line); }
.side-h { margin: 0 0 8px; font-weight: 800; font-size: 15px; }
.ev-links { list-style: none; margin: 0; padding: 0; }
.ev-links button { width: 100%; display: flex; justify-content: space-between; border: 0; background: none; padding: 9px 4px; font-size: 15px; border-bottom: 1px solid var(--line); text-align: left; }
.ev-links li:last-child button { border: 0; }
.ev-links small { color: var(--ink-2); }
.ev-links button:hover span { color: var(--green); text-decoration: underline; }

.feed { min-width: 0; }
.feed-h { font-size: 22px; font-weight: 800; margin: 2px 0 14px; }
.feed-h #count { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.notice { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--mint); border-radius: 14px; padding: 16px 20px; margin-bottom: 18px; }
.notice b { font-size: 18px; }
.notice p { margin: 2px 0 0; color: var(--ink-2); font-size: 14.5px; }
.notice button { border: 0; background: none; font-size: 28px; color: var(--green); }
.badge { display: inline-block; background: var(--green); color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 14px; margin-bottom: 18px; }
.who { display: flex; align-items: center; gap: 12px; }
.who .mark { width: 40px; height: 40px; border-radius: 50%; font-size: 18px; }
.who b { display: block; font-size: 15.5px; }
.who time { font-size: 13.5px; color: var(--ink-2); }
.who .badge { margin-left: auto; background: var(--mint); color: var(--green-d); }
.p-title { font-size: 21px; margin: 14px 0 0; font-weight: 800; }
.p-meta { margin: 0 0 12px; color: var(--ink-2); font-size: 14.5px; }
.m-multi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-radius: 12px; overflow: hidden; }
.m-multi button, .m-single button { border: 0; padding: 0; background: #ddd; position: relative; display: block; width: 100%; }
.m-multi img { width: 100%; height: 100%; object-fit: cover; }
.m-multi .big { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.m-multi .sm { aspect-ratio: 4 / 3; }
.plus { position: absolute; inset: 0; background: rgba(20, 40, 28, .55); color: #fff; font-size: 26px; font-weight: 800; display: grid; place-items: center; }
.m-single button { border-radius: 12px; overflow: hidden; width: auto; }
.m-single img { width: 100%; height: auto; }
.m-single.tall button { max-width: 380px; }
.p-foot { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
.link { border: 0; background: none; color: var(--green); font-weight: 700; font-size: 14.5px; padding: 4px 0; }

.photos { margin-top: 30px; }
.photos:focus { outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; }
.chips [aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.pgrid { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 8px; }
.pgrid li { break-inside: avoid; margin-bottom: 8px; }
.pgrid button { border: 0; padding: 0; width: 100%; border-radius: 10px; overflow: hidden; background: none; }
.pgrid img { width: 100%; height: auto; }

.widget { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.w-h { display: flex; justify-content: space-between; align-items: baseline; }
.w-h h2 { font-size: 19px; margin: 0 0 12px; font-weight: 800; }
.w-h span { font-size: 13.5px; color: var(--ink-2); }
.w-img { border: 0; padding: 0; width: 100%; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.w-img img { width: 100%; aspect-ratio: 2.3 / 1; object-fit: cover; object-position: 50% 70%; }
.widget h3 { font-size: 20px; margin: 8px 0 2px; }
.w-meta { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; }
.btn { width: 100%; border: 0; background: var(--green); color: #fff; border-radius: 10px; padding: 12px; font-weight: 700; font-size: 16px; }
.btn:hover { background: var(--green-d); }
.mlist { list-style: none; margin: 0; padding: 0; }
.mlist li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.mlist li:last-child { border: 0; }
.mlist time { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.mlist button { border: 0; background: none; font-size: 22px; color: var(--ink-2); padding: 0 6px; }
.tabbar { display: none; }

.lb { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.lb::backdrop { background: rgba(10, 18, 13, .9); }
.lb[open] { display: grid; place-items: center; }
.lb-fig { margin: 0; background: #fff; border-radius: 16px; padding: 10px 10px 12px; text-align: center; }
.lb-img { max-height: calc(100vh - 150px); max-width: 88vw; width: auto; height: auto; border-radius: 10px; }
.lb-cap { font-weight: 800; font-size: 17px; margin-top: 10px; }
.lb-meta { color: var(--ink-2); font-size: 13.5px; margin: 2px 0 0; }
.lb-btn { position: fixed; width: 50px; height: 50px; border-radius: 50%; border: 0; background: #fff; font-size: 28px; color: var(--green); }
.lb-prev { left: 20px; top: 50%; } .lb-next { right: 20px; top: 50%; } .lb-close { right: 20px; top: 20px; }

@media (max-width: 1180px) { .layout { grid-template-columns: 240px minmax(0, 1fr); } .right { position: static; grid-column: 2; } }
@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  body { padding-bottom: 74px; }
  .top { height: 62px; padding: 0 16px; }
  .brand b { font-size: 21px; } .mark { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }
  .top-note { display: none; }
  .layout { display: block; padding: 12px 12px 30px; }
  .left { position: static; display: block; }
  .menu { display: none; }
  .side-box { background: none; border: 0; padding: 0 0 6px; }
  .side-h { display: none; }
  .ev-links { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 6px; }
  .ev-links button { flex: none; width: auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; gap: 6px; font-size: 14px; }
  .ev-links li:last-child button { border: 1px solid var(--line); }
  .feed-h { font-size: 19px; margin-top: 10px; }
  .notice { padding: 14px 16px; } .notice b { font-size: 16px; } .notice p { font-size: 13.5px; }
  .post { padding: 16px 14px 10px; border-radius: 14px; }
  .p-title { font-size: 19px; }
  .m-single.tall button { max-width: 78%; }
  .pgrid { columns: 2; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips button { flex: none; }
  .right { position: static; margin-top: 18px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
  .tabbar svg { width: 23px; height: 23px; }
  .tabbar a[aria-current] { color: var(--green); }
  .lb-btn { width: 42px; height: 42px; } .lb-prev { left: 6px; } .lb-next { right: 6px; } .lb-close { right: 8px; top: 8px; }
}
@media (max-width: 760px) { .ev-links li { flex: none; } .ev-links button { white-space: nowrap; } }
/* D 수정: 첫 앨범 높이 축소, 짧은 행사 기록, 2×2 사진첩 */
.feed-h { font-size: 19px; margin-bottom: 10px; }
.notice { padding: 10px 16px; margin-bottom: 14px; }
.notice b { font-size: 16px; } .notice p { font-size: 13.5px; }
.post { padding: 16px 20px 10px; margin-bottom: 14px; }
.p-title { font-size: 19px; margin: 10px 0 10px; }
.p-title .p-meta { font-size: 14px; font-weight: 500; margin-left: 6px; }
.album1 { border-radius: 12px; overflow: hidden; display: grid; gap: 5px; }
.album1 button { border: 0; padding: 0; position: relative; display: block; width: 100%; background: #ddd; }
.album1 img { width: 100%; height: 100%; object-fit: cover; }
.album1 .big { aspect-ratio: 2.3 / 1; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.thumbs .sm { aspect-ratio: 16 / 9; }
.plus { font-size: 20px; }
.p-foot { margin-top: 8px; padding-top: 6px; }
.post.short { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.post.short .p-title { margin: 8px 0 0; }
.post.short .p-meta { margin: 0 0 4px; }
.post.short .thumb { border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: none; }
.post.short .thumb img { height: 118px; width: auto; }
.album .w-h a { font-size: 13.5px; color: var(--ink-2); text-decoration: none; }
.a22 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.a22 button { border: 0; padding: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1.25 / 1; }
.a22 img { width: 100%; height: 100%; object-fit: cover; }
.widget.in-feed { margin-bottom: 14px; }
.widget.in-feed .w-img img { aspect-ratio: 2.6 / 1; }
@media (max-width: 760px) {
  .right { display: none; }
  .post.short { gap: 12px; }
  .post.short .thumb img { height: 92px; }
  .thumbs .sm { aspect-ratio: 4 / 3; }
  .album1 .big { aspect-ratio: 2 / 1; }
  .tabbar svg { width: 23px; height: 23px; }
}
@media (max-width: 760px) {
  .post.short { grid-template-columns: minmax(0, 1fr) auto; }
  .post.short .who .badge { display: none; }
  .who time { white-space: nowrap; }
  .notice p { display: none; }
}

/* ===== 수정본: 흰 지면 중심, 섞인 피드 밀도, 왼쪽 안내 삽화 ===== */
:root { --bg: #ffffff; --line: #ececec; }
body { background: #fff; }
.top { border-bottom: 1px solid var(--line); }
.layout { gap: 0; padding-top: 0; }
.left { top: 76px; padding: 22px 22px 0 0; border-right: 1px solid var(--line); min-height: calc(100vh - 76px); align-content: start; }
.feed { padding: 22px 26px 0; }
.right { top: 76px; padding: 22px 0 0 22px; border-left: 1px solid var(--line); min-height: calc(100vh - 76px); align-content: start; }
.side-box { display: none; }
.side-btn { display: block; text-align: center; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; border-radius: 12px; padding: 13px; margin-top: 6px; }
.side-btn:hover { background: var(--green-d); }
.guide-card { position: relative; background: #eef6f0; border-radius: 16px; padding: 20px 18px 18px; min-height: 230px; overflow: hidden; }
.g-h { margin: 0 0 8px; font-weight: 800; font-size: 18px; color: var(--green-d); }
.g-t { margin: 0; font-size: 14px; line-height: 1.6; color: #3d4a42; max-width: 190px; position: relative; z-index: 1; }
.g-go { position: absolute; left: 18px; bottom: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; text-decoration: none; font-weight: 800; z-index: 1; }
.g-art { position: absolute; right: 6px; bottom: 6px; width: 132px; height: 120px; }
.widget { border-color: var(--line); }
.post { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 2px 14px; margin: 0; }
.post.text { padding: 16px 2px 12px; }
.p-line { margin: 10px 0 4px 52px; font-size: 15.5px; }
.post.text .link { margin-left: 52px; }
.post.short > div > .p-title, .post.short > div > .p-meta, .post.short > div > .link { margin-left: 52px; display: block; }
.post > .p-title, .post > .album1, .post > .p-foot { margin-left: 52px; }
.p-foot { border-top: 0; }
.notice { margin-bottom: 4px; }
.photos { margin-top: 24px; }

@media (max-width: 1180px) and (min-width: 761px) {
  .right { border-left: 0; padding: 0 0 30px 26px; min-height: 0; }
}
@media (max-width: 760px) {
  .left, .right { border: 0; padding: 0; min-height: 0; }
  .feed { padding: 0; }
  .side-btn, .guide-card { display: none; }
  .side-box { display: block; padding-top: 10px; }
  .p-line, .post.text .link, .post > .p-title, .post > .album1, .post > .p-foot, .post.short > div > .p-title, .post.short > div > .p-meta, .post.short > div > .link { margin-left: 0; }
  .post { padding: 16px 0 12px; }
  .widget.in-feed { margin: 14px 0; border: 1px solid var(--line); }
}
