/* 클럽슈터 자체 게시판 */
.csb{max-width:1280px;margin:0 auto;padding:40px 20px 80px;font-family:Pretendard,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;color:#1b1b1f}
.csb *{box-sizing:border-box}
.csb a{color:inherit;text-decoration:none}
.csb-head{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;border-bottom:2px solid #1b1b1f;padding-bottom:16px;margin-bottom:24px}
.csb-head h2{font-size:30px;font-weight:800;margin:0;letter-spacing:-.02em}
.csb-head .cnt{color:#8a8a93;font-size:14px;margin-bottom:5px}
.csb-head .sp{flex:1}
.csb-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid #d6d6dc;background:#fff;border-radius:6px;padding:9px 16px;font-size:14px;font-weight:600;cursor:pointer;color:#1b1b1f;line-height:1.2}
.csb-btn:hover{border-color:#1b1b1f}
.csb-btn.red{background:#e63232;border-color:#e63232;color:#fff}
.csb-btn.red:hover{background:#c92525}
.csb-btn.sm{padding:6px 11px;font-size:13px}
.csb-search{display:flex;gap:6px}
.csb-search input{border:1px solid #d6d6dc;border-radius:6px;padding:9px 12px;font-size:14px;width:200px}
.csb-empty{padding:80px 0;text-align:center;color:#8a8a93}

/* 갤러리 */
.csb-gal{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;list-style:none;margin:0;padding:0}
.csb-gal li{position:relative;aspect-ratio:3/4;overflow:hidden;background:#eee;border-radius:4px}
.csb-gal img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.csb-gal a.full{position:absolute;inset:0;display:flex;align-items:flex-end;padding:16px;background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.65));color:#fff;font-weight:600;opacity:0;transition:opacity .25s}
.csb-gal li:hover img{transform:scale(1.04)}
.csb-gal li:hover a.full,.csb-gal li:focus-within a.full{opacity:1}
.csb-gal .noimg{width:100%;height:100%;display:grid;place-items:center;color:#aaa;font-size:13px}
.csb-gal .ov{position:absolute;top:8px;right:8px;display:flex;gap:4px;z-index:2}
.csb-gal .ov a,.csb-gal .ov button{background:rgba(255,255,255,.92);border:0;border-radius:4px;padding:5px 8px;font-size:12px;cursor:pointer;color:#1b1b1f}

/* 목록 */
.csb-list{list-style:none;margin:0;padding:0;border-top:1px solid #e4e4e8}
.csb-list li a{display:flex;gap:20px;padding:18px 0;border-bottom:1px solid #e4e4e8;align-items:center}
.csb-list .th{width:180px;aspect-ratio:3/2;flex:none;background:#eee;border-radius:4px;overflow:hidden}
.csb-list .th img{width:100%;height:100%;object-fit:cover;display:block}
.csb-list .tx{flex:1;min-width:0}
.csb-list .tx b{display:block;font-size:18px;margin-bottom:6px}
.csb-list .tx p{margin:0 0 8px;color:#55555e;font-size:14px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.csb-list .tx small,.csb-meta{color:#8a8a93;font-size:13px}
.csb-date{display:inline-block;background:#fdecec;color:#c92525;font-size:12px;font-weight:700;border-radius:4px;padding:2px 8px;margin-right:6px}

/* E-book */
.csb-book{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:28px 20px;list-style:none;margin:0;padding:0}
.csb-book .cv{aspect-ratio:3/4;background:#eee;box-shadow:0 10px 24px rgba(0,0,0,.18);border-radius:2px 6px 6px 2px;overflow:hidden;position:relative}
.csb-book .cv::before{content:"";position:absolute;inset:0 auto 0 0;width:8px;background:linear-gradient(90deg,rgba(0,0,0,.25),transparent)}
.csb-book img{width:100%;height:100%;object-fit:cover;display:block}
.csb-book b{display:block;margin-top:12px;font-size:15px}

/* 보기 */
.csb-view h3{font-size:26px;font-weight:800;margin:0 0 10px;line-height:1.35}
.csb-view .csb-meta{padding-bottom:18px;border-bottom:1px solid #e4e4e8;margin-bottom:28px;display:flex;gap:14px;flex-wrap:wrap}
.csb-body{font-size:16px;line-height:1.8;white-space:pre-wrap;word-break:break-word;margin-bottom:28px}
.csb-photos img{display:block;max-width:100%;height:auto;margin:0 auto 14px;cursor:zoom-in}
.csb-files{border:1px solid #e4e4e8;border-radius:6px;padding:12px 16px;margin:24px 0;font-size:14px}
.csb-files a{display:block;padding:4px 0;text-decoration:underline}
.csb-actions{display:flex;gap:8px;flex-wrap:wrap;margin:30px 0;justify-content:flex-end}
.csb-actions .sp{flex:1}
.csb-nav{border-top:1px solid #e4e4e8;font-size:14px}
.csb-nav a{display:flex;gap:16px;padding:14px 4px;border-bottom:1px solid #e4e4e8}
.csb-nav span{color:#8a8a93;width:50px;flex:none}

.csb-reader{background:#232326;border-radius:8px;padding:20px;color:#fff;margin-bottom:24px}
.csb-reader .pg{position:relative;display:flex;align-items:center;justify-content:center;min-height:60vh}
.csb-reader .pg img{max-width:100%;max-height:78vh;box-shadow:0 10px 30px rgba(0,0,0,.5);cursor:default}
.csb-reader .ctl{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:14px}
.csb-reader .ctl button{background:#fff;color:#1b1b1f;border:0;border-radius:6px;padding:8px 16px;font-weight:600;cursor:pointer}
.csb-reader .ctl button:disabled{opacity:.35;cursor:default}
.csb-reader iframe{width:100%;height:82vh;border:0;background:#fff;border-radius:4px}

.csb-cmt{margin-top:40px}
.csb-cmt h4{font-size:17px;margin:0 0 12px}
.csb-cmt .it{padding:14px 0;border-bottom:1px solid #eee;font-size:15px}
.csb-cmt .it b{font-size:14px;margin-right:8px}
.csb-cmt .it p{margin:6px 0 0;white-space:pre-wrap}
.csb-cmt form{display:flex;gap:8px;margin-top:14px}
.csb-cmt textarea{flex:1;border:1px solid #d6d6dc;border-radius:6px;padding:10px;font:inherit;min-height:64px}
.csb-cmt .del{background:none;border:0;color:#8a8a93;font-size:12px;cursor:pointer;text-decoration:underline}

/* 쓰기 */
.csb-form{max-width:860px}
.csb-form label{display:block;font-weight:700;font-size:14px;margin:18px 0 6px}
.csb-form input[type=text],.csb-form input[type=date],.csb-form input[type=url],.csb-form input[type=password],.csb-form input[type=number],.csb-form textarea{width:100%;border:1px solid #d6d6dc;border-radius:6px;padding:11px 12px;font:inherit;font-size:15px}
.csb-form textarea{min-height:240px;line-height:1.7}
.csb-drop{border:2px dashed #d6d6dc;border-radius:8px;padding:26px;text-align:center;color:#8a8a93;cursor:pointer}
.csb-drop.on{border-color:#e63232;color:#e63232}
.csb-prev{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;margin-top:12px}
.csb-prev div{position:relative;aspect-ratio:1;border-radius:6px;overflow:hidden;background:#f2f2f4;display:grid;place-items:center;font-size:12px;color:#55555e;text-align:center;padding:4px}
.csb-prev img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.csb-prev label{position:absolute;left:4px;bottom:4px;margin:0;background:rgba(255,255,255,.92);border-radius:4px;padding:2px 6px;font-size:12px;font-weight:600;display:flex;gap:4px;align-items:center;z-index:1}
.csb-hint{font-size:13px;color:#8a8a93;margin-top:6px}

.csb-paging{display:flex;justify-content:center;gap:4px;margin-top:40px}
.csb-paging a,.csb-paging strong{min-width:36px;height:36px;display:grid;place-items:center;border-radius:6px;font-size:14px;padding:0 8px}
.csb-paging strong{background:#1b1b1f;color:#fff}
.csb-paging a:hover{background:#f0f0f2}

.csb-lb{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:10050;display:none;align-items:center;justify-content:center}
.csb-lb.on{display:flex}
.csb-lb img{max-width:92vw;max-height:88vh}
.csb-lb button{position:absolute;background:none;border:0;color:#fff;font-size:34px;cursor:pointer;padding:16px}
.csb-lb .x{top:10px;right:16px}.csb-lb .p{left:10px}.csb-lb .n{right:10px}
.csb-lb .c{position:absolute;bottom:18px;color:#ccc;font-size:14px}

@media (max-width:1024px){.csb-gal{grid-template-columns:repeat(3,minmax(0,1fr))}.csb-book{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:640px){.csb{padding:24px 14px 60px}.csb-head h2{font-size:24px}.csb-gal{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.csb-book{grid-template-columns:repeat(2,minmax(0,1fr))}.csb-list .th{width:110px}.csb-list .tx b{font-size:16px}.csb-search input{width:140px}.csb-gal a.full{opacity:1}}
@media (prefers-reduced-motion:reduce){.csb *{transition:none!important}}

/* 흰 배경 페이지에서 오른쪽 위 메뉴(三) 버튼이 흐리게 보이지 않게 */
#open-button .line { background: #1a202c !important; box-shadow: none !important; }
body:has(#header-wrap[style*="flex"]) #open-button .line { background: #fff !important; }

/* 테마의 '페이지 설정' 톱니바퀴(최고관리자용)는 그누보드 페이지 전용이라 자체 게시판에서는 숨김 */
.btn-page-cfg { display: none !important; }

/* E-book: PDF → 쪽 사진 바꾸기 진행 */
.csb-pdfconv{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:10px 0;padding:12px 14px;border-radius:10px;background:#f4f2ee;font-size:14px}
.csb-pdfconv b{font-weight:700}.csb-pdfconv span{color:#777;font-size:13px}
.csb-pdfconv i{flex-basis:100%;height:6px;border-radius:3px;background:#e2ded6;overflow:hidden}.csb-pdfconv s{display:block;height:100%;width:0;background:linear-gradient(90deg,#ffb35c,#ff6b4a);transition:width .3s;text-decoration:none}

/* ---------- E-book 목록: 전시장 벽에 놓인 사진집 ---------- */
.eb-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:clamp(24px,5vw,64px);align-items:center;padding:clamp(28px,5vw,60px) clamp(22px,5vw,64px);margin:22px 0 10px;border-radius:18px;overflow:hidden;text-decoration:none;color:#1d1c1a;
  background:radial-gradient(70% 80% at 30% 40%,#fbfaf7 0%,#efede8 55%,#e2dfd8 100%)}
.eb-hero::before{content:"";position:absolute;left:8%;top:-40%;width:55%;height:90%;background:radial-gradient(50% 50% at 50% 50%,rgba(255,255,255,.8),transparent 70%);pointer-events:none}
.eb-hero-art{position:relative;display:flex;justify-content:center;perspective:1600px}
.eb-hero-tx{position:relative}
.eb-kicker{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.16em;color:#8a7f6c}
.eb-kicker em{font-style:normal;letter-spacing:.06em;background:#ff6b4a;color:#fff;border-radius:999px;padding:2px 8px;font-size:11px}
.eb-hero h3{margin:14px 0 14px;font-size:clamp(24px,2.6vw,36px);line-height:1.3;letter-spacing:-.02em;font-weight:800;word-break:keep-all}
.eb-meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 16px;font-size:14px;color:#7c776e}
.eb-meta span+span::before{content:"·";margin-right:14px;color:#c4beb3}
.eb-ex{margin:0 0 24px;font-size:15px;line-height:1.75;color:#55514a;word-break:keep-all}
.eb-open{display:inline-flex;align-items:center;gap:10px;background:#1f1e1c;color:#fff;border-radius:999px;padding:14px 22px 14px 26px;font-size:15px;font-weight:700;transition:transform .2s,background .2s}
.eb-open svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.eb-hero:hover .eb-open{background:#000}.eb-hero:hover .eb-open svg{transform:translateX(4px)}
/* 3차원 책 */
.eb-book{--ar:.72;position:relative;display:block;width:100%;aspect-ratio:var(--ar);transform:rotateY(-16deg) rotateX(4deg);transform-style:preserve-3d;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.eb-hero-art .eb-book{width:min(100%,calc(var(--ar) * 420px))}
.eb-hero-art .eb-book.wide{width:min(100%,560px)}
.eb-cover{position:absolute;inset:0;border-radius:2px 5px 5px 2px;overflow:hidden;background:#fff;box-shadow:0 1px 1px rgba(0,0,0,.08),0 18px 40px rgba(40,30,20,.28),0 40px 70px -20px rgba(40,30,20,.35)}
.eb-cover img{width:100%;height:100%;object-fit:cover;display:block}
.eb-cover em{position:absolute;inset:0;display:grid;place-items:center;font-style:normal;font-weight:800;letter-spacing:.2em;color:#b5ad9f;background:#f4f1ea}
/* 책등 접힘·빛 */
.eb-cover i{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(0,0,0,.22) 0,rgba(255,255,255,.35) 1.2%,rgba(0,0,0,.1) 2.6%,transparent 6%),linear-gradient(115deg,rgba(255,255,255,.18),transparent 40%)}
/* 종이 뭉치 (오른쪽·아래로 살짝 보이는 쪽들) */
.eb-pages{position:absolute;top:1.5%;bottom:1.5%;right:-9px;width:14px;border-radius:0 3px 3px 0;transform:translateZ(-8px);background:repeating-linear-gradient(90deg,#fdfcf8 0 1px,#e8e4dc 1px 2px);box-shadow:2px 2px 6px rgba(0,0,0,.12)}
.eb-hero:hover .eb-book,.eb-shelf a:hover .eb-book{transform:rotateY(-6deg) rotateX(2deg) translateY(-6px)}
/* 지난 회원전 선반 */
.eb-sub{margin:34px 0 4px;font-size:15px;font-weight:800;letter-spacing:.02em;color:#3a3733}
.eb-shelf{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:34px 26px}
.eb-shelf a{display:block;text-decoration:none;color:#1d1c1a}
.eb-slot{position:relative;height:220px;display:flex;align-items:flex-end;justify-content:center;padding:18px 18px 16px;border-radius:12px;perspective:1200px;background:radial-gradient(80% 90% at 50% 30%,#faf9f6,#ecebe6);box-shadow:inset 0 -10px 0 #e2ded6}
.eb-slot .eb-book{width:auto;height:100%;max-width:100%}
.eb-shelf b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:14px 2px 4px;font-size:15px;line-height:1.45;word-break:keep-all}
.eb-shelf small{font-size:12.5px;color:#8a857c;margin:0 2px}
@media (max-width:760px){
  .eb-hero{grid-template-columns:1fr;text-align:left;padding:30px 20px 26px}
  .eb-hero-art .eb-book{width:min(88%,calc(var(--ar) * 300px))}
  .eb-hero-art .eb-book.wide{width:88%}
  .eb-shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}
  .eb-slot{height:150px;padding:12px}
}
@media (prefers-reduced-motion:reduce){.eb-book{transition:none}}
.csb-prev .csb-pdfok{display:flex;align-items:center;justify-content:center;background:#f4f2ee;font-size:13px}.csb-prev .csb-pdfok label{position:static;background:none;display:flex;gap:6px;align-items:center}

/* ---------- 슈터행사: 다가오는 행사 + 달별 타임라인 ---------- */
.ev-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:0;margin:22px 0 34px;border-radius:18px;overflow:hidden;text-decoration:none;color:#fff;background:#14212a;box-shadow:0 20px 50px rgba(20,33,42,.18)}
.ev-hero-img{position:relative;min-height:340px;background:#22313b;overflow:hidden}
.ev-hero-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.2,.8,.2,1)}
.ev-hero:hover .ev-hero-img img{transform:scale(1.04)}
.ev-hero-img .ev-st{position:absolute;left:18px;top:18px;font-size:14px;padding:7px 14px}
.ev-hero-tx{position:relative;padding:clamp(26px,4vw,48px);display:flex;flex-direction:column;justify-content:center;background:radial-gradient(120% 90% at 0% 0%,#1d3542,#14212a 60%)}
.ev-kicker{font-size:12px;font-weight:800;letter-spacing:.2em;color:#ffb35c}
.ev-hero-date{display:flex;align-items:baseline;gap:12px;margin:14px 0 6px}
.ev-hero-date b{font-size:clamp(44px,5vw,64px);line-height:1;font-weight:900;letter-spacing:-.03em}
.ev-hero-date span{font-size:14px;opacity:.65}
.ev-hero h3{margin:8px 0 12px;font-size:clamp(21px,2.2vw,28px);line-height:1.35;font-weight:800;word-break:keep-all}
.ev-hero p{margin:0 0 22px;font-size:14.5px;line-height:1.7;opacity:.72;word-break:keep-all}
.ev-go{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;background:#fff;color:#14212a;border-radius:999px;padding:12px 20px 12px 22px;font-size:14.5px;font-weight:800}
.ev-go svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.ev-hero:hover .ev-go svg{transform:translateX(4px)}
.ev-noimg{position:absolute;inset:0;display:grid;place-items:center;font-weight:900;letter-spacing:.24em;color:rgba(255,255,255,.25);font-size:15px;background:linear-gradient(135deg,#22313b,#3b5b6b)}
.ev-st{display:inline-block;font-size:12px;font-weight:800;border-radius:999px;padding:4px 10px;letter-spacing:.02em}
.ev-st.up{background:#ff6b4a;color:#fff}.ev-st.now{background:#13a36b;color:#fff}.ev-st.past{background:#edece8;color:#8a857c}
/* 타임라인 */
.ev-tl{position:relative;padding-left:0}
.ev-month{display:flex;align-items:baseline;gap:10px;margin:30px 0 12px;padding-bottom:10px;border-bottom:2px solid #1d1c1a}
.ev-month b{font-size:26px;font-weight:900;letter-spacing:-.02em}.ev-month span{font-size:14px;color:#8a857c;font-weight:600}
.ev-item{display:grid;grid-template-columns:64px minmax(0,1fr);gap:18px;align-items:stretch;padding:14px 0;text-decoration:none;color:#1d1c1a;border-bottom:1px solid #eceae5}
.ev-day{display:flex;flex-direction:column;align-items:center;padding-top:6px}
.ev-day b{font-size:30px;line-height:1;font-weight:900;letter-spacing:-.02em}
.ev-day span{margin-top:6px;font-size:12px;color:#8a857c;font-weight:700}
.ev-card{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;align-items:center;padding:10px;border-radius:14px;transition:background .2s}
.ev-item:hover .ev-card{background:#f6f5f2}
.ev-th{position:relative;aspect-ratio:16/10;border-radius:10px;overflow:hidden;background:#22313b}
.ev-th img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.ev-item:hover .ev-th img{transform:scale(1.05)}
.ev-th .ev-noimg{font-size:11px}
.ev-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.ev-chip{font-size:12px;font-weight:700;border-radius:999px;padding:4px 10px;background:#f1efea;color:#6b665d}
.ev-tx b{display:block;font-size:18px;line-height:1.4;font-weight:800;margin-bottom:6px;word-break:keep-all}
.ev-tx p{margin:0 0 8px;font-size:14px;line-height:1.65;color:#66625a;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ev-tx small{font-size:12.5px;color:#a19c92}
.ev-item.is-past .ev-day b{color:#a19c92}
.ev-empty{padding:60px 0;text-align:center;color:#8a857c}
/* 글 보기: 큰 대표 사진 */
.ev-vhero{position:relative;margin:4px 0 18px;border-radius:18px;overflow:hidden;min-height:300px;max-height:520px;aspect-ratio:21/9;background:#14212a;color:#fff}
.ev-vhero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ev-vhero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 35%,rgba(10,16,20,.82))}
.ev-vhero.noimg{aspect-ratio:auto;min-height:220px;background:radial-gradient(120% 90% at 0% 0%,#1d3542,#14212a 60%)}
.ev-vtx{position:absolute;left:0;right:0;bottom:0;z-index:1;padding:clamp(20px,4vw,40px)}
.ev-vdate{display:flex;align-items:baseline;flex-wrap:wrap;gap:10px 12px;margin-bottom:8px}
.ev-vdate b{font-size:clamp(34px,4vw,52px);font-weight:900;line-height:1;letter-spacing:-.03em}
.ev-vdate span{font-size:14px;opacity:.75}
.ev-vhero h3{margin:0;font-size:clamp(22px,2.6vw,34px);line-height:1.3;font-weight:800;word-break:keep-all;text-shadow:0 2px 12px rgba(0,0,0,.3)}
/* 사진: 벽돌 쌓기 */
.ev-photos{column-count:3;column-gap:10px}
.ev-photos img{width:100%;margin:0 0 10px;border-radius:8px;break-inside:avoid;transition:filter .2s}
.ev-photos img:hover{filter:brightness(1.06)}
@media (max-width:760px){
  .ev-hero{grid-template-columns:1fr}.ev-hero-img{min-height:220px}
  .ev-item{grid-template-columns:44px minmax(0,1fr);gap:10px}.ev-day b{font-size:24px}
  .ev-card{grid-template-columns:1fr;gap:10px;padding:6px}.ev-th{aspect-ratio:16/9}
  .ev-vhero{aspect-ratio:4/3}
  .ev-photos{column-count:2;column-gap:6px}.ev-photos img{margin-bottom:6px}
}
.csb a.ev-hero,.ev-hero-tx,.ev-hero-tx h3,.ev-hero-tx b,.ev-hero-tx p,.ev-hero-tx span{color:#fff}
.ev-hero-tx .ev-kicker{color:#ffb35c}.ev-hero-tx .ev-go,.ev-hero-tx .ev-go svg{color:#14212a}
.ev-vhero .ev-vtx,.ev-vhero h3,.ev-vhero b,.ev-vhero span{color:#fff}
.ev-vhero .ev-st.past,.ev-hero .ev-st.past{color:#5c574f}
.ev-chip.link{background:#fff1ea;color:#d4542f}
.csb a.ev-go-dark{display:inline-flex;background:#14212a;color:#fff;margin:0 0 22px}

/* ---------- 행사 창(모달): 스크롤하며 사진 감상 ---------- */
.ev-modal{position:fixed;inset:0;z-index:9999;background:rgba(12,18,22,.72);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;justify-content:center;align-items:flex-start;overflow-y:auto;padding:4vh 16px;opacity:0;pointer-events:none;transition:opacity .25s}
.ev-modal.on{opacity:1;pointer-events:auto}
.ev-sheet{position:relative;width:min(900px,100%);background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.4);transform:translateY(18px);transition:transform .3s cubic-bezier(.2,.8,.2,1);font-family:Pretendard,'Noto Sans KR',sans-serif;color:#1d1c1a}
.ev-modal.on .ev-sheet{transform:none}
.ev-m-load{padding:80px 20px;text-align:center;color:#8a857c}
.ev-m-bar{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:12px;padding:12px 14px 12px 22px;background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid #eceae5}
.ev-m-bar b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
.ev-m-x{width:40px;height:40px;border-radius:50%;border:0;background:#14212a;color:#fff;font-size:22px;line-height:1;cursor:pointer;flex:none}
.ev-m-hero{position:relative;aspect-ratio:16/9;max-height:520px;width:100%;background:#14212a;color:#fff}
.ev-m-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ev-m-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(10,16,20,.8))}
.ev-m-hero.noimg{aspect-ratio:auto;min-height:200px;background:radial-gradient(120% 90% at 0% 0%,#1d3542,#14212a 60%)}
.ev-m-ht{position:absolute;left:0;right:0;bottom:0;z-index:1;padding:clamp(18px,4vw,34px)}
.ev-m-ht,.ev-m-ht b,.ev-m-ht span,.ev-m-ht h3{color:#fff}
.ev-m-ht .ev-st.past{color:#5c574f}
.ev-m-ht h3{margin:0;font-size:clamp(21px,2.6vw,30px);line-height:1.3;font-weight:800;word-break:keep-all;text-shadow:0 2px 12px rgba(0,0,0,.3)}
.ev-m-body{padding:clamp(18px,3vw,30px)}
.ev-m-meta{margin:0 0 14px;font-size:13px;color:#8a857c}
.ev-m-text{white-space:pre-wrap;word-break:break-word;font-size:16px;line-height:1.85;margin-bottom:22px}
.ev-m-photos{display:flex;flex-direction:column;gap:12px;margin:6px 0 10px}
.ev-m-photos figure{margin:0}
.ev-m-photos img{display:block;width:100%;height:auto;border-radius:10px;background:#f1efea}
.ev-m-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid #eceae5}
.ev-m-foot button,.ev-m-foot a{border:1px solid #dcd8cf;background:#fff;border-radius:999px;padding:10px 16px;font:inherit;font-size:14px;font-weight:700;color:#1d1c1a;cursor:pointer;text-decoration:none}
.ev-m-foot a{border:0;color:#8a857c;font-weight:500;text-decoration:underline}
@media (max-width:640px){.ev-modal{padding:0}.ev-sheet{border-radius:0;min-height:100%}.ev-m-hero{aspect-ratio:4/3}.ev-m-foot button{padding:9px 12px;font-size:13px}}
.ev-sheet a.ev-go-dark{display:inline-flex;align-items:center;gap:8px;background:#14212a;color:#fff;border-radius:999px;padding:12px 20px;font-size:14.5px;font-weight:800;text-decoration:none;margin:0 0 22px}
.csb-pdfconv[hidden]{display:none}
.csb-form input[type=url]{max-width:100%}

/* ---------- 사진 갤러리: 원래처럼 벽돌형(메이슨리) — 사진 비율 그대로, 왼쪽→오른쪽 순서 ---------- */
.csb-gal{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:2px;gap:0 14px;align-items:start}
.csb-gal li{aspect-ratio:auto;margin-bottom:14px;border-radius:6px}
.csb-gal img{height:auto}
.csb-gal li.noimgli{min-height:180px}
.csb-gal .noimg{position:absolute;inset:0}
@media (max-width:1024px){.csb-gal{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){.csb-gal{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 8px}.csb-gal li{margin-bottom:8px}}
