/* ==========================================================
   이달의 이벤트 (mn06_01) — 인트로 + 이벤트 목록 카드
   PC·모바일 공용. 목록은 기존 게시판 마크업(board_list_img)을 그대로 두고 CSS만 덮어씁니다.
   ========================================================== */
.ynm-evtop { margin-bottom: -40px; } /* 아래 탭이 인트로 하단에 걸쳐 보이도록 */
.ynm-ev {
    --g:#b89874; --gl:#e4cfac; --gd:#8d6f4c; --ink:#141311; --tx:#4a453f; --ease:cubic-bezier(.16,1,.3,1);
    position: relative; overflow: hidden; display: flex; align-items: center; box-sizing: border-box;
    width: 100vw; margin-left: calc(-50vw + 50%); min-height: 860px; padding: 195px 0 105px;
    background: linear-gradient(118deg, #fffdf9 0%, #f8f0e2 46%, #ecdcbf 100%);
    color: var(--ink); font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Noto Sans KR', sans-serif;
    -webkit-font-smoothing: antialiased;
}
/* 배경: 금빛 원형 라인 + 큰 EVENT 워터마크 + 반짝임 (이미지 없이 구성) */
.ynm-ev-deco { position: absolute; top: 0; bottom: 0; left: 0; right: 11vw; pointer-events: none; }
.ynm-ev-deco i { position: absolute; border-radius: 50%; border: 1px solid rgba(184,152,116,.42); }
.ynm-ev-deco .r1 { right: -140px; top: 50%; width: 760px; height: 760px; margin-top: -420px; }
.ynm-ev-deco .r2 { right: -20px; top: 50%; width: 520px; height: 520px; margin-top: -300px; border-style: dashed; border-color: rgba(184,152,116,.38); }
.ynm-ev-deco .r3 { right: 100px; top: 50%; width: 280px; height: 280px; margin-top: -180px; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95), rgba(255,255,255,0) 70%); border-color: rgba(184,152,116,.3); }
.ynm-ev-deco b { position: absolute; right: 40px; bottom: 36px; font: 200 260px/1 'Manrope','Pretendard',sans-serif; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(184,152,116,.34); user-select: none; }
.ynm-ev-deco svg { position: absolute; color: var(--g); }
.ynm-ev-deco .gift { position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; margin: -66px 0 0 -66px; color: var(--g); animation: ynmEvFloat 5s ease-in-out infinite; }
.ynm-ev-deco .s1 { right: 330px; top: 24%; width: 38px; height: 38px; }
.ynm-ev-deco .s2 { right: 190px; top: 62%; width: 22px; height: 22px; opacity: .7; }
.ynm-ev-deco .s3 { right: 470px; top: 70%; width: 14px; height: 14px; opacity: .55; }
.ynm-ev-text { position: relative; z-index: 2; box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px 0 60px; text-align: left; }
#content_wrap .ynm-ev .ynm-ev-eb { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: .2em; color: var(--gd); }
#content_wrap .ynm-ev .ynm-ev-eb:before { content: ''; width: 34px; height: 1px; background: var(--g); }
#content_wrap .ynm-ev h1 { margin: 22px 0 20px !important; padding: 0 !important; border: 0 !important; background: none !important; font-size: 92px !important; font-weight: 500 !important; line-height: 1.12 !important; letter-spacing: -.06em !important; color: var(--ink) !important; text-align: left !important; }
#content_wrap .ynm-ev h1 .ln, #content_wrap .ynm-ev h1 .ln > span { font: inherit !important; letter-spacing: inherit !important; color: inherit !important; }
.ynm-ev .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.ynm-ev .ln > span { display: block; animation: ynmEvUp 1.2s var(--ease) .15s both; }
#content_wrap .ynm-ev h2.ynm-ev-sub { margin: 0; padding: 0; border: 0; background: none; font-size: 26px; font-weight: 400; line-height: 1.55; letter-spacing: -.045em; color: var(--ink); text-align: left; word-break: keep-all; }
.ynm-ev-sub:after { content: ''; display: block; width: 1px; height: 40px; margin: 28px 0 26px; background: var(--g); }
#content_wrap .ynm-ev p.ynm-ev-q { max-width: none; margin: 0; padding: 0; font-size: 15.5px; font-weight: 400; line-height: 1.7; letter-spacing: -.01em; color: var(--tx); text-align: left; word-break: keep-all; }
.ynm-ev-eb, .ynm-ev-sub, .ynm-ev-q { animation: ynmEvFade 1s var(--ease) .5s both; }
.ynm-ev-deco i { animation: ynmEvRing 1.6s var(--ease) both; }
.ynm-ev-deco svg { animation: ynmEvTw 4s ease-in-out infinite; }
@keyframes ynmEvFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ynmEvUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes ynmEvFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ynmEvRing { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes ynmEvTw { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.78); opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .ynm-ev *, .ynm-ev-deco i, .ynm-ev-deco svg { animation: none !important; } }

/* ----- 위치 안내 (HOME > 커뮤니티 > 이달의 이벤트) : class="ynm-location" 추가 필요 ----- */
#content_wrap #location.ynm-location { height: auto; padding: 4px 0 72px; }
#content_wrap #location.ynm-location .locbox span { display: inline-block; vertical-align: middle; width: auto; height: auto; margin: 0; padding: 0 0 9px; overflow: visible; background: none; font-size: 14px; line-height: 1; letter-spacing: -.01em; }
#content_wrap #location.ynm-location .locbox .home { font: 500 12px/1 'Manrope','Pretendard',sans-serif; letter-spacing: .16em; color: #8a847c; }
#content_wrap #location.ynm-location .locbox .arrow { width: 4px; height: 4px; margin: 0 16px 9px; padding: 0; border-radius: 50%; background: #c9b394; font-size: 0; color: transparent; }
#content_wrap #location.ynm-location .locbox .loc1 { height: auto; font-size: 14px; line-height: 1; color: #8a847c; }
#content_wrap #location.ynm-location .locbox .loc2 { position: relative; height: auto; font-size: 14px; line-height: 1; font-weight: 600; color: #141311; }
#content_wrap #location.ynm-location .locbox .loc2:after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: #b89874; }

/* ----- 이벤트 목록 카드 (기존 board_list_img 마크업 덮어쓰기) ----- */
.board_list_img_box { width: 1200px; max-width: 100%; margin: 0 auto; }
.board_list_img_box table.board_list_img { width: 100%; border: 0; }
.board_list_img_box table.board_list_img td { box-sizing: border-box; width: 33.333% !important; padding: 0 16px 56px !important; border: 0 !important; text-align: center; }
.board_list_img_box .gal_img { display: block; position: relative; width: 100% !important; height: auto !important; aspect-ratio: 8 / 5; overflow: hidden; border-radius: 20px; background: linear-gradient(135deg, #f8f0e2, #ecdcbf); box-shadow: 0 18px 34px -22px rgba(141,111,76,.55); transition: transform .6s cubic-bezier(.16,1,.3,1), box-shadow .6s; }
.board_list_img_box .gal_img img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.board_list_img_box td:hover .gal_img, .board_list_img_box td:hover .gal_img > div[style*="rgba"] { transform: translateY(-6px); box-shadow: 0 26px 40px -22px rgba(141,111,76,.6); }
/* 종료된 이벤트: 어두운 덮개 대신 밝은 샴페인 톤 + 금색 글씨 (덮개 div를 카드 크기에 맞춰 이미지 위에 겹침) */
.board_list_img_box .gal_img:has(> div[style*="rgba"]) { display: contents; }
.board_list_img_box .gal_img > div[style*="rgba"] { position: absolute !important; left: 16px; top: 0; right: 16px; z-index: 3; width: auto !important; height: auto !important; aspect-ratio: 8 / 5; display: flex; align-items: center; justify-content: center; border-radius: 20px; background: linear-gradient(135deg, rgba(250,244,232,.94), rgba(236,220,191,.94)) !important; color: #8d6f4c !important; line-height: 1.4 !important; font-size: 16px; font-weight: 600; letter-spacing: .12em; }
.board_list_img_box .gal_img img[src*="exam.jpg"] { opacity: 0; }
.board_list_img_box .gal_tit { display: block; margin: 22px 0 0; padding: 0; font-size: 20px; font-weight: 600; line-height: 1.45; letter-spacing: -.03em; color: #141311; }
.board_list_img_box .gal_tit a { color: inherit; }
.board_list_img_box td > span:last-child, .board_list_img_box td > span:last-child a { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.6; letter-spacing: -.01em; color: #8b857c; }

@media (max-width: 1100px) {
    .ynm-ev-deco { right: 0; }
    .board_list_img_box table.board_list_img td { padding: 0 10px 44px !important; }
    .board_list_img_box .gal_img > div[style*="rgba"] { left: 10px; right: 10px; }
}
@media (max-width: 768px) {
    .ynm-evtop { margin-bottom: 0; }
    .ynm-ev { min-height: 748px; padding: 90px 0 90px; }
    .ynm-ev-deco .r1 { right: -300px; width: 700px; height: 700px; margin-top: -380px; }
    .ynm-ev-deco .r2 { right: -200px; width: 480px; height: 480px; margin-top: -280px; }
    .ynm-ev-deco .r3 { right: -40px; width: 240px; height: 240px; margin-top: -160px; }
    .ynm-ev-deco b { right: 20px; bottom: 22px; font-size: 190px; }
    .ynm-ev-deco .gift { width: 108px; height: 108px; margin: -54px 0 0 -54px; }
    .ynm-ev-deco .s1 { right: 60px; top: 20%; } .ynm-ev-deco .s2 { right: 24px; top: 58%; } .ynm-ev-deco .s3 { display: none; }
    .ynm-ev-text { max-width: none; padding: 0 32px; }
    #content_wrap .ynm-ev .ynm-ev-eb { font-size: 17px; gap: 10px; letter-spacing: .1em; }
    #content_wrap .ynm-ev .ynm-ev-eb:before { width: 20px; }
    #content_wrap .ynm-ev h1 { margin: 16px 0 14px !important; font-size: min(82px, 13vw) !important; line-height: 1.08 !important; white-space: nowrap; }
    #content_wrap .ynm-ev h2.ynm-ev-sub { max-width: 80%; font-size: 26px; line-height: 1.5; }
    .ynm-ev-sub br { display: none; }
    .ynm-ev-sub:after { height: 30px; margin: 20px 0 18px; }
    #content_wrap .ynm-ev p.ynm-ev-q { max-width: 80%; margin: 0; font-size: 19px; line-height: 1.7; }
    .ynm-ev-q br { display: none; }
    /* 모바일: 2열 카드 */
    .board_list_img_box { padding: 0 20px; box-sizing: border-box; }
    .board_list_img_box table.board_list_img, .board_list_img_box table.board_list_img tbody { display: block; }
    .board_list_img_box table.board_list_img tbody { display: flex; flex-wrap: wrap; }
    .board_list_img_box table.board_list_img tr { display: contents; }
    .board_list_img_box table.board_list_img td { float: none !important; flex: 0 0 50%; display: block; position: relative !important; width: 50% !important; padding: 0 12px 44px !important; }
    .board_list_img_box .gal_img, .board_list_img_box .gal_img > div[style*="rgba"] { border-radius: 16px; }
    .board_list_img_box .gal_img > div[style*="rgba"] { left: 12px; right: 12px; font-size: 18px; }
    .board_list_img_box .gal_tit { margin-top: 18px; font-size: 23px; line-height: 1.4; }
    .board_list_img_box td > span:last-child, .board_list_img_box td > span:last-child a { margin-top: 6px; font-size: 18px; }
}

/* ===== 모바일 게시판 목록 (.board_list_box > table.albumlist) ===== */
#content_wrap .board_list_box { width: 100%; box-sizing: border-box; padding: 40px 20px 30px; background: #fff; }
#content_wrap .board_list_box table.albumlist, #content_wrap .board_list_box table.albumlist tbody { display: block; width: 100% !important; border: 0 !important; background: none !important; }
#content_wrap .board_list_box table.albumlist caption { display: none; }
#content_wrap .board_list_box table.albumlist tbody { display: flex; flex-wrap: wrap; }
#content_wrap .board_list_box table.albumlist tr { display: contents; }
#content_wrap .board_list_box table.albumlist td { position: relative; box-sizing: border-box; display: block; flex: 0 0 50%; width: 50% !important; height: auto !important; margin: 0; padding: 0 10px 46px !important; border: 0 !important; background: none !important; text-align: left; vertical-align: top; }
#content_wrap .board_list_box table.albumlist .gal_img { display: block; width: auto !important; height: auto !important; margin: 0; padding: 0; background: none; }
#content_wrap .board_list_box table.albumlist .gal_img a { display: block; }
#content_wrap .board_list_box table.albumlist .gal_img img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 10; padding: 0 !important; object-fit: cover; border-radius: 20px; box-shadow: 0 14px 30px -16px rgba(120,92,56,.45); }
#content_wrap .board_list_box table.albumlist .gal_img:has(> div[style*="rgba"]) { display: contents; }
#content_wrap .board_list_box table.albumlist .gal_img > div[style*="rgba"] { position: absolute !important; left: 10px; right: 10px; top: 0; z-index: 2; box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: auto !important; height: auto !important; aspect-ratio: 16 / 10; line-height: 1.2 !important; border-radius: 20px; background: linear-gradient(135deg, rgba(251,246,238,.62), rgba(236,221,198,.68)) !important; color: #8f7048 !important; font-size: 24px !important; font-weight: 600; letter-spacing: .12em; }
#content_wrap .board_list_box table.albumlist p.titles { margin: 20px 0 0; padding: 0; font-size: 28px !important; font-weight: 600; line-height: 1.4; letter-spacing: -.03em; color: #141311; word-break: keep-all; }
#content_wrap .board_list_box table.albumlist p.titles a { color: inherit; text-decoration: none; }
#content_wrap .board_list_box table.albumlist p.gal_tit { margin: 8px 0 0; padding: 0; font-size: 18px !important; white-space: normal !important; overflow-wrap: anywhere; word-break: keep-all; font-weight: 400; line-height: 1.55; letter-spacing: -.02em; color: #8a847c; }
#content_wrap .board_list_box table.albumlist p.gal_tit a { color: inherit; text-decoration: none; }
